1 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4 (mips_break_sequence): New function.
5 (mips_reorg_process_insns): Use them. Use compact branches in selected
8 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
10 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
12 2015-11-11 Jiong Wang <jiong.wang@arm.com>
13 Jim Wilson <wilson@gcc.gnu.org>
16 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
17 be true and eliminable registers mentioned.
19 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
21 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
23 * config/arc/arc-opts.h: Add ARCv2 CPUs.
24 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
25 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
26 situation, and store instructions with large offsets.
27 (arc_secondary_reload_conv): New function.
28 (arc_init): Add ARCv2 options.
29 (arc_conditional_register_usage): Select the proper register usage
31 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
33 (arc_compute_function_type): Likewise.
34 (arc_print_operand): Handle new ARCv2 punctuation characters.
35 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
37 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
39 (arc_reorg, arc_hazard): Use it.
40 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
42 (ASM_SPEC): Add ARCv2 options.
43 (TARGET_NORM): ARC HS has norm instructions by default.
44 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
46 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
47 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
49 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
51 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
52 (TARGET_LP_WR_INTERLOCK): Likewise.
54 (commutative_binary_mult_comparison_result_used, movsicc_insn)
55 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
56 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
57 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
59 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
60 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
61 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
62 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
63 (extzvsi): New pattern.
64 * config/arc/arc.opt: New ARCv2 options.
65 * config/arc/arcEM.md: New file.
66 * config/arc/arcHS.md: Likewise.
67 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
69 (Cm2): A signed 9-bit integer constant constraint.
70 (C62): An unsigned 6-bit integer constant constraint.
71 (C16): A signed 16-bit integer constant constraint.
72 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
73 (short_const_int_operand): New predicate.
74 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
75 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
76 -mcode-density and -mdiv-rem.
78 2015-11-11 Julia Koval <julia.koval@intel.com>
80 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
82 2015-11-11 Julia Koval <julia.koval@intel.com>
84 * config/i386/i386.c: Handle "skylake" and
87 2015-11-11 Martin Liska <mliska@suse.cz>
89 * gimple-ssa-strength-reduction.c (create_phi_basis):
91 * passes.c (release_dump_file_name): New function.
92 (pass_init_dump_file): Used from this function.
93 (pass_fini_dump_file): Likewise.
94 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
95 * var-tracking.c (vt_initialize): Use pool_allocator.
97 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
98 Jiong Wang <jiong.wang@arm.com>
100 PR tree-optimization/68234
101 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
102 node which estimiated to be VR_VARYING initially.
104 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
106 * regname.c (scan_rtx_reg): Check the matching number of consecutive
107 registers when tying chains.
108 (build_def_use): Move terminated_this_insn earlier in the function.
110 2015-11-10 Mike Frysinger <vapier@gentoo.org>
112 * configure.ac: Use = with test and not ==.
113 * configure: Regenerated.
115 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
117 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
118 machine asserts. Update defines for 64 bit.
120 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
123 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
125 (neon_vst1_lane<mode>): Likewise.
126 (neon_vld2_lane<mode>): Likewise.
127 (neon_vst2_lane<mode>): Likewise.
128 (neon_vld3_lane<mode>): Likewise.
129 (neon_vst3_lane<mode>): Likewise.
130 (neon_vld4_lane<mode>): Likewise.
131 (neon_vst4_lane<mode>): Likewise.
133 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
136 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
137 qualifier_struct_load_store_lane_index.
138 (arm_storestruct_lane_qualifiers) Likewise.
139 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
141 (neon_vst1_lane<mode>) Likewise.
142 (neon_vld2_lane<mode>) Likewise.
143 (neon_vst2_lane<mode>) Likewise.
144 (neon_vld3_lane<mode>) Likewise.
145 (neon_vst3_lane<mode>) Likewise.
146 (neon_vld4_lane<mode>) Likewise.
147 (neon_vst4_lane<mode>) Likewise.
149 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
152 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
153 qualifier_struct_load_store_lane_index.
154 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
155 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
157 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
158 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
160 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
162 * config/nvptx/nvptx.opt (moptimize): New flag.
163 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
165 (nvptx_optimize_inner): New.
166 (nvptx_process_pars): Call it when optimizing.
167 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
169 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
171 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
172 Remove redundant code.
174 2015-11-10 Jeff Law <law@redhat.com>
176 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
177 call to output_address.
178 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
179 Add unnamed machine_mode argument.
181 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
183 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
186 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
188 * config/i386/i386.md (*movabs<mode>_1): Add explicit
189 size directives for -masm=intel.
190 (*movabs<mode>_2): Ditto.
192 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
194 * config/i386/i386.c (ix86_print_operand): Remove dead code that
195 tried to avoid (%rip) for call operands.
197 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
199 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
200 argument. Do not use RIP relative addressing when no_rip is set.
201 (ix86_print_operand): Update call to ix86_print_operand_address_as.
202 (ix86_print_operand_address): Ditto.
203 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
204 absolute movabs operand 0. Add square braces for -masm=intel.
205 (*movabs<mode>_2): Ditto for operand 1.
207 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
209 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
210 combine_vcvtf2i pattern.
212 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
214 * config/arm/arm.c (neon_valid_immediate): Remove integer
215 CONST_DOUBLE handling. It should never occur.
217 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
219 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
220 (ATOMIC_LDOP): Likewise.
221 (atomic_ldop): Likewise.
222 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
223 (ATOMIC_LDOP): Likewise.
224 (atomic_ldop): Likewise.
226 2015-11-10 Martin Liska <mliska@suse.cz>
228 * alloc-pool.h (allocate_raw): New function.
229 (operator new (size_t, object_allocator<T> &a)): Use the
230 function instead of object_allocator::allocate).
232 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
234 * config/i386/sse.md (HALFMASKMODE): New attribute.
235 (DOUBLEMASKMODE): New attribute.
236 (vec_pack_trunc_qi): New.
237 (vec_pack_trunc_<mode>): New.
238 (vec_unpacks_lo_hi): New.
239 (vec_unpacks_lo_si): New.
240 (vec_unpacks_lo_di): New.
241 (vec_unpacks_hi_hi): New.
242 (vec_unpacks_hi_<mode>): New.
244 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
246 * optabs.c (expand_binop_directly): Allow scalar mode for
247 vec_pack_trunc_optab.
248 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
249 boolean vector producers from pattern sequence when computing VF.
250 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
251 vect_recog_mask_conversion_pattern.
252 (search_type_for_mask): Choose the smallest
253 type if different size types are mixed.
254 (build_mask_conversion): New.
255 (vect_recog_mask_conversion_pattern): New.
256 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
257 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
259 (vectorizable_conversion): Support boolean vectors.
260 (free_stmt_vec_info): Allow patterns for statements with no lhs.
261 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
263 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
265 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
266 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
267 Cast mask to FP mode if required.
268 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
269 (vcond_mask_<mode><avx512fmaskmodelower>): New.
270 (vcond_mask_<mode><sseintvecmodelower>): New.
271 (vcond_mask_<mode><sseintvecmodelower>): New.
272 (vcond_mask_v2div2di): New.
273 (vcond_mask_<mode><sseintvecmodelower>): New.
274 (vcond_mask_<mode><sseintvecmodelower>): New.
276 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
278 * optabs-query.h (get_vcond_mask_icode): New.
279 * optabs-tree.c (expand_vec_cond_expr_p): Use
280 get_vcond_mask_icode for VEC_COND_EXPR with mask.
281 * optabs.c (expand_vec_cond_mask_expr): New.
282 (expand_vec_cond_expr): Use get_vcond_mask_icode
284 * optabs.def (vcond_mask_optab): New.
285 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
286 generate redundant comparison for COND_EXPR.
287 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
289 (vectorizable_condition): Likewise.
290 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
291 cond_exp with no embedded comparison.
292 (vect_build_slp_tree_1): Likewise.
294 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
296 * config/i386/sse.md (maskload<mode>): Rename to ...
297 (maskload<mode><sseintvecmodelower>): ... this.
298 (maskstore<mode>): Rename to ...
299 (maskstore<mode><sseintvecmodelower>): ... this.
300 (maskload<mode><avx512fmaskmodelower>): New.
301 (maskstore<mode><avx512fmaskmodelower>): New.
303 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
305 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
306 (expand_MASK_STORE): Adjust to maskstore optab changes.
307 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
308 Adjust to maskload, maskstore optab changes.
309 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
310 * optabs.def (maskload_optab): Transform into convert optab.
311 (maskstore_optab): Likewise.
312 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
313 can_vec_mask_load_store_p signature change.
314 (predicate_mem_writes): Use boolean mask.
315 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
316 can_vec_mask_load_store_p signature change. Allow invariant masks.
317 (vectorizable_operation): Ignore type precision for boolean vectors.
319 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
321 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
322 (const_vector_mask_from_tree): New.
323 (const_vector_from_tree): Use const_vector_mask_from_tree
325 * optabs-query.h (get_vec_cmp_icode): New.
326 * optabs-tree.c (expand_vec_cmp_expr_p): New.
327 * optabs-tree.h (expand_vec_cmp_expr_p): New.
328 * optabs.c (vector_compare_rtx): Add OPNO arg.
329 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
330 (expand_vec_cmp_expr): New.
331 * optabs.def (vec_cmp_optab): New.
332 (vec_cmpu_optab): New.
333 * optabs.h (expand_vec_cmp_expr): New.
334 * tree-vect-generic.c (expand_vector_comparison): Add vector
335 comparison optabs check.
336 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
337 operations for VF. Add mask type computation.
338 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
339 (vectorizable_comparison): New.
340 (vect_analyze_stmt): Add vectorizable_comparison.
341 (vect_transform_stmt): Likewise.
342 (vect_init_vector): Support boolean vector invariants.
343 (vect_get_vec_def_for_operand): Add VECTYPE arg.
344 (vectorizable_condition): Directly provide vectype for invariants
346 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
347 (enum vect_var_kind): Add vect_mask_var.
348 (enum stmt_vec_info_type): Add comparison_vec_info_type.
349 (vectorizable_comparison): New.
350 (vect_get_vec_def_for_operand): Add VECTYPE arg.
351 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
352 (vect_create_destination_var): Likewise.
353 * tree-vect-patterns.c (check_bool_pattern): Check fails
354 if we can vectorize comparison directly.
355 (search_type_for_mask): New.
356 (vect_recog_bool_pattern): Support cases when bool pattern
358 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
359 comparison statements.
360 (vect_get_constant_vectors): Support boolean vector
362 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
363 (ix86_expand_int_vec_cmp): New.
364 (ix86_expand_fp_vec_cmp): New.
365 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
366 op_true and op_false.
367 (ix86_int_cmp_code_to_pcmp_immediate): New.
368 (ix86_fp_cmp_code_to_pcmp_immediate): New.
369 (ix86_cmp_code_to_pcmp_immediate): New.
370 (ix86_expand_mask_vec_cmp): New.
371 (ix86_expand_fp_vec_cmp): New.
372 (ix86_expand_int_sse_cmp): New.
373 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
374 (ix86_expand_int_vec_cmp): New.
375 (ix86_get_mask_mode): New.
376 (TARGET_VECTORIZE_GET_MASK_MODE): New.
377 * config/i386/sse.md (avx512fmaskmodelower): New.
378 (vec_cmp<mode><avx512fmaskmodelower>): New.
379 (vec_cmp<mode><sseintvecmodelower>): New.
380 (vec_cmpv2div2di): New.
381 (vec_cmpu<mode><avx512fmaskmodelower>): New.
382 (vec_cmpu<mode><sseintvecmodelower>): New.
383 (vec_cmpuv2div2di): New.
385 2015-11-10 Richard Biener <rguenther@suse.de>
387 PR tree-optimization/68240
388 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
390 (visit_phi): For PHIs with just a single executable edge
391 take its value directly.
392 (expressions_equal_p): Handle VN_TOP properly.
394 2015-11-10 Richard Biener <rguenther@suse.de>
396 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
397 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
400 2015-11-10 Richard Biener <rguenther@suse.de>
402 PR tree-optimization/56118
403 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
404 cost favor vectorized version.
406 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
408 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
409 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
410 (neg_not_op): New code attribute.
412 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
414 * ifcvt.c (noce_try_inverse_constants): New function.
415 (noce_process_if_block): Call it.
416 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
417 * optabs.def (negcc_optab, notcc_optab): Declare.
418 * optabs.c (emit_conditional_neg_or_complement): New function.
419 * doc/tm.texi (Standard Names): Document negcc, notcc names.
421 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
423 PR rtl-optimization/68236
424 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
425 if insn_queue doesn't exist.
426 (haifa_sched_finish): Reset insn_queue to NULL.
428 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
430 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
431 (build_def_use): Initialize terminated_this_insn.
432 (find_best_rename_reg): Pick and check register from the tied chain.
433 (regrename_do_replace): Mark head as renamed.
434 (struct du_head *terminated_this_insn). New static variable.
435 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
436 * regrename.h (struct du_head): Add tied_chain, renamed members.
438 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
441 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
444 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
447 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
448 not promote the mode for aggregate types.
450 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
452 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
453 * omp-low.c (build_oacc_routine_dims): New.
455 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
457 * config/rs6000/constraints.md (wF constraint): New constraints
458 for power9/toc fusion.
459 (wG constraint): Likewise.
461 * config/rs6000/predicates.md (u6bit_cint_operand): New
462 predicate, recognize 0..63.
463 (upper16_cint_operand): New predicate for power9 and toc fusion.
464 (fpr_reg_operand): Likewise.
465 (toc_fusion_or_p9_reg_operand): Likewise.
466 (toc_fusion_mem_raw): Likewise.
467 (toc_fusion_mem_wrapped): Likewise.
468 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
470 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
472 (fusion_addis_mem_combo_load): Add support for power9 fusion of
473 floating point loads, floating point stores, and gpr stores.
474 (fusion_addis_mem_combo_store): Likewise.
475 (fusion_offsettable_mem_operand): Likewise.
477 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
479 (emit_fusion_load_store): Likewise.
480 (fusion_p9_p): Likewise.
481 (expand_fusion_p9_load): Likewise.
482 (expand_fusion_p9_store): Likewise.
483 (emit_fusion_p9_load): Likewise.
484 (emit_fusion_p9_store): Likewise.
485 (fusion_wrap_memory_address): Likewise.
487 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
488 elements for power9 fusion.
489 (rs6000_debug_print_mode): Rework debug information to print more
490 information about fusion.
491 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
493 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
494 offsettable memory address.
495 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
496 (emit_fusion_gpr_load): Move most of the code from
497 emit_fusion_gpr_load into emit_fusion-addis that handles both
498 power8 and power9 fusion.
499 (emit_fusion_addis): Likewise.
500 (emit_fusion_load_store): Likewise.
501 (fusion_wrap_memory_address): Add support for TOC fusion.
502 (fusion_split_address): Likewise.
503 (fusion_p9_p): Add support for power9 fusion.
504 (expand_fusion_p9_load): Likewise.
505 (expand_fusion_p9_store): Likewise.
506 (emit_fusion_p9_load): Likewise.
507 (emit_fusion_p9_store): Likewise.
509 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
510 new instructions in ISA 3.0.
511 (TARGET_CTZ): Likewise.
512 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
513 (TARGET_TOC_FUSION_FP): Likewise.
515 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
517 (UNSPEC_FUSION_ADDIS): Likewise.
518 (QHSI mode iterator): New iterator for power9 fusion.
519 (GPR_FUSION): Likewise.
520 (FPR_FUSION): Likewise.
521 (mod<mode>3): Add support for ISA 3.0
522 modulus instructions.
523 (umod<mode>3): Likewise.
524 (divmod peephole): Likewise.
525 (udivmod peephole): Likewise.
526 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
528 (ctz<mode>2_h): Likewise.
529 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
530 (ashdi3_extswsli_dot): Likewise.
531 (ashdi3_extswsli_dot2): Likewise.
532 (power9 fusion splitter): New power9/toc fusion support.
533 (toc_fusionload_<mode>): Likewise.
534 (toc_fusionload_di): Likewise.
535 (fusion_gpr_load_<mode>): Update predicate function.
536 (power9 fusion peephole2s): New power9/toc fusion support.
537 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
538 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
539 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
540 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
541 (fusion_p9_<mode>_constant): Likewise.
543 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
545 * optabs.c (prepare_libcall_arg): New function.
546 (expand_fixed_convert): Add call to prepare_libcall_arg.
548 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
550 * sched-int.h (dump_rgn_dependencies_dot): Declare
551 * sched-rgn.c (dump_rgn_dependencies_dot): New function
552 * print-rtl.h (print_insn): Add prototype
554 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
555 * common.opt (-fsched-verbose): Set default value to 1.
556 * invoke.texi (-fsched-verbose): Update the option's description.
558 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
560 * config/visium/visium.h (PRINT_OPERAND): Delete.
561 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
562 (PRINT_OPERAND_ADDRESS): Likewise.
563 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
565 (visium_print_operand_punct_valid_p): ...this. New function.
566 (TARGET_PRINT_OPERAND): Define to...
567 (print_operand): Rename to...
568 (visium_print_operand): ...this.
569 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
570 (visium_output_address): Rename to...
571 (visium_print_operand_address): ...this.
572 (print_operand_address): Delete.
574 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
577 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
578 Check that the type of the first operand is an aggregate type.
580 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
582 * omp-low.c: Fix some OpenACC comment typos.
583 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
584 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
585 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
587 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
589 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
591 2015-11-09 Jeff Law <law@redhat.com>
593 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
594 being in gimple/ssa form. Remove redundant check for SSA_NAME.
597 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
598 Peter Bergner <bergner@vnet.ibm.com>
600 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
602 (-mpower9-vector): Likewise.
603 (-mpower9-dform): Likewise.
604 (-mpower9-minmax): Likewise.
605 (-mtoc-fusion): Likewise.
606 (-mmodulo): Likewise.
607 (-mfloat128-hardware): Likewise.
609 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
610 mask for ISA 3.0 (power9).
611 (POWERPC_MASKS): Add new ISA 3.0 switches.
612 (power9 cpu): Add power9 cpu.
614 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
616 (ASM_CPU_SPEC): Likewise.
617 (EXTRA_SPECS): Likewise.
619 * config/rs6000/rs6000-opts.h (enum processor_type): Add
622 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
624 (rs6000_debug_reg_global): Add support for power9 fusion.
625 (rs6000_setup_reg_addr_masks): Cache mode size.
626 (rs6000_option_override_internal): Until real power9 tuning is
627 added, use -mtune=power8 for -mcpu=power9.
628 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
629 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
630 of Altivec registers.
631 (rs6000_option_override_internal): Add support for ISA 3.0
633 (rs6000_loop_align): Add support for power9 cpu.
634 (rs6000_file_start): Likewise.
635 (rs6000_adjust_cost): Likewise.
636 (rs6000_issue_rate): Likewise.
637 (insn_must_be_first_in_group): Likewise.
638 (insn_must_be_last_in_group): Likewise.
639 (force_new_group): Likewise.
640 (rs6000_register_move_cost): Likewise.
641 (rs6000_opt_masks): Likewise.
643 * config/rs6000/rs6000.md (cpu attribute): Add power9.
644 * config/rs6000/rs6000-tables.opt: Regenerate.
646 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
647 _ARCH_PWR9 if power9 support is available.
649 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
650 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
652 * configure.ac: Determine if the assembler supports the ISA 3.0
654 * config.in (HAVE_AS_POWER9): Likewise.
655 * configure: Regenerate.
657 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
660 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
662 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
663 Remove integer CONST_DOUBLE handling. It should never occur.
665 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
669 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
670 Delete VOIDmode case. Assert that mode is not VOIDmode.
671 * config/aarch64/predicates.md (const0_operand): Remove const_double
674 2015-11-09 Martin Liska <mliska@suse.cz>
676 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
677 body_info release function.
678 * ipa-prop.c (ipa_release_body_info): New function.
679 (ipa_analyze_node): Call the function.
680 (ipa_node_params::~ipa_node_params): Release known_csts.
681 * ipa-prop.h (ipa_release_body_info): Declare.
683 2015-11-09 Martin Liska <mliska@suse.cz>
685 * gcc.c (record_temp_file): Release name string.
686 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
688 * lra-lives.c (free_live_range_list): Utilize
689 lra_live_range_pool for allocation and deallocation.
690 (create_live_range): Likewise.
691 (copy_live_range): Likewise.
692 (lra_merge_live_ranges): Likewise.
693 (remove_some_program_points_and_update_live_ranges): Likewise.
694 (lra_create_live_ranges_1): Release point_freq_vec that can
695 be not freed from previous iteration of the function.
696 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
698 * tree-sra.c (sra_deinitialize): Release all vectors in
700 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
701 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
702 Release edge_info for a removed edge.
703 (thread_through_all_blocks): Free region vector.
704 * tree-ssa.h (free_dom_edge_info): Declare function extern.
706 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
708 * optabs.c (expand_vec_cond_expr): Always get sign from type.
709 * tree.c (wide_int_to_tree): Support negative values for boolean.
710 (build_nonstandard_boolean_type): Use signed type for booleans.
712 2015-11-09 Richard Biener <rguenther@suse.de>
714 PR tree-optimization/68248
715 * tree-vect-generic.c (expand_vector_operations_1): Handle
718 2015-11-09 Richard Biener <rguenther@suse.de>
720 PR tree-optimization/56118
721 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
722 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
723 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
725 (vect_slp_analyze_data_ref_dependences): Instead of computing
726 all dependences of the region DRs just analyze the code motions
727 SLP vectorization will perform. Remove SLP instances that
728 cannot have their store/load motions applied.
729 (vect_analyze_data_refs): Allow DRs without a vectype
732 2015-11-09 Julian Brown <julian@codesourcery.com>
734 * final.c (output_asm_insn): Pass VOIDmode to output_address.
735 (output_address): Add MODE argument. Pass to print_operand_address
737 * targhooks.c (default_print_operand_address): Add MODE argument.
738 * targhooks.h (default_print_operand_address): Update prototype.
739 * output.h (output_address): Update prototype.
740 * target.def (print_operand_address): Add MODE argument.
741 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
743 (print_operand): Pass access mode to output_address.
744 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
746 (mcore_print_operand): Update calls to mcore_print_operand_address.
747 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
749 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
751 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
753 (tilegx_print_operand): Don't set above global. Update calls to
755 (tilegx_print_operand_address): Add MODE argument. Use instead of
756 output_memory_reference_mode global.
757 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
758 (frv_print_operand): Pass mode to frv_print_operand_address calls.
759 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
761 * config/cris/cris.c (cris_print_operand_address): Add MODE
763 (cris_print_operand): Pass mode to output_address calls.
764 * config/spu/spu.c (print_operand): Pass mode to output_address
766 * config/aarch64/aarch64.h (aarch64_print_operand)
767 (aarch64_print_operand_address): Remove prototypes.
768 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
770 (aarch64_print_operand): Make static. Update calls to
772 (aarch64_print_operand_address): Add MODE argument. Use instead of
773 aarch64_memory_reference_mode global.
774 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
776 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
777 Delete macro definitions.
778 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
780 * config/xtensa/xtensa.c (print_operand): Pass mode in
781 output_address calls.
782 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
784 (h83000_print_operand): Update calls to h8300_print_operand_address
786 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
788 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
790 (tilepro_print_operand): Pass mode to output_address.
791 (tilepro_print_operand_address): Add MODE argument. Use instead of
792 output_memory_reference_mode.
793 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
794 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
795 to output_address calls.
796 (nvptx_print_operand_address): Add MODE argument.
797 * config/alpha/alpha.c (print_operand): Pass mode argument in
798 output_address calls.
799 * config/m68k/m68k.c (print_operand): Pass mode argument in
801 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
802 (avr_print_operand): Update calls to avr_print_operand_address.
803 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
804 argument. Update calls to output_address.
805 (sparc_print_operand): Pass mode to output_address.
806 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
808 (iq2000_print_operand): Pass mode in output_address calls.
809 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
811 (xstormy16_print_operand): Pass mode to
812 xstormy16_print_operand_address calls.
813 * config/mips/mips.c (mips_print_operand): Update calls to
815 (mips_print_operand_address): Add MODE argument.
816 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
818 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
819 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
821 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
822 (rx_print_operand): Update calls to output_address,
823 rx_print_operand_address.
824 * config/nds32/nds32.c (nds32_print_operand): Update calls to
826 (nds32_print_operand_address): Add MODE argument.
827 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
828 output_address calls.
829 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
831 (c6x_print_address_operand): Update calls to output_address.
832 (c6x_print_operand_address): Pass mode to above.
833 * config/v850/v850.c (v850_print_operand_address): Add MODE
835 (v850_print_operand): Pass mode to v850_print_operand_address,
837 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
839 (mmix_print_operand): Pass mode in output_address calls.
840 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
841 (sh_print_operand): Pass mem mode to output_address,
842 sh_print_operand_address.
843 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
845 (cr16_print_operand): Pass mode to output_address,
846 cr16_print_operand_address.
847 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
849 * config/microblaze/microblaze.c (print_operand): Pass mode to
851 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
853 (nios2_print_operand_address): Add MODE argument. Update call to
854 nios2_print_operand_address.
855 * config/s390/s390.c (print_operand): Pass mode to output_address.
856 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
858 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
860 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
861 Use instead of output_memory_reference_mode.
862 (output_memory_reference_mode): Delete global.
863 (arm_print_operand): Pass mem mode to output_address.
864 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
866 (m32r_print_operand): Pass mode to output_address.
867 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
869 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
870 * config/i386/i386.c (ix86_print_operand): Pass mode to
871 output_address calls.
872 (ix86_print_operand_address): Add MODE argument.
874 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
877 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
878 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
879 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
880 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
882 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
884 PR rtl-optimization/67749
885 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
886 case before emitting the two blocks. Instead modify the register
887 in the corresponding final insn of the basic block.
889 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
891 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
894 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
896 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
897 HAVE_INITFINI_ARRAY_SUPPORT.
898 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
901 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
902 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
903 Don't check HAVE_AS_SPARC_NOBITS.
906 * configure: Regenerate.
907 * config.in: Regenerate.
909 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
912 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
914 2015-11-09 Richard Henderson <rth@redhat.com>
916 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
918 (ix86_register_pragmas): Register address spaces __seg_fs,
920 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
921 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
922 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
923 * config/i386/i386.c (ix86_decompose_address): Likewise.
924 (ix86_legitimate_address_p): Likewise.
925 (memory_address_length): Likewise. Check mem address space too.
926 (ix86_print_operand): Use ix86_print_operand_address_as.
927 (ix86_print_operand_address_as): Rename from
928 ix86_print_operand_address, add new addr_space_t parameter.
929 Validate that either the parameter or the ix86_address segment
930 is default address space. Handle ADDR_SPACE_SEG_TLS.
931 (ix86_print_operand_address): New.
932 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
933 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
934 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
935 (ix86_addr_space_zero_address_valid): New.
936 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
937 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
938 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
939 * config/i386/predicates.md (address_no_seg_operand): Likewise.
940 (vsib_address_operand): Likewise.
941 (address_mpx_no_base_operand): Likewise.
942 (address_mpx_no_index_operand): Likewise.
943 * doc/extend.texi (x86 Named Address Spaces): New section.
945 * config/i386/i386.c (ix86_check_no_addr_space): New.
946 (decide_alg): Add have_as parameter.
947 (alg_usable_p): Likewise; disable rep algorithms if set.
948 (ix86_expand_set_or_movmem): Notice if either MEM has a
949 non-default address space.
950 (ix86_expand_strlen): Likewise.
951 * config/i386/i386.md (strmov, strset): Likewise.
952 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
953 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
954 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
955 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
956 *cmpstrnqi_1, *strlenqi_1): Likewise.
958 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
959 (*movabs<mode>_2): Likewise.
961 * dwarf2out.c (modified_type_die): Pass the address space number
962 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
963 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
964 * targhooks.c (default_addr_space_debug): New.
965 * targhooks.h (default_addr_space_debug): Declare.
966 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
967 * doc/tm.texi: Rebuild.
969 * gimple.c (check_loadstore): Return false when 0 is a valid address.
970 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
971 null when 0 is valid in the source address space.
972 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
973 * targhooks.c (default_addr_space_zero_address_valid): New.
974 * targhooks.h (default_addr_space_zero_address_valid): Declare.
975 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
976 * doc/tm.texi: Rebuild.
978 * cselib.c (add_mem_for_addr): Compare address spaces when
980 (cselib_lookup_mem): Likewise.
981 * fold-const.c (operand_equal_p): Check address spaces of
982 pointer types before checking integer constants.
985 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
986 the correct type for the base.
988 2015-11-09 Jeff Law <law@redhat.com>
990 * tree-into-ssa.c (names_to_release): No longer static.
991 * tree-into-ssa.h (names_to_release): Declare.
992 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
993 (release_free_names_and_compact_live_names): New function extracted
994 from pass_release_ssa_names::execute.
995 (pass_release_ssa_names::execute): Use it.
997 2015-11-09 Alan Modra <amodra@gmail.com>
999 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1000 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1001 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1004 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1006 PR rtl-optimization/68182
1007 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1008 branch with only one successor just like unconditional branches.
1010 2015-11-08 Jeff Law <law@redhat.com>
1012 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1013 non-FSM path has no edges marked with EDGE_DFS_BACK.
1014 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1015 (thread_single_edge, def_split_header_continue_p): Remove.
1016 (bb_ends_with_multiway_branch): Likewise.
1017 (thread_through_loop_header): Remove cases of threading from
1018 latch through the header. Simplify knowing we won't thread
1020 (thread_through_all_blocks): Simplify knowing that only the FSM
1021 threader needs to handle backedges.
1023 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1025 * doc/extend.texi (type attributes): Document scalar_storage_order.
1026 (Structure-Packing Pragmas): Rename into...
1027 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1028 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1029 (Warnings): Document -Wno-scalar-storage-order.
1030 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1031 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1032 extract_bit_field and store_bit_field.
1033 (initialize_argument_information): Adjust call to store_expr.
1034 (load_register_parameters): Adjust call to extract_bit_field.
1035 * expmed.c (check_reverse_storage_order_support): New function.
1036 (check_reverse_float_storage_order_support): Likewise.
1037 (flip_storage_order): Likewise.
1038 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1039 of the value if it is true. Pass REVERSE to recursive call after
1040 adjusting the target offset.
1041 Do not use extraction or movstrict instruction if REVERSE is true.
1042 Pass REVERSE to store_fixed_bit_field.
1043 (store_bit_field): Add REVERSE parameter and pass to it to above.
1044 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1045 store_split_bit_field and store_fixed_bit_field_1.
1046 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1047 order of the value if it is true and adjust the target offset.
1048 (store_split_bit_field): Add REVERSE parameter and pass it to
1049 store_fixed_bit_field. Adjust the target offset if it is true.
1050 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1051 of the value if it is true. Pass REVERSE to recursive call after
1052 adjusting the target offset.
1053 Do not use extraction or subreg instruction if REVERSE is true.
1054 Pass REVERSE to extract_fixed_bit_field.
1055 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1056 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1057 extract_split_bit_field and extract_fixed_bit_field_1.
1058 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1059 order of the value if it is true and adjust the target offset.
1060 (extract_split_bit_field): Add REVERSE parameter and pass it to
1061 extract_fixed_bit_field. Adjust the target offset if it is true.
1062 * expmed.h (flip_storage_order): Declare.
1063 (store_bit_field): Adjust prototype.
1064 (extract_bit_field): Likewise.
1065 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1066 (emit_group_store): Adjust call to store_bit_field.
1067 (copy_blkmode_from_reg): Likewise.
1068 (copy_blkmode_to_reg): Likewise.
1069 (write_complex_part): Likewise.
1070 (read_complex_part): Likewise.
1071 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1072 that it isn't true if the target is a register.
1073 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1074 and flip the storage order of the value.
1075 <BIT_IOR_EXPR>: Flip the storage order of the value.
1076 (get_bit_range): Adjust call to get_inner_reference.
1077 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1078 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1079 with reverse storage order.
1080 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1081 recursive calls and call to store_bit_field. Force the value into a
1082 register if it is true and then flip the storage order of the value.
1083 (store_expr): Add REVERSE parameter and pass it to above.
1084 (categorize_ctor_elements_1): Adjust call to
1085 initializer_constant_valid_p.
1086 (store_constructor_field): Add REVERSE parameter and pass it to
1087 recursive calls and call to store_field.
1088 (store_constructor): Add REVERSE parameter and pass it to calls to
1089 store_constructor_field and store_expr. Set it to true for an
1090 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1091 (store_field): Add REVERSE parameter and pass it to recursive calls
1092 and calls to store_expr and store_bit_field. Temporarily flip the
1093 storage order of the value with record type and integral mode and
1094 adjust the shift if it is true.
1095 (get_inner_reference): Add PREVERSEP parameter and set it to true
1096 upon encoutering a reference with reverse storage order.
1097 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1098 (expand_constructor): Adjust call to store_constructor.
1099 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1100 of the union type to store_expr in the MEM case and assert that it
1101 isn't set in the REG case. Adjust call to store_field.
1102 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1103 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1104 get_inner_reference and extract_bit_field. Temporarily flip the
1105 storage order of the value with record type and integral mode and
1106 adjust the shift if it is true. Flip the storage order of the value
1107 at the end if it is true.
1108 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1109 get_inner_reference. Do not fetch an inner reference if it is true.
1110 * expr.h (store_expr_with_bounds): Ajust prototype.
1111 (store_expr): Likewise.
1112 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1113 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1114 (optimize_bit_field_compare): Deal with reverse storage order.
1115 Adjust calls to get_inner_reference and make_bit_field_ref.
1116 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1117 get_inner_reference.
1118 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1119 to decode_field_reference and make_bit_field_ref.
1120 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1121 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1122 (fold_comparison): Adjust call to get_inner_reference.
1123 (split_address_to_core_and_offset): Adjust call to
1124 get_inner_reference.
1125 * gimple-expr.c (useless_type_conversion_p): Return false for array
1126 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1127 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1128 REF_REVERSE_STORAGE_ORDER flag.
1129 * lto-streamer-out.c (hash_tree): Deal with
1130 TYPE_REVERSE_STORAGE_ORDER.
1131 * output.h (assemble_real): Adjust prototype.
1132 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1133 * stor-layout.c (finish_record_layout): Propagate the
1134 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1135 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1136 (TYPE_SATURATING): Adjust.
1137 (REF_REVERSE_STORAGE_ORDER): Document.
1138 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1139 set it to true upon encoutering a reference with reverse storage
1141 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1142 * tree-inline.c (remap_gimple_op_r): Propagate the
1143 REF_REVERSE_STORAGE_ORDER flag.
1144 (copy_tree_body_r): Likewise.
1145 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1147 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1148 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1149 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1150 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1151 REF_REVERSE_STORAGE_ORDER flag.
1152 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1153 (gimple_canonical_types_compatible_p): Likewise.
1154 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1155 (TYPE_SATURATING): Adjust.
1156 (REF_REVERSE_STORAGE_ORDER): New flag.
1157 (reverse_storage_order_for_component_p): New inline predicate.
1158 (storage_order_barrier_p): Likewise.
1159 (get_inner_reference): Adjust prototype.
1160 * varasm.c: Include expmed.h.
1161 (assemble_variable_contents): Adjust call to output_constant.
1162 (assemble_real): Add REVERSE parameter. Flip the storage
1163 order of the value if REVERSE is true.
1164 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1165 (assemble_constant_contents): Adjust call to output_constant.
1166 (output_constant_pool_2): Adjust call to assemble_real.
1167 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1168 TYPE_REVERSE_STORAGE_ORDER.
1169 (initializer_constant_valid_p): Add REVERSE parameter.
1170 (output_constant): Add REVERSE parameter.
1171 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1172 <REAL_TYPE>: Adjust call to assemble_real.
1173 <COMPLEX_TYPE>: Pass it to recursive calls.
1174 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
1175 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
1176 (struct oc_local_state): Add REVERSE field.
1177 (output_constructor_array_range): Adjust calls to output_constant.
1178 (output_constructor_regular_field): Likewise.
1179 (output_constructor_bitfield): Adjust call to output_constructor.
1180 Flip the storage order of the value if REVERSE is true.
1181 (output_constructor): Add REVERSE parameter. Set it to true for an
1182 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
1183 output_constructor_bitfield.
1184 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1185 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1186 * builtins.c (get_object_alignment_2): Likewise.
1187 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1188 and get_ref_base_and_extent.
1189 * dbxout.c (dbxout_expand_expr): Likewise.
1190 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1191 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1192 (loc_list_from_tree): Likewise.
1193 (fortran_common): Likewise.
1194 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1195 get_ref_base_and_extent.
1196 (get_base_constructor): Likewise.
1197 (fold_const_aggregate_ref_1): Likewise.
1198 * gimple-laddress.c (pass_laddress::execute): Adjust call to
1199 get_inner_reference.
1200 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1201 get_inner_reference and bail out on reverse storage order.
1202 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1203 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1204 build_ref_for_offset.
1205 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1206 get_ref_base_and_extent.
1207 (ipa_polymorphic_call_context): Likewise.
1208 (extr_type_from_vtbl_ptr_store): Likewise.
1209 (check_stmt_for_type_change): Likewise.
1210 (get_dynamic_type): Likewise.
1211 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1212 get_ref_base_and_extent.
1213 (compute_complex_assign_jump_func): Likewise.
1214 (get_ancestor_addr_info): Likewise.
1215 (compute_known_type_jump_func): Likewise.
1216 (determine_known_aggregate_parts): Likewise.
1217 (ipa_get_adjustment_candidate): Likewise.
1218 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1220 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1221 (build_ref_for_offset): Adjust prototype.
1222 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1223 get_inner_reference.
1224 * tree-affine.c (tree_to_aff_combination): Adjust call to
1225 get_inner_reference.
1226 (get_inner_reference_aff): Likewise.
1227 * tree-data-ref.c (split_constant_offset_1): Likewise.
1228 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
1229 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1230 get_inner_reference.
1231 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1232 (dump_access): Print new fields.
1233 (create_access): Adjust call to get_ref_base_and_extent and set the
1234 REVERSE flag according to the result.
1235 (completely_scalarize_record): Set the REVERSE flag.
1236 (scalarize_elem): Add REVERSE parameter.
1237 (build_access_from_expr_1): Preserve storage order barriers.
1238 (build_accesses_from_assign): Likewise.
1239 (build_ref_for_offset): Add REVERSE parameter and set the
1240 REF_REVERSE_STORAGE_ORDER flag accordingly.
1241 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1242 the REF_REVERSE_STORAGE_ORDER flag if there are components.
1243 (analyze_access_subtree): Likewise.
1244 (create_artificial_child_access): Set the REVERSE flag.
1245 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1246 (turn_representatives_into_adjustments): Propagate REVERSE flag.
1247 (ipa_sra_check_caller): Adjust call to get_inner_reference.
1248 * tree-ssa-alias.c (ao_ref_base): Adjust call to
1249 get_ref_base_and_extent.
1250 (aliasing_component_refs_p): Likewise.
1251 (stmt_kills_ref_p_1): Likewise.
1252 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1253 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1254 Return true if reverse storage order.
1255 <BIT_FIELD_REF>: Likewise.
1256 <COMPONENT_REF>: Likewise.
1257 <ARRAY_REF>: Likewise.
1258 <ARRAY_RANGE_REF>: Likewise.
1259 (split_address_cost): Likewise. Bail out if reverse storage order.
1260 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1261 get_inner_reference. Bail out if reverse storage order.
1262 (bswap_replace): Adjust call to get_inner_reference.
1263 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1264 the REF_REVERSE_STORAGE_ORDER flag.
1265 <BIT_FIELD_REF>: Likewise.
1266 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1268 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1269 to the REF_REVERSE_STORAGE_ORDER flag.
1270 <BIT_FIELD_REF>: Likewise.
1271 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1272 (contains_storage_order_barrier_p): New predicate.
1273 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1274 Punt on storage order barriers if necessary.
1275 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1276 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1277 call to get_ref_base_and_extent.
1278 (do_structure_copy): Likewise.
1279 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1280 get_inner_reference.
1281 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
1283 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1284 * ubsan.c (instrument_bool_enum_load): Likewise.
1285 (instrument_object_size): Likewise.
1286 * var-tracking.c (track_expr_p): Adjust call to
1287 get_ref_base_and_extent
1288 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1289 get_inner_reference.
1290 * config/s390/s390.c (s390_expand_atomic): Adjust call to
1292 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1294 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1296 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
1298 * config/sparc/sparc.opt (mfix-at697f): Add final period.
1300 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1302 PR rtl-optimization/67864
1303 * common/config/i386/i386-common.c (ix86_option_optimization_table)
1304 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1307 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1309 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1312 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1314 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1315 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1317 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1319 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1320 * internal-fn.c: Don't undef it here.
1321 * tree-core.h: Likewise.
1323 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1325 * builtins.c (fold_builtin_nan): Delete.
1326 (fold_builtin_memcmp): Remove case where both arguments are constant.
1327 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1328 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1329 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1330 * fold-const-call.c: Include fold-const.h.
1331 (host_size_t_cst_p): New function.
1332 (build_cmp_result, fold_const_builtin_nan): Likewise.
1333 (fold_const_call_1): New function, split out from...
1334 (fold_const_call): ...here (for all three interfaces). Handle
1335 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1337 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1339 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1340 (fold_builtin_1): Don't call them.
1341 * fold-const-call.c: Include tm.h.
1342 (fold_const_call_ss): New variant for integer-to-integer folds.
1343 (fold_const_call): Call it.
1345 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1347 * builtins.c (fold_builtin_classify): Move constant cases to...
1348 * fold-const-call.c (fold_const_call_ss): ...here.
1350 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1352 * builtins.h (c_getstr): Move to...
1353 * fold-const.h (c_getstr): ...here.
1354 * builtins.c (c_getstr): Move to...
1355 * fold-const.c (c_getstr): ...here.
1357 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1359 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1360 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1362 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1364 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1365 the dominance info; free it if we can't.
1366 (pass_call_cdce::execute): Don't free the dominance info here.
1368 2015-11-06 Jeff Law <law@redhat.com>
1370 * tree-ssa-threadedge.c (dummy_simplify): Remove.
1371 (thread_around_empty_blocks): Remove backedge_seen_p argument.
1372 If we thread to a backedge, then return false. Update recursive
1373 call to eliminate backedge_seen_p argument.
1374 (thread_through_normal_block): Remove backedge_seen_p argument.
1375 Remove backedge_seen_p argument from calls to
1376 thread_around_empty_blocks. Remove checks on backedge_seen_p.
1377 If we thread to a backedge, then return 0.
1378 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
1379 pass it to thread_through_normal_block or thread_through_empty_blocks.
1380 For joiner handling, if we see a backedge, do not try normal
1383 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1385 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1386 * graphite-poly.c (new_scop): Initialize original_schedule.
1387 (free_scop): Free original_schedule.
1388 * graphite-poly.h (struct scop): Add field original_schedule.
1389 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1390 (build_poly_scop): Call build_scop_original_schedule.
1392 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1394 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1395 (build_pbb_minimal_scattering_polyhedrons): New.
1396 (build_scop_scattering): Remove.
1397 (build_scop_minimal_scattering): New.
1398 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1399 (build_poly_scop): Call build_scop_minimal_scattering.
1401 2015-11-06 Jeff Law <law@redhat.com>
1403 * cfg-flags.def (IGNORE): New edge flag.
1404 * tree-vrp.c (identify_jump_threads): Mark and clear edges
1405 scheduled for removal with EDGE_IGNORE around call into
1406 jump threader. Do no thread across edges with EDGE_IGNORE,
1407 but do allow threading across those with EDGE_DFS_BACK.
1409 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
1411 * doc/md.texi (multi-alternative constraints): Don't document
1412 alternatives inherently tied to reload for the user documentation.
1414 2015-11-06 Michael Collison <michael.collison@linaro.org
1415 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1418 2015-08-01 Michael Collison <michael.collison@linaro.org
1419 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1421 * config/arm/arm.md (*arm_smin_cmp): New pattern.
1422 (*arm_umin_cmp): Likewise.
1424 2015-11-06 Jakub Jelinek <jakub@redhat.com>
1426 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1428 * omp-low.c (check_omp_nesting_restrictions): Update for the
1429 various new OpenMP 4.5 nesting restrictions, clarified
1430 nesting glossary, closely nested region relationship clarified
1431 to mean explicit or implicit parallel regions (target/teams),
1432 use %</%> or %qs where appropriate.
1434 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1435 Sebastian Pop <s.pop@samsung.com>
1437 * graphite-scop-detection.c (loop_is_valid_scop): Call
1438 optimize_loop_nest_for_speed_p.
1440 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1441 Sebastian Pop <s.pop@samsung.com>
1443 * graphite-optimize-isl.c (optimize_isl): Call
1444 isl_options_set_schedule_maximize_band_depth.
1446 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1447 Sebastian Pop <s.pop@samsung.com>
1449 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1450 and exit edges should not be a part of irreducible loop.
1451 (scop_detection::can_represent_loop_1): Loops should not be
1453 (scop_detection::harmful_stmt_in_region): All the basic block
1454 should belong to reducible loops.
1456 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
1458 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1459 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1460 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1461 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1462 (aarch64_tbx4v8qi): Rename to...
1463 aarch64_tbx4<mode>): ... this.
1464 (aarch64_qtbl3<mode>): New pattern.
1465 (aarch64_qtbx3<mode>): New pattern.
1466 (aarch64_qtbl4<mode>): New pattern.
1467 (aarch64_qtbx4<mode>): New pattern.
1468 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1469 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1470 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1471 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1472 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1473 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1474 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1475 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1478 2015-11-06 Mike Stump <mikestump@comcast.net>
1481 * dwarf2out.c (get_full_len): Return a value based upon the actual
1482 precision needed for the value.
1483 (add_const_value_attribute): Use a maximal wide-int for
1484 CONST_WIDE_INTs, not VOIDmode.
1485 (output_die): Don't ever output NULL with printf.
1487 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1488 BLKmode nor VOIDmode values.
1490 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1492 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1494 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1495 * diagnostic-core.h (warning_at_rich_loc): New declaration.
1496 (error_at_rich_loc): New declaration.
1497 (permerror_at_rich_loc): New declaration.
1498 (inform_at_rich_loc): New declaration.
1499 * diagnostic-show-locus.c (adjust_line): Delete.
1500 (struct point_state): New struct.
1501 (class colorizer): New class.
1502 (class layout_point): New class.
1503 (class layout_range): New class.
1504 (struct line_bounds): New.
1505 (class layout): New class.
1506 (colorizer::colorizer): New ctor.
1507 (colorizer::~colorizer): New dtor.
1508 (layout::layout): New ctor.
1509 (layout::print_source_line): New method.
1510 (layout::print_annotation_line): New method.
1511 (layout::get_state_at_point): New method.
1512 (layout::get_x_bound_for_row): New method.
1513 (diagnostic_show_locus): Reimplement in terms of class layout.
1514 (diagnostic_print_caret_line): Delete.
1515 * diagnostic.c (diagnostic_initialize): Replace
1516 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1517 (diagnostic_set_info_translated): Convert param from location_t
1518 to rich_location *. Eliminate calls to set_location on the
1519 message in favor of storing the rich_location ptr there.
1520 (diagnostic_set_info): Convert param from location_t to
1522 (diagnostic_build_prefix): Break out array into...
1523 (diagnostic_kind_color): New variable.
1524 (diagnostic_get_color_for_kind): New function.
1525 (diagnostic_report_diagnostic): Colorize the option_text
1526 using the color for the severity.
1527 (diagnostic_append_note): Update for change in signature of
1528 diagnostic_set_info.
1529 (diagnostic_append_note_at_rich_loc): New function.
1530 (emit_diagnostic): Update for change in signature of
1531 diagnostic_set_info.
1533 (inform_at_rich_loc): New function.
1534 (inform_n): Update for change in signature of diagnostic_set_info.
1535 (warning): Likewise.
1536 (warning_at): Likewise.
1537 (warning_at_rich_loc): New function.
1538 (warning_n): Update for change in signature of diagnostic_set_info.
1539 (pedwarn): Likewise.
1540 (permerror): Likewise.
1541 (permerror_at_rich_loc): New function.
1542 (error): Update for change in signature of diagnostic_set_info.
1543 (error_n): Likewise.
1544 (error_at): Likewise.
1545 (error_at_rich_loc): New function.
1546 (sorry): Update for change in signature of diagnostic_set_info.
1547 (fatal_error): Likewise.
1548 (internal_error): Likewise.
1549 (internal_error_no_backtrace): Likewise.
1550 (source_range::debug): New function.
1551 * diagnostic.h (struct diagnostic_info): Eliminate field
1552 "override_column". Add field "richloc".
1553 (struct diagnostic_context): Add field "colorize_source_p".
1554 (diagnostic_override_column): Delete.
1555 (diagnostic_set_info): Convert param from location_t to
1557 (diagnostic_set_info_translated): Likewise.
1558 (diagnostic_append_note_at_rich_loc): New function.
1559 (diagnostic_num_locations): New function.
1560 (diagnostic_expand_location): Get the location from the
1562 (diagnostic_print_caret_line): Delete.
1563 (diagnostic_get_color_for_kind): New declaration.
1564 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1565 (error_cb): Update for change in signature of "error" callback.
1566 (fatal_at): Likewise.
1567 (warning_at): Likewise.
1568 * input.c (linemap_client_expand_location_to_spelling_point): New.
1569 * pretty-print.c (text_info::set_range): New method.
1570 (text_info::get_location): New method.
1571 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1572 (struct text_info): Eliminate "locations" array in favor of
1573 "m_richloc", a rich_location *.
1574 (textinfo::set_location): Add a "caret_p" param, and reimplement
1575 in terms of a call to set_range.
1576 (textinfo::get_location): Eliminate inline implementation in favor of
1577 an out-of-line reimplementation.
1578 (textinfo::set_range): New method.
1579 * rtl-error.c (diagnostic_for_asm): Update for change in signature
1580 of diagnostic_set_info.
1581 * tree-diagnostic.c (default_tree_printer): Update for new
1582 "caret_p" param for textinfo::set_location.
1583 * tree-pretty-print.c (percent_K_format): Likewise.
1585 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1588 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1589 * config/aarch64/aarch64.c
1590 (aarch64_can_use_per_function_literal_pools_p): New.
1591 (aarch64_use_blocks_for_constant_p): Adjust declaration
1592 and use aarch64_can_use_function_literal_pools_p.
1593 (aarch64_select_rtx_section): Update.
1595 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1597 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1598 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1599 (arm_output_multireg_pop): Likewise.
1600 (output_move_double): Likewise.
1601 (output_move_quad): Likewise.
1602 (output_return_instruction): Likewise.
1603 (arm_print_operand): Remove support for %( and %. print modifiers.
1604 (arm_output_shift): Make unified asm.
1605 (arm_declare_function_name): Likewise.
1606 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1607 (ASM_APP_OFF): Adjust.
1608 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1609 (ASM_OUTPUT_REG_POP): Likewise.
1610 * config/arm/arm.md: Adjust uses of %., %(, %)
1611 * config/arm/sync.md: Likewise.
1612 * config/arm/thumb2.md: Likewise.
1613 * config/arm/ldmstm.md: Regenerate.
1614 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1615 * doc/invoke.texi (masm-unified-syntax): Update documentation.
1617 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1619 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1621 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1623 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1624 add OEP_MATCH_SIDE_EFFECTS.
1625 * fold-const.c (operand_equal_p): Update documentation; handle
1626 OEP_MATCH_SIDE_EFFECTS.
1627 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1628 OEP_MATCH_SIDE_EFFECTS.
1630 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
1631 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1633 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1634 * config/aarch64/aarch64-protos.h: Declare.
1635 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1637 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1638 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1639 code when applicable.
1640 * config/aarch64/aarch64.md: Added enum entries.
1641 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1642 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1643 macros for assembly checks.
1644 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1645 frsqrts and frsqrte are not emitted.
1646 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1647 frsqrts and frsqrte are emitted.
1648 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1650 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1654 * ipa-polymorphic-call.c
1655 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1656 issue when offset is out of range.
1657 (contains_type_p): Fix out of range check, clear dynamic flag.
1659 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
1661 * config.gcc (e6500): Fix cpu_is_64bit typo.
1663 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
1665 * tree-sra.c (completely_scalarize): Properly handle negative array
1666 indices using offset_int.
1668 2015-11-06 Richard Biener <rguenther@suse.de>
1670 * alloc-pool.h (object_allocator::allocate): Default-initialize
1673 2015-11-06 Richard Biener <rguenther@suse.de>
1675 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1676 * lra.c (init_reg_info): Truncate copy_vec instead of
1677 re-allocating a new one and leaking the old.
1678 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1680 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1681 * postreload-gcse.c (free_mem): Free modify_mem_list and
1682 canon_modify_mem_list.
1684 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
1686 PR tree-optimization/68145
1687 * tree-vect-stmts.c (vectorizable_operation): Fix
1688 determination for booleans.
1690 2015-11-06 Tom de Vries <tom@codesourcery.com>
1692 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1693 cond_jump, instead of split after last nondebug insn before cond_jump.
1694 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1697 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1700 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1701 subregs from accumulator and make sure it's a register.
1703 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
1705 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1707 (reduc_uplus_<mode>): Remove.
1708 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1709 loongson_extract_lo_<mode>.
1710 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1711 reduc_smax_<mode>, reduc_smax_<mode>, use vec
1712 loongson_extract_lo_<mode>.
1713 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1715 2015-11-06 Richard Biener <rguenther@suse.de>
1717 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1719 (vect_stmt_in_region_p): Declare.
1720 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1721 (destroy_bb_vec_info): Likewise.
1722 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1723 (vect_get_and_check_slp_defs): Likewise.
1724 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1725 (vect_slp_bb): Likewise.
1726 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1727 in terms of vect_stmt_in_region_p.
1728 (vect_pattern_recog): Iterate over the BB region.
1729 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1730 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1731 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1732 * config/i386/i386.c: Include gimple-iterator.h.
1733 * config/aarch64/aarch64.c: Likewise.
1735 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
1737 PR rtl-optimization/67753
1738 PR rtl-optimization/64164
1739 * function.c (assign_parm_setup_block): Avoid allocating a
1740 stack slot if we don't have an ABI-reserved one. Emit the
1741 copy to target_reg in the conversion seq if the copy from
1742 entry_parm is in it too. Don't use the conversion seq to copy
1743 a PARALLEL to a REG or a CONCAT.
1745 2015-11-06 Richard Biener <rguenther@suse.de>
1747 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1750 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1751 Thomas Schwinge <thomas@codesourcery.com>
1752 James Norris <jnorris@codesourcery.com>
1755 * gimplify.c (gimplify_scan_omp_clauses): Add support for
1756 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
1757 (gimplify_adjust_omp_clauses): Likewise.
1758 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1759 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1760 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1761 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1762 (omp_clause_code_name): Likewise.
1763 (walk_tree_1): Handle OMP_CLAUSE_TILE.
1764 * tree.h (OMP_TILE_LIST): New macro.
1766 2015-11-05 Martin Sebor <msebor@redhat.com>
1769 * doc/invoke.texi (-Wplacement-new): Document new option.
1771 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
1773 PR tree-optimization/65963
1774 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1775 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1777 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
1779 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1780 (noce_convert_multiple_sets): Likewise.
1781 (noce_process_if_block): Call them.
1783 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1785 * gimple-fold.c: Include omp-low.h.
1786 (fold_internal_goacc_dim): New.
1787 (gimple_fold_call): Call it.
1789 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1790 Ilya Verbin <ilya.verbin@intel.com>
1793 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1794 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1795 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1796 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1797 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1798 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1799 (struct cgraph_simd_clone_arg): Adjust comment.
1800 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1801 to GOMP_target_ext. Add num_teams and thread_limit arguments.
1802 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1803 to GOMP_target_data_ext.
1804 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1805 to GOMP_target_update_ext.
1806 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1807 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1808 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1809 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1810 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1811 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1812 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1813 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1814 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1815 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1816 * tree-core.h (enum omp_clause_schedule_kind): Add
1817 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1818 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1819 OMP_CLAUSE_SCHEDULE_LAST value.
1820 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1821 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1822 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1823 OMP_FOR_CHECK. Remove comment.
1824 * tree-pretty-print.c (dump_omp_clause): Handle
1825 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1826 Simplify. Print schedule clause modifiers.
1827 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1828 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1830 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1831 (omp_default_clause): Tweak for
1832 private/firstprivate/is_device_ptr variables on target
1833 construct and use_device_ptr on target data.
1834 (omp_check_private): Likewise.
1835 (omp_notice_variable): For references check whether what it refers
1836 to has mappable type, rather than the reference itself.
1837 (omp_is_private): Diagnose linear iteration variables on non-simd
1839 (omp_no_lastprivate): Return true only for Fortran.
1840 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1841 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1842 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1843 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1844 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
1845 lastprivate and linear when combined with distribute. Gimplify
1846 variable low-bound for array reduction. Look through
1847 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1849 (gimplify_adjust_omp_clauses_1): For implicit references to
1850 variables with reference type and when not ref to scalar or
1851 ref to pointer, map what they refer to using tofrom and
1852 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1853 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1854 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1855 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
1856 Diagnose the same var on both firstprivate and lastprivate on
1857 distribute construct.
1858 (gimplify_omp_for): Fix up handling of predetermined
1859 lastprivate or linear iter vars when combined with distribute.
1860 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1862 (gimplify_omp_workshare): Call optimize_target_teams.
1863 * omp-low.c (struct omp_region): Add sched_modifiers field.
1864 (struct omp_for_data): Likewise.
1865 (omp_any_child_fn_dumped): New variable.
1866 (extract_omp_for_data): Fill in sched_modifiers, and mask out
1867 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1869 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1870 bits of OMP_CLAUSE_SCHED_KIND.
1871 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1872 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
1873 for array section reductions.
1874 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1875 for distribute parallel for, if there are lastprivate clauses on the
1877 (lower_rec_input_clauses): Handle non-zero low-bound on array
1879 (lower_reduction_clauses): Likewise.
1880 (lower_send_clauses): Look through POINTER_PLUS_EXPR
1881 for array section reductions.
1882 (expand_parallel_call): Use nonmonotonic entrypoints for
1883 nonmonotonic: dynamic/guided.
1884 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1885 child_fn if current_function_decl has assembler name set, but child_fn
1886 does not. Dump the header and IL of the child function when not in SSA
1888 (expand_omp_target): Likewise. Pass num_teams and thread_limit
1889 arguments to BUILT_IN_GOMP_TARGET.
1890 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1891 Initialize the extra _looptemp_ clause to fd->loop.n2.
1892 (expand_omp_for): Use nonmonotonic entrypoints for
1893 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
1894 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
1895 again if we have dumped any child functions.
1896 (lower_omp_for_lastprivate): Determine the right count variable
1897 for distribute simd, or distribute parallel for{, simd}.
1898 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1899 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
1901 (simd_clone_clauses_extract): Handle variable step
1902 for references and arguments passed by reference.
1903 (simd_clone_mangle): Mangle ref/uval/val variable steps.
1904 (simd_clone_adjust_argument_types): Handle
1905 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1906 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1907 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1908 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1909 (simd_clone_linear_addend): New function.
1910 (simd_clone_adjust): Handle variable step like similarly
1911 to constant step, use simd_clone_linear_addend to determine
1912 the actual step at runtime.
1914 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1916 * target.def (goacc.dim_limit): New hook.
1917 * targhooks.h (default_goacc_dim_limit): Declare.
1918 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1919 * doc/tm.texi: Rebuilt.
1920 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1921 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1922 (default_goacc_dim_limit): New.
1923 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1924 (nvptx_goacc_dim_limit) New.
1925 (TARGET_GOACC_DIM_LIMIT): Override.
1926 * tree-vrp.c: Include omp-low.h, target.h.
1927 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1930 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1932 * tree-vect-generic.c (do_compare): Use -1 for true
1933 result instead of 1.
1935 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1937 * config/aarch64/aarch64.c
1938 (aarch64_can_use_per_function_literal_pools_p): New.
1939 (aarch64_use_blocks_for_constant_p): Adjust declaration
1940 and use aarch64_can_use_function_literal_pools_p.
1941 (aarch64_select_rtx_section): Update.
1943 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1945 * targhooks.c (default_get_mask_mode): Use BLKmode in
1946 case target doesn't support required vector mode.
1947 * stor-layout.c (layout_type); Check for BLKmode.
1949 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1950 Sebastian Pop <s.pop@samsung.com>
1952 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1953 Remove use of parameter_rename_map.
1955 (copy_internal_parameters): Remove.
1956 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1957 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1958 (free_sese_info): Do not free parameter_rename_map.
1959 (set_rename): Do not use parameter_rename_map.
1960 (rename_uses): Update call to set_rename.
1961 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1962 * sese.h (parameter_rename_map_t): Remove.
1963 (struct sese_info_t): Remove field parameter_rename_map.
1965 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1966 Sebastian Pop <s.pop@samsung.com>
1968 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1969 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1970 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1971 anonymous namespace.
1972 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1973 (isl_id_for_pbb): Use a buffer of size 10.
1974 (isl_id_for_ssa_name): Same.
1975 * sese.c (set_rename): Add more dumps.
1977 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1979 * omp-low.c (struct omp_context): Remove reduction_map field.
1980 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1981 (new_omp_context, delete_omp_context, scan_omp_target): Remove
1982 reduction_map handling.
1983 (lower_omp_target): Remove obsolete openacc reduction handling.
1985 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1987 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1989 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1990 Cesar Philippidis <cesar@codesourcery.com>
1992 * config/nvptx/nvptx.c: Include gimple headers.
1993 (worker_red_size, worker_red_align, worker_red_name,
1994 worker_red_sym): New.
1995 (nvptx_option_override): Initialize worker reduction buffer.
1996 (nvptx_file_end): Write out worker reduction buffer var.
1997 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1998 nvptx_expand_cmp_swap): New builtin expanders.
1999 (enum nvptx_builtins): New.
2000 (nvptx_builtin_decls): New.
2001 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2002 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2003 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2004 nvptx_lockless_update): New helpers.
2005 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2006 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2007 (nvptx_goacc_reduction): New.
2008 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2009 TARGET_BUILTIN_DECL): Override.
2010 (TARGET_GOACC_REDUCTION): Override.
2012 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2013 Cesar Philippidis <cesar@codesourcery.com>
2015 * internal-fn.def (GOACC_REDUCTION): New.
2016 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2017 * internal-fn.c (expand_GOACC_REDUCTION): New.
2018 * target.def (goacc.reduction): New OpenACC hook.
2019 * targhooks.h (default_goacc_reduction): Declare.
2020 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2021 * doc/tm.texi: Rebuilt.
2022 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2023 scan_sharing_clauses): Remove oacc reduction handling here.
2024 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2025 (oacc_lower_reduction_var_helper): Delete.
2026 (lower_oacc_reductions): New.
2027 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2028 (lower_oacc_head_tail): Call lower_oacc_reductions.
2029 (oacc_gimple_assign, oacc_init_reduction_array,
2030 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2031 oacc_process_reduction_data): Delete.
2032 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2033 dummy OpenACC gang reduction for reductions at outer level.
2034 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2035 (default_goacc_reduction): New.
2036 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2038 2015-11-04 Martin Liska <mliska@suse.cz>
2040 * cgraphunit.c (cgraph_node::expand_thunk): Call
2041 allocate_struct_function before init_function_start.
2042 (cgraph_node::expand): Use push_cfun and pop_cfun.
2043 * config/i386/i386.c (ix86_code_end): Call
2044 allocate_struct_function before init_function_start.
2045 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2046 * function.c (init_function_start): Move preamble to all
2048 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2049 (execute_one_pass): Handle newly added TODO_discard_function.
2050 (execute_pass_list_1): Terminate if cfun equals to NULL.
2051 (execute_pass_list): Do not push and pop cfun, expect that
2053 * tree-pass.h (TODO_discard_function): Define.
2055 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2057 * cfganal.c (inverted_post_order_compute): Remove conditional
2058 compilation, use flag_checking.
2059 * config.in: Regenerate.
2060 * configure: Regenerate.
2061 * configure.ac: Remove ENABLE_CHECKING.
2062 * genconditions.c: Do not #undef ENABLE_CHECKING.
2063 * sese.h (bb_in_region): Comment out broken check.
2064 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2065 conditional compilation, use flag_checking.
2067 2015-11-04 Tom de Vries <tom@codesourcery.com>
2069 PR tree-optimization/67742
2070 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2072 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2073 (create_variable_info_for_1): Add and handle handle_param parameter.
2074 Add restrict handling.
2075 (create_variable_info_for): Call create_variable_info_for_1 with extra
2077 (make_param_constraints): Drop restrict_name parameter. Ignore
2078 vi->only_restrict_pointers.
2079 (intra_create_variable_infos): Call create_variable_info_for_1 with
2080 extra arg. Remove restrict handling. Call make_param_constraints with
2083 2015-11-04 Tom de Vries <tom@codesourcery.com>
2085 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2088 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2090 * config/arm/coff.h: Remove.
2092 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2094 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2095 check for aggregate types and beef up comment for mode check.
2097 2015-11-03 Richard Biener <rguenther@suse.de>
2099 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2100 data references here.
2101 * tree-vect-loop.c: Include cgraph.h.
2102 (vect_analyze_loop_2): Collect data references here.
2103 * tree-vect-slp.c (find_bb_location): Inline ...
2104 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2105 Factor in vect_slp_transform_bb.
2106 (vect_slp_transform_bb): Removed.
2107 (vect_slp_analyze_bb_1): Collect data references here.
2108 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2110 * tree-vectorizer.h (vect_slp_bb): Declare.
2111 (vect_slp_analyze_bb): Remove.
2112 (vect_slp_transform_bb): Remove.
2113 (find_bb_location): Remove.
2114 (vect_analyze_data_refs): Remove stmt count reference parameter.
2116 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2118 * multiple_target.c (create_dispatcher_calls): Add target check
2120 (create_target_clone): Change assembler name for versioned declarations.
2122 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2123 Chung-Lin Tang <cltang@codesourcery.com>
2125 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2126 * omp-low.c (check_omp_nesting_restrictions): Allow
2127 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2130 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2132 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2133 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2134 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2136 (vmulxq_f32): Likewise.
2138 (vmulxq_f64): Rewrite to call fmulx builtin.
2139 (vmulxs_f32): Likewise.
2140 (vmulxd_f64): Likewise.
2141 (vmulx_lane_f32): Remove.
2142 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2144 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2146 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2147 aarch64_reg_or_fp_zero for second operand.
2149 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2151 * gimple-expr.c: Include hash-set.h and rtl.h.
2152 (mark_addressable_queue): New var.
2153 (mark_addressable): Factor actual marking into...
2154 (mark_addressable_1): ... this. Queue it up during expand.
2155 (mark_addressable_2): New.
2156 (flush_mark_addressable_queue): New.
2157 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2158 * cfgexpand.c: Include gimple-expr.h.
2159 (pass_expand::execute): Flush mark_addressable queue.
2161 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2163 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2164 bb_no_side_effects_p tests...
2165 (tree_ssa_ifcombine_bb): ... here.
2167 PR tree-optimization/68083
2168 * tree-ssa-ifcombine.c: Include tree-ssa.h.
2169 (bb_no_side_effects_p): Test for undefined uses too.
2170 * tree-ssa.c (gimple_uses_undefined_value_p): New.
2171 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2173 2015-11-02 Jeff Law <law@redhat.com>
2175 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2176 cases where the loop latch edge is in the middle of an FSM path.
2178 2015-11-03 Tom de Vries <tom@codesourcery.com>
2180 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2181 (make_param_constraints): ... this. Add and handle restrict_name
2182 parameter. Handle is_full_var case.
2183 (intra_create_variable_infos): Use make_param_constraints.
2185 2015-11-03 Tom de Vries <tom@codesourcery.com>
2187 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2188 make_copy_constraint call with make_constraint_from call.
2190 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
2192 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2195 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
2197 * builtins.h (fold_fma): Move to fold-const-call.h.
2198 * builtins.c: Include fold-const-call.h.
2199 (mathfn_built_in_2): New function, split out from...
2200 (mathfn_built_in_1): ...here.
2201 (do_real_to_int_conversion, fold_const_builtin_pow)
2202 (fold_const_builtin_logb, fold_const_builtin_significand)
2203 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2204 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2205 (fold_builtin_sincos): Use fold_const_call to handle constants.
2206 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2207 checks for ERROR_MARK. Use fold_const_call to handle constant
2208 folds for math functions.
2209 (fold_fma): Move to fold-const-call.c.
2210 * fold-const.c: Include fold-const-call.h.
2211 * Makefile.in (OBJS): Add fold-const-call.o.
2212 (PLUGIN_HEADERS): Add fold-const-call.h.
2213 * realmpfr.h (real_from_mpfr): Allow the format to be specified
2215 * realmpfr.c (real_from_mpfr): Likewise.
2216 * fold-const-call.h, fold-const-call.c: New files.
2218 2015-11-02 Julian Brown <julian@codesourcery.com>
2220 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2221 brackets and semicolon.
2223 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
2226 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2228 PR tree-optimization/65963
2229 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2230 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2232 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
2235 * fold-const.c: Include "md5.h".
2237 2015-11-01 Jeff Law <law@redhat.com>
2239 * vmsdbgout.c: Revert unused header file reduction patch.
2241 * config/mcore/mcore.c: Include regs.h.
2243 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2245 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2247 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2249 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2250 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2251 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2253 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2255 * ggc-common.c: Restore needed header for checking=release.
2257 2015-10-31 Tom de Vries <tom@codesourcery.com>
2259 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2261 2015-10-31 Tom de Vries <tom@codesourcery.com>
2263 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2264 existing varinfo for arguments.
2266 2015-10-31 Tom de Vries <tom@codesourcery.com>
2268 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2269 create_function_info_for. Dump constraints generated during
2270 create_function_info_for. Move intra_create_variable_infos call and
2271 function-return-values-escape bit to ...
2272 (create_function_info_for): ... here, and merge
2273 intra_create_variable_infos call with argument loop. Add and handle
2274 nonlocal_p parameter.
2276 2015-10-31 Tom de Vries <tom@codesourcery.com>
2278 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2279 updating is alap, and seperated from preceding code. Make sure
2280 insert_vi_for_tree is seperated from surrounding code.
2282 2015-10-31 Tom de Vries <tom@codesourcery.com>
2284 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2286 2015-10-30 Jeff Law <law@redhat.com>
2287 Nathan Sidwell <nathan@acm.org>
2289 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2291 (MOVE_MAX): Set to 8.
2293 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
2295 * cgraph.c: Include context.h for offloading.
2296 * varpool.c: Include context.h and omp-low.h.
2298 2015-10-30 Anatoly Sokolov <aesok@post.ru>
2300 * rtl.h (contains_symbol_ref_p): Declare.
2301 (SYMBOL_REF_P): Define.
2302 * rtlanal.c (contains_symbol_ref_p: New function.
2303 * lra-constraints.c (contains_symbol_ref_p): Remove.
2304 * var-tracking.c (contains_symbol_ref): Remove.
2305 (track_expr_p): Use contains_symbol_ref_p instead of
2306 contains_symbol_ref.
2308 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2310 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2311 * fold-const.c (get_array_ctor_element_at_index): New.
2312 (fold): Remove binary-search through CONSTRUCTOR, call previous.
2314 * fold-const.h (get_array_ctor_element_at_index): New.
2316 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2318 * Makefile.in (OBJS): Add multiple_target.o.
2319 * attrib.c (make_attribute): Moved from config/i386/i386.c
2320 * config/i386/i386.c (make_attribute): Deleted.
2321 * multiple_target.c (create_dispatcher_calls): New.
2322 (get_attr_len): Ditto.
2323 (get_attr_str): Ditto.
2324 (separate_attrs): Ditto.
2325 (is_valid_asm_symbol): Ditto.
2326 (create_new_asm_name): Ditto.
2327 (create_target_clone): Ditto.
2328 (expand_target_clones): Ditto.
2329 (ipa_target_clone): Ditto.
2330 (ipa_dispatcher_calls): Ditto.
2331 * passes.def (pass_target_clone): Two new ipa passes.
2332 * tree-pass.h (make_pass_target_clone): Ditto.
2333 * doc/extend.texi (target_clones): New attribute description.
2335 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
2337 PR rtl-optimization/68106
2338 * lra-remat.c (input_regno_present_p): Process hard regs
2339 explicitly present in machine description insns.
2340 (call_used_input_regno_present_p): Ditto.
2341 (calculate_gen_cands): Ditto.
2344 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
2346 * config/arm/neon-testgen.ml: Fix comment typo.
2348 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2350 * rtlanal.c (reg_set_p): Expand function comment.
2352 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
2354 * alias.c: Remove unused headers.
2356 * attribs.c: Likewise.
2357 * auto-inc-dec.c: Likewise.
2358 * auto-profile.c: Likewise.
2359 * bb-reorder.c: Likewise.
2360 * bitmap.c: Likewise.
2361 * bt-load.c: Likewise.
2362 * builtins.c: Likewise.
2363 * caller-save.c: Likewise.
2364 * calls.c: Likewise.
2367 * cfganal.c: Likewise.
2368 * cfgbuild.c: Likewise.
2369 * cfgcleanup.c: Likewise.
2370 * cfgexpand.c: Likewise.
2371 * cfghooks.c: Likewise.
2372 * cfgloop.c: Likewise.
2373 * cfgloopanal.c: Likewise.
2374 * cfgloopmanip.c: Likewise.
2375 * cfgrtl.c: Likewise.
2376 * cgraph.c: Likewise.
2377 * cgraphbuild.c: Likewise.
2378 * cgraphclones.c: Likewise.
2379 * cgraphunit.c: Likewise.
2380 * cilk-common.c: Likewise.
2381 * combine-stack-adj.c: Likewise.
2382 * combine.c: Likewise.
2383 * compare-elim.c: Likewise.
2384 * convert.c: Likewise.
2385 * coverage.c: Likewise.
2386 * cppbuiltin.c: Likewise.
2387 * cprop.c: Likewise.
2389 * cselib.c: Likewise.
2390 * data-streamer-in.c: Likewise.
2391 * data-streamer-out.c: Likewise.
2392 * data-streamer.c: Likewise.
2393 * dbxout.c: Likewise.
2396 * debug.c: Likewise.
2397 * df-core.c: Likewise.
2398 * df-problems.c: Likewise.
2399 * df-scan.c: Likewise.
2401 * dojump.c: Likewise.
2402 * dominance.c: Likewise.
2403 * domwalk.c: Likewise.
2404 * double-int.c: Likewise.
2406 * dumpfile.c: Likewise.
2407 * dwarf2asm.c: Likewise.
2408 * dwarf2cfi.c: Likewise.
2409 * dwarf2out.c: Likewise.
2410 * emit-rtl.c: Likewise.
2411 * except.c: Likewise.
2412 * explow.c: Likewise.
2413 * expmed.c: Likewise.
2415 * final.c: Likewise.
2416 * fixed-value.c: Likewise.
2417 * fold-const.c: Likewise.
2418 * function.c: Likewise.
2419 * fwprop.c: Likewise.
2421 * generic-match-head.c: Likewise.
2422 * ggc-common.c: Likewise.
2423 * gimple-builder.c: Likewise.
2424 * gimple-expr.c: Likewise.
2425 * gimple-fold.c: Likewise.
2426 * gimple-iterator.c: Likewise.
2427 * gimple-low.c: Likewise.
2428 * gimple-match-head.c: Likewise.
2429 * gimple-pretty-print.c: Likewise.
2430 * gimple-ssa-isolate-paths.c: Likewise.
2431 * gimple-ssa-strength-reduction.c: Likewise.
2432 * gimple-streamer-in.c: Likewise.
2433 * gimple-streamer-out.c: Likewise.
2434 * gimple-walk.c: Likewise.
2435 * gimple.c: Likewise.
2436 * gimplify-me.c: Likewise.
2437 * gimplify.c: Likewise.
2438 * godump.c: Likewise.
2439 * graph.c: Likewise.
2440 * graphds.c: Likewise.
2441 * haifa-sched.c: Likewise.
2442 * hw-doloop.c: Likewise.
2443 * ifcvt.c: Likewise.
2444 * init-regs.c: Likewise.
2445 * internal-fn.c: Likewise.
2446 * ipa-chkp.c: Likewise.
2447 * ipa-comdats.c: Likewise.
2448 * ipa-cp.c: Likewise.
2449 * ipa-devirt.c: Likewise.
2450 * ipa-icf-gimple.c: Likewise.
2451 * ipa-icf.c: Likewise.
2452 * ipa-inline-analysis.c: Likewise.
2453 * ipa-inline-transform.c: Likewise.
2454 * ipa-inline.c: Likewise.
2455 * ipa-polymorphic-call.c: Likewise.
2456 * ipa-profile.c: Likewise.
2457 * ipa-prop.c: Likewise.
2458 * ipa-pure-const.c: Likewise.
2459 * ipa-ref.c: Likewise.
2460 * ipa-reference.c: Likewise.
2461 * ipa-split.c: Likewise.
2462 * ipa-utils.c: Likewise.
2463 * ipa-visibility.c: Likewise.
2465 * ira-build.c: Likewise.
2466 * ira-color.c: Likewise.
2467 * ira-conflicts.c: Likewise.
2468 * ira-costs.c: Likewise.
2469 * ira-emit.c: Likewise.
2470 * ira-lives.c: Likewise.
2473 * langhooks.c: Likewise.
2475 * lists.c: Likewise.
2476 * loop-doloop.c: Likewise.
2477 * loop-init.c: Likewise.
2478 * loop-invariant.c: Likewise.
2479 * loop-iv.c: Likewise.
2480 * loop-unroll.c: Likewise.
2481 * lower-subreg.c: Likewise.
2482 * lra-assigns.c: Likewise.
2483 * lra-coalesce.c: Likewise.
2484 * lra-constraints.c: Likewise.
2485 * lra-eliminations.c: Likewise.
2486 * lra-lives.c: Likewise.
2487 * lra-remat.c: Likewise.
2488 * lra-spills.c: Likewise.
2490 * lto-cgraph.c: Likewise.
2491 * lto-compress.c: Likewise.
2492 * lto-opts.c: Likewise.
2493 * lto-section-in.c: Likewise.
2494 * lto-section-out.c: Likewise.
2495 * lto-streamer-in.c: Likewise.
2496 * lto-streamer-out.c: Likewise.
2497 * lto-streamer.c: Likewise.
2499 * mode-switching.c: Likewise.
2500 * modulo-sched.c: Likewise.
2501 * optabs.c: Likewise.
2502 * opts-global.c: Likewise.
2503 * passes.c: Likewise.
2504 * plugin.c: Likewise.
2505 * postreload-gcse.c: Likewise.
2506 * postreload.c: Likewise.
2507 * predict.c: Likewise.
2508 * print-tree.c: Likewise.
2509 * profile.c: Likewise.
2511 * realmpfr.c: Likewise.
2512 * recog.c: Likewise.
2514 * reg-stack.c: Likewise.
2515 * regcprop.c: Likewise.
2516 * reginfo.c: Likewise.
2517 * regrename.c: Likewise.
2518 * regstat.c: Likewise.
2519 * reload.c: Likewise.
2520 * reload1.c: Likewise.
2521 * reorg.c: Likewise.
2522 * resource.c: Likewise.
2523 * rtl-chkp.c: Likewise.
2524 * rtl-error.c: Likewise.
2525 * rtlanal.c: Likewise.
2526 * rtlhooks.c: Likewise.
2527 * sanopt.c: Likewise.
2528 * sched-deps.c: Likewise.
2529 * sched-ebb.c: Likewise.
2530 * sched-rgn.c: Likewise.
2531 * sdbout.c: Likewise.
2532 * sel-sched-dump.c: Likewise.
2533 * sel-sched-ir.c: Likewise.
2534 * sel-sched.c: Likewise.
2536 * shrink-wrap.c: Likewise.
2537 * simplify-rtx.c: Likewise.
2538 * stack-ptr-mod.c: Likewise.
2539 * statistics.c: Likewise.
2541 * stor-layout.c: Likewise.
2542 * store-motion.c: Likewise.
2543 * stringpool.c: Likewise.
2544 * symtab.c: Likewise.
2545 * target-globals.c: Likewise.
2546 * targhooks.c: Likewise.
2547 * toplev.c: Likewise.
2548 * tracer.c: Likewise.
2549 * trans-mem.c: Likewise.
2550 * tree-affine.c: Likewise.
2551 * tree-call-cdce.c: Likewise.
2552 * tree-cfg.c: Likewise.
2553 * tree-cfgcleanup.c: Likewise.
2554 * tree-chkp-opt.c: Likewise.
2555 * tree-chkp.c: Likewise.
2556 * tree-chrec.c: Likewise.
2557 * tree-complex.c: Likewise.
2558 * tree-data-ref.c: Likewise.
2559 * tree-dfa.c: Likewise.
2560 * tree-diagnostic.c: Likewise.
2561 * tree-dump.c: Likewise.
2562 * tree-eh.c: Likewise.
2563 * tree-emutls.c: Likewise.
2564 * tree-if-conv.c: Likewise.
2565 * tree-inline.c: Likewise.
2566 * tree-into-ssa.c: Likewise.
2567 * tree-iterator.c: Likewise.
2568 * tree-loop-distribution.c: Likewise.
2569 * tree-nested.c: Likewise.
2570 * tree-nrv.c: Likewise.
2571 * tree-object-size.c: Likewise.
2572 * tree-outof-ssa.c: Likewise.
2573 * tree-parloops.c: Likewise.
2574 * tree-phinodes.c: Likewise.
2575 * tree-predcom.c: Likewise.
2576 * tree-pretty-print.c: Likewise.
2577 * tree-profile.c: Likewise.
2578 * tree-scalar-evolution.c: Likewise.
2579 * tree-sra.c: Likewise.
2580 * tree-ssa-address.c: Likewise.
2581 * tree-ssa-alias.c: Likewise.
2582 * tree-ssa-ccp.c: Likewise.
2583 * tree-ssa-coalesce.c: Likewise.
2584 * tree-ssa-copy.c: Likewise.
2585 * tree-ssa-dce.c: Likewise.
2586 * tree-ssa-dse.c: Likewise.
2587 * tree-ssa-forwprop.c: Likewise.
2588 * tree-ssa-ifcombine.c: Likewise.
2589 * tree-ssa-live.c: Likewise.
2590 * tree-ssa-loop-ch.c: Likewise.
2591 * tree-ssa-loop-im.c: Likewise.
2592 * tree-ssa-loop-ivcanon.c: Likewise.
2593 * tree-ssa-loop-ivopts.c: Likewise.
2594 * tree-ssa-loop-manip.c: Likewise.
2595 * tree-ssa-loop-niter.c: Likewise.
2596 * tree-ssa-loop-prefetch.c: Likewise.
2597 * tree-ssa-loop-unswitch.c: Likewise.
2598 * tree-ssa-loop.c: Likewise.
2599 * tree-ssa-math-opts.c: Likewise.
2600 * tree-ssa-operands.c: Likewise.
2601 * tree-ssa-phiopt.c: Likewise.
2602 * tree-ssa-phiprop.c: Likewise.
2603 * tree-ssa-pre.c: Likewise.
2604 * tree-ssa-propagate.c: Likewise.
2605 * tree-ssa-reassoc.c: Likewise.
2606 * tree-ssa-scopedtables.c: Likewise.
2607 * tree-ssa-sink.c: Likewise.
2608 * tree-ssa-strlen.c: Likewise.
2609 * tree-ssa-structalias.c: Likewise.
2610 * tree-ssa-tail-merge.c: Likewise.
2611 * tree-ssa-ter.c: Likewise.
2612 * tree-ssa-threadupdate.c: Likewise.
2613 * tree-ssa-uncprop.c: Likewise.
2614 * tree-ssa-uninit.c: Likewise.
2615 * tree-ssa.c: Likewise.
2616 * tree-ssanames.c: Likewise.
2617 * tree-stdarg.c: Likewise.
2618 * tree-streamer-in.c: Likewise.
2619 * tree-streamer-out.c: Likewise.
2620 * tree-streamer.c: Likewise.
2621 * tree-switch-conversion.c: Likewise.
2622 * tree-tailcall.c: Likewise.
2623 * tree-vect-data-refs.c: Likewise.
2624 * tree-vect-generic.c: Likewise.
2625 * tree-vect-loop-manip.c: Likewise.
2626 * tree-vect-loop.c: Likewise.
2627 * tree-vect-patterns.c: Likewise.
2628 * tree-vect-slp.c: Likewise.
2629 * tree-vect-stmts.c: Likewise.
2630 * tree-vectorizer.c: Likewise.
2631 * tree-vrp.c: Likewise.
2634 * ubsan.c: Likewise.
2635 * value-prof.c: Likewise.
2636 * var-tracking.c: Likewise.
2637 * varasm.c: Likewise.
2638 * varpool.c: Likewise.
2639 * vmsdbgout.c: Likewise.
2640 * vtable-verify.c: Likewise.
2642 * wide-int-print.cc: Likewise.
2643 * wide-int.cc: Likewise.
2644 * xcoffout.c: Likewise.
2646 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2648 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2649 between pass numbering and execution order.
2651 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2653 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2654 check for dependencies.
2656 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2658 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2661 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2663 * real.h (format_helper): New.
2664 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2665 (real_from_target, real_nan, real_2expN, real_value_truncate)
2666 (significand_size, real_from_string2, exact_real_inverse)
2667 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2668 (real_round, real_isinteger, real_from_integer): Replace
2669 machine_mode arguments with format_helper arguments.
2670 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2671 (real_from_integer, real_nan, real_2expN, real_convert)
2672 (real_value_truncate, exact_real_truncate, real_to_target)
2673 (real_from_target, significand_size, real_powi, real_trunc)
2674 (real_floor, real_ceil, real_round, real_isinteger): Replace
2675 machine_mode arguments with format_helper arguments.
2676 (real_to_target_fmt, real_from_target_fmt): Delete.
2677 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2678 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2679 argument with real_format.
2680 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2682 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2684 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2685 (fixed_to_decimal, fixed_convert_from_real)
2686 (real_convert_from_fixed): Fix mode arguments to real_2expN.
2688 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2690 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2691 SCALAR_FLOAT_MODE_P.
2693 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2695 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2696 (completely_scalarize): Comment zero-length arrays.
2697 (get_access_replacement): Correct comment re. precondition.
2699 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2701 * config/i386/i386.c (get_builtin_code_for_version): Set priority
2702 for PROCESSOR_ZNVER1.
2703 (enum processor_model): Add M_AMDFAM17H_znver1.
2704 (struct arch_names_table): Likewise.
2705 * doc/extend.texi: ADD znver1.
2707 2015-10-30 Richard Biener <rguenther@suse.de>
2709 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2710 fold () on single RHSs. Allow CONSTRUCTORS with trailing
2711 zeros to be folded to VECTOR_CSTs.
2712 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2713 * fold-const.c (fold): Use build_vector_from_ctor.
2715 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
2717 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2718 "mov %0.h[0], %1.h[0] to "neon_move".
2719 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2720 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2722 (*cmovsi_insn_uxtw): Likewise.
2724 2015-10-30 Tom de Vries <tom@codesourcery.com>
2726 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2727 unsigned, and initialize, and use initial value instead of hardcoded
2728 constant. Add generic constraints dumping section. Don't dump global
2729 initializers constraints dumping section if empty. Don't update
2730 variable from if unused.
2732 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2734 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2735 flag_checking and/or CHECKING_P to eliminate conditional compilation
2737 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2738 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2739 * config/i386/i386.c (ix86_print_operand_address): Likewise.
2740 (output_387_binary_op): Likewise.
2741 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2742 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2743 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2745 * config/rs6000/rs6000.h: Likewise.
2746 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2748 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
2750 * config/sh/sh.opt (mfdpic): Add missing period.
2752 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2754 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2755 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2756 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2757 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2758 mcore_base_register_rtx_p, mcore_legitimate_index_p,
2759 mcore_legitimate_address_p): New functions.
2760 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2762 2015-10-29 Jeff Law <law@redhat.com>
2764 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2766 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2767 * tree-ssa-threadedge.c
2768 (record_temporary_equivalences_from_stmts_at_dest): Remove
2769 backedge_seen argument and associated code which invalidated
2770 equivalences based on the value of that argument.
2771 (thread_through_normal_block): Corresponding changes.
2773 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2775 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2776 function earlier in the file.
2777 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2778 df_regs_ever_live_p.
2780 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2782 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2785 2015-10-29 Richard Henderson <rth@redhat.com>
2789 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2790 sse check to the exact conditions of PR 67609.
2792 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2794 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2795 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2796 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2797 of the traditional names that TFmode uses for handling IEEE
2798 extended double. If -mfloat128, add KFmode functions for all of
2799 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2800 make TFmode use the same emulation functions as KFmode.
2801 (init_float128_ibm): Likewise.
2802 (init_float128_ieee): Likewise.
2803 (rs6000_generate_compare): For IEEE 128-bit floating point
2804 comparisons, call the unordered comparison function instead of the
2805 ordered comparison function.
2806 (rs6000_expand_float128_convert): Deal with operands that are
2807 memory operands. Restructure the code to use a switch statement on
2808 the mode. Add support for TFmode defaulting to either IBM extended
2809 double or IEEE 128-bit floating point. If the underlying types are
2810 the same, use a move instead of a conversion function.
2811 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2812 use for IEEE 128-bit floating point constants with -mfloat128.
2813 (rs6000_c_mode_for_suffix): Likewise.
2814 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2815 128-bit floating point with IBM extended double floating point.
2816 (rs6000_invalid_binary_op): Likewise.
2817 (rs6000_gen_le_vsx_permute): On little endian systems generate a
2818 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2819 types that can go in vector registers.
2820 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2821 point types that can go in vector registers on little endian
2823 (mark_swaps_for_removal): Likewise.
2824 (rs6000_analyze_swaps): Likewise.
2825 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2827 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2828 rework IEEE 128-bit floating point insns to deal with TFmode being
2829 either IBM extended double or IEEE 128-bit floating point.
2831 (IBM128): Update iterator to add condition that the mode is IBM
2833 (IEEE128): New iterator for IEEE 128-bit floating point.
2834 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2835 (FLOAT128): Likewise.
2836 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2838 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2839 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2840 instead of hard coding TFmode or KFmode.
2841 (negtf2_internal): Likewise.
2842 (neg<mode>2_internal): Likewise.
2843 (abs<mode>2): Likewise.
2844 (abstf2_internal): Likewise.
2845 (abs<mode>2_internal): Likewise.
2846 (ieee_128bit_neg<mode>2): Likewise.
2847 (ieee_128bit_neg<mode>2_internal): Likewise.
2848 (ieee_128bit_abs<mode>2): Likewise.
2849 (ieee_128bit_abs<mode>2_internal): Likewise.
2850 (ieee_128bit_nabs<mode>2): Likewise.
2851 (ieee_128bit_nabs<mode>2_internal): Likewise.
2852 (extendiftf2): Add explicit conversions between 128-bit floating
2853 point types. Drop the old conversions that had become unwieldy.
2854 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2855 (extendifkf2): Likewise.
2856 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2857 (extendtfkf2): Likewise.
2858 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2859 (trunciftf2): Likewise.
2860 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2861 (truncifkf2): Likewise.
2862 (float<SDI:mode><IFKF:mode>2): Likewise.
2863 (trunckftf2): Likewise.
2864 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2865 (trunctfif2): Likewise.
2866 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2867 (extenddftf2): Rework 128-bit floating point conversions to
2868 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2869 KFmode expanders into one function.
2870 (extenddf<mode>2): Likewise.
2871 (extenddftf2_fprs): Likewise.
2872 (extenddf<mode>2_fprs): Likewise.
2873 (extenddftf2_vsx): Likewise.
2874 (extenddf<mode>2_vsx): Likewise.
2875 (extendsftf2): Likewise.
2876 (extendsf<mode>2): Likewise.
2877 (trunctfdf2): Likewise.
2878 (trunc<mode>df2): Likewise.
2879 (trunctfdf2_internal1): Likewise.
2880 (trunc<mode>df2_internal1): Likewise.
2881 (trunctfdf2_internal2): Likewise.
2882 (trunc<mode>df2_internal2): Likewise.
2883 (trunctfsf2): Likewise.
2884 (trunc<mode>sf2): Likewise.
2885 (trunctfsf2_fprs): Likewise.
2886 (trunc<mode>sf2_fprs): Likewise.
2887 (floatsit2f): Likewise.
2888 (floatsi<mode>2): Likewise.
2889 (fix_trunc_helper): Likewise.
2890 (fix_trunc_helper<mode>): Likewise.
2891 (fix_trunctfsi2): Likewise.
2892 (fix_trunc<mode>si2): Likewise.
2893 (fix_trunctfsi2_fprs): Likewise.
2894 (fix_trunc<mode>si2_fprs): Likewise.
2895 (fix_trunctfsi2_internal): Likewise.
2896 (fix_trunc<mode>si2_internal): Likewise.
2897 (fix_trunctfdi2): Likewise.
2898 (fix_trunc<mode>di2): Likewise.
2899 (fixuns_trunctf<mode>2): Likewise.
2900 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2901 (floatditf2): Likewise.
2902 (floatdi<mode>2): Likewise.
2903 (floatuns<mode>tf2): Likewise.
2904 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2905 (cmptf_internal1): Use a mode iterator to add support for both
2906 types (IFmode, TFmode) that support IBM extended double.
2907 (cmp<mode>_internal1): Likewise.
2908 (cmptf_internal2): Likewise.
2909 (cmp<mode>_internal2): Likewise.
2911 * doc/extend.texi (Floating Types): Document __ibm128 and
2912 __float128 on PowerPC.
2914 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2915 -mfloat128 and -mno-float128.
2917 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2919 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2920 floating point modes that can go in vector registers.
2921 (MODES_TIEABLE_P): Move tests for vector modes before tests for
2922 scalar floating point, so that IEEE 128-bit floating point that
2923 can go in vector registers bind with vectors and not FP.
2924 (struct rs6000_args): Add libcall field.
2926 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2927 and -mfloat128-software switches. Replace them with a binary
2929 (-mfloat128): Likewise.
2931 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2932 128-bit floating point types in GPRs, even if the appropriate
2933 option enabling the type was not used.
2934 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2936 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2937 pre-decrement on IEEE 128-bit floating point values.
2938 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2939 is IEEE 128-bit floating point.
2940 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2941 128-bit floating point types that can go in vector registers.
2942 (rs6000_option_override_internal): Change -mfloat128-none and
2943 -mfloat128-software to -mfloat128, and move code to be near other
2944 VSX option handling.
2945 (rs6000_option_override_internal): Disable -mfloat128 if we don't
2946 have the Altivec ABI.
2947 (rs6000_init_builtins): Don't make TFmode use either IFmode or
2948 KFmode floating point nodes. Instead, have three separate nodes.
2949 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2950 eventually moving the long double default to IEEE 128-bit floating
2952 (rs6000_opt_masks): Add -mfloat128.
2953 (struct rs6000_opt_var): Fix typo in comment.
2954 (init_cumulative_args): Initialize libcall field in
2956 (rs6000_function_arg): Treat library functions as if they had
2957 prototypes to prevent IEEE 128-bit support functions from passing
2958 arguments in both GPRs and vector registers.
2959 (rs6000_arg_partial_bytes): Likewise.
2961 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2962 an option that can be turned on via -mcpu=<xxx>.
2964 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2967 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2968 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2969 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2970 double is IBM extended double.
2972 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2975 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2977 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2978 * genconditions.c: Define CHECKING_P in the generated code.
2979 * genextract.c: Use flag_checking in insn_extract.
2980 * gengtype.c (main): Remove conditional compilation.
2981 * gengtype.h: Likewise.
2983 2015-10-29 Jeff Law <law@redhat.com>
2985 PR tree-optimization/67892
2986 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2988 (thread_through_normal_block): If we have seen a backedge, then
2989 do nothing. No longer call find_jump_threads_backwards here.
2990 (thread_across_edge): Use find_jump_threads_backwards to find
2991 jump threads if the old style threader was not successful.
2992 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2993 gsi_last_nondebug_bb. Return NULL if the block does not end
2994 with a control statement.
2995 (find_jump_threads_backwards): Setup code moved here from
2996 tree-ssa-threadedge.c::thread_through_normal_block. Accept
2997 single edge argument instead of name & block.
2998 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3001 2015-10-29 Tom de Vries <tom@codesourcery.com>
3003 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3006 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3008 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3011 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3013 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3015 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3017 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3018 guard_bb0 and use guard_bb throughout.
3020 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3022 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3025 2015-10-29 Richard Biener <rguenther@suse.de>
3028 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3031 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3033 * alias.c: Reorder #include statements and remove duplicates.
3035 * attribs.c: Likewise.
3036 * auto-inc-dec.c: Likewise.
3037 * auto-profile.c: Likewise.
3038 * bb-reorder.c: Likewise.
3039 * bt-load.c: Likewise.
3040 * builtins.c: Likewise.
3041 * caller-save.c: Likewise.
3042 * calls.c: Likewise.
3045 * cfganal.c: Likewise.
3046 * cfgbuild.c: Likewise.
3047 * cfgcleanup.c: Likewise.
3048 * cfgexpand.c: Likewise.
3049 * cfghooks.c: Likewise.
3050 * cfgloop.c: Likewise.
3051 * cfgloopanal.c: Likewise.
3052 * cfgloopmanip.c: Likewise.
3053 * cfgrtl.c: Likewise.
3054 * cgraph.c: Likewise.
3055 * cgraphbuild.c: Likewise.
3056 * cgraphclones.c: Likewise.
3057 * cgraphunit.c: Likewise.
3058 * cilk-common.c: Likewise.
3059 * combine-stack-adj.c: Likewise.
3060 * combine.c: Likewise.
3061 * compare-elim.c: Likewise.
3062 * convert.c: Likewise.
3063 * coverage.c: Likewise.
3064 * cppbuiltin.c: Likewise.
3065 * cprop.c: Likewise.
3067 * cselib.c: Likewise.
3068 * data-streamer-in.c: Likewise.
3069 * data-streamer-out.c: Likewise.
3070 * data-streamer.c: Likewise.
3071 * dbxout.c: Likewise.
3074 * debug.c: Likewise.
3075 * df-core.c: Likewise.
3076 * df-problems.c: Likewise.
3077 * df-scan.c: Likewise.
3079 * dojump.c: Likewise.
3080 * dominance.c: Likewise.
3081 * double-int.c: Likewise.
3083 * dumpfile.c: Likewise.
3084 * dwarf2asm.c: Likewise.
3085 * dwarf2cfi.c: Likewise.
3086 * dwarf2out.c: Likewise.
3087 * emit-rtl.c: Likewise.
3088 * except.c: Likewise.
3089 * explow.c: Likewise.
3090 * expmed.c: Likewise.
3092 * final.c: Likewise.
3093 * fixed-value.c: Likewise.
3094 * fold-const.c: Likewise.
3095 * function.c: Likewise.
3096 * fwprop.c: Likewise.
3098 * generic-match-head.c: Likewise.
3099 * ggc-common.c: Likewise.
3100 * gimple-builder.c: Likewise.
3101 * gimple-expr.c: Likewise.
3102 * gimple-fold.c: Likewise.
3103 * gimple-iterator.c: Likewise.
3104 * gimple-low.c: Likewise.
3105 * gimple-match-head.c: Likewise.
3106 * gimple-pretty-print.c: Likewise.
3107 * gimple-ssa-isolate-paths.c: Likewise.
3108 * gimple-ssa-strength-reduction.c: Likewise.
3109 * gimple-streamer-in.c: Likewise.
3110 * gimple-streamer-out.c: Likewise.
3111 * gimple-walk.c: Likewise.
3112 * gimple.c: Likewise.
3113 * gimplify-me.c: Likewise.
3114 * gimplify.c: Likewise.
3115 * godump.c: Likewise.
3116 * graph.c: Likewise.
3117 * graphite-poly.c: Likewise.
3118 * haifa-sched.c: Likewise.
3119 * hw-doloop.c: Likewise.
3120 * ifcvt.c: Likewise.
3121 * incpath.c: Likewise.
3122 * init-regs.c: Likewise.
3123 * internal-fn.c: Likewise.
3124 * ipa-chkp.c: Likewise.
3125 * ipa-comdats.c: Likewise.
3126 * ipa-cp.c: Likewise.
3127 * ipa-devirt.c: Likewise.
3128 * ipa-icf-gimple.c: Likewise.
3129 * ipa-icf.c: Likewise.
3130 * ipa-inline-analysis.c: Likewise.
3131 * ipa-inline-transform.c: Likewise.
3132 * ipa-inline.c: Likewise.
3133 * ipa-polymorphic-call.c: Likewise.
3134 * ipa-profile.c: Likewise.
3135 * ipa-prop.c: Likewise.
3136 * ipa-pure-const.c: Likewise.
3137 * ipa-ref.c: Likewise.
3138 * ipa-reference.c: Likewise.
3139 * ipa-split.c: Likewise.
3140 * ipa-utils.c: Likewise.
3141 * ipa-visibility.c: Likewise.
3143 * ira-build.c: Likewise.
3144 * ira-color.c: Likewise.
3145 * ira-conflicts.c: Likewise.
3146 * ira-costs.c: Likewise.
3147 * ira-emit.c: Likewise.
3148 * ira-lives.c: Likewise.
3151 * langhooks.c: Likewise.
3153 * lists.c: Likewise.
3154 * loop-doloop.c: Likewise.
3155 * loop-init.c: Likewise.
3156 * loop-invariant.c: Likewise.
3157 * loop-iv.c: Likewise.
3158 * loop-unroll.c: Likewise.
3159 * lower-subreg.c: Likewise.
3160 * lra-assigns.c: Likewise.
3161 * lra-coalesce.c: Likewise.
3162 * lra-constraints.c: Likewise.
3163 * lra-eliminations.c: Likewise.
3164 * lra-lives.c: Likewise.
3165 * lra-remat.c: Likewise.
3166 * lra-spills.c: Likewise.
3168 * lto-cgraph.c: Likewise.
3169 * lto-compress.c: Likewise.
3170 * lto-opts.c: Likewise.
3171 * lto-section-in.c: Likewise.
3172 * lto-section-out.c: Likewise.
3173 * lto-streamer-in.c: Likewise.
3174 * lto-streamer-out.c: Likewise.
3175 * lto-streamer.c: Likewise.
3176 * mode-switching.c: Likewise.
3177 * modulo-sched.c: Likewise.
3178 * omp-low.c: Likewise.
3179 * optabs.c: Likewise.
3180 * opts-global.c: Likewise.
3181 * passes.c: Likewise.
3182 * plugin.c: Likewise.
3183 * postreload-gcse.c: Likewise.
3184 * postreload.c: Likewise.
3185 * predict.c: Likewise.
3186 * print-tree.c: Likewise.
3187 * profile.c: Likewise.
3189 * realmpfr.c: Likewise.
3190 * recog.c: Likewise.
3192 * reg-stack.c: Likewise.
3193 * regcprop.c: Likewise.
3194 * reginfo.c: Likewise.
3195 * regrename.c: Likewise.
3196 * regstat.c: Likewise.
3197 * reload.c: Likewise.
3198 * reload1.c: Likewise.
3199 * reorg.c: Likewise.
3200 * resource.c: Likewise.
3201 * rtl-chkp.c: Likewise.
3202 * rtl-error.c: Likewise.
3203 * rtlanal.c: Likewise.
3204 * rtlhooks.c: Likewise.
3205 * sanopt.c: Likewise.
3206 * sched-deps.c: Likewise.
3207 * sched-ebb.c: Likewise.
3208 * sched-rgn.c: Likewise.
3210 * shrink-wrap.c: Likewise.
3211 * simplify-rtx.c: Likewise.
3212 * stack-ptr-mod.c: Likewise.
3213 * statistics.c: Likewise.
3215 * stor-layout.c: Likewise.
3216 * store-motion.c: Likewise.
3217 * stringpool.c: Likewise.
3218 * symtab.c: Likewise.
3219 * target-globals.c: Likewise.
3220 * targhooks.c: Likewise.
3221 * toplev.c: Likewise.
3222 * tracer.c: Likewise.
3223 * trans-mem.c: Likewise.
3224 * tree-affine.c: Likewise.
3225 * tree-call-cdce.c: Likewise.
3226 * tree-cfg.c: Likewise.
3227 * tree-cfgcleanup.c: Likewise.
3228 * tree-chkp-opt.c: Likewise.
3229 * tree-chkp.c: Likewise.
3230 * tree-chrec.c: Likewise.
3231 * tree-complex.c: Likewise.
3232 * tree-data-ref.c: Likewise.
3233 * tree-dfa.c: Likewise.
3234 * tree-diagnostic.c: Likewise.
3235 * tree-dump.c: Likewise.
3236 * tree-eh.c: Likewise.
3237 * tree-emutls.c: Likewise.
3238 * tree-if-conv.c: Likewise.
3239 * tree-inline.c: Likewise.
3240 * tree-into-ssa.c: Likewise.
3241 * tree-iterator.c: Likewise.
3242 * tree-loop-distribution.c: Likewise.
3243 * tree-nested.c: Likewise.
3244 * tree-nrv.c: Likewise.
3245 * tree-object-size.c: Likewise.
3246 * tree-outof-ssa.c: Likewise.
3247 * tree-parloops.c: Likewise.
3248 * tree-phinodes.c: Likewise.
3249 * tree-predcom.c: Likewise.
3250 * tree-pretty-print.c: Likewise.
3251 * tree-profile.c: Likewise.
3252 * tree-scalar-evolution.c: Likewise.
3253 * tree-sra.c: Likewise.
3254 * tree-ssa-address.c: Likewise.
3255 * tree-ssa-alias.c: Likewise.
3256 * tree-ssa-ccp.c: Likewise.
3257 * tree-ssa-coalesce.c: Likewise.
3258 * tree-ssa-copy.c: Likewise.
3259 * tree-ssa-dce.c: Likewise.
3260 * tree-ssa-dom.c: Likewise.
3261 * tree-ssa-dse.c: Likewise.
3262 * tree-ssa-forwprop.c: Likewise.
3263 * tree-ssa-ifcombine.c: Likewise.
3264 * tree-ssa-live.c: Likewise.
3265 * tree-ssa-loop-ch.c: Likewise.
3266 * tree-ssa-loop-im.c: Likewise.
3267 * tree-ssa-loop-ivcanon.c: Likewise.
3268 * tree-ssa-loop-ivopts.c: Likewise.
3269 * tree-ssa-loop-manip.c: Likewise.
3270 * tree-ssa-loop-niter.c: Likewise.
3271 * tree-ssa-loop-prefetch.c: Likewise.
3272 * tree-ssa-loop-unswitch.c: Likewise.
3273 * tree-ssa-loop.c: Likewise.
3274 * tree-ssa-math-opts.c: Likewise.
3275 * tree-ssa-operands.c: Likewise.
3276 * tree-ssa-phiopt.c: Likewise.
3277 * tree-ssa-phiprop.c: Likewise.
3278 * tree-ssa-pre.c: Likewise.
3279 * tree-ssa-propagate.c: Likewise.
3280 * tree-ssa-reassoc.c: Likewise.
3281 * tree-ssa-sccvn.c: Likewise.
3282 * tree-ssa-scopedtables.c: Likewise.
3283 * tree-ssa-sink.c: Likewise.
3284 * tree-ssa-strlen.c: Likewise.
3285 * tree-ssa-structalias.c: Likewise.
3286 * tree-ssa-tail-merge.c: Likewise.
3287 * tree-ssa-ter.c: Likewise.
3288 * tree-ssa-threadedge.c: Likewise.
3289 * tree-ssa-threadupdate.c: Likewise.
3290 * tree-ssa-uncprop.c: Likewise.
3291 * tree-ssa-uninit.c: Likewise.
3292 * tree-ssa.c: Likewise.
3293 * tree-ssanames.c: Likewise.
3294 * tree-stdarg.c: Likewise.
3295 * tree-streamer-in.c: Likewise.
3296 * tree-streamer-out.c: Likewise.
3297 * tree-streamer.c: Likewise.
3298 * tree-switch-conversion.c: Likewise.
3299 * tree-tailcall.c: Likewise.
3300 * tree-vect-data-refs.c: Likewise.
3301 * tree-vect-generic.c: Likewise.
3302 * tree-vect-loop-manip.c: Likewise.
3303 * tree-vect-loop.c: Likewise.
3304 * tree-vect-patterns.c: Likewise.
3305 * tree-vect-slp.c: Likewise.
3306 * tree-vect-stmts.c: Likewise.
3307 * tree-vectorizer.c: Likewise.
3308 * tree-vrp.c: Likewise.
3311 * ubsan.c: Likewise.
3312 * value-prof.c: Likewise.
3313 * var-tracking.c: Likewise.
3314 * varasm.c: Likewise.
3315 * varpool.c: Likewise.
3316 * vtable-verify.c: Likewise.
3318 * wide-int-print.cc: Likewise.
3319 * wide-int.cc: Likewise.
3320 * xcoffout.c: Likewise.
3322 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
3324 * Makefile.in (NO_PIE_CFLAGS): New.
3325 (NO_PIE_FLAG): Likewise.
3326 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3327 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3328 (BUILD_NO_PIE_CFLAGS): Likewise.
3329 (BUILD_NO_PIE_FLAG): Likewise.
3330 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3331 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3332 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3333 $(BUILD_NO_PIE_CFLAGS).
3334 (BUILD_CXXFLAGS): Likewise.
3335 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3336 $(BUILD_NO_PIE_FLAG).
3337 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
3338 (BUILD_NO_PIE_FLAG): Likewise.
3339 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3340 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3341 * configure: Regenerated.
3343 2015-10-29 Richard Biener <rguenther@suse.de>
3346 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3347 unsigned conditonal negation to ABS_EXPR.
3349 2015-10-29 Richard Biener <rguenther@suse.de>
3351 * gimple-match-head.c (gimple_simplify): Remove premature checking
3352 of builtin_decl_implicit of function calls we simplify.
3354 2015-10-29 Bin Cheng <bin.cheng@arm.com>
3356 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3357 (get_computation_cost_at): Ditto.
3358 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3361 2015-10-28 Tom de Vries <tom@codesourcery.com>
3363 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3366 2015-10-28 Jason Merrill <jason@redhat.com>
3368 * Makefile.in (TAGS): Include libcpp and libiberty.
3370 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3372 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3373 (extract_omp_for_data): Remove OpenACC special handling of
3376 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3377 (struct parallel): Update comment.
3378 (nvptx_reorg): Likewise.
3379 (nvptx_neuter): Cleanup whitespace.
3381 2015-10-28 Richard Henderson <rth@redhat.com>
3383 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3385 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3388 * config/avr/predicates.md (low_io_address_operand): Don't
3389 consider MODE when computing upper bound.
3390 (io_address_operand): Likewise.
3392 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3394 * fold-const.c (operand_equal_p): Do not verify that types are
3395 compatible for MEM_REFs.
3397 2015-10-28 Richard Biener <rguenther@suse.de>
3399 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3400 in simplifying VEC_COND_EXPR conditions.
3402 2015-10-28 Tom de Vries <tom@codesourcery.com>
3404 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3405 into vi_next of a full_var.
3407 2015-10-28 Tom de Vries <tom@codesourcery.com>
3409 * tree-ssa-structalias.c (new_var_info, make_heapvar)
3410 (make_constraint_from_restrict, make_constraint_from_global_restrict)
3411 (create_function_info_for, create_variable_info_for_1)
3412 (create_variable_info_for): Add and handle add_id parameter.
3413 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3414 (init_base_vars): Add extra argument to calls to new_var_info.
3415 (get_vi_for_tree): Add extra argument to call to
3416 create_variable_info_for.
3417 (process_constraint, do_deref, process_all_all_constraints): Add extra
3418 argument to calls to new_scalar_tmp_constraint_exp.
3419 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3420 argument to calls to make_heapvar.
3421 (make_restrict_var_constraints): Add extra argument to call to
3422 make_constraint_from_global_restrict.
3423 (intra_create_variable_infos): Add extra argument to call to
3424 create_variable_info_for_1.
3425 (ipa_pta_execute): Add extra argument to call to
3426 create_function_info_for.
3428 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3430 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3431 (sibcall_value): Likewise.
3433 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3435 * config/nvptx/nvptx.h (struct machine_function): Add
3437 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3438 nvptx_expand_oacc_join): Declare.
3439 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3440 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3441 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3442 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3443 UNSPECV_JOINING, UNSPECV_JOIN): New.
3444 (BITS, BITD): New mode iterators.
3445 (br_true_uni, br_false_uni): New.
3446 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3447 (oacc_dim_size, oacc_dim_pos): New.
3448 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3449 (oacc_fork, oacc_join): New.
3450 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3451 (worker_load<mode>, worker_store<mode>): New.
3452 (nvptx_barsync): New.
3453 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3454 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3455 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3456 worker_bcast_sym): New.
3457 (nvptx_option_override): Initialize worker broadcast buffer.
3458 (nvptx_emit_forking, nvptx_emit_joining): New.
3459 (nvptx_init_axis_predicate): New.
3460 (nvptx_declare_function_name): Init axis predicates.
3461 (nvptx_expand_call): Add fork/join markers around routine call.
3462 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3463 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3464 (nvptx_gen_vcast): New.
3465 (struct wcast_data_t): New.
3466 (enum propagate_mask): New.
3467 (nvptx_gen_wcast): New.
3468 (nvptx_print_operand): Add 'S' case.
3469 (struct parallel): New.
3470 (parallel::parallel, parallel::~parallel): New.
3471 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3472 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3473 nvptx_find_par, nvptx_discover_pars): New.
3474 (nvptx_propagate): New.
3475 (vprop_gen, nvptx_vpropagate): New.
3476 (wprop_gen, nvptx_wpropagate): New.
3478 (nvptx_single, nvptx_skip_par): New.
3479 (nvptx_process_pars, nvptx_neuter_pars): New.
3480 (ntptx_reorg): Split blocks, generate parallel structure, apply
3482 (nvptx_cannot_copy_insn_p): New.
3483 (nvptx_file_end): Emit worker broadcast decl.
3484 (nvptx_goacc_fork_join): New.
3485 (TARGET_CANNOT_COPY_INSN_P): Override.
3486 (TARGET_GOACC_FORK_JOIN): Override.
3488 2015-10-28 Richard Biener <rguenther@suse.de>
3490 * fold-const.c (negate_expr_p): Adjust the division case to
3491 properly avoid introducing undefined overflow.
3492 (fold_negate_expr): Likewise.
3494 2015-10-28 Richard Biener <rguenther@suse.de>
3496 PR tree-optimization/65962
3497 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3498 Avoid creating loop carried dependences also for outer loops
3499 of the loop a use to replace is in.
3501 2015-10-28 Richard Biener <rguenther@suse.de>
3503 * common.opt (fchecking): New flag controlling flag_checking.
3504 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3505 * timevar.c (timer::print): Adjust output.
3506 * doc/invoke.texi (fchecking): Document.
3508 2015-10-28 Richard Biener <rguenther@suse.de>
3511 * fold-const.c (negate_expr_p): We cannot negate plus or minus
3512 if overflow is not wrapping. Likewise multiplication unless
3513 one operand is constant and not power of two.
3514 (fold_negate_expr): Adjust accordingly.
3516 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3518 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3520 (is_oacc_parallel, is_oacc_kernels): New.
3521 (enclosing_target_ctx): May return NULL.
3522 (ctx_in_oacc_kernels_region): New.
3523 (check_oacc_kernel_gwv): New.
3524 (oacc_loop_or_target_p): Delete.
3525 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
3526 operands. Strip reductions fro kernels.
3527 (scan_omp_target): Don't calculate gwv mask.
3528 (lower_oacc_head_mark, lower_oacc_loop_marker,
3529 lower_oacc_head_tail): New.
3530 (struct oacc_collapse): New.
3531 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3532 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3533 Remove OpenACC handling.
3534 (expand_oacc_for): New.
3535 (expand_omp_for): Call expand_oacc_for.
3536 (lower_omp_for): Call lower_oacc_head_tail.
3538 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
3540 * attribs.c (check_attribute_tables): New function, broken out from...
3541 (init_attributes): Use it.
3542 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3543 gcc_checking_assert and checking_* functions to eliminate
3544 ENABLE_CHECKING conditionals.
3545 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3546 (pass_expand::execute): Likewise.
3547 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3548 * cgraphunit.c (mark_functions_to_output): Likewise.
3549 (cgraph_node::expand_thunk): Likewise.
3550 (symbol_table::compile): Likewise.
3551 * ddg.c (add_cross_iteration_register_deps): Likewise.
3552 (create_ddg_all_sccs): Likewise.
3553 * df-core.c (df_finish_pass, df_analyze): Likewise.
3554 * diagnostic-core.h: Likewise.
3555 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3556 * dominance.c (calculate_dominance_info): Likewise.
3557 * dwarf2out.c (add_AT_die_ref): Likewise.
3558 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3559 (loc_list_from_tree, gen_lexical_block_die): Likewise.
3560 gen_type_die_with_usage, gen_type_die): Likewise.
3561 (dwarf2out_decl): Likewise.
3562 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3563 * except.c (duplicate_eh_regions): Likewise.
3564 * fwprop.c (register_active_defs, update_df_init): Likewise.
3565 (fwprop_init, fwprop_done): Likewise.
3566 (update_uses): Likewise.
3567 * ggc-page.c (ggc_grow): Likewise.
3568 * gimplify.c (gimplify_body): Likewise.
3569 (gimplify_hasher::equal): Likewise.
3570 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3571 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3573 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3574 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3575 * hash-table.h (::find_empty_slot_for_expand): Likewise.
3576 * ifcvt.c (if_convert): Likewise.
3577 * ipa-cp.c (ipcp_propagate_stage): Likewise.
3578 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3579 (odr_type_p, odr_types_equivalent_p): Likewise.
3580 (add_type_duplicate, get_odr_type): Likewise.
3581 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3582 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3583 (sem_item_optimizer::verify_classes): Likewise.
3584 (sem_item_optimizer::traverse_congruence_split): Likewise.
3585 (sem_item_optimizer::checking_verify_classes): New.
3586 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3588 * cfgrtl.c (commit_edge_insertions): Likewise.
3589 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3590 (rtl_flow_call_edges_add): Likewise.
3591 * cgraph.c (symbol_table::create_edge): Likewise.
3592 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3593 * cgraph.h (symtab_node): Likewise.
3594 (symtab_node::checking_verify_symtab_nodes): Define.
3595 (cgraph_node::checking_verify_cgraph_nodes): Define.
3596 * cfghooks.h (checking_verify_flow_info): Define.
3597 * cfgloop.h (checking_verify_loop_structure): Define.
3598 * dominance.h (checking_verify_dominators): Define.
3599 * et-forest.c: Fix comment.
3600 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3601 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3602 ENABLE_CHECKING conditionals.
3603 * ipa-inline-transform.c (save_inline_function_body): Likewise.
3604 * ipa-inline.c (inline_small_functions): Likewise.
3605 (early_inliner): Likewise.
3606 * ipa-inline.h (estimate_edge_growth): Likewise.
3607 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3608 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3609 (ipa_single_use): Likewise.
3610 * ira-int.h: Likewise.
3611 * ira.c (ira): Likewise.
3612 * loop-doloop.c (doloop_optimize_loops): Likewise.
3613 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3614 * loop-invariant.c (move_loop_invariants): Likewise.
3615 * lra-assigns.c (lra_assign): Likewise.
3616 * lra-constraints.c (lra_constraints): Likewise.
3617 * lra-eliminations.c (lra_eliminate): Likewise.
3618 * lra-int.h (struct lra_reg): Likewise.
3619 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3620 (lra_create_live_ranges_1): Likewise.
3621 * lra-remat.c (create_remat_bb_data): Likewise.
3622 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3624 (check_rtl): Always define. Remove incorrect guard around
3625 extract_constrain_insn call.
3626 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3627 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3628 ENABLE_CHECKING conditionals.
3629 * lto-streamer-out.c (DFS::DFS): Likewise.
3630 (lto_output): Likewise.
3631 * lto-streamer.c (lto_streamer_init): Likewise.
3632 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3633 expand_omp_target, execute_expand_omp): Likewise.
3634 (lower_omp_target): Likewise.
3635 * passes.c (execute_function_todo): Likewise.
3636 (execute_todo, execute_one_pass): Likewise.
3637 (verify_curr_properties): Always define.
3638 * predict.c (tree_estimate_probability: Use flag_checking,
3639 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3640 ENABLE_CHECKING conditionals.
3641 (propagate_freq): Likewise.
3642 * pretty-print.c (pp_format): Likewise.
3643 * real.c (real_to_decimal_for_mode): Likewise.
3644 * recog.c (split_all_insns): Likewise.
3645 * regcprop.c (kill_value_one_regno): Likewise.
3646 (copy_value): Likewise.
3647 (validate_value_data): Define unconditionally.
3648 * reload.c: Fix comment.
3649 * timevar.c: Include options.h
3650 * tree-ssa.h (checking_verify_ssa): Define.
3651 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3652 * sched-deps.c (CHECK): Remove unused macro.
3653 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3654 gcc_checking_assert and checking_* functions to eliminate
3655 ENABLE_CHECKING conditionals.
3656 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3657 * sel-sched.c (struct moveop_static_params): Likewise.
3658 (find_best_reg_for_expr, move_cond_jump): Likewise.
3659 (move_op_orig_expr_not_found): Likewise.
3660 (code_motion_process_successors, move_op): Likewise.
3661 * ssa-iterators.h (first_readonly_imm_use): Likewise.
3662 (next_readonly_imm_use): Likewise.
3663 * store-motion.c (compute_store_table): Likewise.
3664 * symbol-summary.h (function_summary::function_summary): Likewise.
3665 * target.h (cumulative_args_t): Likewise.
3666 (get_cumulative_args, pack_cumulative_args): Likewise.
3667 * timevar.c: (timer::print): Likewise.
3668 * trans-mem.c (ipa_tm_execute): Likewise.
3669 * tree-cfg.c (move_stmt_op): Likewise.
3670 (move_sese_region_to_fn): Likewise.
3671 (gimple_flow_call_edges_add): Likewise.
3672 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3674 * tree-eh.c (remove_unreachable_handlers): Likewise.
3675 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3676 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3677 * tree-into-ssa.c (update_ssa): Likewise.
3678 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3679 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3680 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3681 * tree-predcom.c (suitable_component_p): Likewise.
3682 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3683 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3684 * tree-ssa-live.c (verify_live_on_entry): Likewise.
3685 * tree-ssa-live.h (register_ssa_partition): Likewise.
3686 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3687 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3688 (tree_transform_and_unroll_loop): Likewise.
3689 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3690 * tree-ssa-operands.c (get_expr_operands): Likewise.
3691 * tree-ssa-propagate.c (replace_exp_1): Likewise.
3692 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3693 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3694 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3695 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3696 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3697 * tree-vect-loop-manip.c
3698 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3699 (slpeel_checking_verify_cfg_after_peeling): Likewise.
3700 (vect_do_peeling_for_loop_bound): Likewise.
3701 (vect_do_peeling_for_alignment): Likewise.
3702 * tree-vrp.c (supports_overflow_infinity): Likewise.
3703 (set_value_range): Likewise.
3704 * tree.c (free_lang_data_in_cgraph): Likewise.
3705 * value-prof.c (gimple_remove_histogram_value): Likewise.
3706 (free_hist): Likewise.
3707 * var-tracking.c (canonicalize_values_star): Likewise.
3708 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3710 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3712 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3713 IFN_GOACC_LOOP): New.
3714 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3715 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3716 IFN_UNIQUE_OACC_TAIL_MARK.
3717 (enum ifn_goacc_loop_kind): New.
3718 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3719 IFN_UNIQUE_OACC_JOIN cases.
3720 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3721 (expand_GOACC_LOOP): New.
3722 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3723 * omp-low.c: Include gimple-pretty-print.h.
3724 (struct oacc_loop): New.
3725 (enum oacc_loop_flags): New.
3726 (oacc_thread_numbers): New.
3727 (oacc_xform_loop): New.
3728 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3729 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3730 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3731 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3732 oacc_loop_discovery): New.
3733 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3734 oacc_loop_process): New.
3735 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3736 (execute_oacc_device_lower): Discover & process loops. Process
3738 * target.def (goacc.fork_join): Change sense of hook, clarify
3740 * doc/tm.texi: Regenerated.
3742 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3744 * target-insns.def (oacc_fork, oacc_join): Define.
3745 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3746 (goacc.fork_join): New GOACC hook.
3747 * targhooks.h (default_goacc_fork_join): Declare.
3748 * omp-low.c (default_goacc_forkjoin): New.
3749 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3750 * doc/tm.texi: Regenerate.
3752 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3754 * omp-low.c (oacc_init_rediction_array): New.
3755 (oacc_initialize_reduction_data): Initialize array.
3757 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3759 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3761 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3763 * internal-fn.c (expand_UNIQUE): New.
3764 * internal-fn.h (enum ifn_unique_kind): New.
3765 * internal-fn.def (IFN_UNIQUE): New.
3766 * target-insns.def (unique): Define.
3767 * gimple.h (gimple_call_internal_unique_p): New.
3768 * gimple.c (gimple_call_same_target_p): Check internal fn
3770 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3771 * tree-ssa-threadedge.c
3772 (record_temporary_equivalences_from_stmts): Likewise.
3773 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3775 2015-10-27 Richard Henderson <rth@redhat.com>
3778 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3779 narrowing subregs on SSE and MMX registers.
3780 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3781 appear to be sub-words of multi-register pseudos must be rejected.
3782 * doc/tm.texi: Regenerate.
3784 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3787 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3788 operands[0] is a reg before taking its REGNO in split condition.
3789 (*movdi_aarch64): Likewise.
3791 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3793 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3794 Handle floating point inner modes properly.
3796 2015-10-27 Alan Hayward <alan.hayward@arm.com>
3799 (vectorizable_live_operation): Change iterator.
3801 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3802 Aditya Kumar <aditya.k7@samsung.com>
3804 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3805 function to schedule based on isl_schedule_node.
3806 (get_schedule_map_st): New schedule optimizer based on
3808 (scop_get_domains): New. Return the isl_union_set containing the
3809 domains of all the pbbs.
3810 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3812 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
3815 * calls.c (prepare_call_address): Don't handle -fno-plt here.
3816 * config/i386/i386.c (ix86_expand_call): Generate indirect call
3817 via GOT for -fno-plt. Support indirect call via GOT for x32.
3818 * config/i386/predicates.md (sibcall_memory_operand): Allow
3821 2015-10-27 Richard Biener <rguenther@suse.de>
3823 PR tree-optimization/68104
3824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3825 strided access check ...
3826 (vect_compute_data_refs_alignment): ... here.
3828 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
3829 Joseph Myers <joseph@codesourcery.com>
3830 Mark Shinwell <shinwell@codesourcery.com>
3831 Andrew Stubbs <ams@codesourcery.com>
3832 Rich Felker <dalias@libc.org>
3834 * config.gcc: Handle --enable-fdpic.
3835 * config/sh/constraints.md (Ccl): New constraint.
3836 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3837 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3839 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3841 * config/sh/sh-protos.h (function_symbol_result): New struct.
3842 (function_symbol): Return function_symbol_result.
3843 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3845 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3847 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3848 (sh_option_override): Force -fPIC if FDPIC is in effect.
3849 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3850 UNSPEC_GOTOFFFUNCDESC cases.
3851 (prepare_move_operands): Use FDPIC initial GOT register for
3852 TLS-related GOT access; inhibit cross-section address offset constants
3854 (sh_assemble_integer): New function.
3855 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3856 PC-relative call sites.
3857 (expand_ashiftrt): Adapt invocation of function_symbol.
3858 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3859 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3860 UNSPEC_GOTOFFFUNCDESC.
3861 (legitimize_pic_address): Resolve function symbols to function
3862 descriptors for FDPIC. Do not use GOT-relative addressing for local
3863 data that may be read-only on FDPIC.
3864 (sh_emit_storesi, sh_emit_storehi): New functions.
3865 (sh_trampoline_init): Generate FDPIC trampolines.
3866 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3867 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3868 (sh_output_mi_thunk): Generate FDPIC call.
3869 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
3870 FDPIC, generate call site labels to use PC-relative addressing rather
3871 than GOT-relative addressing.
3872 (sh_conditional_register_usage): Make PIC register fixed and call used
3873 when FDPIC is in effect.
3874 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3875 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3876 sh_get_fdpic_reg_initial_val): New functions.
3877 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3879 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3880 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3881 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3882 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3884 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3885 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3886 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3887 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3889 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3890 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3891 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3892 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3893 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3894 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3895 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3896 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3897 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3898 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3899 block_move_real, block_lump_real, block_move_real_i4,
3900 block_lump_real_i4): Add support for FDPIC calls.
3901 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3902 call_value_pop): Adjust for new function_symbol signature.
3903 * config/sh/sh.opt (-mfdpic): New option.
3904 * doc/install.texi (Options specification): Document --enable-fdpic.
3905 * doc/invoke.texi (SH Options): Document -mfdpic.
3908 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3910 PR tree-optimization/65963
3911 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3912 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3914 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3917 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3918 * config/arm/constraints.md (Dp): Update callsite.
3919 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3921 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3923 * builtins.c (fold_builtin_load_exponent): Rename to...
3924 (fold_const_builtin_load_exponent): ...this and only handle
3926 (fold_builtin_2): Update accordingly.
3927 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3929 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3931 * builtins.c (fold_builtin_logb): Rename to...
3932 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3933 (fold_builtin_significand): Rename to...
3934 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3935 (fold_builtin_1): Update accordingly.
3937 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3939 * builtins.c (fold_builtin_fmin_fmax): Delete.
3940 (fold_builtin_2): Handle constant fmin and fmax arguments here.
3941 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3943 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
3945 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3946 for register extension into sign and zero register extension.
3947 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3948 for sign and zero register extension.
3949 (cortexa57_addrcost_table): Likewise.
3950 (xgene1_addrcost_table): Likewise.
3952 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3954 * fold-const.c (fold_minmax): Delete.
3955 (fold_binary_loc): Don't call it.
3956 * match.pd: Add rules previously handled by fold_minmax.
3958 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3960 * builtins.c (fold_builtin_fma): Remove constant handling.
3961 (fold_builtin_3): Handle constant fma arguments here.
3963 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3965 * builtins.c (fold_builtin_fabs): Remove constant handling.
3966 (fold_builtin_abs): Likewise.
3968 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3970 * builtins.c (fold_builtin_copysign): Delete.
3971 (fold_builtin_2): Handle constant copysign arguments here.
3972 * match.pd: Add rules previously handled by fold_builtin_copysign.
3974 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3976 * builtins.c (fold_builtin_signbit): Delete.
3977 (fold_builtin_2): Handle constant signbit arguments here.
3978 * match.pd: Add rules previously handled by fold_builtin_signbit.
3980 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3982 * match.pd: Handle sqrt(x) cmp 0 specially.
3984 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
3986 * tree-vect-generic.c (expand_vector_operations_1): Check
3987 optab type before using it.
3989 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3991 * config/aarch64/aarch64-protos.h
3992 (struct tune_params): Add autoprefetcher_model field.
3993 * config/aarch64/aarch64.c: Include params.h
3994 (generic_tunings): Specify autoprefetcher_model value.
3995 (cortexa53_tunings): Likewise.
3996 (cortexa57_tunings): Likewise.
3997 (cortexa72_tunings): Likewise.
3998 (thunderx_tunings): Likewise.
3999 (xgene1_tunings): Likewise.
4000 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4001 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4002 (aarch64_override_options_internal): Set
4003 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4005 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4007 * builtins.c (fold_builtin_exponent): Delete.
4008 (fold_builtin_2): Handle constant expN arguments here.
4009 * match.pd: Fold expN(logN(x)) -> x.
4011 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4013 * builtins.c (fold_builtin_powi): Delete.
4014 (fold_builtin_2): Handle constant powi arguments here.
4015 * match.pd: Add rules previously handled by fold_builtin_powi.
4017 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4019 * builtins.c (fold_builtin_pow): Delete in favor of...
4020 (fold_const_builtin_pow): ...this new function. Only handle constant
4022 (fold_builtin_2): Update accordingly.
4023 * match.pd: Add rules previously handled by fold_builtin_pow.
4025 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4027 * builtins.c (fold_builtin_hypot): Delete.
4028 (fold_builtin_2): Handle constant hypot arguments here.
4029 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4030 hypot(x, x) to fabs(x)*sqrt(2).
4032 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4034 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4035 instead of make_ssa_name if not yet in SSA form.
4037 2015-10-27 Richard Biener <rguenther@suse.de>
4039 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4040 (clear_edges): Likewise.
4041 * cfg.h (clear_edges): Adjust prototype.
4042 * cfgexpand.c (pass_expand::execute): Adjust.
4043 * cfgloop.c (release_recorded_exits): Add function argument and use
4045 * cfgloop.h (release_recorded_exits): Adjust prototype.
4046 (loops_state_satisfies_p): Add overload with function argument.
4047 (loops_state_set): Likewise.
4048 (loops_state_clear): Likewise.
4049 (struct loop_iterator): Add function argument to constructor
4050 and iterator and use it instead of cfun.
4051 (FOR_EACH_LOOP_FN): New macro.
4052 (loop_optimizer_finalize): Add overload with function argument.
4053 * loop-init.c (loop_optimizer_init): Adjust.
4054 (fix_loop_structure): Likewise.
4055 (loop_optimizer_finaliz): Add function argument and use it
4057 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4058 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4059 * cgraph.c (release_function_body): Do not push/pop cfun.
4060 * final.c (rest_of_clean_state): Adjust.
4061 * graphite.c (graphite_finalize): Likewise.
4062 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4063 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4064 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4065 (tree_unroll_loops_completely): Likewise.
4066 (pass_complete_unrolli::execute): Likewise.
4067 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4068 Add function argument and use it instead of cfun.
4069 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4071 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4072 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4074 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4075 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4077 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4078 * tree-vrp.c (execute_vrp): Adjust.
4079 * value-prof.c (free_histograms): Add function argument and use it
4081 * value-prof.h (free_histograms): Adjust prototype.
4083 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4085 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4086 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4087 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4089 2015-10-27 Tom de Vries <tom@codesourcery.com>
4091 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4094 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4096 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4097 (inv_can_prop_to_addr_use): New function.
4098 (record_use): Call can_prop_to_addr_uses, set the new field.
4099 (get_inv_cost): Count cost if inv can't be propagated into its
4102 2015-10-26 Doug Evans <dje@google.com>
4104 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4106 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4108 * match.pd (fold_widened_comparison): Apply simplifications to all
4111 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4113 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4114 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4115 * doc/tm.texi: Regenerated.
4116 * reorg.c (dbr_schedule): Use new hook.
4117 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4119 2015-10-26 Jeff Law <law@redhat.com>
4121 PR tree-optimization/68013
4122 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4123 Make sure the first block in the path is in VISITED_BBs.
4125 2015-10-26 Richard Biener <rguenther@suse.de>
4126 Dominik Vogt <vogt@linux.vnet.ibm.com>
4129 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4130 Properly prune ref->ref for accesses outside of ref.
4132 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4134 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4135 new statements to be inserted if inplace. Allow calls to have
4138 2015-10-26 Richard Biener <rguenther@suse.de>
4140 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4141 (do_valueize): New function.
4142 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4144 * tree-ssa-threadedge.c: Remove builtins.h include, include
4146 (fold_assignment_stmt): Remove.
4147 (threadedge_valueize): New function.
4148 (record_temporary_equivalences_from_stmts): Use
4149 gimple_fold_stmt_to_constant_1, note additional cleanup
4152 2015-10-26 Richard Biener <rguenther@suse.de>
4154 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4155 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4157 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4159 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4160 VEC_COND_EXPR types.
4162 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4164 * auto-inc-dec.c (insert_move_insn_before): Delete.
4165 (attempt_change): Remember to cost the simple move in the
4166 FORM_PRE_ADD and FORM_POST_ADD cases.
4168 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
4171 * config/sh/sh.c (sh_vector_mode_supported_p): Use
4172 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4174 2015-10-26 Tom de Vries <tom@codesourcery.com>
4176 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4178 (intra_create_variable_infos): ... here.
4180 2015-10-26 Tom de Vries <tom@codesourcery.com>
4182 * tree-ssa-structalias.c (intra_create_variable_infos): Add
4183 restrict_pointer_p and recursive_restrict_p variables.
4185 2015-10-26 Tom de Vries <tom@codesourcery.com>
4187 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4188 get_vi_for_tree call.
4190 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4193 * optabs.c (expand_atomic_compare_and_swap): Handle case when
4194 ptarget_oval or ptarget_bool are const0_rtx.
4196 2015-10-26 Christian Bruel <christian.bruel@st.com>
4198 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4199 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4200 * cp/method.c (implicitly_declare_fn): Likewise.
4201 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4202 * java/class.c (add_method_1): Likewise.
4204 2015-10-26 Richard Biener <rguenther@suse.de>
4206 * alloc-pool.h (base_pool_allocator): Use placement new.
4207 (base_pool_allocator::remove): Likewise. Compute size outside of
4210 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4212 * builtins.c (do_real_to_int_conversion): New function.
4213 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4214 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4216 * match.pd: Add rules previously handled by fold_fixed_mathfn
4217 and fold_builtin_int_roundingfn.
4219 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4221 * match.pd: Use macros to define built-in operator lists.
4223 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
4224 Richard Biener <rguenther@suse.de>
4226 * genmatch.c (dt_simplify::gen): Skip captures that are
4228 (parser::parse_expr): Allow captures in results too.
4229 * builtins.c (fold_builtin_cexp): Delete.
4230 (fold_builtin_1): Handle constant cexp arguments here.
4231 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4233 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
4235 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4236 conditional compilation.
4237 (base_pool_allocator::remove): Use flag_checking.
4239 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
4241 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4244 * dojump.c (do_compare_and_jump): Canonicalize both function and
4247 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
4250 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4253 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4256 * ipa-polymorphic-call.c
4257 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4258 instance offset with offset of outer type.
4260 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4262 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4264 2015-10-23 Caroline Tice <cmtice@google.com>
4266 (from Richard Biener
4267 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
4268 call to iterative_hash_host_wide_int.
4270 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4272 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4275 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4277 * tree-vect-generic.c (expand_vector_operations_1): Check
4278 optab exists before use it.
4280 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4282 * tree-vect-generic.c (expand_vector_condition): Avoid
4283 uninitialized variable warning.
4285 2015-10-23 Jeff Law <law@redhat.com>
4287 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4289 (execute_todo): Call it here.
4290 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4292 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4294 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4295 Szabolcs Nagy <szabolcs.nagy@arm.com>
4297 * config.gcc (enable_secureplt): Add *-linux*-musl*.
4299 2015-10-23 Jeff Law <law@redhat.com>
4301 PR tree-optimization/67830
4302 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4303 Explicitly verify the mask has no bits outside the type of
4304 the innermost operands.
4306 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4307 Szabolcs Nagy <szabolcs.nagy@arm.com>
4309 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4310 (MUSL_DYNAMIC_LINKER64): Define.
4311 (GNU_USER_DYNAMIC_LINKER32): Update.
4312 (GNU_USER_DYNAMIC_LINKER64): Update.
4313 (CHOOSE_DYNAMIC_LINKER): Update.
4315 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4316 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4317 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4318 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4319 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4320 (CHOOSE_DYNAMIC_LINKER): Update.
4321 (INCLUDE_DEFAULTS): Redefine.
4323 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4325 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4327 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4328 comparing addresses.
4330 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4332 * fold-const.c (operand_equal_p): Handle matching of vector
4335 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4337 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4339 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
4340 Andrew Pinski <apinski@cavium.com>
4342 PR rtl-optimization/67736
4343 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4346 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4349 * tree.c (build_truth_vector_type): Support BLK mode
4350 returned for boolean vector.
4352 2015-10-23 Alan Hayward <alan.hayward@arm.com>
4354 PR tree-optimization/65947
4356 (vect_is_simple_reduction_1): Find condition reductions.
4357 (vect_model_reduction_cost): Add condition reduction costs.
4358 (get_initial_def_for_reduction): Add condition reduction initial var.
4359 (vect_create_epilog_for_reduction): Add condition reduction epilog.
4360 (vectorizable_reduction): Condition reduction support.
4361 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4362 * doc/sourcebuild.texi (Vector-specific attributes): Document
4365 2015-10-23 Richard Biener <rguenther@suse.de>
4367 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4370 2015-10-23 Richard Biener <rguenther@suse.de>
4371 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4373 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4374 into (A ^ B) - B to match.pd
4375 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4377 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4379 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4381 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4383 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4385 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4386 INTEGER_CST@1)): New simplifier.
4388 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
4390 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4391 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4392 (fold_builtin_ceil, fold_builtin_round): Delete.
4393 (fold_builtin_1): Handle constant trunc, floor, ceil and round
4395 * convert.c (convert_to_real): Remove narrowing of rounding
4397 * fold-const.h (integer_valued_real_unary_p)
4398 (integer_valued_real_binary_p, integer_valued_real_call_p)
4399 (integer_valued_real_single_p, integer_valued_real_p): Declare.
4400 * fold-const.c (tree_single_nonnegative_warnv_p): Move
4401 name_registered_for_update_p check to SSA_NAME case statement.
4402 Don't call tree_simple_nonnegative_warnv_p for SSA names.
4403 (integer_valued_real_unary_p, integer_valued_real_binary_p)
4404 (integer_valued_real_call_p, integer_valued_real_single_p)
4405 (integer_valued_real_invalid_p): New functions.
4406 (integer_valued_real_p): Move from fold-const.c and rework
4407 to call the functions above. Handle SSA names.
4408 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4409 * gimple-fold.c (gimple_assign_integer_valued_real_p)
4410 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4411 (gimple_stmt_integer_valued_real_p): New functions.
4412 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4413 Fold f(x)->x for the same f if x is known to be integer-valued.
4414 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4415 the result. Canonicalize floor(x) as trunc(x) if x is
4418 2015-10-23 Tom de Vries <tom@codesourcery.com>
4420 * tree-ssa-structalias.c (intra_create_variable_infos): Use
4421 make_constraint_from.
4423 2015-10-23 Tom de Vries <tom@codesourcery.com>
4425 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4426 setting of is_full_var in case of a single field.
4428 2015-10-22 Martin Sebor <msebor@redhat.com>
4431 * config/i386/i386.opt: Add missing periods to the ends of sentences.
4432 * config/msp430/msp430.opt: Same.
4434 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4436 * doc/extend.exp (Global Register Variables): Rewrite.
4438 2015-10-22 Jeff Law <law@redhat.com>
4440 * genattrtab.c (main): If we do not have any annul-true or annul-false
4441 slots, then write out a dummy eligible_for_annul_true or
4442 eligible_for_annul_false as needed.
4444 2015-10-22 Nick Clifton <nickc@redhat.com>
4446 * config/msp430/msp430.opt: Add -msilicon-errata and
4447 -msilicon-errata-warn.
4448 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4450 * doc/invoke.texi: Document new options.
4452 2015-10-22 Richard Biener <rguenther@suse.de>
4454 PR tree-optimization/58497
4455 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4456 (expand_vector_operations_1): Use it. Lower operations on
4457 all uniform vectors to scalar operations if the HW supports it.
4459 2015-10-22 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/19049
4462 PR tree-optimization/65962
4463 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4464 to strided accesses if single-element interleaving doesn't work.
4466 2015-10-22 Richard Biener <rguenther@suse.de>
4470 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4471 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4472 (expand_unop): Likewise.
4474 2015-10-22 Richard Biener <rguenther@suse.de>
4476 * fold-const.c (fold_addr_of_array_ref_difference): Properly
4477 convert operands before folding a MINUS_EXPR.
4478 (fold_binary_loc): Move simplification of MINUS_EXPR on
4479 converted POINTER_PLUS_EXPRs ...
4480 * match.pd: ... here.
4482 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4484 * builtins.c (fold_builtin_tan): Delete.
4485 (fold_builtin_1): Handle constant tan arguments here.
4486 * match.pd: Simplify (tan (atan x)) to x.
4488 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4490 * builtins.c (fold_builtin_cproj): Delete.
4491 (fold_builtin_1): Handle constant arguments here.
4492 (build_complex_cproj): Move and rename to...
4493 * tree.c: (build_complex_inf): ...this.
4494 * tree.h (build_complex_inf): Declare.
4495 * match.pd: Fold cproj(x)->x if x has no infinity.
4496 Use build_complex_inf for existing cproj rules.
4498 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4501 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4502 already have a comparison result.
4504 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4507 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4508 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4509 (aarch64_classify_address): Likewise.
4510 (aarch64_secondary_reload): Likewise.
4511 (aarch64_override_options_after_change_1): Adjust.
4512 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4513 Use aarch64_nopcrelative_literal_loads.
4514 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4515 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4518 2015-10-21 Martin Sebor <msebor@redhat.com>
4521 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4522 (print_filtered_help): Reference aliased option's name and encourage
4523 readers to use it in preference to the alias if the former is not
4524 documented. Mention when using an option is diagnosed.
4525 * gcc.c (display_help): End each sentence with a period.
4527 * common.opt: End each sentence that describes an option with
4529 * config/aarch64/aarch64.opt: Same.
4530 * config/alpha/alpha.opt: Same.
4531 * config/arc/arc.opt: Same.
4532 * config/arm/arm.opt: Same.
4533 * config/avr/avr.opt: Same.
4534 * config/bfin/bfin.opt: Same.
4535 * config/c6x/c6x.opt: Same.
4536 * config/cr16/cr16.opt: Same.
4537 * config/cris/cris.opt: Same.
4538 * config/cris/linux.opt: Same.
4539 * config/darwin.opt: Same.
4540 * config/epiphany/epiphany.opt: Same.
4541 * config/fr30/fr30.opt: Same.
4542 * config/frv/frv.opt: Same.
4543 * config/ft32/ft32.opt: Same.
4544 * config/g.opt: Same.
4545 * config/h8300/h8300.opt: Same.
4546 * config/i386/cygming.opt: Same.
4547 * config/i386/djgpp.opt: Same.
4548 * config/i386/i386.opt: Same.
4549 * config/i386/interix.opt: Same.
4550 * config/i386/mingw-w64.opt: Same.
4551 * config/i386/mingw.opt: Same.
4552 * config/ia64/ia64.opt: Same.
4553 * config/ia64/ilp32.opt: Same.
4554 * config/iq2000/iq2000.opt: Same.
4555 * config/linux.opt: Same.
4556 * config/lm32/lm32.opt: Same.
4557 * config/lynx.opt: Same.
4558 * config/m32c/m32c.opt: Same.
4559 * config/m32r/m32r.opt: Same.
4560 * config/m68k/ieee.opt: Same.
4561 * config/m68k/m68k.opt: Same.
4562 * config/mcore/mcore.opt: Same.
4563 * config/mep/mep.opt: Same.
4564 * config/microblaze/microblaze.opt: Same.
4565 * config/mips/mips.opt: Same.
4566 * config/mmix/mmix.opt: Same.
4567 * config/mn10300/mn10300.opt: Same.
4568 * config/moxie/moxie.opt: Same.
4569 * config/msp430/msp430.opt: Same.
4570 * config/nios2/elf.opt: Same.
4571 * config/nios2/nios2.opt: Same.
4572 * config/nvptx/nvptx.opt: Same.
4573 * config/pa/pa-hpux.opt: Same.
4574 * config/pa/pa-hpux1010.opt: Same.
4575 * config/pa/pa-hpux1111.opt: Same.
4576 * config/pa/pa-hpux1131.opt: Same.
4577 * config/pa/pa.opt: Same.
4578 * config/pa/pa64-hpux.opt: Same.
4579 * config/pdp11/pdp11.opt: Same.
4580 * config/rl78/rl78.opt: Same.
4581 * config/rs6000/476.opt: Same.
4582 * config/rs6000/aix64.opt: Same.
4583 * config/rs6000/darwin.opt: Same.
4584 * config/rs6000/linux64.opt: Same.
4585 * config/rs6000/rs6000.opt: Same.
4586 * config/rs6000/sysv4.opt: Same.
4587 * config/s390/s390.opt: Same.
4588 * config/s390/tpf.opt: Same.
4589 * config/sh/sh.opt: Same.
4590 * config/sol2.opt: Same.
4591 * config/sparc/long-double-switch.opt: Same.
4592 * config/sparc/sparc.opt: Same.
4593 * config/spu/spu.opt: Same.
4594 * config/stormy16/stormy16.opt: Same.
4595 * config/tilegx/tilegx.opt: Same.
4596 * config/tilepro/tilepro.opt: Same.
4597 * config/v850/v850.opt: Same.
4598 * config/vax/vax.opt: Same.
4599 * config/visium/visium.opt: Same.
4600 * config/vms/vms.opt: Same.
4601 * config/vxworks.opt: Same.
4602 * config/xtensa/xtensa.opt: Same.
4604 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4605 Sebastian Pop <s.pop@samsung.com>
4607 * graphite-scop-detection.c (parameter_index_in_region): Update call to
4608 invariant_in_sese_p_rec.
4609 * graphite-sese-to-poly.c (extract_affine): Same.
4610 * sese.c (invariant_in_sese_p_rec): Pass in an extra
4611 parameter has_vdefs.
4612 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4613 variable depends on virtual definitions in the current region.
4614 * sese.h (invariant_in_sese_p_rec): Update declaration.
4616 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4617 Sebastian Pop <s.pop@samsung.com>
4619 * graphite-scop-detection.c (build_scops): Do not handle scops
4620 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4621 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4623 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
4625 * config.in: Regenerate.
4626 * configure: Regenerate.
4627 * configure.ac (CHECKING_P): Define.
4628 * system.h: Use CHECKING_P.
4630 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4633 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4634 is negative we don't know the type.
4635 (check_stmt_for_type_change): Skip constructors of non-polymorphic
4636 types as those won't help devirutalization.
4638 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4640 * fold-const.c (operand_equal_p): Add code matching empty constructors.
4642 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
4644 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4646 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4647 Add comments on sign of the result.
4648 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4649 Recurse on operand #1 instead of operand #0.
4650 <CEIL_MOD_EXPR>: Do not recurse.
4651 <ROUND_MOD_EXPR>: Likewise.
4653 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4655 * cfgrtl.c (pass_free_cfg::execute): Adjust.
4656 * final.c (dbr_sequence_length): Always define.
4657 (shorten_branches): Adjust.
4658 * genattr-common.c (main): Always define DELAY_SLOTS.
4659 * genattr.c (main): Unconditionally declare functions and define
4660 macros related to delay slots.
4661 * genattrtab.c (write_eligible_delay): Adjust.
4662 (main): Always write out delay slot functions.
4663 * opts.c (default_options_table): Adjust.
4664 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4665 (redirect_with_delay_list_safe_p): Likewise.
4666 (fill_simple_delay_slots): Likewise.
4667 (fill_slots_from_thread): Likewise.
4668 (make_return_insns): Likewise.
4669 (dbr_schedule): Likewise.
4670 (rest_of_handle_delay_slots): Likewise.
4671 (pass_delay_slots::gate): Likewise.
4672 * toplev.c (process_options): Likewise.
4674 2015-10-21 Richard Henderson <rth@redhat.com>
4676 * targhooks.c (default_addr_space_pointer_mode): Remove check
4677 for generic address space.
4678 (default_addr_space_address_mode): Likewise.
4679 (default_addr_space_valid_pointer_mode): Likewise.
4680 (default_addr_space_legitimate_address_p): Likewise.
4681 (default_addr_space_legitimize_address): Likewise.
4682 * target.def (addr_space.pointer_mode): Update documentation
4683 of default behavior.
4684 (addr_space.address_mode): Likewise.
4687 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4690 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4692 * builtins.c (fold_builtin_cabs): Delete.
4693 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4694 * match.pd: Add rules previously handled by fold_builtin_cabs.
4696 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4698 * fold-const.h (fold_strip_sign_ops): Delete.
4699 * fold-const.c (fold_strip_sign_ops): Likewise.
4700 (fold_unary_loc, fold_binary_loc): Remove calls to it.
4701 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4702 (fold_builtin_ccos): Delete.
4703 (fold_builtin_pow): Don't call fold_strip_sign_ops.
4704 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4705 Remove fndecl argument.
4706 (fold_builtin_1): Update calls accordingly. Handle constant
4707 cos, cosh, ccos and ccosh here.
4709 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4711 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4712 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4713 * common.opt (fssa-backprop): New option.
4714 * fold-const.h (negate_mathfn_p): Declare.
4715 * fold-const.c (negate_mathfn_p): Make public.
4716 * timevar.def (TV_TREE_BACKPROP): New.
4717 * tree-pass.h (make_pass_backprop): Declare.
4718 * passes.def (pass_backprop): Add.
4719 * gimple-ssa-backprop.c: New file.
4721 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4722 Sebastian Pop <s.pop@samsung.com>
4724 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4725 Do not call create_empty_if_region_on_edge when cond_expr is true.
4726 (translate_isl_ast_node_for): Check whether a guard has been generated.
4728 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4730 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4731 (operator=): Removed.
4732 (dr_info): Make alias_set number the last argument with default
4733 value of invalid_alias_set.
4734 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4736 (rewrite_reductions_out_of_ssa): Iterate only through the
4737 basic blocks which are inside region.
4738 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4739 * sese.h (struct sese_l): Removed assignment operator.
4740 (split_region_for_bb): Removed dead code.
4742 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4744 * graphite-poly.h (struct dr_info): Removed conversion constructor.
4745 (struct scop): Renamed scop::region to scop::scop_info
4746 (scop_set_region): Same.
4747 (SCOP_REGION): Removed
4748 (SCOP_CONTEXT): Removed.
4749 (POLY_SCOP_P): Removed.
4750 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4751 Rename scop->region to scop->scop_info.
4752 (add_parameters_to_ivs_params): Same.
4753 (graphite_regenerate_ast_isl): Same.
4754 * graphite-poly.c (new_scop): Same.
4756 (print_scop_params): Same.
4757 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4758 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4759 (dot_all_scops_1): Rename scop->region to scop->scop_info.
4760 (scop_detection::nb_pbbs_in_loops): Same.
4761 (find_scop_parameters): Same.
4762 (try_generate_gimple_bb): Same.
4763 (gather_bbs::before_dom_children): Same.
4764 (gather_bbs::after_dom_children): Same.
4765 (build_scops): Same.
4766 * graphite-sese-to-poly.c (build_scop_scattering): Same.
4767 (extract_affine_chrec): Same.
4768 (extract_affine): Same.
4769 (set_scop_parameter_dim): Same.
4770 (build_loop_iteration_domains): Same.
4771 (create_pw_aff_from_tree): Same.
4772 (add_param_constraints): Same.
4773 (build_scop_iteration_domain): Same.
4774 (build_scop_drs): Same.
4775 (analyze_drs_in_stmts): Same.
4776 (insert_out_of_ssa_copy_on_edge): Same.
4777 (rewrite_close_phi_out_of_ssa):Same.
4778 (rewrite_reductions_out_of_ssa):Same.
4779 (handle_scalar_deps_crossing_scop_limits):Same.
4780 (rewrite_cross_bb_scalar_deps):Same.
4781 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4782 (build_poly_scop):Same.
4783 (build_alias_set): Use pointer to dr_info.
4784 * graphite.c (print_graphite_scop_statistics):
4785 (graphite_transform_loops):
4786 * sese.h (struct sese_l): Remove conversion constructor.
4788 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4791 * tree.c (verify_type): Verify that TYPE_MODE match
4792 between TYPE_CANONICAL and type.
4793 * expr.c (store_expr_with_bounds): Revert my previous change.
4794 * expmed.c (store_bit_field_1): Revert prevoius change.
4795 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4796 to match for all types.
4798 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
4800 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4803 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4805 * doc/tm.texi: Regenerated.
4806 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4807 * stor-layout.c (layout_type): Use mode to get vector mask size.
4808 * target.def (get_mask_mode): New.
4809 * targhooks.c (default_get_mask_mode): New.
4810 * targhooks.h (default_get_mask_mode): New.
4811 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4813 * tree.c (MAX_BOOL_CACHED_PREC): New.
4814 (nonstandard_boolean_type_cache): New.
4815 (build_nonstandard_boolean_type): New.
4816 (make_vector_type): Vector mask has no canonical type.
4817 (build_truth_vector_type): New.
4818 (build_same_sized_truth_vector_type): New.
4819 (truth_type_for): Support vector masks.
4820 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4821 (build_truth_vector_type): New.
4822 (build_same_sized_truth_vector_type): New.
4823 (build_nonstandard_boolean_type): New.
4824 * tree-cfg.c (verify_gimple_comparison) Require boolean
4825 vector type for vector comparison.
4826 (verify_gimple_assign_ternary): Likewise.
4827 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4829 * tree-vect-stmts.c (vectorizable_condition): Use boolean
4830 vector type for vector comparison.
4831 * tree-vect-generic.c (elem_op_func): Add new operand to hold
4833 (do_unop): Adjust to modified function type.
4834 (do_binop): Likewise.
4835 (do_plus_minus): Likewise.
4836 (do_negate); Likewise.
4837 (expand_vector_piecewise): Likewise.
4838 (do_cond): Likewise.
4839 (do_compare): Use comparison instead of condition.
4840 (expand_vector_divmod): Use boolean vector type for comparison.
4841 (expand_vector_operations_1): Skip scalar mask operations.
4843 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4845 * omp-low.c (simd_clone_create): Set in_other_partition
4848 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4850 * doc/extend.exp (Local Register Variables): Rewrite.
4852 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4854 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4855 and x*x in cases where the operands are sign ops. Extend these
4856 rules to handle copysign as a sign op (including for cos, cosh
4857 and pow, which already treated negate and abs as sign ops).
4859 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
4862 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4863 for 64-bit MS_ABI targets also when default incoming stack boundary
4866 2015-10-21 Richard Biener <rguenther@suse.de>
4868 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4869 cond stmts, enhanced and split out from ...
4870 (vn_phi_eq): ... here.
4872 2015-10-21 Richard Biener <rguenther@suse.de>
4875 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4876 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4877 (tree_single_nonnegative_warnv_p): ... here. For SSA names
4878 make sure they are not registered for update.
4880 2015-10-21 Richard Biener <rguenther@suse.de>
4882 PR tree-optimization/68026
4883 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4884 unsigned VARYING values.
4886 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4888 * asan.c (asan_emit_stack_protection): Don't pass local stack to
4889 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4890 NULL and use local stack than.
4891 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4892 in addition to __asan_init.
4893 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4894 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4895 * asan.h (asan_intercepted_p): Handle new string builtins.
4896 * ubsan.c (ubsan_use_new_style_p): New function.
4897 (ubsan_instrument_float_cast): If location is unknown, assign
4898 input_location to loc. Propagate loc to ubsan_create_data if
4899 ubsan_use_new_style_p returned true.
4901 2015-10-21 Jeff Law <law@redhat.com>
4903 * Makefile.in (OBJS): Remove sched-vis.c
4904 * sched-vis.c: Removed. Code moved into...
4905 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
4906 * rtl.h: Remove prototypes for functions now living in print-rtl.c
4907 * print-rtl.h Add prototypes for new functions in print-rtl.c.
4908 * auto-inc-dec.c: Include print-rtl.h
4909 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4910 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4912 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4915 2015-10-21 Richard Biener <rguenther@suse.de>
4916 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4918 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4920 Move (a * (1 << b)) is (a << b) to match.pd.
4921 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4922 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4923 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4925 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4927 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4928 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4929 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4931 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4933 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4935 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
4936 Szabolcs Nagy <szabolcs.nagy@arm.com>
4937 Alan Modra <amodra@gmail.com>
4939 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4940 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4941 (LINK_SPEC): Add %(link_secure_plt).
4942 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4943 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4945 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
4946 Szabolcs Nagy <szabolcs.nagy@arm.com>
4948 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4949 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4951 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4953 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4955 (fusion_load_store): Use it.
4956 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4957 ldp and stp in VD modes.
4958 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4959 (store_pair<mode>, VD): Likewise.
4961 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
4963 PR rtl-optimization/67609
4964 * lra-splill.c (lra_final_code_change): Don't remove all
4967 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4969 * simplify-rtx.c (simplify_binary_operation): If either operand was
4970 a constant pool reference use them if all other simplifications failed.
4972 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4974 * config/aarch64/aarch64.md
4975 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4976 * config/aarch64/aarch64-simd.md
4977 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4978 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4979 (aarch64_fpconst_pow_of_2): New function.
4980 (aarch64_vec_fpconst_pow_of_2): Likewise.
4981 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4983 (aarch64_vec_fpconst_pow_of_2): Likewise.
4984 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4985 (aarch64_fp_vec_pow2): Likewise.
4987 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
4989 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4990 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
4991 * config/alpha/alpha.c (alpha_function_arg_advance): Update
4992 ALPHA_ARG_SIZE usage.
4993 (alpha_arg_partial_bytes): Ditto.
4995 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4998 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4999 error_mark_node decls.
5001 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5005 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5006 OPT_miamcu handling.
5007 * config/i386/i386.c (PTA_NO_80387): New macro.
5008 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5009 (ix86_option_override_internal): Update MASK_80387 from
5010 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5011 SSE math only if 80387 is supported. Don't change
5013 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5015 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5016 if TARGET_80387 is true and TARGET_IAMCU is false.
5017 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5018 is true and TARGET_IAMCU_P is false.
5020 2015-10-20 Richard Biener <rguenther@suse.de>
5022 PR tree-optimization/68017
5023 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5025 2015-10-20 Martin Liska <mliska@suse.cz>
5027 * cgraphclones.c (cgraph_node::create_virtual_clone):
5028 Verify cgraph_node.local.versionable instead of calling
5029 tree_versionable_function_p.
5030 * ipa-cp.c (determine_versionability): Save the information
5031 to ipa_node_params summary.
5032 (ipcp_versionable_function_p): Use it.
5033 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5034 (ipcp_generate_summary): Do not compute cgraph_node
5036 * ipa-inline-analysis.c (inline_generate_summary): Compute
5037 versionability for all cgraph nodes.
5038 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5039 ipa_node_params::versionability.
5040 * ipa-prop.h (struct ipa_node_params): Declare it.
5042 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5045 * varasm.c (assemble_variable): Move special vtv handling to..
5046 (handle_vtv_comdat_sections): .. here. New function.
5047 (output_object_block): Handle vtv sections.
5049 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5052 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5054 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5056 * doc/extend.texi: Update documentation WRT inline functions.
5058 2015-10-20 Alan Modra <amodra@gmail.com>
5061 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5062 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5063 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5065 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5067 PR rtl-optimization/66790
5068 * df.h (DF_MIR): New macro.
5069 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5070 (DF_MIR_INFO_BB): New macro.
5071 (DF_MIR_IN, DF_MIR_OUT): New macros.
5072 (struct df_mir_bb_info): New.
5073 (df_mir): New macro.
5074 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5076 (df_mir_get_bb_info): New.
5077 * df-problems.c (struct df_mir_problem_data): New.
5078 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5079 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5080 df_mir_confluence_0, df_mir_confluence_n,
5081 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5082 df_mir_bottom_dump, df_mir_verify_solution_start,
5083 df_mir_verify_solution_end): New.
5085 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5086 * timevar.def (TV_DF_MIR): New.
5087 * ree.c: Include bitmap.h
5088 (add_removable_extension): Add an INIT_REGS parameter. Use it
5089 to skip zero-extensions that may get an uninitialized register.
5090 (find_removable_extensions): Compute must-initialized registers
5091 using the MIR dataflow problem. Update the call to
5092 add_removable_extension.
5093 (find_and_remove_re): Call df_mir_add_problem.
5095 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5097 * common/config/mn10300/mn10300-common.c
5098 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5099 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5101 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5103 * doc/extend.texi (Explicit Register Variables): Simplify and
5104 avoid unnecessary and confusion abbreviations. Update cross
5106 doc/implement-c.tex: Update cross reference.
5108 2015-10-19 Jeff Law <law@redhat.com>
5110 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5111 that create irreducible loops unless the path elimiantes a multiway
5114 2015-10-19 Richard Biener <rguenther@suse.de>
5116 PR tree-optimization/67975
5117 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5118 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5119 core worker from ...
5120 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5121 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5122 instead of block number for PHIs with two or one args.
5123 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5126 2015-10-19 Richard Biener <rguenther@suse.de>
5128 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5129 (gimple_stmt_nonnegative_warnv_p): Use it.
5130 * match.pd (CPROJ): New operator list.
5131 (cproj (complex ...)): Move simplifications from ...
5132 * builtins.c (fold_builtin_cproj): ... here.
5134 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5136 * config/i386/i386.c (ix86_expand_vector_move): Use
5137 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5140 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5142 * doc/invoke.texi: Replace @optindex with @opindex.
5144 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5147 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5148 arch= is set, clear all bits in x_ix86_isa_flags, except for
5149 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5151 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5154 * common.opt (fkeep-static-functions): New option.
5155 * doc/invoke.texi: Document it.
5156 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5158 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5160 * sched-int.h (struct autopref_multipass_data_): Remove offset
5161 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5162 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5163 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5164 (autopref_rank_data): New function.
5165 (autopref_rank_for_schedule): Use it.
5166 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5168 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
5171 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5173 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5175 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5176 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
5177 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5178 (STANDARD_STARTFILE_PREFIX_1): New.
5179 (STANDARD_STARTFILE_PREFIX_2): New.
5181 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5183 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5184 (darwin_driver_init): Note a version-min when provided on the c/l.
5185 * config/darwin.h (%darwin_minversion): Remove.
5186 * config/i386/darwin.h: Likewise.
5187 * config/rs6000/darwin.h: Likewise.
5188 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5189 rather than an arbitrary constant.
5191 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5193 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5194 PPC, detect conflicts between -arch and multilib settings. Detect
5195 and warn about conflicts between multiple -arch definitions.
5197 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5199 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5201 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5203 * lra-constraints.c (add_next_usage_insn): Change argument type
5204 from rtx to rtx_insn *.
5206 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
5208 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5211 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
5213 * config/tilepro/gen-mul-tables.cc: Adjust include files.
5214 * config/tilegx/mul-tables.c: Regenerate.
5215 * config/tilepro/mul-tables.c: Regenerate.
5217 * config/tilegx/tilegx-c.c: Adjust include files.
5218 * config/tilegx/tilegx.c: Likewise.
5219 * config/tilepro/tilepro-c.c: Likewise.
5220 * config/tilepro/tilepro.c: Likewise.
5221 * config/aarch64/aarch64-builtins.c: Likewise.
5222 * config/aarch64/aarch64.c: Likewise.
5223 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5224 * config/alpha/alpha.c: Likewise.
5225 * config/arc/arc.c: Likewise.
5226 * config/arm/aarch-common.c: Likewise.
5227 * config/arm/arm-builtins.c: Likewise.
5228 * config/arm/arm-c.c: Likewise.
5229 * config/arm/arm.c: Likewise.
5230 * config/avr/avr-c.c: Likewise.
5231 * config/avr/avr-devices.c: Likewise.
5232 * config/avr/avr-log.c: Likewise.
5233 * config/avr/avr.c: Likewise.
5234 * config/bfin/bfin.c: Likewise.
5235 * config/c6x/c6x.c: Likewise.
5236 * config/cr16/cr16.c: Likewise.
5237 * config/cris/cris.c: Likewise.
5238 * config/darwin-c.c: Likewise.
5239 * config/darwin-driver.c: Likewise.
5240 * config/darwin.c: Likewise.
5241 * config/default-c.c: Likewise.
5242 * config/epiphany/epiphany.c: Likewise.
5243 * config/epiphany/mode-switch-use.c: Likewise.
5244 * config/epiphany/resolve-sw-modes.c: Likewise.
5245 * config/fr30/fr30.c: Likewise.
5246 * config/frv/frv.c: Likewise.
5247 * config/ft32/ft32.c: Likewise.
5248 * config/glibc-c.c: Likewise.
5249 * config/h8300/h8300.c: Likewise.
5250 * config/i386/host-cygwin.c: Likewise.
5251 * config/i386/host-mingw32.c: Likewise.
5252 * config/i386/i386-c.c: Likewise.
5253 * config/i386/i386.c: Likewise.
5254 * config/i386/msformat-c.c: Likewise.
5255 * config/i386/winnt-cxx.c: Likewise.
5256 * config/i386/winnt-stubs.c: Likewise.
5257 * config/i386/winnt.c: Likewise.
5258 * config/ia64/ia64-c.c: Likewise.
5259 * config/ia64/ia64.c: Likewise.
5260 * config/iq2000/iq2000.c: Likewise.
5261 * config/lm32/lm32.c: Likewise.
5262 * config/m32c/m32c-pragma.c: Likewise.
5263 * config/m32c/m32c.c: Likewise.
5264 * config/m32r/m32r.c: Likewise.
5265 * config/mcore/mcore.c: Likewise.
5266 * config/mep/mep-pragma.c: Likewise.
5267 * config/mep/mep.c: Likewise.
5268 * config/microblaze/microblaze-c.c: Likewise.
5269 * config/microblaze/microblaze.c: Likewise.
5270 * config/mips/mips-tables.opt
5271 * config/mips/mips.c: Likewise.
5272 * config/mmix/mmix.c: Likewise.
5273 * config/mn10300/mn10300.c: Likewise.
5274 * config/moxie/moxie.c: Likewise.
5275 * config/msp430/msp430-c.c: Likewise.
5276 * config/msp430/msp430.c: Likewise.
5277 * config/nds32/nds32-cost.c: Likewise.
5278 * config/nds32/nds32-fp-as-gp.c: Likewise.
5279 * config/nds32/nds32-intrinsic.c: Likewise.
5280 * config/nds32/nds32-isr.c: Likewise.
5281 * config/nds32/nds32-md-auxiliary.c: Likewise.
5282 * config/nds32/nds32-memory-manipulation.c: Likewise.
5283 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5284 * config/nds32/nds32-predicates.c: Likewise.
5285 * config/nds32/nds32.c: Likewise.
5286 * config/nios2/nios2.c: Likewise.
5287 * config/nvptx/mkoffload.c: Likewise.
5288 * config/nvptx/nvptx.c: Likewise.
5289 * config/pa/pa.c: Likewise.
5290 * config/pdp11/pdp11.c: Likewise.
5291 * config/rl78/rl78-c.c: Likewise.
5292 * config/rl78/rl78.c: Likewise.
5293 * config/rs6000/host-darwin.c: Likewise.
5294 * config/rs6000/rs6000-c.c: Likewise.
5295 * config/rs6000/rs6000-linux.c: Likewise.
5296 * config/rs6000/rs6000.c: Likewise.
5297 * config/rx/rx.c: Likewise.
5298 * config/s390/s390-c.c: Likewise.
5299 * config/s390/s390.c: Likewise.
5300 * config/sh/sh-c.c: Likewise.
5301 * config/sh/sh-mem.cc: Likewise.
5302 * config/sh/sh.c: Likewise.
5303 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5304 * config/sh/sh_treg_combine.cc: Likewise.
5305 * config/sol2-c.c: Likewise.
5306 * config/sol2-cxx.c: Likewise.
5307 * config/sol2-stubs.c: Likewise.
5308 * config/sol2.c: Likewise.
5309 * config/sparc/sparc-c.c: Likewise.
5310 * config/sparc/sparc.c: Likewise.
5311 * config/spu/spu-c.c: Likewise.
5312 * config/spu/spu.c: Likewise.
5313 * config/stormy16/stormy16.c: Likewise.
5314 * config/v850/v850-c.c: Likewise.
5315 * config/v850/v850.c: Likewise.
5316 * config/vax/vax.c: Likewise.
5317 * config/visium/visium.c: Likewise.
5318 * config/vms/vms-c.c: Likewise.
5319 * config/vms/vms.c: Likewise.
5320 * config/vxworks.c: Likewise.
5321 * config/winnt-c.c: Likewise.
5322 * config/xtensa/xtensa.c: Likewise.
5324 2015-10-16 Christian Bruel <christian.bruel@st.com>
5327 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5328 (FUNCTION_BOUNDARY_P): New macro:
5329 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5331 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5332 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5333 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5334 * function.c (allocate_struct_function): Call
5335 relayout_function hook.
5336 * passes.c (rest_of_decl_compilation): Likewise.
5338 2015-10-16 Christian Bruel <christian.bruel@st.com>
5341 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5342 * config/arm/arm.c (arm_option_override_internal): Call
5343 arm_override_options_after_change_1.
5344 (arm_override_options_after_change): New function.
5345 (arm_override_options_after_change_1): Likewise.
5346 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5348 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5351 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5354 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
5356 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5357 argument is an ADDR_EXPR.
5359 2015-10-16 Richard Biener <rguenther@suse.de>
5361 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5362 and get rid of force_gimple_operand_gsi.
5363 (gimple_fold_builtin_memory_chk): Likewise.
5364 (gimple_fold_builtin_stxcpy_chk): Likewise.
5365 (rewrite_to_defined_overflow): Likewise.
5366 (gimple_convert_to_ptrofftype): New function.
5367 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5369 2015-10-16 Richard Biener <rguenther@suse.de>
5371 * tree-nested.h (build_addr): Adjust prototype.
5372 * tree-nested.c (build_addr): Remove context argument and use
5374 (get_static_chain): Adjust calls to build_addr.
5375 (convert_nl_goto_reference): Likewise.
5376 (convert_tramp_reference_op): Likewise.
5377 (finalize_nesting_tree_1): Likewise.
5378 * value-prof.c (gimple_ic): Likewise.
5379 * gimple-low.c (lower_builtin_setjmp): Likewise.
5380 * tree-parloops.c (take_address_of): Likewise.
5381 (create_call_for_reduction_1): Likewise.
5382 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5383 (gimple_gen_ic_func_profiler): Likewise.
5385 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5387 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5390 2015-10-16 Michael Collison <michael.collison@linaro.org>
5391 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5393 * match.pd ((x < y) && (x < z) -> x < min (y,z),
5394 (x > y) and (x > z) -> x > max (y,z))
5396 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
5397 Szabolcs Nagy <szabolcs.nagy@arm.com>
5399 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5400 (DYNAMIC_LINKER): Renamed to ...
5401 (GLIBC_DYNAMIC_LINKER): This.
5402 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5404 2015-10-15 Marek Polacek <polacek@redhat.com>
5406 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5407 gimple_call_builtin instead of is_gimple_call.
5409 2015-10-15 Richard Biener <rguenther@suse.de>
5411 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5413 2015-10-15 Richard Biener <rguenther@suse.de>
5415 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5416 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5417 * tree-vect-loop.c (get_initial_def_for_induction): Drop
5418 use of force_gimple_operand in favor of gimple_build.
5419 Use vect_get_new_ssa_name.
5420 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5421 (vectorizable_mask_load_store): Likewise.
5422 (vectorizable_call): Likewise.
5423 (vectorizable_store): Likewise.
5424 (vectorizable_load): Likewise.
5425 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5427 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
5429 PR tree-optimization/67945
5430 * tree-pass.h (PROP_gimple_opt_math): New property flag.
5431 * generic-match-head.c (canonicalize_math_p): New function.
5432 * gimple-match-head.c: Include tree-pass.h.
5433 (canonicalize_math_p): New function.
5434 * match.pd: Group math built-in rules into simplifications
5435 and canonicalizations. Guard the latter with canonicalize_math_p.
5436 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5437 PROP_gimple_opt_math property.
5439 2015-10-15 Marek Polacek <polacek@redhat.com>
5441 PR tree-optimization/67953
5442 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5444 2015-10-15 Jiong Wang <jiong.wang@arm.com>
5446 * config.gcc: Recognize "." in architecture base name for AArch64.
5448 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5450 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5452 * config/mips/mips.c (mips_setup_incoming_varargs): Use
5453 ROUND_DOWN to calculate off.
5454 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5455 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5458 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
5460 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5462 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
5463 Torvald Riegel <triegel@redhat.com>
5466 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5467 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5468 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5469 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5470 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
5471 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5472 trechkpt, treclaim, tsr, ttest): New define_expands.
5473 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5474 __TM_FENCE__ for htm.
5475 * doc/extend.texi: Update documentation for htm builtins.
5477 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5480 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5481 REG_CFA_EXPRESSION to aligned SSE stores.
5483 2015-10-14 Jeff Law <law@redhat.com>
5485 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5486 num_threaded_edges for successful FSM threads too.
5488 2015-10-14 Richard Biener <rguenther@suse.de>
5490 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5491 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
5492 (vect_get_vec_def_for_operand): Remove unused parameter.
5493 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5494 (vect_create_epilog_for_reduction): Likewise.
5495 (vectorizable_reduction): Likewise.
5496 (vectorizable_live_operation): Likewise.
5497 * tree-vect-patterns.c (type_conversion_p): Likewise.
5498 (vect_recog_vector_vector_shift_pattern): Likewise.
5499 (check_bool_pattern): Likewise.
5500 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5501 (vect_analyze_slp_cost_1): Likewise.
5502 * tree-vect-stmts.c (process_use): Likewise.
5503 (vect_get_vec_def_for_operand): Do not handle reductions.
5504 (vect_get_vec_defs): Adjust.
5505 (vectorizable_mask_load_store): Likewise.
5506 (vectorizable_call): Likewise.
5507 (vectorizable_simd_clone_call): Likewise.
5508 (vect_get_loop_based_defs): Likewise.
5509 (vectorizable_conversion): Likewise.
5510 (vectorizable_assignment): Likewise.
5511 (vectorizable_shift): Likewise.
5512 (vectorizable_operation): Likewise.
5513 (vectorizable_store): Likewise.
5514 (vectorizable_load): Likewise.
5515 (vect_is_simple_cond): Likewise.
5516 (vectorizable_condition): Likewise.
5517 (vect_is_simple_use): Remove unused parameters.
5518 (vect_is_simple_use_1): Adjust and rename.
5520 2015-10-14 Richard Biener <rguenther@suse.de>
5522 PR tree-optimization/67915
5523 * match.pd: Handle comparisons of addresses of STRING_CSTs.
5524 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5525 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5526 stmt folding in favor of GIMPLE one.
5528 2015-10-14 Marek Polacek <polacek@redhat.com>
5530 PR tree-optimization/67815
5531 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5532 (reassociate_bb): Call it.
5534 2015-10-14 Richard Biener <rguenther@suse.de>
5536 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5537 Reset info at start.
5538 (vect_analyze_group_access_1): Add debug print.
5539 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5540 (vect_compute_single_scalar_iteration_cost): ... to this.
5541 (vect_analyze_loop_2): Adjust.
5542 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5543 * tree-vectorizer.h: ... here.
5544 (add_stmt_info_to_vec): Remove.
5545 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5547 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
5549 * targhooks.c (default_target_option_pragma_parse): Do not warn if
5550 called on behalf of "#pragma GCC pop_options".
5552 2015-10-14 Tom de Vries <tom@codesourcery.com>
5554 * cfganal.c (verify_no_unreachable_blocks): New function.
5555 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5556 verify_no_unreachable_blocks.
5557 cfganal.h (verify_no_unreachable_blocks): Declare.
5559 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
5561 * common.opt: Add flag_checking.
5562 * system.h (CHECKING_P): Define.
5564 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5565 Aldy Hernandez <aldyh@redhat.com>
5566 Ilya Verbin <ilya.verbin@intel.com>
5568 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5569 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5570 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5571 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5572 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5573 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5574 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5575 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5576 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5577 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5578 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5579 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5580 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5581 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5582 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5583 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5584 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5585 (struct cgraph_simd_clone_arg): Adjust comment.
5586 * coretypes.h (struct gomp_ordered): New forward decl.
5587 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5588 set critical clauses to it.
5589 (gimple_build_omp_ordered): Return gomp_ordered * instead of
5590 gimple *. Add CLAUSES argument, set ordered clauses to it.
5591 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5593 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5594 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5595 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
5596 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5597 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
5598 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5599 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
5600 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5602 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5603 (gomp_critical): Add clauses field.
5604 (gomp_ordered): New struct.
5605 (is_a_helper <gomp_ordered *>::test): New inline.
5606 (gimple_build_omp_critical): Add CLAUSES argument.
5607 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
5608 instead of gimple *.
5609 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5610 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5611 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5612 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5614 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5615 (dump_gimple_omp_target): Handle enter data and exit data.
5616 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5617 (dump_gimple_omp_critical): Print clauses.
5618 (dump_gimple_omp_ordered): New function.
5619 (dump_gimple_omp_task): Handle taskloop.
5620 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5622 * gimple-walk.c (walk_gimple_op): Walk clauses on
5623 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5624 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5625 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5626 (struct gimplify_omp_ctx): Add loop_iter_var,
5627 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5628 and target_firstprivatize_array_bases fields.
5629 (delete_omp_context): Release loop_iter_var.
5630 (gimplify_bind_expr): Handle ORT_NONE.
5631 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5632 ORT_COMBINED_TARGET.
5633 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5634 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5635 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
5636 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
5637 ctx->target_map_scalars_firstprivate.
5638 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
5639 data sharing clauses. For data sharing clause with VLA decl
5640 on omp target/target data don't add firstprivate for the pointer.
5641 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5642 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5643 the addition of ORT_COMBINED_TARGET.
5644 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
5645 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
5646 pointers as zero length array sections and
5647 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5649 (omp_check_private): Handle omp_member_access_dummy_var vars.
5650 (find_decl_expr): New function.
5651 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
5652 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5653 Handle OMP_CLAUSE_GANG separately. Handle
5654 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5655 clauses. Diagnose linear clause on combined
5656 distribute {, parallel for} simd construct, unless it is the loop
5657 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5658 Handle map clauses with COMPONENT_REF. Initialize
5659 ctx->target_map_scalars_firstprivate,
5660 ctx->target_firstprivatize_array_bases and
5661 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
5662 linear clause even to target region if combined. Remove
5663 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5664 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
5665 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5666 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
5667 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5668 For linear clause on worksharing loop combined with parallel add
5669 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
5670 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
5671 omp_member_access_dummy_var vars. Add lastprivate clause to outer
5673 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5674 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5675 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5677 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
5678 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5679 in target body. Handle removal of struct mapping if struct is not
5680 seen in target body. Remove GOMP_MAP_STRUCT map clause on
5681 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
5682 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
5683 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5684 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5685 clause appear together. Handle
5686 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
5687 clause if it has map-type-modifier always. Handle
5688 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5690 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5691 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5693 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
5694 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
5695 iterators in doacross loops.
5696 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5697 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
5698 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
5699 for the addition of ORT_COMBINED_TARGET.
5700 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5701 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
5702 and OMP_TARGET_EXIT_DATA.
5703 (gimplify_omp_ordered): New function.
5704 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5705 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
5706 Gimplify clauses on OMP_CRITICAL.
5707 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5708 expand_GOMP_SIMD_ORDERED_END): New functions.
5709 * internal-fn.def (GOMP_SIMD_ORDERED_START,
5710 GOMP_SIMD_ORDERED_END): New internal functions.
5711 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5712 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5713 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5714 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5715 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5716 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5717 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5718 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5719 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5720 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5721 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5722 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5723 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5724 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5726 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5727 GOMP_target_data_41, adjust type.
5728 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5729 GOMP_target_update_41, adjust type.
5730 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5732 (struct omp_for_data): Add ordered and simd_schedule fields.
5733 (omp_member_access_dummy_var, unshare_and_remap_1,
5734 unshare_and_remap, is_taskloop_ctx): New functions.
5735 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5736 (extract_omp_for_data): Handle taskloops and doacross loops
5737 and simd schedule modifier.
5738 (omp_adjust_chunk_size): New function.
5739 (get_ws_args_for): Use it.
5740 (lookup_sfield): Change first argument to splay_tree_key,
5741 add overload with first argument tree.
5742 (maybe_lookup_field): Likewise.
5743 (use_pointer_for_field): Handle omp_member_access_dummy_var.
5744 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5745 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5746 (build_outer_var_ref): Add LASTPRIVATE argument, handle
5747 taskloops and omp_member_access_dummy_var vars.
5748 (build_sender_ref): Change first argument to splay_tree_key,
5749 add overload with first argument tree.
5750 (install_var_field): For mask & 8 use &DECL_UID as key instead
5752 (fixup_child_record_type): Const qualify *.omp_data_i.
5753 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5754 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5755 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5756 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5757 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5758 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5759 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5761 (add_taskreg_looptemp_clauses): New function.
5762 (scan_omp_parallel): Use it.
5763 (scan_omp_task): Likewise.
5764 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5765 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5766 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5767 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
5768 sandwiched taskloop constructs. Type check
5769 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
5770 region. Diagnose depend(source) or depend(sink:...) on
5771 target constructs or task/taskloop.
5772 (handle_simd_reference): Use get_name.
5773 (lower_rec_input_clauses): Likewise. Ignore all
5774 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5775 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
5776 before passing it to omp_clause_{default,copy}_ctor. Handle
5777 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
5778 lastprivate_firstprivate flag for linear that needs copyin and
5779 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5780 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5781 on taskloop lookup decl in outer context. Pass true to
5782 build_outer_var_ref lastprivate argument. Handle
5783 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5784 outside of outer taskloop for.
5785 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5787 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5788 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
5789 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
5790 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
5791 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5792 abstract origin. Handle omp_member_access_dummy_var vars.
5793 (expand_parallel_call): Use expand_omp_build_assign.
5794 (expand_task_call): Handle taskloop construct expansion. Add
5795 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
5796 integers. Add priority argument to GOMP_task* calls. Or in
5797 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5799 (expand_omp_build_assign): Add prototype. Add AFTER
5800 argument, if true emit statements after *GSI_P and continue linking.
5801 (expand_omp_taskreg): Adjust expand_task_call caller.
5802 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5803 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5804 zero_iter2_bb and first_zero_iter2 arguments, handle computation
5805 of counts even for ordered loops.
5806 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5807 (expand_omp_ordered_source, expand_omp_ordered_sink,
5808 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5810 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
5811 clauses on worksharing loop. Handle DOACROSS loop expansion.
5812 (expand_omp_for_static_nochunk): Handle linear clauses on
5813 worksharing loop. Adjust expand_omp_for_init_counts
5815 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
5816 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
5817 expand_omp_for_init_counts callers.
5818 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5820 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5821 Handle doacross loops.
5822 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5823 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
5824 GOMP_target_{41,update_41,enter_exit_data} libcalls.
5825 (expand_omp): Don't expand ordered depend constructs here, record
5826 ord_stmt instead for later expand_omp_for_generic.
5827 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5828 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5829 clause as stand-alone directive.
5830 (lower_omp_ordered_clauses): New function.
5831 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5832 don't lower anything.
5833 (lower_omp_for_lastprivate): Use last _looptemp_ clause
5834 on taskloop for comparison.
5835 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
5836 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5837 expansion for linear adjustments.
5838 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5839 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5840 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
5841 to tree * pointing to the stmt's clauses.
5842 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5843 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5844 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5845 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5846 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5847 clauses. Always use short kind and 8-bit align shift.
5848 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5849 (struct lower_omp_regimplify_operands_data): New type.
5850 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5852 (lower_omp_1): Use lower_omp_regimplify_operands instead of
5853 gimple_regimplify_operands.
5854 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5855 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5856 clause as stand-alone directive.
5857 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5858 (simd_clone_mangle): Mangle the various linear kinds
5860 (simd_clone_adjust_argument_types): Handle
5861 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5862 (simd_clone_init_simd_arrays): Don't do anything for uval.
5863 (simd_clone_adjust): Handle
5864 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5865 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5866 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5867 * omp-low.h (omp_member_access_dummy_var): New prototype.
5868 * passes.def (pass_simduid_cleanup): Schedule another copy of the
5869 pass after all optimizations.
5870 * tree.c (omp_clause_code_name): Add entries for
5871 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5872 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5873 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
5874 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5875 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5876 OMP_CLAUSE_REDUCTION 5 arguments. Handle
5877 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5878 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5880 * tree-core.h (enum omp_clause_linear_kind): New.
5881 (struct tree_omp_clause): Change type of map_kind
5882 from unsigned char to unsigned int. Add subcode.if_modifier
5883 and subcode.linear_kind fields.
5884 (enum omp_clause_code): Add
5885 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5886 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5887 (OMP_CLAUSE_REDUCTION): Document
5888 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5889 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5890 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5891 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
5893 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
5895 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5897 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5898 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5900 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5901 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5902 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5903 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5904 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5905 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5906 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5907 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5908 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5909 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5910 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5911 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5912 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5913 * tree-inline.c (remap_gimple_stmt): Handle clauses on
5914 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
5915 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5916 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5917 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5918 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5919 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5920 (convert_local_omp_clauses): Likewise.
5921 * tree-pretty-print.c (dump_omp_clause): Handle
5922 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5923 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5924 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5925 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5926 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
5927 GOMP_MAP_FORCE_DEALLOC. Handle
5928 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5929 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5930 and clauses on OMP_ORDERED and OMP_CRITICAL.
5931 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5932 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5933 (vectorize_loops): Adjust comments.
5934 (pass_simduid_cleanup::execute): Likewise.
5935 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5936 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5937 * wide-int.h (wi::gcd): New.
5939 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5941 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5942 (ix86_function_arg_advance): Ditto.
5943 (ix86_function_arg): Ditto.
5944 (ix86_gimplify_va_arg): Ditto.
5945 (ix86_class_max_nregs): Ditto.
5946 (inline_memory_move_cost): Ditto.
5947 (ix86_set_reg_reg_cost): Ditto.
5948 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5950 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
5953 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5955 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5957 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5958 ROUND_UP macro and UNITS_PER_WORD * 2.
5959 * config/sparc/sparc.c (sparc_compute_frame_size):
5960 Use ROUND_UP and ROUND_DOWN macros where applicable.
5961 (function_arg_record_value, function_arg_record_value_1)
5962 (function_arg_record_value_1): Ditto.
5963 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5964 alignment to double-word.
5965 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5966 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5969 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
5971 * rtl.h (print_insn): Fix prototype.
5973 2015-10-13 Tom de Vries <tom@codesourcery.com>
5975 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5976 -1. Add assert that returned entry matches phi argument.
5977 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5978 free_stmt_vec_info_vec ...
5979 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
5982 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
5984 PR tree-optimization/67909, 67947
5985 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5986 really skip the inner loop.
5988 2015-10-13 Jeff Law <law@redhat.com>
5990 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5991 Allow single block jump threading paths.
5993 2015-10-13 Tom de Vries <tom@codesourcery.com>
5995 PR tree-optimization/67476
5996 * doc/invoke.texi (@item parloops-schedule): New item.
5997 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5998 * tree-parloops.c: Include params-enum.h.
5999 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6001 2015-10-13 Tom de Vries <tom@codesourcery.com>
6003 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6004 * params-enum.h: New file.
6005 * opts.c (handle_param): Handle case that param arg is a string.
6006 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6007 * params.c (find_param): New function, factored out of ...
6008 (set_param_value): ... here.
6009 (param_string_value_p): New function.
6010 * params.h (struct param_info): Add value_names field.
6011 (find_param, param_string_value_p): Declare.
6013 2015-10-13 Tom de Vries <tom@codesourcery.com>
6015 PR tree-optimization/67476
6016 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6018 2015-10-13 Richard Biener <rguenther@suse.de>
6020 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6021 the data dependence vector.
6022 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6023 (vect_peeling_hash_get_lowest_cost): Likewise.
6024 (vect_enhance_data_refs_alignment): Adjust.
6025 (struct _vect_peel_info, struct _vect_peel_extended_info,
6026 struct peel_info_hasher): Move from ...
6027 * tree-vectorizer.h: ... here.
6028 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6029 (LOOP_VINFO_PEELING_HTAB): Likewise.
6030 (struct _loop_vec_info): Remove min_profitable_iters and
6031 peeling_htab members.
6032 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6034 (destroy_loop_vec_info): Adjust.
6035 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6036 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6037 to estimate alias versioning cost.
6038 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6040 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6042 * real.h (real_isinteger): Declare.
6043 * real.c (real_isinteger): New function.
6044 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6045 if y is an even integer.
6047 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6050 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6051 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6052 counts when these are more informative.
6054 2015-10-12 Jeff Law <law@redhat.com>
6056 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6057 (fsm_find_control_stmt_paths): Change name of first argument to
6058 more accurately relfect what it really is. Handle simplification
6059 of GIMPLE_COND after finding a thread path for NAME.
6060 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6061 nontrivial conditions to be handled by FSM threader.
6062 (thread_through_normal_block): Extract the name to looup via
6063 FSM threader from COND_EXPR.
6065 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6066 restriction that traced SSA_NAME is a user variable.
6068 2015-10-12 Tom de Vries <tom@codesourcery.com>
6070 PR tree-optimization/67476
6071 * omp-low.c (expand_omp_for_generic): Add missing phis.
6073 2015-10-12 Tom de Vries <tom@codesourcery.com>
6075 PR tree-optimization/67476
6076 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6078 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6080 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6081 tables: add tbl3 and tbx4.
6082 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6083 (aarch64_tbx4v8qi): New.
6084 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6085 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6086 Rewrite using builtin functions.
6087 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6089 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6091 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6093 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6094 Use ROUND_UP and ROUND_DOWN macros where applicable.
6095 (rs6000_darwin64_record_arg_flush): Ditto.
6096 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6097 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6100 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6102 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6103 (AARCH64_ROUND_DOWN): Ditto.
6104 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6106 2015-10-12 Richard Biener <rguenther@suse.de>
6109 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6110 code that analyzes IVs on each stmt but in a cheaper way avoiding
6113 2015-10-12 Nick Clifton <nickc@redhat.com>
6115 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6116 msp430_mcu_data, add fields for ISA and hardware multiply
6117 support. Import latest data from the devices.csv file.
6118 (msp430_override_option): Use the data from the new array.
6119 (msp430_use_f5_series_hwmult): Likewise.
6120 (use_32bit_hwmult): Likewise.
6121 (msp430_no_hwmult): Likewise.
6122 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6124 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6125 not recognised then no hardware multiply support is assumed and
6126 that only the MSP430 ISA is allowed.
6128 2015-10-12 Richard Biener <rguenther@suse.de>
6130 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6132 (vect_analyze_loop_2): ... here.
6134 2015-10-11 Jason Merrill <jason@redhat.com>
6137 * expr.c (store_field): Call store_constructor directly when
6138 storing a CONSTRUCTOR into a target smaller than its type.
6139 Guard against unsafe bitwise copy.
6141 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6143 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6144 counts when these are more informative.
6146 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6148 * tree-profile.c (tree_profiling): Do not clear
6149 pure/const when not instrumenting.
6150 (pass tree_profile): Add dump of symtab.
6152 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6154 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6156 (fold_addr_of_array_ref_difference): Likewise.
6158 2015-10-11 Jeff Law <law@redhat.com>
6160 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6161 tree-ssa-threadbackward.c.
6162 (fsm_find_control_statement_thread_paths): Likewise.
6163 (thread_through_normal_block): Break out FSM bits and move them
6164 into a new function in tree-ssa-threadbackward.c. Call new function
6166 Minimize header file usage.
6167 * tree-ssa-threadbackward.h: New file.
6168 * tree-ssa-threadbackward.c: Likewise.
6169 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6171 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
6173 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6175 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
6177 PR rtl-optimization/67864
6178 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6179 fallthrough edges for conditional jumps. Don't sort candidate
6180 edges if not optimizing for speed.
6182 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6184 * defaults.h (REVERSE_CONDITION): New default definition.
6185 * jump.c (reversed_comparison_code_parts): Adjust.
6187 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6189 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6190 check HARD_FRAME_POINTER_IS_ARG_POINTER.
6192 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6194 * defaults.h (FRAME_ADDR_RTX): New default definition.
6195 * builtins.c (expand_builtin_return_addr): Adjust.
6197 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6199 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6200 * builtins.c (expand_builtin_return_addr): Adjust.
6202 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6204 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6205 * builtins.c (expand_builtin_return_addr): Adjust.
6206 * doc/tm.texi: Likewise.
6207 * doc/tm.texi.in: Likewise.
6208 * except.c (expand_builtin_unwind_init): Likewise.
6210 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6212 * builtins.c (expand_builtin_return_addr): Adjust.
6213 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6215 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6217 * tree.c (type_with_interoperable_signedness): New.
6218 (gimple_canonical_types_compatible_p): Use it.
6219 * tree.h (type_with_interoperable_signedness): Declare
6221 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6223 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6224 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6225 when OEP_ADDRESS_OF is se.
6227 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6228 Sebastian Pop <s.pop@samsung.com>
6230 * graphite-dependences.c (scop_get_dependences): Add dump of the
6231 data dependence graph.
6232 * graphite-poly.c (print_isl_union_map): New.
6233 (debug_isl_union_map): New.
6234 * graphite-poly.h (print_isl_union_map): Declare.
6235 (debug_isl_union_map): Declare.
6237 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6238 Sebastian Pop <s.pop@samsung.com>
6240 * graphite-poly.c (print_iteration_domain): Remove verbosity.
6241 Remove OpenScop formatting.
6242 (print_iteration_domains): Same.
6243 (debug_iteration_domain): Same.
6244 (debug_iteration_domains): Same.
6247 (dump_gbb_cases): Same.
6248 (dump_gbb_conditions): Same.
6251 (print_pbb_body): Same.
6253 (print_scop_params): Same.
6254 (print_scop_context): Same.
6256 (debug_pbb_domain): Same.
6258 (debug_scop_context): Same.
6260 (debug_scop_params): Same.
6261 * graphite-poly.h: Same.
6262 * graphite.c (graphite_transform_loops): Same.
6264 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6266 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6267 call that isn't needed.
6269 2015-10-09 Jeff Law <law@redhat.com>
6271 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6272 rather than moving each name to the freelist individually.
6274 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
6276 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6277 * frame-header-opt.c: New file.
6278 * config/mips/mips-proto.h (mips_register_frame_header_opt):
6280 * config/mips/mips.c (mips_compute_frame_info): Check
6281 optimize_call_stack flag.
6282 (mips_option_override): Register new frame_header_opt pass.
6283 (mips_frame_info, mips_int_mask, mips_shadow_set,
6284 machine_function): Move these types to...
6285 * config/mips/mips.h: here.
6286 (machine_function): Add does_not_use_frame_header and
6287 optimize_call_stack fields.
6288 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6289 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6291 * config/mips/mips.opt (mframe-header-opt): Add new option.
6293 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
6295 * config/i386/i386.c
6296 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6297 ROUND_DOWN where applicable.
6299 2015-10-09 Jeff Law <law@redhat.com>
6301 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6304 2015-10-09 Renlin Li <renlin.li@arm.com>
6306 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6307 operands[0] and operands[2].
6308 (neon_vtrn<mode>_insn): Likewise.
6309 (neon_vzip<mode>_insn): Likewise.
6311 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
6313 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6314 ((X & C2) << C1): Expand to...
6315 (X {&,^,|} C2 << C1): ...This.
6316 ((X & C2) >> C1): Expand to...
6317 (X {&,^,|} C2 >> C1): ...This.
6319 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
6322 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6323 Adjust embedded rounding/SAE specifier position.
6324 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6325 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6326 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6327 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6328 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6330 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6332 2015-10-09 Martin Jambor <mjambor@suse.cz>
6334 tree-optimization/67794
6335 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6336 between types of state,ents but accept original definitions as a
6338 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6339 iterate over definitions.
6341 2015-10-09 James Norris <jnorris@codesourcery.com>
6343 * config/rs6000/rs6000.c (rs6000_offload_options): New.
6344 (TARGET_OFFLOAD_OPTIONS): New.
6346 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
6349 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6352 * function.c (expand_function_end): Move return value
6353 promotion past the handling of PARALLELs and CONCATs.
6355 PR rtl-optimization/67828
6356 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6357 (tree_may_unswitch_on): Don't unswitch on expressions
6358 involving undefined values.
6360 2015-10-09 Richard Biener <rguenther@suse.de>
6362 * genmatch.c (print_operand): Fix formatting.
6363 (dt_node::append_simplify): Warn for multiple simplifiers
6364 that match the same pattern.
6365 * match.pd (log (exp @0)): Remove duplicates.
6367 2015-10-09 Richard Biener <rguenth@suse.de>
6370 * gimple-fold.c (optabs-query.h): Include
6371 (gimple_fold_builtin_memory_op): Allow unaligned stores
6372 when movmisalign_optabs are available.
6374 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6377 * config/arm/arm.md (movmisalign<mode>): New.
6378 * config/arm/iterators.md (HSI): New.
6380 2015-10-09 Richard Biener <rguenther@suse.de>
6382 PR tree-optimization/67891
6383 * gimple-match.h (gimple_simplified_result_is_gimple_val):
6385 (gimple_resimplify1): Declare.
6386 (gimple_resimplify2): Likewise.
6387 (gimple_resimplify3): Likewise.
6388 * gimple-match-head.c (gimple_resimplify1): Export.
6389 (gimple_resimplify2): Likewise.
6390 (gimple_resimplify3): Likewise.
6391 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6392 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6393 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6394 to avoid creating stmts without VN info.
6396 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
6398 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6401 2015-10-08 Jeff Law <law@redhat.com>
6403 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6404 and release_ssa_name in two places.
6405 (gimple_stringop_fixed_value): Similarly.
6407 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6410 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6411 unlink_stmt_vdef and release_ssa_name_fn.
6413 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6416 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
6418 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6419 SSE register save area to 16 bytes only if the incoming stack
6420 boundary is no less than 16 bytes.
6422 2015-10-08 Jeff Law <law@redhat.com>
6424 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6425 release_ssa_name. Fix typo in comment.
6427 2015-10-08 Nathan Sidwell <nathan@acm.org>
6429 * config/nvptx/nvptx.h (struct machine_function): Add comment.
6430 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6431 may return pointer as well as in memory.
6432 (nvptx_output_return): Likewise.
6434 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6436 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6437 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6438 * match.pd: Add rules previously handled by fold_builtin_sqrt
6439 and fold_builtin_cbrt.
6441 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6443 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6444 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6445 * fold-const.h (tree_unary_nonnegative_warnv_p)
6446 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6447 (tree_expr_nonnegative_warnv_p): Add depth parameters.
6448 * fold-const.c: Include gimple-fold.h and params.h.
6449 (tree_ssa_name_nonnegative_warnv_p): New function.
6450 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6451 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6452 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6453 Add a depth parameter and increment it for recursive calls to
6454 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
6455 to handle SSA names.
6456 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6457 (gimple_stmt_nonnegative_warnv_p): Declare.
6458 * tree-vrp.c (remove_range_assertions): Remove assert that condition
6459 cannot be proven false.
6460 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6461 (gimple_stmt_nonnegative_warnv_p): Move to...
6462 * gimple-fold.c: ...here. Add depth parameters and pass them
6463 down to the tree routines. Accept statements that aren't
6464 assignments or calls but just return false for them.
6465 (gimple_val_nonnegative_real_p): Delete.
6466 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6467 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6468 Check HONOR_NANs first.
6470 2015-10-08 Martin Jambor <mjambor@suse.cz>
6472 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
6475 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6477 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6478 in the tail of outer-loop.
6480 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
6482 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6485 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6487 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6488 "cfghooks.h", add prototypes for introduced new functions.
6489 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6490 checks on ability of loop unswitching to tree_unswitch_single_loop;
6491 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6492 on innermost loop check.
6493 (tree_unswitch_single_loop): Add all required checks on ability of
6494 loop unswitching under zero recursive level guard.
6495 (tree_unswitch_outer_loop): New function.
6496 (find_loop_guard): Likewise.
6497 (empty_bb_without_guard_p): Likewise.
6498 (used_outside_loop_p): Likewise.
6499 (get_vop_from_header): Likewise.
6500 (hoist_guard): Likewise.
6501 (check_exit_phi): Likewise.
6503 2015-10-08 Marek Polacek <polacek@redhat.com>
6505 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6508 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6511 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6512 create_tmp_var_raw instead of create_tmp_var.
6514 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
6516 * expr.c (store_expr_with_bounds): Handle aggregate moves from
6518 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6519 to define gimple type system; compare aggregates only by size.
6521 2015-10-07 Jeff Law <law@redhat.com>
6523 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6524 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6525 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
6528 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6529 Sebastian Pop <s.pop@samsung.com>
6531 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6532 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6533 (generate_isl_schedule): Same.
6534 * graphite-optimize-isl.c (scop_get_domains): Same.
6535 (apply_schedule_map_to_scop): Same.
6536 * graphite-poly.c (print_iteration_domains): Same.
6537 (remove_gbbs_in_scop): Same.
6541 * graphite-poly.h (struct scop): Rename bbs to pbbs.
6543 * graphite-scop-detection.c (compare_bb_depths): Remove.
6544 (graphite_sort_dominated_info): Remove.
6545 (try_generate_gimple_bb): Move out of scop_detection.
6546 (all_non_dominated_preds_marked_p): Remove.
6547 (build_scop_bbs_1): Remove.
6548 (build_scop_bbs): Remove.
6549 (nb_pbbs_in_loops): Do not use SCOP_BBS.
6550 (find_scop_parameters): Same.
6551 (sese_dom_walker): Rename gather_bbs.
6552 (before_dom_children): Call try_generate_gimple_bb and collect gbb
6554 (build_scops): Call gather_bbs.
6555 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6556 (add_conditions_to_constraints): Same.
6557 (build_scop_iteration_domain): Same.
6558 (build_scop_drs): Same.
6559 (new_pbb_from_pbb): Same.
6560 * sese.c (new_sese_info): Create bbs.
6561 * sese.h (struct sese_info_t): Add bbs.
6563 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
6565 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6566 encoding in 64-bit mode.
6568 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
6571 * config/i386/i386.c (ix86_option_override_internal): Always use
6572 8-byte minimum stack boundary in 64-bit mode.
6573 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6574 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6575 Add a REG_CFA_EXPRESSION note if needed.
6576 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6577 (ix86_handle_force_align_arg_pointer_attribute): New.
6578 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6579 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6580 with ix86_handle_force_align_arg_pointer_attribute.
6581 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6583 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6584 Sebastian Pop <s.pop@samsung.com>
6586 * graphite-scop-detection.c (parameter_index_in_region): Remove
6587 use of SESE_ADD_PARAMS.
6588 (find_scop_parameters): Same.
6589 * sese.c (new_sese_info): Same.
6590 * sese.h (struct sese_info_t): Remove add_params.
6591 (SESE_ADD_PARAMS): Remove.
6593 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6594 Sebastian Pop <s.pop@samsung.com>
6596 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6599 (copy_internal_parameters): Same.
6600 (translate_isl_ast_to_gimple): Use an sese_l.
6601 (build_iv_mapping): Same.
6602 * graphite-poly.c (new_sese): Rename new_sese_info.
6603 (free_sese): Rename free_sese_info.
6604 * graphite-poly.h (struct scop): Use an sese_info_p.
6605 (scop_set_region): Same.
6606 * graphite-scop-detection.c (struct sese_l): Moved...
6607 (get_entry_bb): Moved...
6608 (get_exit_bb): Moved...
6609 (parameter_index_in_region_1): Use an sese_info_p.
6610 (parameter_index_in_region): Same.
6611 (scan_tree_for_params): Same.
6612 (find_params_in_bb): Same.
6613 (sese_dom_walker): Use an sese_l.
6614 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6615 (reduction_phi_p): Same.
6616 (parameter_index_in_region_1): Use an sese_info_p.
6617 (propagate_expr_outside_region): Use an sese_l.
6618 * graphite.c: Replace uses of SCOP_REGION.
6619 * sese.c (sese_record_loop): Use an sese_info_p.
6620 (build_sese_loop_nests): Same.
6621 (sese_build_liveouts_use): Same.
6622 (sese_build_liveouts_bb): Same.
6623 (sese_build_liveouts_bb): Same.
6624 (sese_bad_liveouts_use): Same.
6625 (sese_reset_debug_liveouts_bb): Same.
6626 (sese_build_liveouts): Same.
6627 (new_sese): Renamed new_sese_info.
6628 (free_sese): Renamed free_sese_info.
6629 (set_rename): Use an sese_info_p.
6630 (graphite_copy_stmts_from_block): Same.
6631 (copy_bb_and_scalar_dependences): Same.
6632 (outermost_loop_in_sese_1): Use an sese_l.
6633 (outermost_loop_in_sese): Same.
6634 (if_region_set_false_region): Use an sese_info_p.
6635 (move_sese_in_condition): Same.
6636 (scalar_evolution_in_region): Use an sese_l.
6637 * sese.h (struct sese_l): ... here.
6638 (SESE_ENTRY): Remove.
6639 (SESE_ENTRY_BB): Remove.
6640 (SESE_EXIT): Remove.
6641 (SESE_EXIT_BB): Remove.
6642 (sese_contains_loop): Use an sese_info_p.
6643 (sese_nb_params): Same.
6644 (bb_in_sese_p): Use an sese_l.
6645 (stmt_in_sese_p): Same.
6646 (defined_in_sese_p): Same.
6647 (loop_in_sese_p): Same.
6648 (sese_loop_depth): Same.
6649 (struct ifsese_s): Use an sese_info_p.
6650 (gbb_loop_at_index): Use an sese_l.
6651 (nb_common_loops): Same.
6652 (scev_analyzable_p): Same.
6654 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6656 * config/i386/i386.c (ix86_conditional_register_usage): Use
6657 CALL_USED_REGISTERS_MASK.
6658 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6660 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6663 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6664 * configure: Regenerated.
6666 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6669 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6670 (ix86_set_current_function): This.
6671 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6673 2015-10-07 Richard Biener <rguenther@suse.de>
6675 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6676 (vinfo_for_stmt): Adjust.
6677 (set_vinfo_for_stmt): Likewise.
6678 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6679 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6680 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6682 (vect_analyze_loop_1): Remove.
6683 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6684 inner loop when vectorizing an outer loop by splitting out from ...
6685 (vect_analyze_loop_form): ... here.
6687 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6690 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6691 Use create_tmp_var_raw instead of create_tmp_var.
6693 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
6695 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6696 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6697 * real.c (CACHED_FRACTION): New helper macro.
6698 (dconst_third_ptr): Use it.
6699 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6700 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6702 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6704 2015-10-06 Jeff Law <law@redhat.com>
6706 PR tree-optimization/67816
6707 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6708 from remove_jump_threads_starting_at. Accept an edge rather than
6710 * tree-ssa-threadupdate.c (removed_edges): New hash table.
6711 (remove_jump_threads_including): Note edges that get removed from
6712 the CFG for later pruning of jump threading paths including them.
6713 (thread_through_all_blocks): Remove paths which include edges that
6715 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6716 on each outgoing edges when optimizing away a control statement.
6718 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6720 * reorg.c (emit_delay_sequence): Store list of delay slot insns
6721 in a vector instead of rtx_insn_list.
6722 (add_to_delay_list): Likewise.
6723 (delete_from_delay_slot): Likewise.
6724 (optimize_skip): Likewise.
6725 (redirect_with_delay_list_safe_p): Likewise.
6726 (check_annul_list_true_false): Likewise.
6727 (steal_delay_list_from_target): Likewise.
6728 (steal_delay_list_from_fallthrough): Likewise.
6729 (redundant_insn): Likewise.
6730 (fill_simple_delay_slots): Likewise.
6731 (fill_slots_from_thread): Likewise.
6732 (fill_eager_delay_slots): Likewise.
6733 (relax_delay_slots): Likewise.
6735 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
6737 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6738 For -mgpopt=local, also exclude unintialized common symbols.
6739 * doc/invoke.texi (Nios II Options): Document the change.
6741 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6743 * config/aarch64/iterators.md (vwcore): Add missing cases for
6746 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6747 Sebastian Pop <s.pop@samsung.com>
6749 * graphite-poly.c (new_scop): Initialize drs.
6750 * graphite-poly.h (struct dr_info): New.
6751 (struct scop): Add drs.
6752 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6753 (pdr_add_memory_accesses): Same.
6754 (build_poly_dr): Same.
6755 (build_alias_set): Same.
6756 (build_scop_drs): Same.
6757 (build_pbb_drs): Remove.
6758 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6759 * tree-data-ref.h (data_reference): Remove alias_set.
6761 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6762 Sebastian Pop <s.pop@samsung.com>
6764 * graphite-poly.c (free_data_refs_aux): Remove.
6765 (free_gimple_poly_bb): Do not call free_data_refs_aux.
6766 * graphite-poly.h (struct base_alias_pair): Remove.
6767 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6768 base_alias_pair and dr->aux.
6769 (build_alias_set): Same.
6770 * tree-data-ref.c (create_data_ref): Initialize alias_set.
6771 * tree-data-ref.h (data_reference): Add alias_set.
6773 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6774 Sebastian Pop <s.pop@samsung.com>
6776 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6777 Do not set PDR_BASE_OBJECT_SET.
6778 * graphite-poly.h (poly_dr): Same.
6779 (PDR_BASE_OBJECT_SET): Remove.
6780 (new_poly_dr): Update decl.
6781 * graphite-sese-to-poly.c (build_poly_dr): Update call to
6783 (write_alias_graph_to_ascii_dimacs): Remove.
6784 (write_alias_graph_to_ascii_dot): Remove.
6785 (write_alias_graph_to_ascii_ecc): Remove.
6786 (dr_same_base_object_p): Remove.
6787 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
6789 (build_base_obj_set_for_drs): Remove.
6790 (dump_alias_graphs): Remove.
6791 (build_scop_drs): Remove dead code.
6793 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6794 Peter Bergner <bergner@vnet.ibm.com>
6797 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6798 allow registers, but provide insns for the combiner to create for
6799 loads from memory. Separate VSX code from non-VSX code. For
6800 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6801 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6802 so that registers come before memory operations. Drop support from
6803 converting DFmode to TFmode, if the DFmode value is in a GPR
6805 (extenddftf2_fprs): Likewise.
6806 (extenddftf2_internal): Likewise.
6807 (extenddftf2_vsx): Likewise.
6808 (extendsftf2): In the expander, only allow registers, but provide
6809 insns for the combiner to create for stores and loads.
6811 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6813 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6814 from the decl parameter.
6816 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
6819 * gimple-fold.c (gimple_fold_builtin): Add break after
6820 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6822 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
6824 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6825 to scop->isl_context.
6827 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6829 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6830 (output_probe_stack_range): Rotate the loop and simplify.
6831 (thumb1_expand_prologue): Tweak sorry message.
6832 * config/arm/arm.md (probe_stack): Use bare string.
6834 2015-10-06 Nick Clifton <nickc@redhat.com>
6836 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6838 2015-10-06 Nick Clifton <nickc@redhat.com>
6840 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6841 (ATTR_PERSIST): New constant.
6842 (msp430_data_attr): New function - verifies an attribute that only
6843 applies to variables.
6844 (msp430_attributes): Add noinit and persistent attributes.
6845 (noinit_section): New variable.
6846 (presis_section): New variable.
6847 (TARGET_ASM_INIT_SECTIONS): Define.
6848 (msp430_init_sections): New function - initialises the noinit and
6849 persist section variables.
6850 (msp430_select_section): Add support for noinit and persist
6852 (msp430_section_type_flags): Likewise.
6853 * doc/extend.texi: Document the reent, critical, wakeup, noinit
6854 and persistent attributes.
6856 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6857 Sebastian Pop <s.pop@samsung.com>
6859 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6860 (no_violations): Remove.
6861 (subtract_commutative_associative_deps): Remove.
6862 (compute_deps): Do not call subtract_commutative_associative_deps.
6863 (transform_is_safe): Remove.
6864 (graphite_legal_transform): Remove.
6865 * graphite-poly.h (graphite_legal_transform): Remove.
6867 2015-10-05 Aditya Kumar <hiraditya@msn.com>
6869 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6870 which are in this region are passed so gcc_assert and remove redundant
6872 * sese.c (sese_build_liveouts): Pass only those bbs which are not
6874 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6875 gcc_assert on that and remove unnecessary computation.
6876 (sese_build_liveouts_use): Same.
6878 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6880 * graphite-dependences.c (scop_get_reads): Renamed scop->context
6881 to scop->param_context.
6882 (scop_get_must_writes): Same.
6883 (scop_get_may_writes): Same.
6884 (scop_get_original_schedule): Same.
6885 (scop_get_transformed_schedule): Same.
6886 (subtract_commutative_associative_deps): Same.
6887 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6888 (generate_isl_context): Same.
6889 (generate_isl_schedule): Same.
6890 (scop_to_isl_ast): Same.
6891 (graphite_regenerate_ast_isl): Same.
6892 * graphite-optimize-isl.c (scop_get_domains): Same.
6893 (optimize_isl): Renamed scop->context to scop->param_context.
6894 * graphite-poly.c (new_poly_bb): Change the type of argument to
6896 (new_scop): Renamed scop->context to scop->param_context.
6898 (print_scop_context): Same.
6899 * graphite-poly.h (new_poly_dr): Change the type of argument from
6900 void* to data_reference_p.
6901 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6902 (new_poly_bb): Change the type of argument from void* to
6904 (pbb_set_black_box): Same.
6905 (struct scop): Rename context to param_context, ctx to isl_context.
6906 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6907 Move declarations closer to assignment.
6908 (find_params_in_bb): Same.
6909 (find_scop_parameters): Same.
6910 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6911 Global to be used for statement IDs.
6912 (isl_id_for_pbb): Use ssa_name_version_typesize.
6913 (simple_copy_phi_p): Move declarations closer to assignment.
6914 (build_pbb_scattering_polyhedrons): Same.
6915 (build_scop_scattering): Same.
6916 (isl_id_for_ssa_name): Same.
6917 (extract_affine_name): Same.
6918 (extract_affine_int): Same.
6919 (extract_affine): Same.
6920 (set_scop_parameter_dim): Use renamed member.
6921 (build_loop_iteration_domains): Same.
6922 (add_param_constraints): Same.
6923 (build_scop_iteration_domain): Same.
6924 (pdr_add_data_dimensions): Same.
6925 (build_poly_dr): Same.
6926 (build_scop_drs): Move declarations closer to assignment.
6927 (analyze_drs_in_stmts): Same.
6928 (insert_out_of_ssa_copy): Same.
6929 (insert_out_of_ssa_copy_on_edge): Same.
6930 (propagate_expr_outside_region): Same.
6931 (rewrite_phi_out_of_ssa): Same.
6932 (rewrite_degenerate_phi): Same.
6933 (rewrite_reductions_out_of_ssa): Same.
6934 (rewrite_cross_bb_scalar_dependence): Same.
6935 (handle_scalar_deps_crossing_scop_limits): Same.
6936 (rewrite_cross_bb_scalar_deps): Same.
6937 * graphite.c (graphite_transform_loops): Use renamed member.
6939 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
6942 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6943 create_tmp_var_raw instead of create_tmp_var.
6945 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6948 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6949 Use create_tmp_var_raw instead of create_tmp_var.
6951 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
6954 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6955 split for upper-bank registers when target does not support
6957 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6958 split when target does not support AVX512VL.
6960 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
6963 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6964 Adjust to use create_tmp_var_raw instead of create_tmp_var.
6966 2015-10-06 Nick Clifton <nickc@redhat.com>
6968 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6971 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6973 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6974 (case ${target}): Add znver1.
6975 * config/i386/cpuid.h(bit_CLZERO): Define.
6976 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6977 -march=native recognize znver1 processors.
6978 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6979 znver1, clzero def_and_undef.
6980 * config/i386/i386.c (struct processor_costs znver1_cost): New.
6981 (m_znver1): New definition.
6982 (m_AMD_MULTIPLE): Includes m_znver1.
6983 (processor_target_table): Add znver1 entry.
6984 (ix86_target_string) : Add clzero entry.
6985 (static const char *const cpu_names): Add znver1 entry.
6986 (ix86_option_override_internal): Add znver1 instruction sets.
6987 (PTA_CLZERO) : New definition.
6988 (ix86_option_override_internal): Handle new clzerooption.
6989 (ix86_issue_rate): Add znver1.
6990 (ix86_adjust_cost): Add znver1.
6991 (ia32_multipass_dfa_lookahead): Add znver1.
6992 (has_dispatch): Add znver1.
6993 * config/i386/i386.h (TARGET_znver1): New definition.
6994 (TARGET_CLZERO): Define.
6995 (TARGET_CLZERO_P): Define.
6996 (struct ix86_size_cost): Add TARGET_ZNVER1.
6997 (enum processor_type): Add PROCESSOR_znver1.
6998 * config/i386/i386.md (define_attr "cpu"): Add znver1.
6999 (set_attr znver1_decode): New definitions for znver1.
7000 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7002 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7004 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7005 * config/i386/x86-tune.def: Add znver1 tunings.
7006 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7007 * doc/invoke.texi: Add details about znver1
7009 2015-10-06 Richard Biener <rguenther@suse.de>
7011 PR tree-optimization/67859
7012 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7013 discard not inserted stmts.
7015 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7017 * doc/extend.texi (Template Instantiation): Reorder options and
7018 de-emphasize -frepo.
7019 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7020 example instead of -frepo.
7022 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7025 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7026 use create_tmp_var_raw rather than create_tmp_var.
7028 2015-10-06 Richard Biener <rguenther@suse.de>
7030 * tree-vectorizer.h (vec_info): New base class for...
7031 (_loop_vec_info): ... this and ...
7032 (_bb_vec_info): ... this.
7033 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7034 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7035 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7036 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7037 vect_destroy_datarefs): Adjust interface to take a vec_info *
7038 rather than both a loop_vec_info and a bb_vec_info argument.
7039 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7040 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7041 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7042 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7044 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7045 (destroy_loop_vec_info, vect_analyze_loop_2,
7046 vect_is_simple_reduction_1, get_initial_def_for_induction,
7047 vect_create_epilog_for_reduction, vectorizable_reduction,
7048 vectorizable_live_operation, vect_transform_loop): Adjust.
7049 * tree-vect-patterns.c (type_conversion_p,
7050 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7051 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7052 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7053 check_bool_pattern, vect_recog_bool_pattern,
7054 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7055 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7056 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7057 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7058 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7059 (new_bb_vec_info): Initialize base classs.
7060 * tree-vect-stmts.c (record_stmt_cost, process_use,
7061 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7062 vectorizable_mask_load_store, vectorizable_call,
7063 vectorizable_simd_clone_call, vectorizable_conversion,
7064 vectorizable_assignment, vectorizable_shift,
7065 vectorizable_operation, vectorizable_store,
7066 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7067 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7068 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7070 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7073 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7074 create_tmp_var_raw rather than create_tmp_var.
7076 2015-10-05 Marek Polacek <polacek@redhat.com>
7078 * tree-ssa-loop-im.c
7079 (move_computations_dom_walker::before_dom_children): Don't set
7080 SSA_NAME_ANTI_RANGE_P.
7081 * tree-ssa-phiopt.c (value_replacement): Likewise.
7083 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7084 Sebastian Pop <s.pop@samsung.com>
7086 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7088 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7089 Sebastian Pop <s.pop@samsung.com>
7091 * graphite-poly.c (new_gimple_poly_bb): ... here.
7092 (free_data_refs_aux): ... here.
7093 (free_gimple_poly_bb): ... here.
7094 (remove_gbbs_in_scop): ... here.
7095 (new_scop): Call new_sese.
7096 (free_scop): Call remove_gbbs_in_scop and free_sese.
7097 * graphite-poly.h (base_alias_pair): ... here.
7098 (new_gimple_poly_bb): Declare.
7099 (free_gimple_poly_bb): Declare.
7100 * graphite-scop-detection.c (parameter_index_in_region_1):
7101 (parameter_index_in_region): ... here.
7102 (scan_tree_for_params): ... here.
7103 (find_params_in_bb): ... here.
7104 (find_scop_parameters): ... here.
7105 (build_scops): Call find_scop_parameters.
7106 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7107 (free_scops): Move...
7108 (single_pred_cond_non_loop_exit): Move...
7109 (sese_dom_walker::before_dom_children): Move...
7110 (sese_dom_walker::after_dom_children): Move...
7111 (build_poly_scop): Move...
7112 * graphite-sese-to-poly.h (base_alias_pair): Move...
7113 * graphite.c (free_scops): ... here.
7115 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7116 Sebastian Pop <s.pop@samsung.com>
7118 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7119 (trivially_empty_bb_p): Move...
7120 (same_close_phi_node): Move...
7121 (new_gimple_poly_bb): Move...
7122 (compare_bb_depths): Move...
7123 (graphite_sort_dominated_info): Move...
7124 (remove_duplicate_close_phi): Move...
7125 (make_close_phi_nodes_unique): Move...
7126 (canonicalize_loop_closed_ssa): Move...
7127 (canonicalize_loop_closed_ssa_form): Move...
7128 (loop_ivs_can_be_represented): Move...
7129 (single_pred_cond_non_loop_exit): Move...
7130 (graphite_can_represent_init): Move...
7131 (graphite_can_represent_scev): Move...
7132 (stmt_has_simple_data_refs_p): Move...
7133 (stmt_has_side_effects): Move...
7134 (graphite_can_represent_stmt): Move...
7135 (scop_detection): ... here.
7136 (sese_dom_walker): ... and here.
7137 (build_scops): Call all moved functions.
7138 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7139 (all_non_dominated_preds_marked_p): Move...
7140 (build_scop_bbs_1): Move...
7141 (build_scop_bbs): Move...
7142 (set_scop_parameter_dim): Move...
7143 (nb_pbbs_in_loops): Move...
7144 (build_poly_scop): Do not call all the moved functions.
7146 2015-10-05 Martin Jambor <mjambor@suse.cz>
7147 Jan Hubicka <hubicka@ucw.cz>
7149 * ipa-cp.c (ipcp_alignment_lattice): New type.
7150 (ipcp_param_lattices): Use the above to represent alignment.
7151 (ipcp_alignment_lattice::print): New function.
7152 (print_all_lattices): Use it to print alignment information.
7153 (ipcp_alignment_lattice::top_p): New function.
7154 (ipcp_alignment_lattice::bottom_p): Likewise.
7155 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7156 (ipcp_alignment_lattice::meet_with_1): Likewise.
7157 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7158 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7159 (initialize_node_lattices): Likewise.
7160 (propagate_alignment_accross_jump_function): Work with the new class
7161 for alignment lattices.
7162 (propagate_constants_accross_call): Pass only the alignment lattice to
7163 propagate_alignment_accross_jump_function.
7164 (ipcp_store_alignment_results): Work with the new class for alignment
7167 2015-10-05 Marek Polacek <polacek@redhat.com>
7169 PR tree-optimization/67821
7170 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7172 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
7175 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7177 (mkoffload_cleanup): ... this. Adjust all users.
7178 (maybe_unlink): Look at save_temps and verbose flags instead of
7180 (main): Parse "-save-temps" flag.
7181 (generate_target_descr_file, generate_target_offloadend_file)
7182 (generate_host_descr_file, prepare_target_image): Pass it on.
7183 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7184 (mkoffload_cleanup): New function.
7185 (maybe_unlink): Look at save_temps and verbose flags instead of
7187 (main): Instead of calling utils_cleanup, register atexit handler
7188 for mkoffload_cleanup.
7189 (main): Parse "-save-temps" flag.
7190 (compile_native, main): Pass it on.
7191 * lto-wrapper.c (compile_offload_image): Likewise.
7193 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7195 * gimple.h (gimple_op_ptr): Require a non const gimple *.
7196 (gimple_assign_lhs_ptr): Likewise.
7197 (gimple_assign_rhs1_ptr): Likewise.
7198 (gimple_assign_rhs2_ptr): Likewise.
7199 (gimple_assign_rhs3_ptr): Likewise.
7200 (gimple_call_lhs_ptr): Likewise.
7201 (gimple_call_fn_ptr): Likewise.
7202 (gimple_call_chain_ptr): Likewise.
7203 (gimple_call_arg_ptr): Likewise.
7204 (gimple_cond_lhs_ptr): Likewise.
7205 (gimple_cond_rhs_ptr): Likewise.
7206 (gimple_switch_index_ptr): Likewise.
7207 (gimple_return_retval_ptr): Likewise.
7209 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7211 * gimple.h (gimple_asm_input_op_ptr): Remove.
7212 (gimple_asm_output_op_ptr): Likewise.
7214 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7216 * gimple.h (gimple_location_ptr): Remove.
7217 * tree-vrp.c (check_all_array_refs): Adjust.
7219 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7221 * tree-ssa-operands.c (build_uses): store tree * instead of
7223 (finalize_ssa_uses): Adjust.
7224 (append_use): Likewise.
7225 (verify_ssa_operands): Likewise.
7227 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7229 * real.h (build_real_truncate): Declare.
7230 * tree.c (build_real_truncate): New function.
7231 (strip_float_extensions): Use it.
7232 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7233 (fold_builtin_hypot, fold_builtin_pow): Likewise.
7234 * match.pd: Likewise.
7236 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7237 Jiong Wang <jiong.wang@arm.com>
7239 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7241 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7243 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7244 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7245 (aarch64_print_operand, aarch64_float_const_representable_p)
7246 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7247 instead of REAL_VALUE_FROM_CONST_DOUBLE.
7248 * config/arc/arc.c (arc_print_operand): Likewise.
7249 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7250 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7251 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7253 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7254 (consttable_16): Likewise.
7255 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7256 * config/avr/avr.c (avr_print_operand): Likewise.
7257 * config/bfin/bfin.md: Likewise (in a define_split).
7258 * config/c6x/c6x.md: Likewise (in a define_split).
7259 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7260 (cr16_print_operand): Likewise.
7261 * config/cris/cris.c (cris_print_operand): Likewise.
7262 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7263 * config/fr30/fr30.c (fr30_print_operand): Likewise.
7264 (fr30_const_double_is_zero): Likewise.
7265 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7266 * config/frv/frv.md: Likewise (in a define_split).
7267 * config/frv/predicates.md (int_2word_operand): Likewise.
7268 * config/h8300/h8300.c (h8300_print_operand): Likewise.
7269 * config/i386/i386.c (standard_80387_constant_p): Likewise.
7270 (ix86_print_operand, ix86_split_to_parts): Likewise.
7271 * config/i386/i386.md: Likewise (in a define_split).
7272 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7273 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7274 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7275 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7276 (print_operand): Likewise.
7277 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7278 * config/mep/mep.md: Likewise (in define_split).
7279 * config/microblaze/microblaze.c (microblaze_const_double_ok)
7280 (print_operand): Likewise.
7281 * config/mips/mips.md (consttable_float): Likewise.
7282 * config/mmix/mmix.c (mmix_intval): Likewise.
7283 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7284 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7285 * config/pa/pa.c (pa_singlemove_string): Likewise.
7286 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7287 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7288 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7289 (output_toc): Likewise.
7290 * config/rs6000/rs6000.md: Likewise (in define_splits).
7291 * config/rx/rx.c (rx_print_operand): Likewise.
7292 * config/s390/s390.c (s390_output_pool_entry): Likewise.
7293 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7294 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7295 (and also in define_splits).
7296 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7297 (fp_high_losum_p): Likewise.
7298 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7299 (*movsf_high): Likewise.
7300 * config/spu/spu.c (const_double_to_hwint): Likewise.
7301 * config/v850/v850.c (const_double_split): Likewise.
7302 * config/vax/vax.c (vax_float_literal): Likewise.
7303 * config/visium/visium.c (visium_expand_copysign): Likewise.
7304 * config/visium/visium.md: Likewise (in define_split).
7305 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7306 * config/xtensa/xtensa.c (print_operand): Likewise.
7307 (xtensa_output_literal): Likewise.
7308 * cprop.c (implicit_set_cond_p): Likewise.
7309 * dwarf2out.c (insert_float): Likewise.
7310 * expmed.c (expand_mult, make_tree): Likewise.
7311 * expr.c (compress_float_constant): Likewise.
7312 * rtlanal.c (split_double): Likewise.
7313 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7314 (simplify_const_unary_operation, simplify_binary_operation_1)
7315 (simplify_const_binary_operation): Likewise.
7316 (simplify_const_relational_operation): Likewise.
7317 * varasm.c (output_constant_pool_2): Likewise.
7319 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7321 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7322 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7323 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7324 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7325 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7326 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7327 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7328 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7329 (ix86_emit_swsqrtsf): Likewise.
7330 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7331 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7332 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7333 * config/pa/pa.c (pa_expand_builtin): Likewise.
7334 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7335 (rs6000_scale_v2df): Likewise.
7336 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7337 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7338 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7339 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7340 (vec_ctul): Likewise.
7341 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7342 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7343 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7344 * cse.c (fold_rtx): Likewise.
7345 * emit-rtl.c (immed_double_const): Likewise (in comments).
7346 (init_emit_once): Likewise.
7347 * expr.c (compress_float_constant, expand_expr_real_1)
7348 (const_vector_from_tree): Likewise.
7349 * optabs.c (expand_float, expand_fix): Likewise.
7350 * reg-stack.c (reg_to_stack): Likewise.
7351 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7352 (simplify_const_unary_operation, simplify_binary_operation_1)
7353 (simplify_const_binary_operation, simplify_relational_operation)
7354 (simplify_immed_subreg): Likewise.
7356 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7358 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7359 * doc/tm.texi: Regenerate.
7360 * real.h (REAL_ARITHMETIC): Delete.
7361 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7362 (ix86_expand_round_sse4): Use real_arithmetic instead of
7364 * config/i386/sse.md (round<mode>2): Likewise.
7365 * rtl.h (rtx_to_tree_code): Likewise (in comment).
7366 * explow.c (rtx_to_tree_code): Likewise (in comment).
7367 * match.pd: Likewise.
7368 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7369 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7370 (expand_pow_as_sqrts): Likewise.
7371 * tree-pretty-print.c (dump_generic_node): Remove code that
7372 was conditional on REAL_ARITHMETIC being undefined.
7374 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7376 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7377 * doc/tm.texi: Regenerate.
7378 * real.h (real_less): Declare.
7379 (REAL_VALUES_LESS): Delete.
7380 * real.c (real_less): New function.
7381 (real_compare): Use it.
7382 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7383 of REAL_VALUES_LESS.
7384 * config/microblaze/microblaze.c (microblaze_const_double_ok):
7386 * fold-const.c (fold_convert_const_int_from_real): Likewise.
7387 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7388 (simplify_const_relational_operation): Likewise.
7389 * tree-call-cdce.c (check_pow): Likewise.
7390 (gen_conditions_for_pow_cst_base): Likewise.
7392 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7394 * real.h (REAL_VALUES_IDENTICAL): Delete.
7395 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7396 instead of REAL_VALUES_IDENTICAL.
7397 * fold-const.c (operand_equal_p): Likewise.
7398 * ipa-icf.c (sem_variable::equals): Likewise.
7399 * tree-complex.c (some_nonzerop): Likewise.
7400 (expand_complex_multiplication): Likewise.
7401 * tree.c (simple_cst_equal): Likewise.
7402 * varasm.c (compare_constant): Likewise.
7404 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7406 * real.h (real_equal): Declare.
7407 (REAL_VALUES_EQUAL): Delete.
7408 * real.c (real_equal): New function.
7409 (real_compare): Use it.
7410 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7411 * doc/tm.texi: Regenerate.
7412 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7413 real_equal instead of REAL_VALUES_EQUAL.
7414 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7415 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7416 (fp_const_from_val): Likewise.
7417 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7418 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7419 (floating_exact_log2): Likewise.
7420 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7421 * config/vax/vax.c (vax_float_literal): Likewise.
7422 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7423 * cprop.c (implicit_set_cond_p): Likewise.
7424 * expmed.c (expand_mult): Likewise.
7425 * fold-const.c (const_binop): Likewise.
7426 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7427 (simplify_const_binary_operation): Likewise.
7428 (simplify_const_relational_operation): Likewise.
7429 * tree-call-cdce.c (check_pow): Likewise.
7430 (gen_conditions_for_pow_cst_base): Likewise.
7431 * tree-inline.c (estimate_num_insns): Likewise.
7432 * tree-ssa-dom.c (record_equality): Likewise.
7433 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7434 (gimple_expand_builtin_pow): Likewise.
7435 (pass_optimize_widening_mul::execute): Likewise.
7436 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7437 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7438 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7440 2015-10-05 Richard Biener <rguenther@suse.de>
7443 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7444 consider loop header PHI defs as IVs.
7446 2015-10-05 Richard Biener <rguenther@suse.de>
7448 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7450 (create_expression_by_pieces): ... here and build GIMPLE
7451 calls directly. Use gimple_build API and avoid force_gimple_operand.
7452 (insert_into_preds_of_block): Simplify.
7453 (do_regular_insertion): Add comment.
7455 2015-10-04 Jason Merrill <jason@redhat.com>
7457 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7459 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
7461 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7462 check for general register.
7463 (ix86_emit_save_regs): Ditto.
7464 (ix86_emit_save_regs_using_mov): Ditto.
7465 (ix86_emit_restore_regs_using_pop): Ditto.
7466 (ix86_emit_restore_regs_using_mov): Ditto.
7468 2015-10-03 Marek Polacek <polacek@redhat.com>
7470 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7471 (insn-dfatab.o): Likewise.
7473 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
7475 * config.gcc (xtensa*-*-uclinux*): New configuration.
7476 * config/xtensa/uclinux.h: New file.
7477 * config/xtensa/uclinux.opt: New file.
7479 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
7481 * doc/cpp.texi (Standard Predefined Macros): Document value of
7482 __cplusplus for C++14.
7484 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
7486 * gcc.c (process_command): Use spec_machine rather than
7487 spec_host_machine to build tooldir_prefix2.
7489 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7490 Bernd Schmidt <bernds@codesourcery.com>
7492 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7493 (Token, Stmt): Remove structs.
7494 (decls, vars, fns): Remove variables.
7495 (alloc_comment, append_stmt, is_keyword): Remove macros.
7496 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7497 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7498 (parse_init, parse_file): Remove functions.
7499 (read_file): Accept a pointer to a length and store into it.
7500 (process): Don't try to parse the input file, just write it out as
7501 a string, but looking for maps. Also write out the length.
7502 (main): Don't use "-S" to compile PTX code.
7504 2015-10-02 Jeff Law <law@redhat.com>
7506 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7509 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7512 * config/nvptx/mkoffload.c (main): Scan the argument vector for
7513 -fopenmp, and skip generating an offloading image if specified.
7515 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
7517 * system.h (ROUND_UP): New macro definition.
7518 (ROUND_DOWN): Ditto.
7519 * ggc-page.c (ROUND_UP): Remove local macro definition.
7520 (PAGE_ALIGN): Implement using ROUND_UP macro.
7522 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7523 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7525 (ix86_compute_frame_layout): Ditto.
7526 (ix86_expand_prologue): Ditto.
7527 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7528 to round down values.
7529 (expand_set_or_movmem_via_rep): Ditto.
7531 2015-10-02 Marek Polacek <polacek@redhat.com>
7533 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7535 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
7537 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7538 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7539 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7540 (free_gimple_bb): Renamed free_gimple_poly_bb.
7541 (try_generate_gimple_bb): Hoist loop invariant code.
7542 (analyze_drs_in_stmts): Same.
7543 (build_scop_drs): Call renamed functions.
7544 (new_pbb_from_pbb): Same.
7545 (scop_ivs_can_be_represented): Delete as functionality now moved to
7546 graphite-scop-detection.c
7547 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7549 2015-10-02 Aditya Kumar <hiraditya@msn.com>
7551 * graphite-scop-detection.c (stmt_has_side_effects): New function
7552 outlined from stmt_simple_for_scop_p.
7553 (graphite_can_represent_stmt): Same.
7554 (stmt_simple_for_scop_p): Moved code out of this function for better
7557 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7559 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7561 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7563 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7565 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7567 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
7569 PR rtl-optimization/67756
7570 * lra-constraints.c (match_reload): Add a new parameter. Use it
7571 for creating a pseudo with the same value.
7572 (curr_insn_transform): Pass a new argument to match_reload.
7574 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7576 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7577 (expand_vec_perm_even_odd_1): Handle V64QImode.
7578 (ix86_expand_vec_perm_const_1): Try expansion with
7579 expand_vec_perm_even_odd_trunc as well.
7580 * config/i386/sse.md (VI124_AVX512F): Rename to ...
7581 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7583 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7584 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7586 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7587 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7588 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7589 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7590 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7591 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7593 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7595 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7596 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7598 2015-10-02 Jason Merrill <jason@redhat.com>
7601 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7602 (diagnose_tm_1_op): Also diagnose volatile accesses in
7603 transaction_safe function.
7605 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
7607 * system.h (malloc.h): Don't include obsolete header.
7609 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7611 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7612 (TLS_SECTION_ASM_FLAG): Delete.
7614 2015-10-02 Marek Polacek <polacek@redhat.com>
7617 * doc/invoke.texi: Document -Wduplicated-cond.
7618 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7619 (insn-dfatab.o): Likewise.
7620 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7623 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
7625 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7628 2015-10-02 Renlin Li <renlin.li@arm.com>
7630 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7632 2015-10-02 Renlin Li <renlin.li@arm.com>
7635 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7637 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7639 PR rtl-optimization/67786
7640 PR rtl-optimization/67787
7641 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7642 it modifies a reg used in the condition calculation.
7644 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
7646 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7647 alternatives for reads from memory and moves from general-purpose
7649 (*aarch64_combinez_be<mode>): Likewise.
7651 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
7654 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7655 selectany within this function without need to keep attribute.
7656 (i386_pe_encode_section_info): Remove selectany-code.
7658 2015-10-02 Richard Biener <rguenther@suse.de>
7660 * tree-ssa-sccvn.c (has_VN_INFO): New function.
7661 (free_scc_vn): Use it.
7662 (visit_use): Remove dead code and refactor to use gassign
7663 and use less indentation.
7665 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7669 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7670 (rs6000_cannot_copy_insn_p): New function.
7671 * config/rs6000/rs6000.md (cannot_copy): New attribute.
7672 (load_toc_v4_PIC_1_normal): Set cannot_copy.
7673 (load_toc_v4_PIC_1_476): Ditto.
7675 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7677 * graphite-scop-detection.c (struct sese_l): New conversion constructor
7678 so that this type can be pushed into a vec.
7679 (class scop_builder): use sese_l to collect scops.
7680 (get_scops): New getter function.
7681 (remove_intersecting_scops): Use sese_l instead of scops_p.
7685 (remove_subscops): Same.
7686 (build_scops): Add scops to vec<scops_p> once all the scops have been
7689 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7691 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7692 Renamed type from gimple_bb_p to gimple_poly_bb_p.
7693 (translate_isl_ast_node_user): Same.
7694 * graphite-poly.c (new_poly_bb): Same.
7695 * graphite-poly.h (gbb_from_bb): Same.
7697 * graphite-sese-to-poly.c (new_gimple_bb):
7698 gimple_bb_p -> gimple_poly_bb_p
7699 (build_scop_scattering): Same.
7700 (find_params_in_bb): Same.
7701 (add_conditions_to_domain): Same.
7702 (sese_dom_walker::before_dom_children): Same.
7703 (analyze_drs_in_stmts): Same.
7704 (new_pbb_from_pbb): Same.
7705 (free_data_refs_aux): New pointer to type base_alias_pair.
7706 * graphite-sese-to-poly.h: Same.
7707 * sese.c (if_region_set_false_region): Fixed Indentation.
7708 (move_sese_in_condition): Same.
7710 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7711 Aditya Kumar <aditya.k7@samsung.com>
7713 PR tree-optimization/66980
7714 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7715 when data reference analysis has failed.
7717 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7718 Aditya Kumar <aditya.k7@samsung.com>
7720 PR tree-optimization/67754
7721 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7722 scev analysis on the same loop nest as analyze_drs_in_stmts.
7723 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7725 (try_generate_gimple_bb): Call outermost_loop_in_sese.
7726 (analyze_drs_in_stmts): Same.
7727 * sese.c (outermost_loop_in_sese): ...here.
7729 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7730 Aditya Kumar <aditya.k7@samsung.com>
7732 PR tree-optimization/67754
7733 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7734 recursion on the inner loops.
7736 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7738 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7739 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7740 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7741 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7742 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7744 2015-10-01 Marek Polacek <polacek@redhat.com>
7747 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7748 create_tmp_var_raw rather than create_tmp_var.
7750 2015-10-01 Marek Polacek <polacek@redhat.com>
7752 PR tree-optimization/67769
7753 * tree-ssa-phiopt.c (conditional_replacement): Call
7754 reset_flow_sensitive_info_in_bb.
7755 (minmax_replacement): Likewise.
7756 (abs_replacement): Likewise.
7758 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
7760 * builtins.c: Don't include gomp-constants.h.
7761 (fold_builtin_1): Don't fold acc_on_device here.
7762 * gimple-fold.c: Include gomp-constants.h.
7763 (gimple_fold_builtin_acc_on_device): New.
7764 (gimple_fold_builtin): Call it.
7766 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
7768 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7769 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7771 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
7773 * config/arm/aarch-common-protos.h
7774 (aarch_accumulator_forwarding): New.
7775 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7776 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7777 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7778 * config/arm/cortex-a53.md: Rewrite.
7780 2015-10-01 Richard Biener <rguenther@suse.de>
7782 * gimple-match.h (mprts_hook): Declare.
7783 * gimple-match.head.c (mprts_hook): Define.
7784 (maybe_push_res_to_seq): Use new hook.
7785 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7786 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7787 (vn_ssa_aux::has_constants): Remove.
7788 * tree-ssa-sccvn.c: Include gimple-match.h.
7789 (VN_INFO_GET): Assert we don't re-use SSA names.
7790 (vn_get_expr_for): Remove.
7791 (expr_has_constants): Likewise.
7792 (stmt_has_constants): Likewise.
7793 (simplify_binary_expression): Likewise.
7794 (simplify_unary_expression): Likewise.
7795 (vn_lookup_simplify_result): New hook.
7796 (visit_copy): Adjust.
7797 (visit_reference_op_call): Likewise.
7798 (visit_phi): Likewise.
7799 (visit_use): Likewise.
7800 (process_scc): Likewise.
7801 (init_scc_vn): Likewise.
7802 (visit_reference_op_load): Likewise. Use match-and-simplify and
7803 a gimple seq for inserted expressions.
7804 (try_to_simplify): Remove GENERIC stmt combining code.
7805 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7806 * tree-ssa-pre.c (eliminate_insert): Adjust.
7807 (eliminate_dom_walker::before_dom_children): Likewise.
7809 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7811 * doc/invoke.texi (Optimization Options): Add
7812 -freorder-blocks-algorithm=.
7813 (Optimize Options) <-O>: Add -freorder-blocks.
7814 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
7815 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7816 <-freorder-blocks>: Also enabled at levels -O and -Os.
7817 <-freorder-blocks-algorithm=>: Document new option.
7819 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7821 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7822 with flag_reorder_blocks_algorithm.
7823 * common.opt (freorder-blocks-algorithm=): New flag.
7824 (reorder_blocks_algorithm): New enum.
7825 * flag-types.h (reorder_blocks_algorithm): New enum.
7826 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7827 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7829 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7831 * bb-reorder.c: Add intro comment.
7832 (reorder_basic_blocks_software_trace_cache): Print a header to
7834 (edge_order): New function.
7835 (reorder_basic_blocks_simple): New function.
7836 (reorder_basic_blocks): Choose between the STC and the simple
7837 algorithms (always choose the former).
7839 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7841 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7842 function, factored out from ...
7843 (reorder_basic_blocks): ... here.
7845 2015-10-01 Tom de Vries <tom@codesourcery.com>
7847 * tree-cfg.c (dump_function_to_file): Dump function attributes using
7848 __attribute__(()) string. Move dumping of function attributes to before
7851 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
7854 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7855 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7856 based on gold linker version.
7857 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7858 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7859 * configure, config.in: Regenerate.
7861 2015-10-01 Alan Modra <amodra@gmail.com>
7863 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7864 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7865 (rs6000_output_mi_thunk): Likewise.
7867 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7869 * config/nvptx/mkoffload.c (process): Change offload data format.
7871 2015-09-30 Jeff Law <law@redhat.com>
7873 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7874 with constant conditions.
7875 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7876 (remove_ctrl_stmt_and_useless_edges): No longer static.
7877 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7878 (remove_ctrl_stmt_and_useless_edges): Likewise.
7880 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7881 Cesar Philippidis <cesar@codesourcery.com>
7883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7884 (TARGET_GOACC_VALIDATE_DIMS): Override.
7885 * target.def (TARGET_GOACC): New target hook prefix.
7886 (validate_dims): New hook.
7887 * targhooks.h (default_goacc_validate_dims): New.
7888 * omp-low.c (oacc_validate_dims): New.
7889 (execute_oacc_device_lower): New.
7890 (default_goacc_validate_dims): New.
7891 (pass_data_oacc_device_lower): New.
7892 (pass_oacc_device_lower): New pass.
7893 (make_pass_oacc_device_lower): New.
7894 * tree-pass.h (make_pass_oacc_device_lower): Declare.
7895 * passes.def (pass_oacc_device_lower): Add it.
7896 * doc/tm.texi: Rebuilt.
7897 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7898 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7900 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7902 PR rtl-optimization/67037
7903 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7905 2015-09-30 Bernd Schmidt <bernds@redhat.com>
7907 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7908 * passes.c: Include tree-ssanames.h.
7909 (execute_function_todo): Flush the pending free SSA_NAMEs after
7910 eliminating unreachable basic blocks.
7911 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7912 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7913 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7914 (flush_ssanames_freelist): New function.
7915 (release_ssaname_fn): Put released names on the queue.
7916 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7917 * tree-ssanames.h (flush_ssanames_freelist): Declare.
7919 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7921 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7922 (generate_target_descr_file, generate_target_offloadend_file)
7923 (generate_host_descr_file, prepare_target_image): Pass it on.
7924 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7925 (compile_native, main): Pass it on.
7926 * lto-wrapper.c (compile_offload_image): Likewise.
7928 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7929 Ilya Verbin <ilya.verbin@intel.com>
7930 Andrey Turetskiy <andrey.turetskiy@intel.com>
7932 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7933 (prepare_target_image, main): Refactor argv building to use
7936 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7938 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7939 * config/spu/spu.c (spu_expand_atomic_op): New function.
7940 * config/spu/spu.md (AINT): New mode iterator.
7941 (ATOMIC): New code iterator.
7942 (atomic_name, atomic_pred): New code predicates.
7943 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7944 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7945 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7946 "atomic_<atomic_name>_fetch<mode>"): Likewise.
7948 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
7950 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7952 (scalar_chain::convert_reg): Likewise.
7954 2015-09-30 Richard Biener <rguenther@suse.de>
7956 * builtins.c: Add comment that no new simplifications should
7959 2015-09-30 Marek Polacek <polacek@redhat.com>
7961 PR tree-optimization/67690
7962 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7963 reset_flow_sensitive_info_in_bb.
7964 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7965 * tree-ssanames.c: Include "gimple-iterator.h".
7966 (reset_flow_sensitive_info_in_bb): New function.
7967 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7969 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7971 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7972 variable, replacing it with...
7973 (offload_abi): ... this new variable. Adjust all users.
7974 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7976 2015-09-30 Matthias Klose <doko@ubuntu.com>
7978 * configure.ac: Remove extraneous ;;.
7979 * configure: Regenerate.
7981 2015-09-29 James Bowman <james.bowman@ftdichip.com>
7983 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7984 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7985 predicate, disallow register for operand 2.
7987 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
7989 * graphite-dependences.c (scop_get_dependences): Moved in down
7990 in order to be visible to its caller.
7991 * graphite-poly.h: Removed compute_deps, and extend_schedule.
7993 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7994 Aditya Kumar <aditya.k7@samsung.com>
7996 PR tree-optimization/67754
7997 * graphite-optimize-isl.c (optimize_isl): Call
7998 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8000 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8002 * builtins.c (expand_builtin_acc_on_device): Delete.
8003 (expand_builtin): Don't call it.
8004 (fold_builtin_1): Fold acc_on_device.
8006 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8008 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8009 (ix86_nsaved_sseregs): Likewise.
8011 2015-09-29 Jeff Law <law@redhat.com>
8013 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8014 computation of unused value.
8016 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8017 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8018 inline macro expansion.
8020 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8022 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8023 (gen_shl_sext): Likewise.
8024 * config/sh/sh.md (divsi3): Likewise.
8025 (imm->ext_dest_operand splitter): Likewise.
8027 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8028 Aditya Kumar <aditya.k7@samsung.com>
8030 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8031 (nb_data_writes_in_bb): Remove.
8032 (split_pbb): Remove.
8033 (split_reduction_stmt): Remove.
8034 (is_reduction_operation_p): Remove.
8035 (phi_contains_arg): Remove.
8036 (follow_ssa_with_commutative_ops): Remove.
8037 (detect_commutative_reduction_arg): Remove.
8038 (detect_commutative_reduction_assign): Remove.
8039 (follow_inital_value_to_phi): Remove.
8040 (edge_initial_value_for_loop_phi): Remove.
8041 (initial_value_for_loop_phi): Remove.
8042 (used_outside_reduction): Remove.
8043 (detect_commutative_reduction): Remove.
8044 (translate_scalar_reduction_to_array_for_stmt): Remove.
8045 (remove_phi): Remove.
8046 (dr_indices_valid_in_loop): Remove.
8047 (close_phi_written_to_memory): Remove.
8048 (translate_scalar_reduction_to_array): Remove.
8049 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8050 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8051 (rewrite_commutative_reductions_out_of_ssa): Remove.
8052 (build_poly_scop): Remove call to
8053 rewrite_commutative_reductions_out_of_ssa.
8055 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8057 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8058 Add new insn types for vector load and store pairs.
8059 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8060 types "neon_ldp{,_q}".
8061 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8063 (neon_store_complex): Add insn types "neon_stp{,_q}".
8064 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8067 2015-09-29 Jeff Law <law@redhat.com>
8069 * config/rx/constraints.md (Int08): Fix undefined left shift
8071 (Sint08, Sint16, Sint24): Likewise.
8072 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8074 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8077 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8078 left shift behaviour.
8079 * config/msp430/constraints.md ('L' constraint): Similarly.
8080 ('Ys' constraint): Similarly.
8082 2015-09-29 Richard Biener <rguenther@suse.de>
8084 PR tree-optimization/67170
8085 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8086 the translate function pointer parameter to get the
8087 bool whether to disambiguate only by reference.
8088 (walk_non_aliased_vuses): Likewise.
8089 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8090 (get_continuation_for_phi_1): Likewise.
8091 (get_continuation_for_phi): Likewise.
8092 (walk_non_aliased_vuses): Likewise.
8093 * tree-ssa-sccvn.c (const_parms): New bitmap.
8094 (vn_reference_lookup_3): Adjust for interface change.
8095 Disambiguate parameters pointing to readonly memory.
8096 (free_scc_vn): Free const_parms.
8097 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8099 2015-09-29 Richard Biener <rguenther@suse.de>
8101 PR tree-optimization/67741
8102 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8103 builtin calls with correct signature.
8105 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8108 * config/i386/i386.c: Include dbgcnt.h.
8109 (has_non_address_hard_reg): New.
8110 (convertible_comparison_p): New.
8111 (scalar_to_vector_candidate_p): New.
8112 (remove_non_convertible_regs): New.
8113 (scalar_chain): New.
8114 (scalar_chain::scalar_chain): New.
8115 (scalar_chain::~scalar_chain): New.
8116 (scalar_chain::add_to_queue): New.
8117 (scalar_chain::mark_dual_mode_def): New.
8118 (scalar_chain::analyze_register_chain): New.
8119 (scalar_chain::add_insn): New.
8120 (scalar_chain::build): New.
8121 (scalar_chain::compute_convert_gain): New.
8122 (scalar_chain::replace_with_subreg): New.
8123 (scalar_chain::replace_with_subreg_in_insn): New.
8124 (scalar_chain::emit_conversion_insns): New.
8125 (scalar_chain::make_vector_copies): New.
8126 (scalar_chain::convert_reg): New.
8127 (scalar_chain::convert_op): New.
8128 (scalar_chain::convert_insn): New.
8129 (scalar_chain::convert): New.
8130 (convert_scalars_to_vector): New.
8131 (pass_data_stv): New.
8133 (make_pass_stv): New.
8134 (ix86_option_override): Created and register stv pass.
8135 (flag_opts): Add -mstv.
8136 (ix86_option_override_internal): Likewise.
8137 * config/i386/i386.md (SWIM1248x): New.
8138 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8139 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8140 (*anddi3_doubleword): New.
8141 (*zext<mode>_doubleword): New.
8142 (*zextsi_doubleword): New.
8143 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8144 (*<code>di3_doubleword): New.
8145 * config/i386/i386.opt (mstv): New.
8146 * dbgcnt.def (stv_conversion): New.
8148 2015-09-29 Tom de Vries <tom@codesourcery.com>
8150 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8152 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8155 * config/sh/sh.c (sh_override_options_after_change): New.
8156 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8157 (sh_option_override): Move align_loops, align_jumps and
8158 align_functions handling into sh_override_options_after_change.
8160 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8162 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8163 (nvptx_record_offload_symbol): Record function execution geometry.
8164 * config/nvptx/mkoffload.c (process): Include launch geometry in
8166 * omp-low.c (oacc_launch_pack): New.
8167 (replace_oacc_fn_attrib): New.
8168 (set_oacc_fn_attrib): New.
8169 (get_oacc_fn_attrib): New.
8170 (expand_omp_target): Create keyed varargs for GOACC_parallel call
8172 * omp-low.h (get_oacc_fn_attrib): Declare.
8173 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8174 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8175 * tree.h (OMP_CLAUSE_EXPR): New.
8176 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8178 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8179 Sebastian Pop <s.pop@samsung.com>
8181 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8183 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8184 Sebastian Pop <s.pop@samsung.com>
8186 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8187 * graphite-scop-detection.c (struct sese_l): New type.
8188 (get_entry_bb): API for getting entry bb of SESE.
8189 (get_exit_bb): API for getting exit bb of SESE.
8190 (class debug_printer): New type. Simple printer in debug mode.
8191 (trivially_empty_bb_p): New. Return true when BB is empty or
8192 contains only debug instructions.
8193 (graphite_can_represent_expr): Call scalar_evoution_in_region
8194 instead of analyze_scalar_evolution. Pass in scop instead of only
8196 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8198 (stmt_simple_for_scop_p): Same.
8199 (harmful_stmt_in_bb): Same.
8200 (graphite_can_represent_loop): Deleted.
8201 (struct scopdet_info): Deleted.
8202 (scopdet_basic_block_info): Deleted.
8203 (build_scops_1): Deleted.
8204 (bb_in_sd_region): Deleted.
8205 (find_single_entry_edge): Deleted.
8206 (find_single_exit_edge): Deleted.
8207 (create_single_entry_edge): Deleted.
8208 (sd_region_without_exit): Deleted.
8209 (create_single_exit_edge): Deleted.
8210 (unmark_exit_edges): Deleted.
8211 (mark_exit_edges): Deleted.
8212 (create_sese_edges): Deleted.
8213 (build_graphite_scops): Deleted.
8214 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8215 (build_scops): Use the new scop_builder to build scops.
8216 (dot_all_scops_1): Use the new pretty printer. Print loop father
8218 (loop_body_is_valid_scop): New. Return true if loop body is a
8220 (class scop_builder): New. Builds SCoPs for polyhedral
8222 (scop_builder): New constructor.
8223 (static sese_l invalid_sese): sese_l with invalid edges.
8224 (get_sese): Get an sese (from a loop) if possible, invalid_sese
8226 (get_nearest_dom_with_single_entry): Get nearest dominator of a
8227 basic_block with single entry. Return NULL if we get to the
8228 beginning of a function.
8229 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8230 a basic_block with single exit. Return NULL if we get to the
8231 beginning of a function.
8232 (print_sese): Pretty-print SESE.
8233 (merge_sese): Merge two SESEs if possible and return the new SESE.
8234 (build_scop_depth): Start building the SCoP within a loop nest.
8235 (build_scop_breadth): Start building the SCoP at a single loop
8236 depth. Merge adjacent SESEs if valid.
8237 (can_represent_loop_1): Returns true if Graphite can represent
8238 loop inside SCoP. Helper for can_represent_loop.
8239 (can_represent_loop): Returns true if Graphite can represent LOOP
8240 and all its nested loops in SCoP.
8241 (loop_is_valid_scop): Returns true if LOOP and all its nests
8242 constitute a valid SCoP.
8243 (region_has_one_loop): Returns true of a region has only one loop.
8244 (add_scop): Add SCoP to the list of valid scops. Removes an
8245 already existing scop if it intersects with or subsumed by this one.
8246 (harmful_stmt_in_region): Returns true if SCoP has any statment
8247 which cannot be represented by Graphite.
8248 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8249 (remove_subscops): Remove any SCoP from the list of already found
8250 SCoPs, if subsumed by S1.
8251 (intersects): Return true if region bounded by SCoPs S1 and S2
8253 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8254 * graphite.c (print_graphite_scop_statistics):
8255 (print_graphite_statistics): Print SCoP info while debugging.
8256 (graphite_initialize): Early exit in case number of loops in a
8257 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8258 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8259 (graphite_finalize):
8260 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8261 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8262 (recompute_all_dominators): Recalculate POST_DOMINATORS.
8263 * tree-cfg.c (print_loops): Print the function name while printing
8266 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8267 Sebastian Pop <s.pop@samsung.com>
8269 PR tree-optimization/67700
8270 * graphite-sese-to-poly.c (parameter_index_in_region): Call
8271 invariant_in_sese_p_rec.
8272 (extract_affine): Same.
8273 (rewrite_cross_bb_scalar_deps): Call update_ssa.
8274 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
8275 * sese.h (invariant_in_sese_p_rec): Declare.
8277 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
8279 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8281 2015-09-28 Jiong Wang <jiong.wang@arm.com>
8284 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8285 Jiong Wang <jiong.wang@arm.com>
8287 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8288 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8289 (REG_CLASS_NAMES): Likewise.
8290 (REG_CLASS_CONTENTS): Likewise.
8291 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8292 (aarch64_register_move_cost): Likewise.
8293 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8295 * config/aarch64/constraints.md (Uc0): New constraint.
8297 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
8299 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8301 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
8303 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8304 SECTION_EXCLUDE in XO mapping class.
8306 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8309 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8310 and handle ne and eq codes.
8311 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8312 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
8313 CONST_INT_P. Use reverse_condition.
8314 (sh_split_treg_set_expr): Likewise.
8316 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
8318 * config/arm/types.md (type): Add rotate_imm.
8319 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8321 (*rorsi3_insn_uxtw): Likewise.
8322 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8323 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8324 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8326 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8328 PR rtl-optimization/67481
8329 * ifcvt.c (contains_ccmode_rtx_p): New function.
8330 (insn_valid_noce_process_p): Use it.
8332 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8334 PR rtl-optimization/67456
8335 PR rtl-optimization/67464
8336 PR rtl-optimization/67465
8337 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8338 move in the mode of x. Handle combination of complex and simple
8339 block pairs as well as the case when one is empty.
8341 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8343 * doc/gimple.texi: Update references to gimple_statement_base.
8344 * gdbhooks.py: Likewise.
8345 * gimple.h: Likewise.
8347 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8349 * config/sparc/driver-sparc.c: map LEON to leon3
8351 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8353 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8354 and make it inverse to change default
8355 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8357 * doc/invoke.texi: Document change of default
8359 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8361 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8362 true on %f0 for a target without FPU.
8363 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8365 (untyped_return): Do not load %f0 for a target without FPU.
8367 2015-09-28 Andrew Pinski <apinski@cavium.com>
8369 * config/aarch64/aarch64.md (prefetch):
8370 Change the predicate of operand 0 to register_operand.
8372 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
8374 * config/i386/predicates.md (register_sse4nonimm_operand): New
8376 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8377 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8378 Use register_sse4nonimm_operand as operand 0 predicate.
8379 (*vec_extractv8hi_sse2): Remove insn pattern.
8380 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8381 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8383 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8384 Kaz Kojima <kkojima@gcc.gnu.org>
8387 * config/sh/sh-protos.h (sh_lra_p): Declare.
8388 * config/sh/sh.c (sh_lra_p): Make non-static.
8389 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8390 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
8391 Expand into addsi3_scr if operands[2] if needed.
8392 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
8393 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
8394 (addsi3_scr, *addsi3): New insn_and_split patterns.
8396 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
8398 PR rtl-optimization/64164
8399 PR tree-optimization/67312
8403 * cfgexpand.c (parm_in_stack_slot_p): Remove.
8404 (ssa_default_def_partition): Remove.
8405 (get_rtl_for_parm_ssa_default_def): Remove.
8406 (set_rtl): Check that RTL assignments match expectations.
8407 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
8408 default def location for params and results. Record SSA names
8409 or types in REG and MEM attrs, respectively.
8410 (set_parm_rtl): New.
8411 (expand_one_ssa_partition): Drop logic that assigned MEMs with
8412 unassigned addresses.
8413 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8414 deferred stack alloc vars.
8415 (expand_used_vars): Skip partitions holding parm default defs.
8416 Move adjust_one_expanded_partition_var loop...
8417 (pass_expand::execute): ... here. Drop redundant assert.
8418 Adjust comments before the final loop over all ssa names.
8419 Require assigned rtl of parms and results to match exactly.
8420 Reset its attributes to match them, not any other variables in
8422 (expand_debug_expr): Use entry value for PARM's default defs
8423 only iff they have zero nondebug uses.
8424 * cfgexpand.h (parm_in_stack_slot_p): Remove.
8425 (get_rtl_for_parm_ssa_default_def): Remove.
8426 (set_parm_rtl): Declare.
8427 * doc/invoke.texi: Improve wording.
8428 * explow.c (promote_decl_mode): Fix promote_function_mode for
8429 result decls not by reference.
8430 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8431 bypass TYPE_MODE to get the actual vector mode.
8432 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
8433 2015-08-19's changes as follows. Drop include of
8434 basic-block.h and df.h.
8435 (rtl_for_parm): Remove.
8436 (maybe_reset_rtl_for_parm): Remove.
8437 (parm_in_unassigned_mem_p): Remove.
8438 (use_register_for_decl): Add logic for RESULT_DECLs matching
8439 assign_parms' behavior.
8440 (split_complex_args): Revert.
8441 (assign_parms_augmented_arg_list): Revert. Add comment
8442 referencing the logic above.
8443 (assign_parm_adjust_stack_rtl): Revert.
8444 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
8445 of SET_DECL_RTL. Set up a REG if the parm demands so.
8446 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
8447 calls into a single set_parm_rtl. Set up a temporary RTL
8448 temporarily for expand_assignment.
8449 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
8450 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
8451 (assign_bounds): Revert.
8452 (assign_parms): Revert. Use set_parm_rtl.
8453 (allocate_struct_function): Relayout result and parms of
8454 non-abstruct functions.
8455 (expand_function_start): Revert. Use set_parm_rtl. If the
8456 result is not a hard reg, create a pseudo from the promoted
8457 mode of the default def. Promote static chain mode.
8458 * tree-outof-ssa.c (remove_ssa_form): Drop unused
8459 partition_has_default_def. Set up
8460 partitions_for_parm_default_defs.
8461 (finish_out_of_ssa): Remove partition_has_default_def.
8462 Release partitions_for_parm_default_defs.
8463 * tree-outof-ssa.h (struct ssaexpand): Remove
8464 partition_has_default_def. Add
8465 partitions_for_parm_default_defs.
8466 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8468 (build_ssa_conflict_graph): Fix conflict-detection of default
8469 defs of even unused default defs of params and results.
8470 (for_all_parms): New.
8471 (create_default_def): New.
8472 (register_default_def): New.
8473 (coalesce_with_default): New.
8474 (create_outofssa_var_map): Create default defs for all parms
8475 and results, and register their partitions. Add GIMPLE_RETURN
8476 operands as coalesce candidates with results. Add default
8477 defs of each parm or result as coalesce candidates with its
8478 other defs. Mark each result def, and each default def of
8479 parms, as used_in_copy.
8480 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
8481 with the ssa names, even anonymous ones. Drop
8482 parm_in_stack_slot_p calls. Require same signedness and
8484 (coalesce_ssa_name): Add coalesce candidates for all defs of
8485 each parm and result, even unused ones.
8486 (parm_default_def_partition_arg): New type.
8487 (set_parm_default_def_partition): New.
8488 (get_parm_default_def_partitions): New.
8489 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8490 * tree-ssa-live.c (partition_view_init): Regard unused defs of
8491 parms and results as used.
8492 (verify_live_on_entry): Don't error out just because they're
8495 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
8497 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8498 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8499 (output_fde): Don't output length for debug_frame on AIX.
8500 (output_call_frame_info): Don't output length for debug_frame on AIX.
8501 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8502 HAVE_XCOFF_DWARF_EXTRAS.
8503 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8504 HAVE_XCOFF_DWARF_EXTRAS.
8505 (output_compilation_unit_header): Don't output length on AIX.
8506 (output_pubnames): Don't output length on AIX.
8507 (output_aranges): Delete argument. Compute length locally. Don't
8508 output length on AIX.
8509 (output_line_info): Don't output length on AIX.
8510 (dwarf2out_finish): Don't compute aranges_length.
8511 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8512 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8513 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8514 symbol decoration for AIX.
8515 (rs6000_xcoff_debug_unwind_info): New.
8516 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8518 (rs6000_xcoff_declare_function_name): Emit different
8519 .function pseudo-op when DWARF2_DEBUG. Don't call
8520 xcoffout_declare_function for DWARF2_DEBUG.
8521 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8523 * config/rs6000/aix71.h: New.
8524 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8526 * configure: Regenerate.
8527 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8530 2015-09-26 Jeff Law <law@redhat.com>
8532 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8534 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8537 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8540 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8541 undefined behaviour.
8543 * config/cris/cris.md (asrandb): Fix left shift undefined
8545 (asrandw): Likewise.
8547 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
8550 * lra-constarints.c (match_reload): Check presence of the input pseudo
8551 in the output operand.
8553 2015-09-25 Tobias Burnus <burnus@net-b.de>
8555 * doc/invoke.texi (-fsanitize): Minor wording tweak.
8557 2015-09-25 Tobias Burnus <burnus@net-b.de>
8559 * doc/invoke.texi (-fsanitize): Update URLs.
8561 2015-09-25 Teresa Johnson <tejohnson@google.com>
8563 * opts.c (finish_options): Unset -freorder-blocks-and-partition
8564 if not using profile.
8566 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8568 PR pretty-print/67567
8569 * pretty-print.c (pp_string): Add gcc_checking_assert.
8570 * pretty-print.h (output_buffer_append_r): Likewise.
8572 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8575 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8576 addr2 individually. Don't emit logical or insn if one is known to
8577 be aligned approriately.
8578 (sh_expand_cmpnstr): Likewise.
8580 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
8582 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8583 __builtin_aarch64_fp[sc]r arguments into a register.
8585 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
8587 * config.gcc (x86_archs): Replace lakemount with lakemont.
8588 (with_cpu): Likewise.
8589 (with_arch): Likewise.
8590 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8591 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
8592 __tune_lakemount__ with __tune_lakemont__.
8593 * config/i386/i386.c (lakemount_cost): Renamed to ...
8594 (lakemont_cost): This.
8595 (m_LAKEMOUNT): Renamed to ...
8597 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8598 (processor_target_table): Replace "lakemount" with "lakemont".
8599 (processor_alias_table): Likewise.
8600 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8602 (ix86_adjust_cost): Likewise.
8603 (ia32_multipass_dfa_lookahead): Likewise.
8604 * config/i386/i386.h (processor_type): Likewise.
8605 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8606 * doc/invoke.texi: Replace lakemount with lakemont. Replace
8607 Lakemount with Lakemont.
8609 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
8611 * config.gcc (x86_archs): Replace iamcu with lakemount.
8612 (with_cpu): Likewise.
8613 (with_arch): Likewise.
8614 * doc/invoke.texi: Likewise.
8615 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8616 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
8617 __tune_iamcu__ with __tune_lakemount__.
8618 * config/i386/i386.c (iamcu_cost): Renamed to ...
8619 (lakemount_cost): This.
8620 (m_IAMCU): Renamed to ...
8621 (m_LAKEMOUNT): This.
8622 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8623 (processor_target_table): Replace "iamcu" with "lakemount".
8624 (processor_alias_table): Likewise.
8625 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8626 PROCESSOR_LAKEMOUNT.
8627 (ix86_adjust_cost): Likewise.
8628 (ia32_multipass_dfa_lookahead): Likewise.
8629 * config/i386/i386.h (processor_type): Likewise.
8630 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8632 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
8634 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8635 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8637 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8638 (pa_expand_compare_and_swap_loop): New.
8639 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8640 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8641 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8642 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8643 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8646 2015-09-24 Michael Collison <michael.collison@linaro.org>
8649 * read-md.c (read_name): Allow mode iterators inside angle
8650 brackets in rtl expressions.
8652 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
8655 * ira-color.c (update_allocno_cost): Add parameter.
8656 (update_costs_from_allocno): Decrease conflict cost. Pass the new
8659 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8662 * opts-common.c (prune_options): Discard all -fdiagnostics-color
8663 but the last one, which is moved to the front to be processed
8665 * opts.c (enable_warning_as_error): Reject options that do not
8668 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8670 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8672 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8674 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8675 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8676 (aarch64_cannot_force_const_mem): Likewise.
8677 (aarch64_classify_address): Likewise.
8678 (aarch64_classify_symbolic_expression): Likewise.
8679 (aarch64_print_operand): Likewise.
8680 (aarch64_classify_symbol): Likewise.
8681 (aarch64_mov_operand_p): Likewise.
8682 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8683 (aarch64_mov_operand): Likewise.
8685 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
8687 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8688 for info->spe_gp_size.
8690 2015-09-24 Richard Biener <rguenther@suse.de>
8693 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8696 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
8698 * tree-object-size.c (plus_stmt_object_size)
8699 (cond_expr_object_size): Change the formal parameters from gimple
8701 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8702 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8703 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8705 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8707 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8708 Check for ld -type pie on Solaris 11.x and 12.
8709 * configure: Regenerate.
8710 * config.in: Regenerate.
8712 * gcc.c (LD_PIE_SPEC): Allow redefinition.
8714 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8715 (STARTFILE_SPEC): Use it.
8716 (ENDFILE_CRTEND_SPEC): Define.
8717 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8718 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8719 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8720 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8721 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8722 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8723 (ENDFILE_ARCH_SPEC): Define.
8724 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8726 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8728 * configure.ac (gcc_cv_solaris_crts): New test.
8729 * configure. Regenerate.
8730 * config.in: Regenerate.
8731 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8732 HAVE_SOLARIS_CRTS variant.
8734 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8736 * tree-inline.h (count_insns_seq): Delete prototype.
8737 (estimate_num_insns_seq): Define prototype.
8738 * tree-inline.c (count_insns_seq): Delete.
8739 (estimate_num_insns_seq): Remove static qualifier.
8740 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8741 with estimate_num_insns_seq.
8743 2015-09-24 Richard Biener <rguenther@suse.de>
8745 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8747 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8748 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
8750 (ao_ref_init_from_vn_reference): Record clique and base in the
8752 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8754 2015-09-24 Richard Biener <rguenther@suse.de>
8756 PR tree-optimization/48885
8757 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8758 as not including any restrict tags from other pointers.
8760 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8762 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8763 character when appending to offload_targets.
8765 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8766 offload targets by commas, not colons.
8767 * config.in: Regenerate.
8768 * configure: Likewise.
8769 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8770 instead of setting up the default offload targets here...
8771 (process_command): ..., do it here.
8773 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8774 targets are separated by commas.
8775 * config.h.in: Regenerate.
8777 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8778 Nathan Sidwell <nathan@codesourcery.com>
8780 * omp-low.h (omp_reduction_init_op): Declare.
8781 * omp-low.c (omp_reduction_init_op): New, broken out of ...
8782 (omp_reduction_init): ... here. Call it.
8783 * tree-parloops.c (initialize_reductions): Use
8784 omp_reduction_init_op.
8786 2015-09-23 Richard Biener <rguenther@suse.de>
8789 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8790 undefined overflow unless they will cancel out.
8792 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8794 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8797 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8800 * opts.h (write_langs): Declare.
8801 * opts-global.c (write_langs): Make it extern.
8803 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
8806 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8807 overlapping regs when matching the pattern.
8809 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
8811 * config/aarch64/aarch64-simd.md
8812 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8813 (aarch64_float_truncate_hi_v4sf_le): New.
8814 (aarch64_float_truncate_hi_v4sf_be): Likewise.
8816 2015-09-23 Richard Biener <rguenther@suse.de>
8818 * tree-ssa-structalias.c (intra_create_variable_infos): Build
8819 representatives for all restrict qualified pointer destinations.
8821 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8823 * config/i386/i386.md (define_code_attr mshift): New.
8824 (define_mode_iterator SWI1248_AVX512BW): Rename ...
8825 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8827 (define_insn "*k<logic><mode>"): Use new iterator name.
8828 (define_insn "*<mshift><mode>3"): New.
8830 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
8833 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8834 mark the block as accessible.
8836 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
8838 * function.c (thread_prologue_and_epilogue_insns): Delete
8839 orig_entry_edge argument to try_shrink_wrapping.
8840 * shrink-wrap.c (can_get_prologue): New function.
8841 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8842 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
8843 can_get_prologue where needed. Remove code that finds a single
8844 edge for the prologue. Remove code that tests if any reg clobbered
8845 by the prologue is live on the prologue edge. Remove code that finds
8846 the new prologue edge after duplicating blocks. Make a new prologue
8848 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8850 2015-09-22 Jeff Law <law@redhat.com>
8852 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8855 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
8857 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
8858 -Wtemplates, -Wnamespaces): Document.
8860 2015-09-22 Tom de Vries <tom@codesourcery.com>
8862 PR tree-optimization/67671
8863 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8864 pointer references as restrict.
8866 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8868 * config/nios2/nios2.c (nios2_legitimize_address): When handling
8869 'reg + reloc' cases, allow first operand to be non-REG, and use
8870 force_reg() to enforce address pattern.
8872 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
8875 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8876 (define_mode_iterator VI12_AVX_AVX512F): New.
8877 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8878 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8879 (define_insn "*<code><mode>3"): ... Into new pattern using
8880 VI12_AVX_AVX512F iterators without masking.
8882 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8884 * config.gcc: Support "skylake-avx512".
8885 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8886 PROCESSOR_SKYLAKE_AVX512.
8887 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8888 (processor_target_table): Add "skylake-avx512".
8889 (PTA_SKYLAKE_AVX512): Define.
8890 (ix86_option_override_internal): Add "skylake_avx512".
8891 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8892 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8893 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8894 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8895 * doc/invoke.texi (skylake-avx512): New.
8897 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8899 * config/i386/i386.md (define_insn "kunpckhi"): Fix
8901 (define_insn "kunpcksi"): Ditto.
8902 (define_insn "kunpckdi"): Ditto.
8904 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8906 * config/i386/i386.md (define_split not/xor SWI1248x): Use
8907 iterator instead of fixed modes.
8909 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8911 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8913 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8914 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
8915 out_result. Update to support update-fetch operations.
8916 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8917 Adjust for change to aarch64_gen_atomic_ldop.
8918 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8919 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8920 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8921 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8922 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8924 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8926 * config/aarch64/aarch64-protos.h
8927 (aarch64_atomic_ldop_supported_p): Declare.
8928 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8929 (enum aarch64_atomic_load_op_code): New.
8930 (aarch64_emit_atomic_load_op): New.
8931 (aarch64_gen_atomic_ldop): Update to support load-operate
8933 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8935 (aarch64_atomic_<atomic_optab><mode>): New.
8936 (aarch64_atomic_<atomic_optab><mode>_lse): New.
8937 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8938 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8939 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8941 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8943 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8944 (UNSPECV_ATOMIC_LDOP_OR): New.
8945 (UNSPECV_ATOMIC_LDOP_BIC): New.
8946 (UNSPECV_ATOMIC_LDOP_XOR): New.
8947 (UNSPECV_ATOMIC_LDOP_PLUS): New.
8950 (aarch64_atomic_load<atomic_ldop><mode>): New.
8952 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8954 * config/aarch64/aarch64.md
8955 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8958 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8960 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8962 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8963 (aarch64_gen_atomic_ldop): New.
8964 (aarch64_split_atomic_op): Fix whitespace and add a comment.
8965 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8966 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8967 (atomic_exchange<mode>): Replace with an expander.
8968 (aarch64_atomic_exchange<mode>): New.
8969 (aarch64_atomic_exchange<mode>_lse): New.
8970 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8971 (aarch64_atomic_swp<mode>): New.
8973 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8975 * tree-inline.c (expand_call_inline): Use inform for extra note.
8976 Do not give a note with UNKNOWN_LOCATION.
8977 Replace input_location with gimple_location (stmt).
8978 Use true/false instead of TRUE/FALSE.
8980 2015-09-22 Tom de Vries <tom@codesourcery.com>
8982 PR tree-optimization/67666
8983 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8984 with single field non-conservative.
8986 2015-09-21 David S. Miller <davem@davemloft.net>
8990 2015-09-11 David S. Miller <davem@davemloft.net>
8992 * config/sparc/constraints.md: Make "U" constraint a real register
8994 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8995 (D_MODES, DF_MODES): Add missing cast.
8996 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8997 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8998 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9000 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9001 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9002 provide these insn when flag_pic.
9004 2015-09-17 David S. Miller <davem@davemloft.net>
9006 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9008 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9010 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9011 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9012 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9013 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9014 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9015 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9016 provide when flag_pic.
9018 2015-09-21 Jeff Law <law@redhat.com>
9020 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9023 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9025 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9027 2015-09-21 Richard Biener <rguenther@suse.de>
9029 * passes.c (rest_of_decl_compilation): Do not call
9030 dwarf2out_early_global_decl for aliases.
9032 2015-09-21 Richard Biener <rguenther@suse.de>
9035 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9036 attribute parameter. Early exit if either DW_AT_const_value
9037 or DW_AT_location are present already.
9038 (gen_variable_die): Adjust caller.
9039 (dwarf2out_late_global_decl): Likewise.
9041 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9044 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9045 sh_peephole_emit_move_insn): Add new functions.
9046 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9047 sh_peephole_emit_move_insn): Declere them.
9048 * config/sh/sh.md: Use them in various peephole2 patterns.
9050 2015-09-21 Richard Biener <rguenther@suse.de>
9053 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9054 address with -fno-delete-null-pointer-checks.
9056 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9058 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9059 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9060 (reduc_uplus_v16qi): Remove.
9062 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9063 (reduc_<VEC_reduc_name>_v2df): Remove.
9064 (reduc_<VEC_reduc_name>_v4sf): Remove.
9065 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9067 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9068 gen_ function by removing * prefix.
9069 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9071 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9074 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9075 Print i_bound without converting it to a tree.
9077 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9079 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9080 operands[4] operands[5] swap with std::swap, removed tmp variable.
9081 (arm_evpc_neon_vzip): Replaced in0/in1 and
9082 out0/out1 swaps with std::swap, removed x variable.
9083 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9084 out0/out1 swaos with std::swap, removed x variable.
9085 (arm_expand_vec_perm_const_1): Replaced
9086 d->op0/d->op1 swap with std::swap, removed x variable.
9087 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9088 out0/out1 swaps with std::swap, removed x variable.
9090 2015-09-21 Jonathan Yong <10walls@gmail.com>
9092 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9093 sysroot/usr/lib/32api for additional win32 libraries,
9094 fixes failing Cygwin bootstrapping.
9096 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9098 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9100 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9103 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9104 (*mov_t_msb_neg): Rewrite negc pattern.
9106 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9108 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9109 immediate generation code.
9111 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9113 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9114 redundant immediate generation code.
9116 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9118 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9119 (AARCH64_NUM_BITMASKS): Remove.
9120 (aarch64_bitmasks_cmp): Remove.
9121 (aarch64_build_bitmask_table): Remove.
9123 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9125 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9126 slow immediate matching loops with a faster algorithm.
9128 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9130 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9133 2015-09-20 Jeff Law <law@redhat.com>
9135 PR tree-optimization/47679
9136 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9137 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9138 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9139 (thread_through_normal_block): Use record_temporary_equivalences.
9141 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9143 * coretypes.h (gimple): Change typedef to be a forward declaration.
9144 * gimple.h (gimple_statement_base): rename to gimple.
9145 * (all functions and types using gimple): Adjust.
9148 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9149 David Edelsohn <dje.gcc@gmail.com>
9151 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9152 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9153 (EH_FRAME_THROUGH_COLLECT2): Define.
9154 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9155 (ASM_OUTPUT_DWARF_PCREL): Define.
9156 (ASM_OUTPUT_DWARF_DATAREL): Define.
9158 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9160 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9163 2015-09-18 Jeff Law <law@redhat.com>
9165 PR tree-optimization/47679
9166 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
9168 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9169 object. Update constructor.
9170 (pass_dominator::execute): Corresponding chagnes to declaration
9171 and initialization of avail_exprs_stack. Update constructor call
9172 for dom_opt_dom_walker object.
9173 (lookup_avail_expr, record_cond): Accept additional argument. Pass
9174 it down to children as needed.
9175 (record_equivalences_from_incoming_edge): Likewise.
9176 (eliminate_redundant_computations): Likewise.
9177 (record_equivalences_from_stmt): Likewise.
9178 (simplify_stmt_for_jump_threading): Likewise.
9179 (record_temporary_equivalences): Likewise.
9180 (optimize_stmt): Likewise.
9181 (dom_opt_dom_walker::thread_across_edge): Update access to
9182 avail_exprs_stack object and pass it to children as needed.
9183 (dom_opt_dom_walker::before_dom_children): Similarly.
9184 (dom_opt_dom_walker::after_dom_children): Similarly.
9185 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9186 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9187 Add avail_expr_stack argument. Pass it to children as needed.
9188 (dummy_simplify): Likewise.
9189 (simplify_control_stmt_condition): Likewise.
9190 (thread_around_empty_blocks): Likewise.
9191 (thread_through_normal_block): Likewise.
9192 (thread_across_edge): Likewise.
9193 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9194 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9196 PR tree-optimization/47679
9197 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
9199 (dom_opt_dom_walker): New private member holding the const_and_copies
9200 object. Update constructor.
9201 (pass_dominator::execute): Corresponding changes to declaration
9202 and initialization of const_and_copies. Update constructor call
9203 for the dom_opt_dom_walker object.
9204 (record_temporary_equivalences): Accept const_and_copies argument
9205 pass it down to children as needed.
9206 (record_equality): Likewise.
9207 (record_equivalences_from_incoming_edge): Likewise.
9208 (cprop_into_successor_phis, optimize_stmt): Likewise.
9209 (eliminate_redundant_computations): Likewise.
9210 (dom_opt_dom_walker::thread_across_edge): Update access to
9211 const_and_copies object and pass it to children as needed.
9212 (dom_opt_dom_walker::before_dom_children): Similarly.
9213 (dom_opt_dom_walker::after_dom_children): Similarly.
9215 PR tree-optimization/47679
9216 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
9217 it into the avail_exprs_stack class.
9218 (pass_dominator::execute): Corresponding changes to declaration
9219 and initialization of avail_exprs. Pass avail_exprs to
9220 dump_dominator_optimization_stats.
9221 (record_cond): Extract avail_exprs from avail_exprs_stack.
9222 (lookup_avail_expr): Similarly.
9223 (htab_staticstics): Remove unnecessary prototype. Move to earlier
9225 (dump_dominator_optimization_stats): Make static and prototype.
9226 Add argument for the hash table to dump.
9227 (debug_dominator_optimization_stats): Remove.
9228 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9230 (debug_dominator_optimization_stats): Similarly.
9231 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9232 "void" in prototype for pop_to_marker method. Add accessor method
9233 for the underlying avail_exprs table.
9235 * tree-ssa-threadedge.c: Remove trailing whitespace.
9237 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
9239 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9241 (pa_ldil_cint_p): Likewise.
9242 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9243 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9245 * config/pa/pa.md: Likewise.
9247 2015-09-18 David Malcolm <dmalcolm@redhat.com>
9249 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9250 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9251 (diagnostic_show_locus): Likewise.
9252 (diagnostic_print_caret_line): Likewise.
9253 * diagnostic-show-locus.c: New file.
9255 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
9257 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9258 "back" parameter. Declare label in #if block.
9260 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
9263 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9264 the address to a register.
9266 2015-09-18 Jeff Law <law@redhat.com>
9268 PR tree-optimization/47679
9269 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9270 * tree-ssa-dom.c: Remove unnecessary header includes.
9271 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9272 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9273 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9274 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9275 (pass_phi_only_cprop::execute): Likewise.
9276 (make_pass_phi_only_cprop): Likewise.
9277 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
9278 uses of file scoped statics by passing the required objects
9279 as parameters wherever needed.
9281 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
9282 David Edelsohn <dje.gcc@gmail.com>
9284 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9285 EH_FRAME_THROUGH_COLLECT2.
9286 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9288 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9289 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
9290 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9291 * except.c (switch_to_exception_section): Use a read-only section
9292 even if EH_FRAME_SECTION_NAME is undefined.
9293 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9294 * collect2.c (write_c_file_stat): Provide dbase on AIX.
9295 (scan_prog_file): Don't export __dso_handle nor
9297 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9298 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9299 (ASM_OUTPUT_DWARF_PCREL): Define.
9300 (ASM_OUTPUT_DWARF_DATAREL): Define.
9301 (EH_FRAME_THROUGH_COLLECT2): Define.
9302 (EH_FRAME_IN_DATA_SECTION): Delete.
9303 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9304 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9306 (rs6000_asm_output_dwarf_datarel): Declare.
9307 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9308 (rs6000_aix_asm_output_dwarf_datarel): New.
9309 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9310 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9311 (EH_FRAME_THROUGH_COLLECT2): Define.
9312 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9313 (EH_FRAME_THROUGH_COLLECT2): Define.
9314 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9315 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9316 (EH_FRAME_THROUGH_COLLECT2): New.
9317 (ASM_OUTPUT_DWARF_DATAREL): New.
9318 * doc/tm.texi: Regenerate.
9320 2015-09-18 Richard Biener <rguenther@suse.de>
9322 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9323 we're in early phase.
9324 (schedule_generic_params_dies_gen): Likewise.
9325 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9326 work as possible, retaining unhandled cases.
9327 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9328 clear out generic_type_instances at the end.
9329 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9330 (dwarf2out_early_finish): ... here. Do most of
9331 gen_remaining_tmpl_value_param_die_attribute here.
9333 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
9335 PR tree-optimization/67283
9336 * tree-sra.c (type_consists_of_records_p): Rename to...
9337 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9338 (completely_scalarize_record): Rename to...
9339 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9340 (scalarize_elem): New.
9341 (analyze_all_variable_accesses): Follow renamings.
9343 2015-09-18 Richard Biener <rguenther@suse.de>
9345 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9348 2015-09-18 Richard Biener <rguenther@suse.de>
9350 PR tree-optimization/66142
9351 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9352 treat MEM[&x] and x the same.
9353 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9354 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9355 when we simplified sth.
9356 (vn_reference_maybe_forwprop_address): Likewise.
9357 (valueize_refs_1): When we simplified through
9358 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9359 set valueized_anything to true.
9360 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9361 one ref kills the other instead of just a offset-based test.
9362 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9363 for the operand_equal_p test to compare bases and also compare
9366 2015-09-17 Christian Bruel <christian.bruel@st.com>
9368 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9370 2015-09-17 Richard Henderson <rth@redhat.com>
9373 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9374 pointers that encode the alignment of the object.
9376 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9378 PR rtl-optimization/66790
9379 * df-problems.c (LIVE): Amend documentation.
9381 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
9383 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9385 (GTFILES): Replace optabs.c with optabs-libfunc.c.
9386 * genopinit.c (main): Add an include guard to insn-opinit.h.
9387 Protect the rtx_code parts with NUM_RTX_CODE.
9388 * optabs.h: Split parts out to...
9389 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9390 * optabs.c: Split parts out to...
9391 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9392 * cilk-common.c: Include optabs-query.h rather than optabs.h.
9393 * fold-const.c: Likewise.
9394 * target-globals.c: Likewise.
9395 * tree-if-conv.c: Likewise.
9396 * tree-ssa-forwprop.c: Likewise.
9397 * tree-ssa-loop-prefetch.c: Likewise.
9398 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9399 Remove unncessary include files.
9400 * tree-ssa-phiopt.c: Likewise.
9401 * tree-ssa-reassoc.c: Likewise.
9402 * tree-switch-conversion.c: Likewise.
9403 * tree-vect-data-refs.c: Likewise.
9404 * tree-vect-generic.c: Likewise.
9405 * tree-vect-loop.c: Likewise.
9406 * tree-vect-patterns.c: Likewise.
9407 * tree-vect-slp.c: Likewise.
9408 * tree-vect-stmts.c: Likewise.
9409 * tree-vrp.c: Likewise.
9410 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9411 rather than optabs.h.
9412 * expr.c: Include optabs-tree.h.
9413 * function.c: Likewise.
9415 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9418 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9419 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9420 * config/arm/arm.c: Include common/common-target.h.
9421 (use_return_insn): Return 0 if the static chain register was saved
9422 above a non-APCS frame.
9423 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9424 (struct scratch_reg): New.
9425 (get_scratch_register_on_entry): New function.
9426 (release_scratch_register_on_entry): Likewise.
9427 (arm_emit_probe_stack_range): Likewise.
9428 (output_probe_stack_range): Likewise.
9429 (arm_expand_prologue): Factor out code dealing with the IP register
9430 for nested function and adjust it for stack checking.
9431 Invoke arm_emit_probe_stack_range if static builtin stack checking
9433 (thumb1_expand_prologue): Sorry out if static builtin stack checking
9435 (arm_expand_epilogue): Add the saved static chain register, if any, to
9436 the amount of pre-pushed registers to pop.
9437 (arm_frame_pointer_required): Return true if static stack checking is
9438 enabled and we want to catch the exception with the EABI unwinder.
9439 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9440 (UNSPEC_PROBE_STACK_RANGE): Likewise.
9441 * config/arm/arm.md (probe_stack): New insn.
9442 (probe_stack_range): Likewise.
9444 2015-09-17 Richard Biener <rguenther@suse.de>
9446 * genmatch.c (parser::parse_expr): Improve error message
9447 for mis-placed flags.
9449 2015-09-17 Richard Biener <rguenther@suse.de>
9451 * passes.c (rest_of_decl_compilation): Always call early_global_decl
9452 debug hook when we created a varpool node.
9453 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9454 dwarf2out_early_global_decl, when not just add location or
9455 value attributes to existing DIEs.
9457 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
9459 * config/aarch64/aarch64.md (copysigndf3): New.
9460 (copysignsf3): Likewise.
9462 2015-09-17 David S. Miller <davem@davemloft.net>
9464 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9465 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9466 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9467 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9468 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9469 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9470 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9471 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9472 provide when flag_pic.
9474 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
9476 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9477 object_allocator change.
9479 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9481 PR tree-optimization/66388
9482 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9483 (dump_iv): Dump no_overflow information.
9484 (alloc_iv): Initialize new field for struct iv.
9485 (mark_bivs): Count number of no_overflow bivs.
9486 (find_deriving_biv_for_expr, record_biv_for_address_use): New
9488 (idx_find_step): Call new functions above.
9489 (add_candidate_1, add_candidate): New paramter.
9490 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9491 (get_computation_aff): Simplify convertion of cand for BIV.
9492 (get_computation_cost_at): Step cand's base if necessary.
9494 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9496 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9498 (tree_simplify_using_condition): Ditto.
9499 (simplify_using_initial_conditions): Ditto.
9500 (loop_exits_before_overflow): Pass new argument to function
9501 simplify_using_initial_conditions. Remove case for type conversions
9503 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9505 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9506 in iv base using loop initial conditions.
9508 2015-09-16 Jeff Law <law@redhat.com>
9510 PR tree-optimization/47679
9511 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9512 (free_all_edge_infos): Use it.
9513 (allocate_edge_info): Free preexisting edge info data.
9514 (pass_dominator::execute): Set up initial edge info structures.
9515 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9517 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9518 If non-null, then push/pop markers appropriately.
9519 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9520 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9523 2015-09-16 James Bowman <james.bowman@ftdichip.com>
9525 * config/ft32/ft32.c: Fix the memory address space predicate.
9527 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9530 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9531 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9533 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9535 * toplev.h (check_global_declaration): Remove declaration.
9536 * toplev.c (check_global_declaration): Move to ...
9537 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9538 (analyze_functions): Update call.
9540 2015-09-16 David S. Miller <davem@davemloft.net>
9542 * lra-constraints.c (simplify_operand_subreg): Do not assume that
9543 lowpart of a SUBREG has offset zero.
9545 2015-09-16 Jeff Law <law@redhat.com>
9547 PR tree-optimization/47679
9548 * tree-ssa-dom.c (enum expr_kind): Moved from here to
9549 tree-ssa-scopedtables.h.
9550 (struct hashable_expr, class expr_hash_elt): Likewise.
9551 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9552 Move associated methods into tree-ssa-scopedtables.c.
9553 (avail_expr_hash, initialize_expr_from_cond): Similarly.
9554 (hashable_expr_equal_p, add_expr_commutative): Likewise.
9555 (add_hashable_expr): Likewise.
9556 (record_cond): Delete element directly.
9557 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9558 private copy ctor and assignment operator methods.
9559 (expr_elt_hasher): Inline trivial methods.
9560 (initialize_expr_from_cond): Prototype.
9561 * tree-ssa-scopedtables.c: Add necessary includes, functions and
9562 methods that were previously in tree-ssa-dom.c. Improve various
9565 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
9567 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9569 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
9572 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9575 2015-09-16 Richard Biener <rguenther@suse.de>
9578 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9579 location of possibly shared trees.
9581 2015-09-16 Richard Biener <rguenther@suse.de>
9584 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9586 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
9588 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9589 offset and size computations instead of HOST_WIDE_INT.
9591 2015-09-16 Richard Biener <rguenther@suse.de>
9594 * fold-const.c (extract_muldiv_1): Properly extend multiplication
9595 result before builting a tree via wide_int_to_tree.
9597 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
9599 * Makefile.in: Add memory-block.cc
9600 (pool_allocator::initialize): Use fixed block size.
9601 (pool_allocator::release): Use memory_block_pool.
9602 (pool_allocator::allocate): Likewise.
9603 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9605 * cfg.c (initialize_original_copy_tables): Likewise.
9606 * cselib.c (elt_list_pool, elt_loc_list_pool,
9607 cselib_val_pool): Likewise.
9608 * df-problems.c (df_chain_alloc): Likewise.
9609 * df-scan.c (df_scan_alloc): Likewise.
9610 * dse.c (cse_store_info_pool, rtx_store_info_pool,
9611 read_info_type_pool, insn_info_type_pool, bb_info_pool,
9612 group_info_pool, deferred_change_pool): Likewise.
9613 * et-forest.c (et_nodes, et_occurrences): Likewise.
9614 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9615 ipcp_agg_lattice_pool): Likewise.
9616 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9617 * ipa-profile.c (histogram_pool): Likewise.
9618 * ipa-prop.c (ipa_refdesc_pool): Likewise.
9619 * ira-build.c (live_range_pool, allocno_pool, object_pool,
9620 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9621 * ira-color.c (update_cost_record_pool): Likewise.
9622 * lra-lives.c (lra_live_range_pool): Likewise.
9623 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9624 * memory-block.cc: New file.
9625 * memory-block.h: New file.
9626 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9627 * sched-deps.c (sched_deps_init): Likewise.
9628 * sel-sched-ir.c (sched_lists_pool): Likewise.
9629 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9630 * tree-sra.c (access_pool): Likewise.
9631 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9632 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9633 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9634 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9635 * tree-ssa-strlen.c (strinfo_pool): Likewise.
9636 * tree-ssa-structalias.c (variable_info_pool): Likewise.
9637 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9638 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9640 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9642 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9644 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9647 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9649 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9650 to pass TLS call argument, according to current ABI.
9651 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9652 callx0 for TLS call, according to current ABI.
9654 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9656 * tree-eh.c (lower_try_finally_dup_block): Clear location information
9657 on stack restore statements.
9658 (decide_copy_try_finally): Do not consider a stack restore statement as
9659 coming from sources.
9661 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
9663 * config/alpha/alpha.c (alpha_expand_block_clear): Use
9664 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9666 2015-09-15 Jeff Law <law@redhat.com>
9668 PR tree-optimization/47679
9669 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9670 methods and private members.
9671 (avail_exprs_stack): Similarly. Change type of global
9672 from a pair of expr_hash_elt_t to the new class.
9673 (expr_elt_hasher::hash): Corresponding changes.
9674 (expr_elt_hasher::equal): Similarly.
9675 (avail_expr_hash): Similarly.
9676 (pass_dominator::execute): Similarly.
9677 (dom_opt_dom_walker::thread_across_edge): Similarly.
9678 (record_cond): Similarly.
9679 (dom_opt_dom_walker::before_dom_children): Similarly.
9680 (dom_opt_dom_walker::after_dom_children): Similarly.
9681 (lookup_avail_expr): Likewise.
9682 (initialize_hash_element): Now a expr_hash_elt constructor.
9683 (initialize_hash_element_from_expr): Similarly.
9684 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9685 (free_expr_hash_elt): Call dtor for the element.
9686 (remove_local_expressions_from_table): Now the "pop_to_marker"
9687 method in the available_exprs_stack class.
9688 (avail_expr_stack::record_expr): Method factored out.
9689 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9691 (hashable_expr_equal_p): Fix formatting.
9693 2015-09-15 David Malcolm <dmalcolm@redhat.com>
9695 * input.h (location_get_source_line): Drop "expanded_location"
9696 param in favor of a file and line number.
9697 * input.c (location_get_source_line): Likewise.
9698 (dump_location_info): Update for change in signature of
9699 location_get_source_line.
9700 * diagnostic.c (diagnostic_print_caret_line): Likewise.
9702 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9704 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9705 Bump to 4KB for SJLJ exceptions.
9706 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
9707 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9708 * doc/tm.texi: Regenerate.
9710 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9712 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9713 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
9716 2015-09-15 Richard Biener <rguenther@suse.de>
9718 PR tree-optimization/67470
9719 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9720 structure for PHI hoisting by inserting a forwarder block
9723 2015-09-15 Christian Bruel <christian.bruel@st.com>
9725 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9726 (arm_option_print): New function.
9728 2015-09-15 Christian Bruel <christian.bruel@st.com>
9731 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9732 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9733 Remove flags parameter.
9734 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9735 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9736 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9737 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9738 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9739 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9740 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9741 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9743 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9745 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9747 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9748 AARCH64_VALID_SIMD_DREG_MODE.
9750 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9752 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9753 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9754 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9755 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9756 aarch64_ld4_lane<mode>): Combine together, making...
9757 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9758 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9759 aarch64_st4_lane<mode>): Combine together, making...
9760 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9761 * config/aarch64/iterators.md (nregs): Add comment.
9763 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9765 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9766 Change operand mode from <V_TWO_ELEM> to BLK.
9767 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9768 (aarch64_vec_store_lanesoi_lane<mode): Likewise
9769 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9770 (aarch64_ld2_lane<mode>): Likewise.
9771 (aarch64_st2_lane<VQ:mode>): Likewise.
9772 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9774 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9776 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9777 Change operand mode from <V_FOUR_ELEM> to BLK.
9778 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9779 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9780 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9781 (aarch64_ld4_lane<mode>): Likewise.
9782 (aarch64_st4_lane<mode>): Likewise.
9783 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9785 2015-09-15 Richard Biener <rguenther@suse.de>
9788 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9789 transfer EH info from old to new stmt.
9790 (replace_call_with_value): Likewise.
9791 (replace_call_with_call_and_fold): Likewise.
9792 (gimple_fold_builtin_memory_op): Likewise.
9793 (gimple_fold_builtin_memset): Likewise.
9794 (gimple_fold_builtin_stpcpy): Likewise.
9795 (gimple_fold_call): Likewise.
9797 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9799 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9801 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9802 (aarch64_simd_intEI_type_node): Likewise.
9803 (aarch64_simd_builtin_std_type): Remove EImode case.
9804 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9805 * config/aarch64/aarch64-modes.def: Remove EImode.
9807 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9809 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9810 Change operand mode from <V_THREE_ELEM> to BLK.
9811 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9812 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9813 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9814 (aarch64_ld3_lane<mode>): Likewise.
9815 (aarch64_st3_lane<mode>): Likewise.
9816 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9818 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9820 * config/aarch64/aarch64-simd.md
9821 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9822 Change all TImode operands to BLKmode.
9823 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9824 Change all EImode operands to BLKmode.
9825 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9826 Change all OImode operands to BLKmode.
9828 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9829 and call set_mem_size.
9830 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9832 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9834 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9836 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9838 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9840 (vec_store_lanesci_lane<mode>): Rename to...
9841 (aarch64_vec_store_lanesci_lane<mode>): ...this.
9843 (vec_store_lanesxi_lane<mode>): Rename to...
9844 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9846 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9847 aarch64_st4_lane<mode>): Follow renaming.
9849 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9851 * config/s390/s390.c (s390_const_operand_ok): Add missing
9854 2015-09-15 Richard Biener <rguenther@suse.de>
9857 * lto-streamer.h (lto_location_cache::current_sysp): Properly
9859 * lto-streamer-out.c (clear_line_info): Likewise.
9861 2015-09-15 Richard Biener <rguenther@suse.de>
9863 * doc/match-and-simplify.texi: Fix wording.
9865 2015-09-15 Bin Cheng <bin.cheng@arm.com>
9867 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9868 unnecessary type conversion in op1.
9870 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9872 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9873 (dup_block_and_redirect): Delete function.
9874 (can_dup_for_shrink_wrapping): New function.
9875 (fix_fake_fallthrough_edge): New function.
9876 (try_shrink_wrapping): Rewrite function.
9877 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9879 2015-09-14 Rich Felker <dalias@libc.org>
9881 * configure.ac: Change target pattern for sh TLS support
9882 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9883 * configure: Regenerate.
9885 2015-09-14 Jeff Law <law@redhat.com>
9887 PR tree-optimization/47679
9888 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9889 type rather than void *.
9891 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9894 * diagnostic.c (diagnostic_initialize): Do not set
9895 some_warnings_are_errors.
9896 (diagnostic_finish): Use DK_WERROR count instead.
9897 (diagnostic_report_diagnostic): Do not set
9898 some_warnings_are_errors.
9899 * diagnostic.h (struct diagnostic_context): Remove
9900 some_warnings_are_errors.
9902 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
9904 * config/sparc/predicates.md (const_all_ones_operand): Use
9905 CONSTM1_RTX to simplify definition.
9907 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
9910 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9913 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
9915 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9916 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9917 OPT_fshow_column to handled saved option cases.
9918 (append_compiler_options): Do not skip the above added options.
9920 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9923 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9924 nopcrelative_literal_loads.
9925 (aarch64_classify_address): Likewise.
9926 (aarch64_constant_pool_reload_icode): Define.
9927 (aarch64_secondary_reload): Handle secondary reloads for
9929 (aarch64_override_options): Handle nopcrelative_literal_loads.
9930 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9931 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9933 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9934 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9935 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9937 * doc/invoke.texi (mpc-relative-literal-loads): Document.
9939 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
9942 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9943 sync_compare_and_swap_optab libcall to target_oval.
9945 2015-09-14 Marek Polacek <polacek@redhat.com>
9947 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9949 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9951 2015-09-11 Mark Wielaard <mjw@redhat.com>
9954 * toplev.c (check_global_declaration): Check and use
9955 warn_unused_const_variable.
9956 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9957 (-Wunused-variable): Remove non-constant. For C implies
9958 -Wunused-const-variable.
9959 (-Wunused-const-variable): New.
9961 2015-09-14 Richard Biener <rguenther@suse.de>
9963 * doc/match-and-simplify.texi: Update for changed syntax
9964 of inner ifs and the new switch expression.
9966 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9968 * config/i386/haswell.md: New file describing Haswell pipeline.
9969 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9970 haswell-like processors.
9971 (ix86_reassociation_width): Increase reassociation width for 64-bit
9972 Haswell processor family.
9973 * config/i386/i386.md: Introduce haswell cpu and include new md file.
9975 2015-09-14 Richard Biener <rguenther@suse.de>
9977 * doc/match-and-simplify.texi: Fixup some formatting issues
9978 and document the 's' flag.
9980 2015-09-13 Olivier Hainque <hainque@adacore.com>
9981 Eric Botcazou <ebotcazou@adacore.com>
9983 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9984 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
9985 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9986 (TARGET_CPU_gr5): Likewise.
9987 (TARGET_CPU_gr6): Likewise.
9988 (MULTILIB_DEFAULTS): Likewise.
9989 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9990 for mcpu=gr5 and mcpu=gr6.
9991 (MULTILIB_DIRNAMES): Adjust accordingly.
9993 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9995 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9996 (mem_ref_p): Likewise.
9997 (outermost_indep_loop): Adjust.
9998 (mem_ref_in_stmt): Likewise.
9999 (determine_max_movement): Likewise.
10000 (mem_ref_alloc): Likewise.
10001 (record_mem_ref_loc): Likewise.
10002 (set_ref_stored_in_loop): Likewise.
10003 (mark_ref_stored): Likewise.
10004 (gather_mem_refs_stmt): Likewise.
10005 (mem_refs_may_alias_p): Likewise.
10006 (for_all_locs_in_loop): Likewise.
10007 (struct rewrite_mem_ref_loc): Likewise.
10008 (rewrite_mem_refs): Likewise.
10009 (struct first_mem_ref_loc_1): Likewise.
10010 (first_mem_ref_loc): Likewise.
10011 (struct sm_set_flag_if_changed): Likewise.
10012 (execute_sm_if_changed_flag_set): Likewise.
10013 (execute_sm): Likewise.
10014 (hoist_memory_references):
10015 (struct ref_always_accessed): Likewise.
10016 (ref_always_accessed_p): Likewise.
10017 (refs_independent_p): Likewise.
10018 (record_dep_loop): Likewise.
10019 (ref_indep_loop_p_1): Likewise.
10020 (ref_indep_loop_p_2): Likewise.
10021 (ref_indep_loop_p): Likewise.
10022 (can_sm_ref_p): Likewise.
10023 (find_refs_for_sm): Likewise.
10024 (tree_ssa_lim_finalize): Likewise.
10026 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10028 * dwarf2out.c (dw_attr_ref): Remove typedef.
10029 (dw_line_info_ref): Likewise.
10030 (pubname_ref): Likewise.
10031 (dw_ranges_ref): Likewise.
10032 (dw_ranges_by_label_ref): Likewise.
10033 (comdat_type_node_ref): Likewise.
10035 (get_AT_low_pc): Likewise.
10036 (get_AT_hi_pc): Likewise.
10037 (get_AT_string): Likewise.
10038 (get_AT_flag): Likewise.
10039 (get_AT_unsigned): Likewise.
10040 (get_AT_ref): Likewise.
10041 (get_AT_file): Likewise.
10042 (remove_AT): Likewise.
10043 (print_die): Likewise.
10044 (check_die): Likewise.
10045 (die_checksum): Likewise.
10046 (attr_checksum_ordered): Likewise.
10047 (struct checksum_attributes): Likewise.
10048 (collect_checksum_attributes): Likewise.
10049 (die_checksum_ordered): Likewise.
10050 (same_die_p): Likewise.
10051 (is_declaration_die): Likewise.
10052 (clone_die): Likewise.
10053 (clone_as_declaration): Likewise.
10054 (copy_declaration_context): Likewise.
10055 (break_out_comdat_types): Likewise.
10056 (copy_decls_walk): Likewise.
10057 (output_location_lists): Likewise.
10058 (external_ref_hasher::hash): Likewise.
10059 (optimize_external_refs_1): Likewise.
10060 (build_abbrev_table): Likewise.
10061 (size_of_die): Likewise.
10062 (unmark_all_dies): Likewise.
10063 (size_of_pubnames): Likewise.
10064 (output_die_abbrevs): Likewise.
10065 (output_die): Likewise.
10066 (output_pubnames): Likewise.
10067 (add_ranges_num): Likewise.
10068 (add_ranges_by_labels): Likewise.
10069 (add_high_low_attributes): Likewise.
10070 (gen_producer_string): Likewise.
10071 (dwarf2out_set_name): Likewise.
10072 (new_line_info_table): Likewise.
10073 (prune_unused_types_walk_attribs): Likewise.
10074 (prune_unused_types_update_strings): Likewise.
10075 (prune_unused_types): Likewise.
10076 (resolve_addr): Likewise.
10077 (optimize_location_lists_1): Likewise.
10078 (index_location_lists): Likewise.
10079 (dwarf2out_finish): Likewise.
10081 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10083 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10085 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10087 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10088 (dump_asserts_for): Adjust.
10089 (register_new_assert_for): Likewise.
10090 (process_assert_insertions): Likewise.
10091 (insert_range_assertions): Likewise.
10093 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10095 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10096 and remove typedef.
10097 (new_temp_expr_table): Adjust.
10098 (free_temp_expr_table): Likewise.
10099 (version_to_be_replaced_p): Likewise.
10100 (make_dependent_on_partition): Likewise.
10101 (add_to_partition_kill_list): Likewise.
10102 (remove_from_partition_kill_list): Likewise.
10103 (add_dependence): Likewise.
10104 (finished_with_expr): Likewise.
10105 (process_replaceable): Likewise.
10106 (kill_expr): Likewise.
10107 (kill_virtual_exprs): Likewise.
10108 (mark_replaceable): Likewise.
10109 (find_replaceable_in_bb): Likewise.
10110 (find_replaceable_exprs): Likewise.
10111 (debug_ter): Likewise.
10113 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10115 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10116 (struct btr_user): Rename from btr_user_s.
10117 (struct btr_def): Rename from btr_def_s.
10118 (find_btr_def_group): Adjust.
10119 (add_btr_def): Likewise.
10120 (new_btr_user): Likewise.
10121 (note_other_use_this_block): Likewise.
10122 (compute_defs_uses_and_gen): Likewise.
10123 (link_btr_uses): Likewise.
10124 (build_btr_def_use_webs): Likewise.
10125 (block_at_edge_of_live_range_p): Likewise.
10126 (btr_def_live_range): Likewise.
10127 (combine_btr_defs): Likewise.
10128 (move_btr_def): Likewise.
10129 (migrate_btr_def): Likewise.
10130 (migrate_btr_defs): Likewise.
10132 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10134 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10135 (shared_hash): Remove typedef.
10136 (struct dataflow_set): Adjust.
10137 (shared_hash_unshare): Likewise.
10138 (dataflow_set_merge): Likewise.
10139 (vt_initialize): Likewise.
10140 (vt_finalize): Likewise.
10142 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10144 * var-tracking.c (struct location_chain): Rename from
10145 location_chain_def.
10146 (struct variable_part): Adjust.
10147 (variable_htab_free): Likewise.
10148 (unshare_variable): Likewise.
10149 (get_init_value): Likewise.
10150 (get_addr_from_local_cache): Likewise.
10151 (drop_overlapping_mem_locs): Likewise.
10152 (val_reset): Likewise.
10153 (struct variable_union_info): Likewise.
10154 (variable_union): Likewise.
10155 (find_loc_in_1pdv): Likewise.
10156 (insert_into_intersection): Likewise.
10157 (intersect_loc_chains): Likewise.
10158 (canonicalize_loc_order_check): Likewise.
10159 (canonicalize_values_mark): Likewise.
10160 (canonicalize_values_star): Likewise.
10161 (canonicalize_vars_star): Likewise.
10162 (variable_merge_over_cur): Likewise.
10163 (remove_duplicate_values): Likewise.
10164 (variable_post_merge_new_vals): Likewise.
10165 (variable_post_merge_perm_vals): Likewise.
10166 (find_mem_expr_in_1pdv): Likewise.
10167 (dataflow_set_preserve_mem_locs): Likewise.
10168 (dataflow_set_remove_mem_locs): Likewise.
10169 (variable_part_different_p): Likewise.
10170 (onepart_variable_different_p): Likewise.
10171 (find_src_set_src): Likewise.
10172 (dump_var): Likewise.
10173 (set_slot_part): Likewise.
10174 (clobber_slot_part): Likewise.
10175 (delete_slot_part): Likewise.
10176 (vt_expand_var_loc_chain): Likewise.
10177 (emit_note_insn_var_location): Likewise.
10178 (vt_finalize): Likewise.
10180 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10182 * dse.c (store_info_t): Remove typedef.
10183 (group_info_t): Likewise.
10184 (const_group_info_t): Likewise.
10185 (deferred_change_t): Likewise.
10186 (get_group_info): Adjust.
10187 (free_store_info): Likewise.
10188 (canon_address): Likewise.
10189 (clear_rhs_from_active_local_stores): Likewise.
10190 (record_store): Likewise.
10191 (replace_read): Likewise.
10192 (check_mem_read_rtx): Likewise.
10193 (scan_insn): Likewise.
10194 (remove_useless_values): Likewise.
10195 (dse_step1): Likewise.
10196 (dse_step2_init): Likewise.
10197 (dse_step2_nospill): Likewise.
10198 (scan_stores_nospill): Likewise.
10199 (scan_reads_nospill): Likewise.
10200 (dse_step3_exit_block_scan): Likewise.
10201 (dse_step3): Likewise.
10202 (dse_step5_nospill): Likewise.
10203 (dse_step6): Likewise.
10205 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10207 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10208 (alias_set_entry): Remove typedef.
10209 (alias_set_subset_of): Adjust.
10210 (alias_sets_conflict_p): Likewise.
10211 (init_alias_set_entry): Likewise.
10212 (get_alias_set): Likewise.
10213 (new_alias_set): Likewise.
10214 (record_alias_subset): Likewise.
10216 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
10218 * doc/install.texi (Downloading the source): Mark up
10219 contrib/download_prerequisites properly and drop leading "./".
10221 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10223 * config/arc/arc.h: Remove define of STRUCT_VALUE.
10224 * config/lm32/lm32.h: Likewise.
10225 * config/mep/mep.h: Likewise.
10226 * config/visium/visium.h: Likewise.
10227 * system.h: Poison STRUCT_VALUE macro.
10229 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
10231 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10232 CONSTANT_P operands.
10234 2015-09-11 David S. Miller <davem@davemloft.net>
10236 * config/sparc/constraints.md: Make "U" constraint a real register
10238 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10239 (D_MODES, DF_MODES): Add missing cast.
10240 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10241 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10242 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10244 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10245 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10246 provide these insn when flag_pic.
10248 2015-09-11 Jeff Law <law@redhat.com>
10250 PR tree-optimization/47679
10251 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10252 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10253 member with m_. Update inline member functions as necessary. Add
10255 * tree-ssa-scopedtables.c: Update const_and_copies's member
10256 functions to use m_ prefix to access the stack.
10258 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10260 * graphite-optimize-isl.c (disable_tiling): Remove.
10261 (get_schedule_for_band): Do not use disable_tiling.
10262 (get_prevector_map): Delete function.
10263 (enable_polly_vector): Remove.
10264 (get_schedule_for_band_list): Remove dead code.
10266 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10268 * graphite-optimize-isl.c (get_tile_map): Refactor.
10269 (get_schedule_for_band): Same.
10270 (getScheduleForBand): Same.
10271 (get_prevector_map): Same.
10272 (get_schedule_for_band_list): Same.
10273 (get_schedule_map): Same.
10274 (get_single_map): Same.
10275 (apply_schedule_map_to_scop): Same.
10276 (optimize_isl): Same.
10278 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10281 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10283 * config/aarch64/iterators.md (GPF_TF_F16): New.
10286 2015-09-10 Nathan Sidwell <nathan@acm.org>
10288 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10289 (nvptx_reorg): Adjust comments.
10291 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
10294 * configure.ac: Check if setenv and unsetenv are declared.
10295 * configure: Rebuild.
10296 * config.in: Rebuild.
10297 * system.h: Declare setenv and unsetenv if not declared.
10299 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10301 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10302 commentary to simplify permute mask adjustment equation.
10303 (special_handling_values): Add SH_VPERM.
10304 (const_load_sequence_p): New function.
10305 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10306 the mask loaded from the constant pool.
10307 (adjust_vperm): New function.
10308 (handle_special_swappables): Call adjust_vperm.
10309 (dump_swap_insn_table): Handle SH_VPERM.
10311 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
10313 * shrink-wrap.c (requires_stack_frame_p): Remove static.
10314 * shrink-wrap.h (requires_stack_frame_p): Put back.
10316 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
10318 * reload1.c (elimination_costs_in_insn): Locally turn
10319 -Wmaybe-uninitialized into a warning.
10321 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
10323 * shrink-wrap.c (requires_stack_frame_p): Make static.
10324 (prepare_shrink_wrap): Likewise.
10325 (dup_block_and_redirect): Likewise.
10326 * shrink-wrap.h: Remove declarations of those functions.
10328 2015-09-10 Mark Wielaard <mjw@redhat.com>
10330 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10332 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
10335 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10336 missing simplify_gen_subreg.
10338 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10340 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10341 the vector element is bigger than 64 bit.
10343 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10345 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10346 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10348 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10350 * config/s390/s390.c: Add V1TImode to constant pool modes.
10352 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10355 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10356 predicate. Set predicable_short_it attr to "no".
10358 2015-09-10 Jiong Wang <jiong.wang@arm.com>
10360 PR rtl-optimization/67421
10361 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10362 left wide shift tranformation.
10364 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10366 * common/config/arc/arc-common.c: Remove references to A5.
10367 * config/arc/arc-opts.h: Likewise.
10368 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10369 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10370 * config/arc/t-arc-newlib: Likewise.
10372 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10374 * config/arc/arc.md (length): Fix attribute length for conditional
10375 executed instructions with long immediate.
10377 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10379 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10380 type for second alternative.
10382 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
10384 * doc/invoke.texi (Downloading GCC): Mention
10385 contrib/download_prerequisites script.
10387 2015-09-10 Jakub Jelinek <jakub@redhat.com>
10390 * gimplify.c (gimplify_omp_for): If inner stmt is not found
10391 for combined loop, assert seen_error () and return GS_ERROR.
10393 PR middle-end/67521
10394 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10395 if decl is already in outer->variables.
10397 PR middle-end/67517
10398 * gimplify.c (gimplify_scan_omp_clauses): Instead of
10399 asserting that decl is not specified in octx->variables,
10400 break out of the loop if it is.
10403 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10404 iterator is not explicitly determined, but is defined inside
10405 of the combined workshare region, handle it like if it has
10406 DECL_EXPR in OMP_FOR_PRE_BODY.
10408 2015-09-09 Nathan Sidwell <nathan@acm.org>
10410 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10411 (*cmp<mode>): Add assembler spacing.
10412 (setcc_int<mode>, set_cc_float<mode>): Likewise.
10413 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10415 (write_func_decl_from_insn): Refactor argument loops & comma emission.
10416 (nvptx_expand_call): Likewise.
10417 (nvptx_output_call_insn): Likewise.
10418 (nvptx_reorg_subreg): Add spacing.
10420 2015-09-09 Marek Polacek <polacek@redhat.com>
10422 PR middle-end/67512
10423 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10426 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10429 * doc/invoke.texi ([Wsubobject-linkage]): Document.
10431 2015-09-09 Tom de Vries <tom@codesourcery.com>
10433 * params-list.h: Add missing copyright notice.
10435 2015-09-09 Nathan Sidwell <nathan@acm.org>
10437 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10438 sel_truesi, not andsi.
10440 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10442 * config/arm/arm.md (*subsi3_compare0): Rename to...
10443 (subsi3_compare0): ... This.
10444 (modsi3): New define_expand.
10445 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10446 when operand is power of 2.
10448 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10450 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10451 (*neg<mode>2_compare0): Rename to...
10452 (neg<mode>2_compare0): ... This.
10453 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10454 Move check for speed inside the if-then-elses. Reflect
10455 CSNEG sequence in MOD by power of 2 case.
10457 2015-09-09 Alan Modra <amodra@gmail.com>
10460 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10461 reload replacement for PRE_MODIFY address reg.
10463 2015-09-09 Sebastian Pop <s.pop@samsung.com>
10465 PR tree-optimization/53852
10466 * config.in: Regenerate.
10467 * configure: Regenerate.
10468 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10469 * graphite-optimize-isl.c (optimize_isl): Stop computation when
10470 PARAM_MAX_ISL_OPERATIONS is reached.
10471 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10472 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10473 result equal to isl_stat_ok as the status now can be isl_error_quota.
10474 (subtract_commutative_associative_deps): Same.
10475 (compute_deps): Same.
10477 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10478 Sebastian Pop <s.pop@samsung.com>
10480 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10481 Return the parameter if it was saved in corresponding
10482 parameter_rename_map of the region.
10483 (copy_def): Copy def from sese region to the newly created region.
10484 (copy_internal_parameters): Copy all the internal parameters defined
10485 within a region to the newly created region.
10486 (graphite_regenerate_ast_isl): Copy parameters to the new region before
10487 translating isl to gimple.
10488 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10489 the loop-nest does not have any data-references.
10490 (build_graphite_scops): Create a scop only when there is at least one
10492 (contains_only_close_phi_nodes): Deleted.
10493 (print_graphite_scop_statistics): Deleted
10494 (print_graphite_statistics): Deleted
10495 (limit_scops): Deleted.
10496 (build_scops): Removed call to limit_scops.
10497 * sese.c (new_sese): Construct.
10498 (free_sese): Destruct.
10499 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10501 (set_rename): Pass sese region so that parameters inside the region can
10502 be added to its parameter_rename_map.
10503 (rename_uses): Pass sese region.
10504 (graphite_copy_stmts_from_block): Do not copy parameters that have been
10505 generated in the header of the scop. For each SSA_NAME in the
10506 parameter_rename_map rename its usage.
10507 (invariant_in_sese_p_rec): Return false if tree t is defined outside
10509 (scalar_evolution_in_region): If the tree t is invariant just return t.
10510 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10511 struct sese to keep track of all the parameters which need renaming.
10512 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10514 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10516 2015-09-08 Tom de Vries <tom@codesourcery.com>
10518 * Makefile.in (generated_files): Add params.list.
10519 (params.list, s-params.list): Add rule.
10520 * params.h (enum compiler_param): Include params-list.h. Move define
10521 DEFPARAM, include params.def and undef DEFPARAM ...
10522 * params-list.h: ... here. New file.
10524 2015-09-08 David Malcolm <dmalcolm@redhat.com>
10526 * pretty-print.h (printer_fn): Fix typo in comment.
10528 2015-09-07 Jeff Law <law@redhat.com>
10530 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10532 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10534 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10535 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10536 (arm_neon_fp16_hw): New.
10538 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10540 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10541 UNITS_PER_WORD >= 4.
10543 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10545 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10546 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10547 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10548 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10549 (aarch64_float_extend_lo_v2df): Rename to...
10550 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10552 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10553 (float_extend_lo): Add v4sf.
10555 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10556 * config/aarch64/iterators.md (VQ_HSF): New iterator.
10557 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10558 (Vwide): New mode_attr.
10560 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10562 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10563 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10564 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10565 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10566 V4HF and V8HF variants to iterator.
10568 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10570 * config/aarch64/iterators.md (VDQF_F16): New.
10571 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10573 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10575 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10576 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10577 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10578 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10579 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10580 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10581 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10582 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10583 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10584 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10585 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10586 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10587 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10588 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10589 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10590 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10591 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10592 vld1q_dup_f16): New.
10594 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10596 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10597 Reparameterize to...
10598 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10599 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10600 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10602 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10604 (float_truncate_lo_): Use BUILTIN_VDF iterator.
10606 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10608 * config/aarch64/iterators.md (VDF, Vdtype): New.
10609 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10611 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10613 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10614 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10615 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10616 Add __builtin_aarch64_simd_hf.
10617 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10618 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10619 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10620 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10621 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10622 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10623 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10624 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10625 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10627 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10628 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10629 (VDC, Vdbl): Add V4HF.
10631 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10633 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10634 V4HFmode and V8HFmode.
10635 (aarch64_split_simd_move): Add case for V8HFmode.
10636 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10637 (aarch64_simd_builtin_std_type): Handle HFmode.
10638 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10640 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10641 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10642 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10644 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10647 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10648 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10650 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10651 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10652 vst1q_lane_f16): New.
10653 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10654 (VALLDI_F16, VALL_F16): New.
10655 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10656 Add cases for V4HF and V8HF.
10657 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10659 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10661 * config/arm/arm-builtins.c (VAR11, VAR12): New.
10662 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10663 vld4_dup): Add v4hf variant.
10664 (vget_high, vget_low): Add v8hf variant.
10665 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10666 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10667 v4hf and v8hf variants.
10669 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10671 (V_DOUBLE): Add case for V4HF.
10673 (V_HALF): Add case for V8HF.
10674 (VDQX): Add V4HF, V8HF.
10675 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10676 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10678 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10679 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10680 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10681 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10682 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10683 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10684 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10685 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10686 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10688 (neon_vcreate, neon_vreinterpretv8qi<mode>,
10689 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10690 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10691 Change VDX to VD_RE.
10693 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10694 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10695 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10697 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10698 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10699 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10700 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10701 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10702 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10703 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10704 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10705 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10707 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10709 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10710 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10711 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10712 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10713 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10714 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10715 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10716 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10717 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10718 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10721 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10723 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10725 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10727 * config/arm/arm-builtins.c (v8hf_UP): New.
10728 (arm_init_simd_builtin_types): Initialise Float16x8_t.
10730 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10732 * config/arm/arm_neon.h (float16x8_t): New typedef.
10734 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10736 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10737 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10738 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10739 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10740 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10741 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10742 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10743 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10744 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10745 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10747 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
10749 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10750 non-alphanumeric characters in the symbol name.
10752 2015-09-07 Marek Polacek <polacek@redhat.com>
10754 PR inline-asm/67448
10755 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10758 2015-09-07 Marek Polacek <polacek@redhat.com>
10760 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10762 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
10764 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10767 2015-09-04 Jakub Jelinek <jakub@redhat.com>
10769 PR middle-end/67452
10770 * tree-ssa-live.c: Include cfgloop.h.
10771 (remove_unused_locals): Clear loop->simduid if simduid is about
10772 to be removed from cfun->local_decls.
10774 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10777 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10780 2015-09-04 Tom de Vries <tom@codesourcery.com>
10782 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10784 2015-09-04 Jeff Law <law@redhat.com>
10786 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10787 unnecessary constructor. It's now trivial and implemented inside...
10788 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10789 constructor. Add comments to various methods. Remove unused
10791 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10792 * tree-vrp.c (identify_jump_threads): Likewise.
10793 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10794 indentation issues.
10795 (thread_across_edge): Similarly.
10796 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10797 arguments in constructor call.
10799 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10801 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10802 temp path contains a '-'.
10804 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10805 Petr Murzin <petr.murzin@intel.com>
10806 Kirill Yukhin <kirill.yukhin@intel.com>
10808 * config/i386/i386-builtin-types.def
10809 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10810 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10811 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10812 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10813 * config/i386/i386.c
10814 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10815 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10816 IX86_BUILTIN_SCATTERALTDIV16SI.
10817 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10818 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10819 __builtin_ia32_scatteraltdiv8si.
10820 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10821 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10822 IX86_BUILTIN_SCATTERALTDIV16SI.
10823 (ix86_vectorize_builtin_scatter): New.
10824 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10825 ix86_vectorize_builtin_scatter.
10827 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10828 Petr Murzin <petr.murzin@intel.com>
10829 Kirill Yukhin <kirill.yukhin@intel.com>
10831 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10832 * doc/tm.texi: Regenerate.
10833 * target.def: Add scatter builtin.
10834 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10835 for loads/stores in case of gather/scatter accordingly.
10836 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10837 STMT_VINFO_GATHER_P(S).
10838 (vect_check_gather): Rename to ...
10839 (vect_check_gather_scatter): this.
10840 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10841 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10842 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10843 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10844 variable and new checkings for it accordingly.
10845 * tree-vect-stmts.c
10846 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10847 STMT_VINFO_GATHER_P(S).
10848 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10849 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10851 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10853 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10855 (mulv16qi3): New define_expand.
10857 2015-09-03 Martin Sebor <msebor@redhat.com>
10860 * doc/extend.texi (Other Builtins): Document when the address
10861 of a built-in function can be taken.
10863 2015-09-03 Richard Biener <rguenther@suse.de>
10865 * dwarf2out.c (flush_limbo_die_list): Split out from ...
10866 (dwarf2out_early_finish): ... here.
10867 (dwarf2out_finish): Do not call dwarf2out_early_finish but
10868 flush_limbo_die_list. Assert we have no deferred asm names.
10870 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10872 * optabs.c (expand_binop): Don't create a broadcast vector with a
10873 source element wider than the inner mode.
10875 2015-09-03 Richard Biener <rguenther@suse.de>
10877 * varasm.c (output_constant): Use fold_convert instead of
10880 2015-09-03 Tom de Vries <tom@codesourcery.com>
10882 PR tree-optimization/65637
10883 * omp-low.c (expand_omp_for_static_chunk): Handle case that
10884 fin_bb has 2 predecessors.
10886 2015-09-03 Tom de Vries <tom@codesourcery.com>
10888 PR tree-optimization/65637
10889 * omp-low.c (find_phi_with_arg_on_edge): New function.
10890 (expand_omp_for_static_chunk): Fix inner loop phi.
10892 2015-09-03 Tom de Vries <tom@codesourcery.com>
10894 PR tree-optimization/65637
10895 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10898 2015-09-03 Tom de Vries <tom@codesourcery.com>
10900 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10902 2015-09-03 Tom de Vries <tom@codesourcery.com>
10904 * doc/invoke.texi (parloops-chunk-size): Add item.
10905 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10906 * tree-parloops.c: Include params.h.
10907 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10908 param parloops-chunk-size is used.
10910 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10912 PR middle-end/67351
10913 * fold-const.c (fold_binary_loc) : Move
10914 Transform (x >> c) << c into x & (-1<<c) or
10915 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10916 types using simplify and match.
10917 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10918 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10920 2015-09-03 Richard Biener <rguenther@suse.de>
10923 * tree-ssa-structalias.c (ctor_for_analysis): New function.
10924 (create_variable_info_for_1): Use ctor_for_analysis instead
10925 of get_constructor.
10926 (create_variable_info_for): Likewise.
10928 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
10931 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10932 in new callgraph edge.
10934 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
10939 * config/aarch64/aarch64-simd.md
10940 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10941 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10942 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10943 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10945 2015-09-02 Alan Modra <amodra@gmail.com>
10947 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10948 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10949 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10951 2015-09-02 Alan Modra <amodra@gmail.com>
10954 * config/rs6000/predicates.md (current_file_function_operand): Don't
10955 return true for weak symbols.
10956 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10958 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
10959 Andrew Bennett <andrew.bennett@imgtec.com>
10961 * config/mips/mips-opts.h (mips_cb_setting): New enum.
10962 * config/mips/mips-protos.h: Add definitions for
10963 mips_output_jump and mips_output_equal_conditional_branch
10964 * config/mips/mips.c (MIPS_JR): Change to support the
10966 (mips_emit_compare): Add support for the MIPS R6 conditional
10968 (mips_process_sync_loop): Likewise.
10969 (mips_output_order_conditional_branch): Likewise.
10970 (mips16_build_call_stub): Change MIPS_CALL to
10972 (mips_print_operand_punctuation): Update 's' case to only
10973 apply to micromips r2.
10974 (mips_adjust_insn_length): Add support for forbidden slot
10976 (mips_avoid_hazard): Likewise.
10977 (mips_reorg_process_insns): Likewise.
10978 (mips_output_jump): New function.
10979 (mips_output_equal_conditional_branch): Likewise.
10980 (mips_output_conditional_branch): Use jrc/bc if compact
10981 branch support is enabled. Ensure the forbidden slots
10982 between the two branch instructions is filled with a nop.
10983 (mips_option_override): Add support to process the compact
10984 branch option and set the correct defaults. Prevent
10985 non-explict relocs being using for MIPS R6.
10986 (mips_trampoline_init): Add compact branch support.
10987 (mips_mult_zero_zero_cost): Allow zero initialisation of
10988 accumulators with TARGET_DSP.
10989 * config/mips/mips.h (TARGET_CB_NEVER): New define.
10990 (TARGET_CB_MAYBE): New define.
10991 (TARGET_CB_ALWAYS): New define.
10992 (ISA_HAS_DELAY_SLOTS): New define.
10993 (ISA_HAS_COMPACT_BRANCHES): New define.
10994 (ISA_HAS_JRC): New define.
10995 (MIPS_BRANCH_C): New define.
10996 (MIPS_CALL): Removed.
10997 (MICROMIPS_J): Removed.
10998 * config/mips/mips.md (compact_form): New attr.
10999 (hazard): Add support for forbidden slots.
11000 (define_delay): Add support for compact branches.
11001 (*branch_order<mode>): Likewise.
11002 (*branch_order<mode>_inverted): Likewise.
11003 (*branch_equality<mode>): Likewise.
11004 (*branch_equality<mode>_inverted): Likewise.
11005 (*jump_absolute): Likewise.
11006 (*jump_pic): Likewise.
11007 (indirect_jump): Use mips_output_jump to produce assembly output.
11008 (tablejump_<mode>"): Likewise.
11009 (*<optab>"): Likewise.
11010 (<optab>_internal): Likewise.
11011 (sibcall_internal): Likewise.
11012 (sibcall_value_internal): Likewise.
11013 (sibcall_value_multiple_internal): Likewise.
11014 (call_internal): Likewise.
11015 (call_split): Likewise.
11016 (call_internal_direct): Likewise.
11017 (call_direct_split): Likewise.
11018 (call_value_internal): Likewise.
11019 (call_value_split): Likewise.
11020 (call_value_internal_direct): Likewise.
11021 (call_value_direct_split): Likewise.
11022 (call_value_multiple_internal): Likewise.
11023 (call_value_multiple_split): Likewise.
11024 (mips_get_fcsr_mips16_<mode>): Likewise.
11025 (mips_set_fcsr_mips16_<mode>): Likewise.
11026 (tls_get_tp_mips16_<mode>): Likewise.
11027 * config/mips/mips.opt: Add -mcompact-branches option.
11028 * config/mips/predicates.md (order_operator): Ensure the
11029 conditional compact branches are only used if the ISA them.
11030 * doc/invoke.texi: Document -mcompact-branches option.
11032 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11035 * lra-lives.c (process_bb_lives): Process move pseudos with the
11036 same value for copies and preferences
11037 * lra-constraints.c (match_reload): Create match reload pseudo
11038 with the same value from single dying input pseudo.
11040 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11043 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11045 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11047 * trans-mem.c: Add contributed-by.
11048 * trans-mem.h: Same.
11050 2015-09-01 Richard Biener <rguenther@suse.de>
11052 * expr.c (expand_expr_real_1): For expanding TERed defs
11053 set the current location to that of the def if not UNKNOWN.
11055 2015-09-01 David Sherwood <david.sherwood@arm.com>
11057 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11059 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11061 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11062 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11063 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11064 Include rtl-iter.h.
11065 (noce_simple_bbs): New function.
11066 (noce_try_move): Bail if basic blocks are not simple.
11067 (noce_try_store_flag): Likewise.
11068 (noce_try_store_flag_constants): Likewise.
11069 (noce_try_addcc): Likewise.
11070 (noce_try_store_flag_mask): Likewise.
11071 (noce_try_cmove): Likewise.
11072 (noce_try_minmax): Likewise.
11073 (noce_try_abs): Likewise.
11074 (noce_try_sign_mask): Likewise.
11075 (noce_try_bitop): Likewise.
11076 (bbs_ok_for_cmove_arith): New function.
11077 (noce_emit_all_but_last): Likewise.
11078 (noce_emit_insn): Likewise.
11079 (noce_emit_bb): Likewise.
11080 (noce_try_cmove_arith): Handle non-simple basic blocks.
11081 (insn_valid_noce_process_p): New function.
11082 (contains_mem_rtx_p): Likewise.
11083 (bb_valid_for_noce_process_p): Likewise.
11084 (noce_process_if_block): Allow non-simple basic blocks
11087 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11089 * tree-ssa-dom.c (record_equivalences_from_phis,
11090 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11091 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11093 2015-09-01 Nick Clifton <nickc@redhat.com>
11095 * config/msp430/msp430.opt (mcpu): Fix typo.
11097 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11099 * config/aarch64/aarch64.c (aarch64_set_current_function):
11100 Re-layout any vector parameters have non-simd layout.
11101 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11103 (aarch64_simd_expand_args): Delete call to the above.
11105 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11107 * doc/invoke.texi (asan-stack): Add space before option.
11109 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11111 * tree.h (zerop): New function.
11112 * tree.c (zerop): Likewise.
11113 (element_precision): Handle expressions.
11114 * match.pd (define_predicates): Add zerop.
11115 (x <= +Inf): Fix comment.
11116 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11117 * fold-const.c (fold_binary_loc): ... here. Remove.
11119 2015-08-31 Richard Biener <rguenther@suse.de>
11121 PR middle-end/67381
11122 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11124 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11126 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11127 (CEXPI): New operator list.
11128 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11129 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11131 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11133 2015-08-31 Tom de Vries <tom@codesourcery.com>
11135 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11136 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11138 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11139 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11140 (rewrite_into_loop_closed_ssa): ... here.
11141 (replace_uses_in_dominated_bbs): Remove function.
11142 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11143 rewrite_into_loop_closed_ssa_1.
11145 2015-08-31 Michael Matz <matz@suse.de>
11147 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11148 enter entry and exit blocks for reverse post order.
11150 2015-08-31 Richard Biener <rguenther@suse.de>
11152 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11153 (lto_location_cache::current_sysp): Likewise.
11154 (output_block::current_sysp): Likewise.
11155 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11156 (lto_location_cache::apply_location_cache): Properly record
11157 system header locations.
11158 (lto_location_cache::input_location): Input whether a file
11159 is a system header.
11160 * lto-streamer-out.c (lto_output_location): Stream whether a file
11161 is a system header.
11163 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11166 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11168 2015-08-31 Tom de Vries <tom@codesourcery.com>
11170 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11171 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11172 Improve function header comments.
11174 2015-08-30 Michael Collison <michael.collison@linaro.org>
11177 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11180 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11182 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11183 special_handling bitfield.
11184 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11185 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11186 that represents a general xxpermdi.
11187 (insn_is_swappable_p): Add handling for vec_concat of two
11188 doublewords, which maps to a specific xxpermdi.
11189 (adjust_xxpermdi): New function.
11190 (adjust_concat): Likewise.
11191 (handle_special_swappables): Call adjust_xxpermdi and
11193 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11195 2015-08-30 Rich Felker <dalias@libc.org>
11197 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11198 case instead of sh[123456ble]-*-*.
11200 2015-08-29 Anatoly Sokolov <aesok@post.ru>
11202 * ira.c (print_unform_and_important_classes,
11203 print_translated_classes): Remove reg_class_names static array.
11204 (print_unform_and_important_classes): Rename to ...
11205 (print_uniform_and_important_classes): ... this.
11206 (ira_debug_allocno_classes): Update accordingly.
11208 2015-08-29 Tom de Vries <tom@codesourcery.com>
11210 PR tree-optimization/46193
11211 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11214 2015-08-28 Jeff Law <law@redhat.com>
11217 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11218 unable to find X NE 0 in the tables, return X as the simplified
11220 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11221 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11223 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11224 after removing the control flow statement and unnecessary edges.
11226 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
11229 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11231 PR tree-optimization/67283
11232 * tree-sra.c (type_consists_of_records_p): Rename to...
11233 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11235 (completely_scalarize_record): Rename to...
11236 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11238 (scalarize_elem): New.
11240 2015-08-28 Jiong Wang <jiong.wang@arm.com>
11242 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11243 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11244 (aarch64_symbol_type): Likewise.
11245 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11247 (aarch64_expand_mov_immediate): Likewise.
11248 (aarch64_print_operand): Likewise.
11249 (aarch64_classify_tls_symbol): Likewise.
11251 2015-08-28 Richard Biener <rguenther@suse.de>
11253 * cgraphunit.c (symbol_table::compile): Move early debug generation
11255 (symbol_table::finalize_compilation_unit): ... back here and
11256 add a !seen_error () guard.
11258 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11260 * toplev.c (process_options): Do not use flag_loop_block,
11261 flag_loop_interchange, and flag_loop_strip_mine. Add check for
11262 flag_loop_optimize_isl.
11264 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11266 * Makefile.in (OBJS): Remove graphite-blocking.o and
11267 graphite-interchange.o.
11268 * common.opt (floop-strip-mine, floop-interchange, floop-block):
11269 Alias of floop-nest-optimize.
11270 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11271 Document as alias of -floop-nest-optimize.
11272 * graphite-blocking.c: Remove.
11273 * graphite-interchange.c: Remove.
11274 * graphite-optimize-isl.c: Include dumpfile.h.
11275 (getScheduleForBand): Add dump for tiled loops. Use
11276 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11277 * graphite-poly.c (scop_max_loop_depth): Remove.
11278 (print_scattering_function_1): Remove.
11279 (print_scattering_function): Remove.
11280 (print_scattering_functions): Remove.
11281 (debug_scattering_function): Remove.
11282 (debug_scattering_functions): Remove.
11283 (apply_poly_transforms): Remove use of flag_loop_block,
11284 flag_loop_strip_mine, and flag_loop_interchange.
11285 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11287 (print_pdr_access_layout): Remove.
11288 (print_pdr): Print ISL representation.
11289 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11290 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11292 (openscop_print_pbb_domain): Remove.
11293 (print_pbb): Remove call to print_scattering_function.
11294 (openscop_print_scop_context): Remove.
11295 (print_scop_context): Do not print matrices anymore.
11296 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11297 SCOP_TRANSFORMED_SCHEDULE.
11298 (print_isl_set): Add printing of a new line.
11299 (print_isl_map): Same.
11300 (print_isl_aff): Same.
11301 (print_isl_constraint): Same.
11302 (loop_to_lst): Remove.
11303 (scop_to_lst): Remove.
11304 (lst_indent_to): Remove.
11305 (print_lst): Remove.
11306 (debug_lst): Remove.
11307 (dot_lst_1): Remove.
11309 (reverse_loop_at_level): Remove.
11310 (reverse_loop_for_pbbs): Remove.
11311 * graphite-poly.h (pdr_dim_iter_domain): Remove.
11312 (pdr_nb_params): Remove.
11313 (pdr_alias_set_dim): Remove.
11314 (pdr_subscript_dim): Remove.
11315 (pdr_iterator_dim): Remove.
11316 (pdr_parameter_dim): Remove.
11317 (same_pdr_p): Remove.
11318 (struct poly_scattering): Remove.
11319 (struct poly_bb): Remove _original, _transformed, _saved.
11320 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11321 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11322 (PBB_NB_LOCAL_VARIABLES): Remove.
11323 (PBB_NB_SCATTERING_TRANSFORM): Remove.
11324 (schedule_to_scattering): Remove.
11325 (number_of_write_pdrs): Remove.
11326 (pbb_dim_iter_domain): Remove.
11327 (pbb_nb_params): Remove.
11328 (pbb_nb_scattering_orig): Remove.
11329 (pbb_nb_scattering_transform): Remove.
11330 (pbb_nb_dynamic_scattering_transform): Remove.
11331 (pbb_nb_local_vars): Remove.
11332 (pbb_iterator_dim): Remove.
11333 (pbb_parameter_dim): Remove.
11334 (psco_scattering_dim): Remove.
11335 (psct_scattering_dim): Remove.
11336 (psct_local_var_dim): Remove.
11337 (psco_iterator_dim): Remove.
11338 (psct_iterator_dim): Remove.
11339 (psco_parameter_dim): Remove.
11340 (psct_parameter_dim): Remove.
11341 (psct_dynamic_dim): Remove.
11342 (psct_static_dim): Remove.
11343 (psct_add_local_variable): Remove.
11344 (new_lst_loop): Remove.
11345 (new_lst_stmt): Remove.
11346 (free_lst): Remove.
11347 (copy_lst): Remove.
11348 (lst_add_loop_under_loop): Remove.
11349 (lst_depth): Remove.
11350 (lst_dewey_number): Remove.
11351 (lst_dewey_number_at_depth): Remove.
11352 (lst_pred): Remove.
11353 (lst_succ): Remove.
11354 (lst_find_pbb): Remove.
11355 (find_lst_loop): Remove.
11356 (lst_find_first_pbb): Remove.
11357 (lst_empty_p): Remove.
11358 (lst_find_last_pbb): Remove.
11359 (lst_contains_p): Remove.
11360 (lst_contains_pbb): Remove.
11361 (lst_create_nest): Remove.
11362 (lst_remove_from_sequence): Remove.
11363 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11364 (lst_niter_for_loop): Remove.
11365 (pbb_update_scattering): Remove.
11366 (lst_update_scattering_under): Remove.
11367 (lst_update_scattering): Remove.
11368 (lst_insert_in_sequence): Remove.
11369 (lst_replace): Remove.
11370 (lst_substitute_3): Remove.
11371 (lst_distribute_lst): Remove.
11372 (lst_remove_all_before_including_pbb): Remove.
11373 (lst_remove_all_before_excluding_pbb): Remove.
11374 (struct scop): Remove original_schedule, transformed_schedule, and
11376 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11377 (SCOP_SAVED_SCHEDULE): Remove.
11378 (poly_scattering_new): Remove.
11379 (poly_scattering_free): Remove.
11380 (poly_scattering_copy): Remove.
11381 (store_scattering_pbb): Remove.
11382 (store_lst_schedule): Remove.
11383 (restore_lst_schedule): Remove.
11384 (store_scattering): Remove.
11385 (restore_scattering_pbb): Remove.
11386 (restore_scattering): Remove.
11387 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11388 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
11389 compute the scattering polyhedron dimension from the dimension of
11391 (build_scop_scattering): Update call to
11392 build_pbb_scattering_polyhedrons.
11393 (build_poly_scop): Remove call to scop_to_lst.
11394 * graphite.c (graphite_transform_loops): Add call to print_scop.
11395 (gate_graphite_transforms): Remove use of flag_loop_block,
11396 flag_loop_interchange, and flag_loop_strip_mine.
11398 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11400 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11401 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11402 -floop-nest-optimize.
11403 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11404 (generate_luj_sepclass): Remove.
11405 (generate_luj_options): Remove.
11406 (set_options): Remove opt_luj.
11407 (scop_to_isl_ast): Remove opt_luj.
11408 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11409 flag_loop_unroll_jam.
11410 (getPrevectorMap_full): Remove.
11411 (getScheduleForBandList): Remove map_sepcl.
11412 (getScheduleMap): Same.
11413 (apply_schedule_map_to_scop): Remove sepcl.
11414 (optimize_isl): Same.
11415 * graphite-poly.c (apply_poly_transforms): Remove check for
11416 flag_loop_unroll_jam.
11417 (new_poly_bb): Remove map_sepclass.
11418 * graphite-poly.h (struct poly_bb): Same.
11419 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11420 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11421 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11422 * toplev.c (process_options): Remove flag_loop_unroll_jam.
11424 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
11427 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11428 (addqi3_cc): Ditto.
11429 (UNSPEC_ADD_CARRY): Remove.
11430 (addqi3_cconly_overflow): New expander.
11431 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11432 Adjust for changed add<mode>3_carry.
11433 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11434 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11435 (<plusminus_insn><mode>3_carry): Remove expander.
11436 (*<plusminus_insn><mode>3_carry): Split insn pattern to
11437 add<mode>3_carry and sub<mode>3_carry.
11438 (plusminus_carry_mnemonic): Remove code attribute.
11439 (add<mode>3_carry): Canonicalize insn pattern.
11440 (*addsi3_carry_zext): Ditto.
11441 (sub<mode>3_carry): Ditto.
11442 (*subsi3_carry_zext): Ditto.
11443 (adcx<mode>3): Remove insn pattern.
11444 (addcarry<mode>): New insn pattern.
11445 (subborrow<mode>): Ditto.
11446 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11447 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11448 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11449 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11450 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11451 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11452 Rewrite expander to not clobber carry flag chains.
11454 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
11456 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11457 instead of a rotate.
11459 2015-08-27 Marek Polacek <polacek@redhat.com>
11461 PR middle-end/67005
11462 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11463 an entry into an irreducible region.
11465 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11467 * configure: Regenerate.
11469 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11471 PR tree-optimization/67283
11472 * tree-sra.c (type_consists_of_records_p): Rename to...
11473 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11475 (completely_scalarize_record): Rename to...
11476 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11477 (scalarize_elem): New.
11479 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11481 * tree-sra.c (completely_scalarize_var): Rename to...
11482 (create_total_scalarization_access): ... Here. Drop call to
11483 completely_scalarize_record.
11485 (analyze_all_variable_accesses): Replace completely_scalarize_var
11486 with create_total_scalarization_access and completely_scalarize_record.
11488 2015-08-27 Alan Modra <amodra@gmail.com>
11491 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11494 2015-08-27 Richard Biener <rguenther@suse.de>
11496 * passes.c (rest_of_decl_compilation): Guard early_global_decl
11497 call with !seen_error ().
11498 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11499 early debug generation and finish...
11500 (symbol_table::compile): ... here to put it after a !seen_error ()
11503 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11505 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11508 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11509 Andre Vieira <andre.simoesdiasvieira@arm.com>
11511 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11512 (*cb<optab><mode>1): Likewise.
11513 (*tb<optab><mode>1): Likewise.
11514 (*cb<optab><mode>1): Likewise.
11515 * config/aarch64/iterators.md (inv_cb): New code attribute.
11516 (inv_tb): Likewise.
11517 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11518 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11520 2015-08-27 Richard Biener <rguenther@suse.de>
11522 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11524 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11526 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11529 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11531 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11534 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11536 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11537 floating point in VSX registers.
11538 (rs6000_output_move_128bit): Always print out the set insn if we
11539 can't generate an appropriate 128-bit move.
11540 (rs6000_generate_compare): Add support for IEEE 128-bit floating
11541 point in VSX registers comparisons.
11542 (rs6000_expand_float128_convert): Likewise.
11544 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11545 predicate for only GPR hard registers.
11547 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11548 modes to iterators. Add new iterators for moving 128-bit values in
11549 scalar FPR registers and VSX registers.
11550 (FMOVE128): Likewise.
11551 (FMOVE128_FPR): Likewise.
11552 (FMOVE128_GPR): Likewise.
11553 (FMOVE128_VSX): Likewise.
11554 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11557 (IBM128): Likewise.
11558 (TFIFKF): Likewise.
11559 (RELOAD): Add IEEE 128-bit floating point modes.
11560 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11561 floating point in VSX registers modes.
11562 (signbit<mode>2, IBM128 iterator): Likewise.
11563 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11564 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11565 (negtf2): Likewise.
11566 (neg<mode>2, TFIFKF iterator): Likewise.
11567 (negtf2_internal): Likewise.
11568 (abstf2): Likewise.
11569 (abs<mode>2, TFIFKF iterator): Likewise.
11570 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11571 VSX insn support for negate, absolute value, and negative absolute
11573 (ieee_128bit_vsx_neg<mode>2): Likewise.
11574 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11575 (ieee_128bit_vsx_abs<mode>2): Likewise.
11576 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11577 (ieee_128bit_vsx_nabs<mode>2): Likewise.
11578 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11579 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11580 floating point in VSX registers.
11581 (unpack<mode>_dm): Likewise.
11582 (unpack<mode>_nodm): Likewise.
11583 (pack<mode>): Likewise.
11584 (unpackv1ti): Likewise.
11585 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11586 (packv1ti): Likewise.
11587 (pack<mode>, FMOVE128_VSX iterator): Likewise.
11588 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11590 (extenddftf2_internal): Likewise.
11591 (trunctfdf2): Likewise.
11592 (trunctfdf2_internal2): Likewise.
11593 (fix_trunc_helper): Likewise.
11594 (fix_trunctfdi2"): Likewise.
11595 (floatditf2): Likewise.
11596 (floatuns<mode>tf2): Likewise.
11597 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11598 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11599 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11600 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11601 (float<SDI:mode><IFKF:mode>2): Likewise.
11602 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11604 2015-08-26 Renlin Li <renlin.li@arm.com>
11606 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11608 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11609 Jiong Wang <jiong.wang@arm.com>
11611 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11612 (tlsie_tiny_<mode>): New define_insn.
11613 (tlsie_tiny_sidi): Likewise.
11614 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11616 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11617 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11619 (aarch64_expand_mov_immediate): Likewise.
11620 (aarch64_print_operand): Likewise.
11621 (arch64_classify_tls_symbol): Likewise.
11623 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11625 * config/arm/arm-arches.def: Replace single value flags with
11626 an initializer built from ARM_FSET_MAKE_CPU1.
11627 * config/arm/arm-cores.def: Likewise.
11628 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11629 derivation from the ARM_CORE macro definition, use the given value
11631 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11632 ARM_ARCH macro definition, use the given value instead.
11634 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11636 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11638 (struct builtin_description): Replace field mask with field
11640 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11641 (IWMMXT2_BUILTIN): Likewise.
11642 (IWMMXT2_BUILTIN2): Likewise.
11643 (FP_BUILTIN): Likewise.
11644 (CRC32_BUILTIN): Likewise.
11645 (CRYPTO_BUILTIN): Likewise.
11646 (iwmmx_mbuiltin): Likewise.
11647 (iwmmx2_mbuiltin): Likewise.
11648 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11649 struct builtin_description.
11651 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11653 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11654 (struct builtin_description): Change type of mask to unsigned
11656 * config/arm/arm-protos.h (insn_flags): Declare as type
11658 (tune_flags): Likewise.
11659 * config/arm/arm.c (feature_count): New.
11660 (insn_flags): Define as type arm_feature_set.
11661 (tune_flags): Likewise.
11662 (struct processors): Define field flags as type arm_feature_set.
11663 (all_cores): Update for change to struct processors.
11664 (all_architectures): Likewise.
11665 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11667 (arm_option_override_internal): Likewise.
11668 (arm_option_override): Likewise.
11670 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11671 Jiong Wang <jiong.wang@arm.com>
11673 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11674 tls size for tiny, small, large memory model.
11675 (aarch64_load_symref_appropriately): Support new symbol types.
11676 (aarch64_expand_mov_immediate): Likewise.
11677 (aarch64_print_operand): Likewise.
11678 (aarch64_classify_tls_symbol): Likewise.
11679 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11680 (aarch64_symbol_type): Likewise.
11681 * config/aarch64/aarch64.md (tlsle): Deleted.
11682 (tlsle12_<mode>): New define_insn.
11683 (tlsle24_<mode>): Likewise.
11684 (tlsle32_<mode>): Likewise.
11685 (tlsle48_<mode>): Likewise.
11686 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11689 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11691 * config/arm/arm-protos.h (FL_NONE): New.
11693 (arm_feature_set): New.
11694 (ARM_FSET_MAKE): New.
11695 (ARM_FSET_MAKE_CPU1): New.
11696 (ARM_FSET_MAKE_CPU2): New.
11697 (ARM_FSET_CPU1): New.
11698 (ARM_FSET_CPU2): New.
11699 (ARM_FSET_EMPTY): New.
11700 (ARM_FSET_ANY): New.
11701 (ARM_FSET_HAS_CPU1): New.
11702 (ARM_FSET_HAS_CPU2): New.
11703 (ARM_FSET_HAS_CPU): New.
11704 (ARM_FSET_ADD_CPU1): New.
11705 (ARM_FSET_ADD_CPU2): New.
11706 (ARM_FSET_DEL_CPU1): New.
11707 (ARM_FSET_DEL_CPU2): New.
11708 (ARM_FSET_UNION): New.
11709 (ARM_FSET_INTER): New.
11710 (ARM_FSET_XOR): New.
11711 (ARM_FSET_EXCLUDE): New.
11712 (AFM_FSET_IS_EMPTY): New.
11713 (ARM_FSET_CPU_SUBSET): New.
11715 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11717 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11718 SYMBOL_TLSLE to SYMBOL_TLSLE24.
11719 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11721 (aarch64_expand_mov_immediate): Likewise.
11722 (aarch64_print_operand): Likewise.
11723 (aarch64_classify_symbol): Likewise.
11725 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11727 * config/aarch64/aarch64.opt (mtls-size): New entry.
11728 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11729 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11730 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11732 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11734 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11735 ARM_CORE entry. Fix some white-space.
11736 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11737 ARM_CORE definition.
11739 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11741 * fold-const.c (fold_binary_loc) : Move Optimize
11742 root(x)*root(y) as root(x*y) to match.pd.
11743 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11744 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11745 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11746 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11747 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11748 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11749 (mult (exps:s @0) (exps:s @1)) : New simplifier.
11750 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11751 (rdiv @0 (exps:s @1)) : New simplifier.
11753 2015-08-25 Joseph Myers <joseph@codesourcery.com>
11755 * gcc.c (driver::finalize): Only assign to extra_specs if
11758 2015-08-25 Marek Polacek <polacek@redhat.com>
11760 PR middle-end/67330
11761 * varasm.c (declare_weak): Return after giving an error.
11763 2015-08-25 David Malcolm <dmalcolm@redhat.com>
11765 * gcc-main.c (main): Add params to driver ctor.
11766 * gcc.c (class env_manager): New.
11768 (env_manager::init): New.
11769 (env_manager::get): New.
11770 (env_manager::xput): New.
11771 (env_manager::restore): New.
11772 Poison getenv and putenv.
11773 (DEFAULT_TARGET_SYSTEM_ROOT): New.
11774 (target_system_root): Update initialization to use
11775 DEFAULT_TARGET_SYSTEM_ROOT.
11776 (struct spec_list): Add field "default_ptr".
11777 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11778 (init_spec): Likewise.
11779 (set_spec): Clear field "default_ptr".
11780 (read_specs): Free "spec" and "buffer".
11781 (xputenv): Reimplement in terms of env_manager.
11782 (process_command): Replace ::getenv calls with calls to the
11783 env_manager singleton.
11784 (process_brace_body): Free string in three places.
11785 (driver::driver): New.
11786 (driver::~driver): New.
11787 (used_arg): Convert from a function to...
11788 (class used_arg_t): ...this class, and...
11789 (used_arg): ...this new global instance.
11790 (used_arg_t::finalize): New function.
11791 (getenv_spec_function): Add "const" to local "value". Replace
11792 ::getenv call with call to the env_manager singleton.
11793 (path_prefix_reset): New function.
11794 (driver::finalize): New function.
11795 * gcc.h (driver::driver): New.
11796 (driver::~driver): New.
11797 (driver::finalize): New.
11799 2015-08-25 Nathan Sidwell <nathan@acm.org>
11801 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11802 target doesn't have one.
11804 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11807 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11809 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11812 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11813 a define_insn, remove second alternative.
11815 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
11816 Joseph Myers <joseph@codesourcery.com>
11818 * gcc.c (struct switchstr): Expand comment.
11820 2015-08-25 Nathan Sidwell <nathan@acm.org>
11822 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11823 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11825 2015-08-25 Richard Biener <rguenther@suse.de>
11827 PR middle-end/67306
11828 * genmatch.c (expr::gen_transform): Verify the result of
11829 builtin_decl_implicit.
11830 (dt_simplify::gen_1): Likewise.
11832 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
11834 * config/arm/constraints.md: Also list Cs and US ARM-specific
11835 constraints as used.
11837 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
11840 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11842 (nonpic_symbol_mentioned_p): Likewise.
11843 (sh_delegitimize_address): Likewise.
11844 (sh_function_ok_for_sibcall): Take into account weak symbols.
11845 (sh_expand_sym_label2reg): New.
11846 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11847 * config/sh/sh.md (UNSPEC_PCREL): New enum.
11848 (call_pcrel): Use sh_expand_sym_label2reg.
11849 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11850 (symPCREL_label2reg) New expand.
11852 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11854 * graphite-poly.c: Change type of region from void* to sese.
11855 * graphite-poly.h (struct scop): Changing the type of scop::region
11856 from void* to sese. Change accessor macro accordingly.
11857 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11859 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11861 * graphite-scop-detection.c (stmt_simple_for_scop_p):
11862 Constrain only on INTEGER_TYPE.
11864 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11867 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11868 -mefficient-unaligned-vsx on ISA 2.7.
11870 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11871 option to a masked option.
11873 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11874 logic for -mefficient-unaligned-vsx so that it is set via an arch
11875 ISA option, instead of being set if -mtune=power8 is set. Move
11876 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11877 near other default option handling.
11879 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11881 * genflags.c (gen_macro): Delete.
11882 (gen_proto): Don't create GEN.*CALL.* macros.
11883 * gensupport.h (get_file_location): Declare.
11884 * gensupport.c (rtx_locs): New variable.
11885 (read_md_rtx): Record rtx locations.
11886 (get_file_location): New function.
11887 * target-insns.def (call, call_pop, call_value, call_value_pop)
11888 (sibcall, sibcall_value): New patterns.
11889 * gentarget-def.c (parse_argument): New function.
11890 (def_target_insn): Use it. Handle optional operands. Raise an
11891 error if an .md pattern has the wrong number of operands for the
11892 pattern name. Remove the names of unused operands from the prototype.
11893 * builtins.c (expand_builtin_apply): Use targetm functions
11894 instead of HAVE_call_value and GEN_CALL_VALUE.
11895 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
11896 and sibcall_value_pop.
11897 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11899 * config/alpha/alpha.md (untyped_call): Likewise.
11900 * config/iq2000/iq2000.md (untyped_call): Likewise.
11901 * config/m68k/m68k.md (untyped_call): Likewise.
11902 * config/mips/mips.md (untyped_call): Likewise.
11903 * config/pa/pa.md (untyped_call): Likewise.
11904 * config/rs6000/rs6000.md (untyped_call): Likewise.
11905 * config/sparc/sparc.md (untyped_call): Likewise.
11906 * config/tilegx/tilegx.md (untyped_call): Likewise.
11907 * config/tilepro/tilepro.md (untyped_call): Likewise.
11908 * config/visium/visium.md (untyped_call): Likewise.
11909 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11910 gen_call_value instead of GEN_CALL_VALUE.
11911 * config/arm/arm.md (untyped_call): Likewise.
11912 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11915 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11917 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11918 (have_cbranchcc4): New variable.
11919 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11920 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11921 (if_convert): Initialize have_cbranchcc4.
11923 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11925 * builtins.c (expand_cmpstrn): Rename to...
11926 (expand_cmpstrn_or_cmpmem): ...this.
11927 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11928 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11929 Remove mode argument.
11930 (expand_builtin): Update accordingly.
11932 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11934 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11935 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
11936 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11937 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11938 Add predicates for operands 0 and 3.
11939 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11941 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11942 immediate_operand to nonmemory_operand.
11944 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11946 * df-scan.c (df_insn_info_init_fields): New function, split out
11948 (df_insn_create_insn_record): ...here.
11949 (df_insn_info_free_fields): New function, split out from...
11950 (df_insn_info_delete): ...here.
11951 (df_insn_rescan): Use the new functions instead of freeing and
11952 reallocating the df_insn_info.
11954 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11956 * doc/install.texi (Binaries): Remove links no longer valid.
11958 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11960 * config/nvptx/mkoffload.c (process): Replace
11961 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11963 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
11966 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11968 2015-08-24 Renlin Li <renlin.li@arm.com>
11970 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11971 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11972 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11973 * config/arm/constraints.md ("j"): Add check for high code.
11975 2015-08-24 Tom de Vries <tom@codesourcery.com>
11977 PR tree-optimization/65468
11978 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11981 2015-08-24 Nathan Sidwell <nathan@acm.org>
11983 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11984 change to nvptx_type_from_mode call. Use arg_promotion for both
11985 split and non-split args.
11987 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11989 * target-insns.def (movstr): New pattern.
11990 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11991 (expand_movstr): Use targetm rather than HAVE_movstr/
11994 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11996 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11999 2015-08-24 Andrew Pinski <apinski@cavium.com>
12001 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12002 AARCH64_EXTRA_TUNING_OPTION.
12003 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12005 (aarch64_extra_tuning_flags): Base the shifted value on the index
12006 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12007 * config/aarch64/aarch64.c: Remove the last argument to
12008 AARCH64_EXTRA_TUNING_OPTION.
12010 2015-08-23 Nathan Sidwell <nathan@acm.org>
12012 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12014 (nvptx_declare_function_name): Insert formatting tabs for
12017 2015-08-23 Tom de Vries <tom@codesourcery.com>
12019 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12020 parm_decl, rather than generating a dummy default def in cfun.
12021 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12022 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12023 (move_stmt_op): Handle PARM_DECl.
12024 (gather_ssa_name_hash_map_from): New function.
12025 (move_sese_region_to_fn): Add default defs for function params, and add
12026 them to vars_map. Release copied ssa names.
12027 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12029 2015-08-23 Tom de Vries <tom@codesourcery.com>
12031 * doc/sourcebuild.texi: Rename vect_no_int_max with
12032 vect_no_int_min_max. Update description.
12034 2015-08-22 Andrew Pinski <apinski@cavium.com>
12036 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12037 * config/aarch64/aarch64-protos.h
12038 (aarch64_fusion_pairs_index): New enum.
12039 (aarch64_fusion_pairs): Base the shifted value on the index instead
12040 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12041 of the argument to AARCH64_FUSION_PAIR.
12042 * config/aarch64/aarch64.c: Remove the last argument to
12043 AARCH64_FUSION_PAIR.
12045 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12047 * dominance.c (new_zero_array): Define.
12048 (dom_info): Redefine as class with proper encapsulation.
12049 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12051 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12052 allocations/deallocations. Pass function as parameter (instead of
12054 (dom_info::get_idom): Define accessor method.
12055 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12056 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12057 (calculate_dominance_info): Adjust to use dom_info class.
12058 (verify_dominators): Likewise.
12060 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12062 * print-rtl.c (print_rtx): Check the correct range for
12063 flag_dump_unnumbered_links to behave as documented.
12065 PR rtl-optimization/67227
12066 PR rtl-optimization/64164
12067 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12068 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12069 identical gimple_reg exprs.
12071 2015-08-21 Nathan Sidwell <nathan@acm.org>
12073 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12075 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12076 crtl->stack_alignment_needed to determine alignment.
12077 (nvptx_get_drap_rtx): New.
12078 (TARGET_GET_DRAP_RTX): Override.
12079 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12081 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12083 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12085 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12087 * configure.ac: Remove uwin* cases.
12088 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12089 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12090 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12091 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12092 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12093 i[34567]86-*-uwin*, powerpc-*-beos*.
12095 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12097 * gencodes.c (gencodes): Print the comma for the preceding
12098 enum value rather than the current one. Use aliased enum values
12099 rather than #defines for compiled-out patterns.
12100 (main): Update accordingly. Replace LAST_INSN_CODE with
12102 * lra.c (insn_code_data): Update accordingly.
12103 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12104 * recog.h (target_recog): Likewise.
12105 (preprocess_insn_constraints): Change parameter to unsigned int.
12106 * recog.c (preprocess_insn_constraints): Likewise.
12107 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12108 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12110 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12112 PR rtl-optimization/61657
12113 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12114 unsigned. Remove superflous uint64_t cast.
12116 2014-08-21 Felix Yang <felix.yang@huawei.com>
12117 Jiji Jiang <jiangjiji@huawei.com>
12119 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12120 argument and get builtin function code directly from CALL.
12121 (gimple_stringop_fixed_value): Modified accordingly.
12122 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12123 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12125 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12127 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12129 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12131 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12133 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12134 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12135 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12136 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12137 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12138 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12139 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12140 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12141 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12142 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12144 * match.pd (SIN ) : New Operator.
12145 (TAN) : New Operator.
12146 (mult (SQRT@1 @0) @1) : New simplifier.
12147 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12148 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12149 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12150 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12151 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12152 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12153 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12154 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12155 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12156 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12158 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12160 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12161 loop if EXPR is simplified to const value.
12163 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12165 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12166 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12168 2015-08-21 Richard Biener <rguenther@suse.de>
12170 PR middle-end/67285
12171 * gimple-fold.c (replace_stmt_with_simplification): Assert
12172 seq is empty when replacing a call with itself but different
12174 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12175 a call require that it is const.
12177 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12179 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12180 * builtins.c (get_object_alignment_2): Adjust.
12181 * varasm.c (align_variable): Likewise.
12182 (get_variable_align): Likewise.
12183 (build_constant_desc): Likewise.
12184 (force_const_mem): Likewise.
12185 * doc/tm.texi.in: Likewise.
12186 * doc/tm.texi: Regenerate.
12188 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12190 * genconfig.c (main): Always define HAVE_cc0.
12191 * recog.c (rest_of_handle_peephole2): Adjust.
12193 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12195 * reorg.c (relax_delay_slots): Don't use #if to check value of
12198 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12200 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12201 * targhooks.c (default_have_conditional_execution): Adjust.
12203 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12205 * rtl.h (rtvec_all_equal_p): Declare.
12206 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12207 * rtl.c (rtvec_all_equal_p): New function.
12208 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12209 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12210 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12211 * config/arm/arm.c (neon_vdup_constant): Likewise.
12212 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12213 * config/tilegx/constraints.md (W, Y): Likewise.
12214 * config/tilepro/constraints.md (W, Y): Likewise.
12215 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12216 (classify_immediate): Use unwrap_const_vec_duplicate.
12217 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12218 (reg_or_v2s8bit_operand): Likewise.
12219 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12220 (reg_or_v4s8bit_operand): Likewise.
12222 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12224 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12225 (vec_shasigma_be): New #define.
12226 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12227 (VPMSUMH): Likewise.
12228 (VPMSUMW): Likewise.
12229 (VPMSUMD): Likewise.
12230 (VPMSUM): New BU_P8V_OVERLOAD_2.
12231 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12232 entries for VEC_MADD and VEC_VPMSUM.
12234 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
12236 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12237 Multiply argument avr_n_flash by 64 to match unit of "KiB".
12238 (avr_pgm_check_var_decl): Same.
12240 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
12242 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12243 initialization of HFmode scalar type (float16_t) to...
12244 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12247 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12249 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12250 having an -mfp16-format.
12252 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12254 * config/i386/predicates.md (vector_all_ones_operand): Use
12255 CONSTM1_RTX to simplify definition.
12257 2015-08-20 Richard Biener <rguenther@suse.de>
12259 * toplev.c (compile_file): Remove loop calling late_global_decl
12261 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12262 on decls we assembled.
12264 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
12266 * common/config/aarch64/aarch64-common.c
12267 (AARCH64_CPU_NAME_LENGTH): Delete.
12268 (aarch64_option_extension): New.
12269 (all_extensions): Likewise.
12270 (processor_name_to_arch): Likewise.
12271 (arch_to_arch_name): Likewise.
12273 (all_architectures): Likewise.
12274 (aarch64_get_extension_string_for_isa_flags): Likewise.
12275 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12276 architecture names.
12277 * config/aarch64/aarch64-protos.h
12278 (aarch64_get_extension_string_for_isa_flags): New.
12279 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12280 (aarch64_option_print): Get the string to print from
12281 aarch64_get_extension_string_for_isa_flags.
12282 (aarch64_declare_function_name): Likewise.
12283 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12284 (MCPU_TO_MARCH_SPEC): This.
12285 (ASM_CPU_SPEC): Use it.
12286 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12287 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12288 (EXTRA_SPEC_FUNCTIONS): Use it.
12290 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
12292 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12293 expansion when !ISA_HAS_LWL_LWR.
12294 (mips_block_move_straight): Update the size of elements copied to
12295 account for alignment when !ISA_HAS_LWL_LWR.
12296 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12298 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12300 * expr.c (expand_expr_real_2): Check gimple statement during
12301 LSHIFT_EXPR expand.
12303 2015-08-19 Magnus Granberg <zorry@gentoo.org>
12305 * common.opt (fstack-protector): Initialize to -1.
12306 (fstack-protector-all): Likewise.
12307 (fstack-protector-strong): Likewise.
12308 (fstack-protector-explicit): Likewise.
12309 * configure.ac: Add --enable-default-ssp.
12310 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
12311 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12313 * doc/install.texi: Document --enable-default-ssp.
12314 * config.in: Regenerated.
12315 * configure: Likewise.
12317 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
12319 PR rtl-optimization/64164
12320 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12321 (parm_in_stack_slot_p): ... this. Disregard mode, what
12322 matters is whether the parm will live in a pseudo or a stack
12324 (expand_one_ssa_partition): Deal with params without a default
12325 def. Disregard mode.
12326 * cfgexpand.h: Renamed function declaration.
12327 * tree-ssa-coalesce.c: Adjust.
12328 * function.c (split_complex_args): Allocate stack slot for
12329 unassigned parms before splitting.
12330 (parm_in_unassigned_mem_p): New. Use it instead of
12331 parm_maybe_byref_p throughout this file.
12332 (assign_parm_setup_block): Use it. Accept pseudos in the
12333 expand-assigned rtl.
12334 (assign_parm_setup_reg): Drop BLKmode requirement.
12335 (assign_parm_setup_stack): Allocate and fill in the address of
12336 unassigned MEM parms.
12338 2015-08-19 David Sherwood <david.sherwood@arm.com>
12340 * genmodes.c (emit_mode_unit_size_inline): New function.
12341 (emit_mode_unit_precision_inline): New function.
12342 (emit_insn_modes_h): Emit new #define. Emit new functions.
12343 (emit_mode_unit_size): New function.
12344 (emit_mode_unit_precision): New function.
12345 (emit_mode_adjustments): Add mode_unit_size adjustments.
12346 (emit_insn_modes_c): Emit new arrays.
12347 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12348 use new inline methods.
12350 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12352 * config/aarch64/aarch64.c (bit_count): Delete prototype
12354 (aarch64_print_operand): Use popcount_hwi instead of the above.
12356 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12358 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12361 2015-08-19 Marek Polacek <polacek@redhat.com>
12363 PR middle-end/67133
12364 * gimple-ssa-isolate-paths.c
12365 (insert_trap_and_remove_trailing_statements): Rename to ...
12366 (insert_trap): ... this. Don't remove trailing statements; split
12368 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12370 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
12373 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12374 conditionalize the whole on __GNUC__. Add fallback code
12375 depending neither on undefined nor implementation-defined behaviour.
12377 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12379 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12380 whitespaces with tab.
12382 2015-08-19 Florian Weimer <fweimer@redhat.com>
12384 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12385 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12386 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12387 Move Name_Ids instantiation to the Prj.Proc package, to avoid
12390 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12392 * config/arm/arm.c (bounds_check): Use %wd print format
12393 for HOST_WIDE_INT arguments.
12395 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
12397 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12398 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12399 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12400 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12401 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12402 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12403 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12404 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12405 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12408 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
12410 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12411 function.c, graphite-scop-detection.c, haifa-sched.c,
12412 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12413 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12414 varasm.c: Remove typedefs of structs.
12416 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12418 * config/rs6000/altivec.h (vec_adde): New define.
12419 (vec_addec): Likewise.
12420 (vec_double): Likewise.
12421 (vec_bperm): Likewise.
12422 (vec_gb): Likewise.
12423 * config/rs6000/rs6000-builtin.def (ADDE): New
12424 BU_ALTIVEC_OVERLOAD_3.
12426 (DOUBLE): New BU_VSX_OVERLOAD_1.
12427 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12428 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12429 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12430 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12431 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12432 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12433 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12434 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12435 and P8V_BUILTIN_VEC_VBPERMQ.
12437 2015-08-18 Jason Merrill <jason@redhat.com>
12439 * print-tree.c (print_node): Handle TREE_BINFO.
12441 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12443 PR middle-end/36757
12444 * builtins.c (expand_builtin_signbit): Add asserts to make sure
12445 we can expand BUILT_IN_SIGNBIT inline.
12446 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12447 * doc/extend.texi: Document the type-generic __builtin_signbit.
12449 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
12451 PR rtl-optimization/67218
12452 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12453 (simplify_unary_operation_1): Use it.
12455 2015-08-18 Marek Polacek <polacek@redhat.com>
12457 PR middle-end/67222
12458 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12459 if the call isn't valid.
12460 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12461 gimple_call_builtin_p.
12462 (call_may_clobber_ref_p_1): Likewise.
12463 (stmt_kills_ref_p): Likewise.
12465 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
12467 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12468 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12469 (mips_hard_regno_scratch_ok): Likewise.
12470 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12471 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12473 2015-08-18 Bin Cheng <bin.cheng@arm.com>
12475 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12476 (determine_value_range): Call refine_value_range_using_guard for
12477 each loop initial condition to improve value range.
12479 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
12481 * config/i386/i386.c: Remove include of fibheap.h.
12483 2015-08-17 Richard Biener <rguenther@suse.de>
12485 PR tree-optimization/67221
12486 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12487 (sccvn_dom_walker::before_dom_children): Mark backedges of
12488 non-executable blocks as not executable.
12490 2015-08-17 David Sherwood <david.sherwood@arm.com>
12492 * config/arm/arm.c (neon_element_bits): Replace call to
12493 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12494 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12495 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12496 (neon_vdup_lane<mode>): Likewise.
12497 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12498 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12499 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12500 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12501 * config/spu/spu.c (arith_immediate_p): Likewise.
12502 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12503 * expr.c (expand_expr_real_2): Likewise.
12504 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12505 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12506 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12507 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12509 * fold-const.c (fold_binary_loc): Replace call to
12510 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12511 GET_MODE_UNIT_PRECISION (m).
12513 2015-08-17 Mike Stump <mikestump@comcast.net>
12515 * config/arm/arm.c (arm_block_move_unaligned_straight):
12516 Emit normal move instead of unaligned load when source or destination
12517 are appropriately aligned.
12519 2015-08-17 Richard Biener <rguenther@suse.de>
12520 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12522 PR middle-end/16107
12523 * match.pd (div (coss (op @0) : New simplifier.
12525 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
12527 PR rtl-optimization/64164
12529 PR middle-end/66983
12530 PR rtl-optimization/67000
12531 PR middle-end/67034
12532 PR middle-end/67035
12533 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12534 * tree-ssa-copyrename.c: Removed.
12535 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12536 -ftree-coalesce-vars.
12537 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12538 * common.opt (ftree-copyrename): Ignore.
12539 (ftree-coalesce-inlined-vars): Likewise.
12540 * doc/invoke.texi: Remove the ignored options above.
12541 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12542 * tree-ssa-coalesce.h: ... here.
12543 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12544 headers required by it.
12545 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12546 across variables when flag_tree_coalesce_vars. Check register
12547 use and promoted modes to allow coalescing. Do not coalesce
12548 maybe-byref parms with SSA_NAMEs of other variables, or
12549 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
12550 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12551 with its member functions to tree-ssa-coalesce.c.
12552 (var_map_base_init): Likewise. Renamed to
12553 compute_samebase_partition_bases.
12554 (partition_view_normal): Drop want_bases parameter.
12555 (partition_view_bitmap): Likewise.
12556 * tree-ssa-live.h: Adjust declarations.
12557 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12558 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12559 default defs at the entry point.
12560 (dump_part_var_map): New.
12561 (compute_optimized_partition_bases): New, called by...
12562 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12563 of compute_samebase_partition_bases. Adjust.
12564 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12565 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12566 (ssa_default_def_partition): New.
12567 (get_rtl_for_parm_ssa_default_def): New.
12568 (align_local_variable, add_stack_var): Support anonymous SSA
12570 (defer_stack_allocation): Likewise. Declare earlier.
12571 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12572 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12573 Do no record deferred-allocation marker in
12574 SA.partition_to_pseudo.
12575 (expand_stack_vars): Adjust check for the marker in it.
12576 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12577 redundant MEM attr setting.
12578 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12580 (expand_one_stack_var): ... this. New wrapper to check and
12581 skip already expanded SSA partitions.
12582 (record_alignment_for_reg_var): New, factored out of...
12583 (expand_one_var): ... this.
12584 (expand_one_ssa_partition): New.
12585 (adjust_one_expanded_partition_var): New.
12586 (expand_one_register_var): Check and skip already expanded SSA
12588 (expand_used_vars): Don't create DECLs for anonymous SSA
12589 names. Expand all SSA partitions, then adjust all SSA names.
12590 (pass::execute): Replace the loops that set
12591 SA.partition_to_pseudo from partition leaders and cleared
12592 DECL_RTL for multi-location variables, and that which used to
12593 rename vars and set attrs, with one that clears DECL_RTL and
12594 checks that PARMs and RESULTs default_defs match DECL_RTL.
12595 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12596 * emit-rtl.c: Include stor-layout.h.
12597 (set_reg_attrs_for_parm): Handle NULL decl.
12598 (set_reg_attrs_for_decl_rtl): Take mode from expression if
12600 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12601 rather than its possibly-NULL DECL.
12602 * explow.c (promote_ssa_mode): New.
12603 * explow.h (promote_ssa_mode): Declare.
12604 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12605 (read_complex_part): Export.
12606 * expr.h (read_complex_part): Declare.
12607 * cfgexpand.h (parm_maybe_byref_p): Declare.
12608 * function.c: Include cfgexpand.h.
12609 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12610 (use_register_for_parm_decl): Wrapper for the above to
12611 special-case the result_ptr.
12612 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12613 (split_complex_args): Take assign_parm_data_all argument.
12614 Pass it to rtl_for_parm. Set up rtl and context for split
12615 args. Reset complex parm before fetching its default decl
12617 (assign_parms_unsplit_complex): Use the default-def complex
12618 parm rtl if it matches the components.
12619 (assign_parms_augmented_arg_list): Adjust.
12620 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12621 multiple locations. Recognize split complex args.
12622 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12623 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12624 (assign_parm_setup_block): Prefer SSA-assigned location, and
12625 fill in its address if the memory location of a maybe-byref
12626 parm was not assigned by cfgexpand.
12627 (assign_parm_setup_reg): Likewise. Adjust its mode as
12628 needed. Use entry_parm for equiv if stack_parm is NULL. Make
12629 sure passed_pointer parms don't need conversion. Copy address
12630 or value as needed.
12631 (assign_parm_setup_stack): Prefer SSA-assigned location.
12632 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12633 rtl before testing for pointer bounds. Special-case result_ptr.
12634 (expand_function_start): Maybe reset DECL_RTL of result.
12635 Prefer SSA-assigned location for result and static chain.
12636 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
12637 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
12638 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12639 anonymous SSA names. Use promote_ssa_mode.
12640 (get_temp_reg): Likewise.
12641 (remove_ssa_form): Adjust.
12642 * stor-layout.c (layout_decl): Don't set mem attributes of
12644 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12645 and get its reg_usage for reg invalidation.
12646 (compute_bb_dataflow): Pass it insn.
12647 (emit_notes_in_bb): Likewise.
12649 2015-08-14 Marek Polacek <polacek@redhat.com>
12651 * tree-core.h (tree_base): Fix typo.
12653 2015-08-14 Marek Polacek <polacek@redhat.com>
12655 PR middle-end/67133
12656 * gimple.c (infer_nonnull_range_by_attribute): Check that the
12657 nonnull argument position is not outside function arguments.
12659 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
12662 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12663 'lconst_atomic' with 'const_atomic'.
12664 (atomic_fetch_<optab><mode>): Likewise.
12665 (atomic_<optab>_fetch<mode>): Likewise.
12666 * config/aarch64/iterators.md (lconst-atomic): Move below
12668 (const_atomic): New.
12670 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
12671 Bernd Schmidt <bernds@codesourcery.com>
12673 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12675 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12676 (DWARF2_DEBUGGING_INFO): Don't define.
12677 * debug.h (dwarf2_lineno_debug_hooks): Declare.
12678 * toplev.c (process_options): Add a case for it.
12679 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12680 (dwarf2out_init): Skip most initializations if
12681 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12683 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12684 DWARF2_LINENO_DEBUGGING_INFO.
12685 * opts.c (set_debug_level): Likewise.
12687 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
12689 * config/arm/types.md (is_neon_type): Add missing types.
12691 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12693 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12695 * config/i386/i386.c (PTA_SKYLAKE): New macros.
12696 (processor_alias_table): Add skylake description.
12697 (enum processor_model): Add skylake processor.
12698 (arch_names_table): Add skylake record.
12699 * doc/invoke.texi: Add skylake item.
12701 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
12703 * ira-int.h: Include recog.h.
12704 * ira-build.c: Don't include recog.h.
12705 * ira-color.c: Likewise.
12706 * ira-conflicts.c: Likewise.
12707 * ira-costs.c: Likewise.
12708 * ira-emit.c: Likewise.
12709 * ira-lives.c: Likewise.
12711 * sched-deps.c: Likewise.
12712 * sel-sched.c: Likewise.
12713 * target-globals.c: Likewise.
12715 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
12718 * reload1.c (elimination_costs_in_insn): Make it obvious to the
12719 compiler that the n_dups and n_operands loop bounds are invariant.
12721 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12723 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12724 expressions in A and B.
12726 2015-08-13 Richard Biener <rguenther@suse.de>
12728 * tree.c (nonnull_arg_p): Move from ...
12729 * tree-vrp.c (nonnull_arg_p): ... here.
12730 * tree.h (nonnull_arg_p): Declare.
12731 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12732 here, register ptr != 0 for nonnull_arg_p pointer arguments.
12733 Properly initialize static chain and by-reference result pointer.
12734 (run_scc_vn): Adjust.
12736 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12738 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12741 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12743 * config/aarch64/aarch64-protos.h
12744 (aarch64_gen_atomic_cas): Declare.
12745 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12746 Choose appropriate instruction pattern for the target.
12747 (aarch64_gen_atomic_cas): New.
12748 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12749 (atomic_compare_and_swap<mode>_1): Rename to
12750 aarch64_compare_and_swap<mode>. Fix some indentation.
12751 (aarch64_compare_and_swap<mode>_lse): New.
12752 (aarch64_atomic_cas<mode>): New.
12754 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12756 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12759 2015-08-13 Richard Biener <rguenther@suse.de>
12761 PR tree-optimization/67191
12762 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12763 assert we value-numbered last stmts operand because it can validly
12764 trigger for unreachable code.
12766 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12768 PR rtl-optimization/67103
12769 * ifcvt.c (noce_try_store_flag_constants): Move
12770 x = (-(test != 0) & (b - a)) + a transformation to...
12771 (noce_try_cmove): ... Here. Try it if normal conditional
12774 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12776 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12778 * config/mips/mips.md (processor): Remove w32 and w64.
12780 2015-08-13 Richard Biener <rguenther@suse.de>
12782 PR tree-optimization/66502
12783 PR tree-optimization/67167
12784 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12785 backedge arguments.
12786 (vn_phi_lookup): Adjust.
12787 (vn_phi_insert): Likewise.
12788 (visit_phi): Prefer to value-number to another PHI node
12789 over value-numbering to a PHI argument.
12790 (init_scc_vn): Mark DFS back edges.
12792 2015-08-13 Richard Biener <rguenther@suse.de>
12794 * gimple.h (gcall::code_): New constant static member.
12795 (gcond::code_): Likewise.
12796 * gimple.c (gcall::code_): Define.
12797 (gcond::code_): Likewise.
12798 (is_a_helper <const gcond *>): Add.
12799 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12800 and forward to a new gcall overload with less checking and a
12801 cheaper way to access the operand.
12802 (gimple_call_lhs_ptr): Likewise.
12803 (gimple_call_set_lhs): Likewise.
12804 (gimple_call_internal_p): Likewise.
12805 (gimple_call_with_bounds_p): Likewise.
12806 (gimple_call_set_with_bounds): Likewise.
12807 (gimple_call_internal_fn): Likewise.
12808 (gimple_call_set_ctrl_altering): Likewise.
12809 (gimple_call_ctrl_altering_p): Likewise.
12810 (gimple_call_fntype): Likewise.
12811 (gimple_call_fn): Likewise.
12812 (gimple_call_fn_ptr): Likewise.
12813 (gimple_call_set_fndecl): Likewise.
12814 (gimple_call_fndecl): Likewise.
12815 (gimple_call_chain): Likewise.
12816 (gimple_call_num_args): Likewise.
12817 (gimple_call_arg): Likewise.
12818 (gimple_call_arg_ptr): Likewise.
12819 (gimple_call_set_arg): Likewise.
12820 (gimple_call_noreturn_p): Likewise.
12821 (gimple_cond_code): Likewise.
12822 (gimple_cond_lhs): Likewise.
12823 (gimple_cond_rhs): Likewise.
12824 (gimple_has_lhs): Reduce checking.
12826 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12828 PR middle-end/25529
12829 * match.pd (div (mult @0 @1) @1) : New simplifier.
12831 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12834 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12835 predicate to allow construction of vector constants using the
12836 VSLDOI vector shift instruction.
12838 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12841 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12842 the number of bytes to be shifted left and filled in with either
12843 all zero or all one bits.
12844 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12846 (output_vec_const_move): On power8, generate XXLORC to generate
12847 a vector constant with all 1's. Do a split if we need to use a
12848 VSLDOI instruction.
12850 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12851 properly test for the MSB.
12853 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12854 vector constants that can be created with VSLDOI.
12856 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12859 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12860 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12861 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12862 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12863 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12864 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12865 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12866 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12867 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12869 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
12871 * config/xtensa/constraints.md (define_constraint "Y"): New
12873 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12874 * config/xtensa/linux.h (ASM_SPEC): Likewise.
12875 * config/xtensa/predicates.md (move_operand): Match constants
12876 and symbols in the presence of TARGET_AUTO_LITPOOLS.
12877 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12878 immediate references to TLS data.
12879 (xtensa_emit_move_sequence): Don't force constants to memory in
12880 the presence of TARGET_AUTO_LITPOOLS.
12881 (print_operand): Add 'y' format, same as default, but capable of
12882 printing SF mode constants as well.
12883 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12884 (movsf_internal): Add movi pattern that loads literal.
12885 (movsf, movdf): Don't force constants to memory in the presence
12886 of TARGET_AUTO_LITPOOLS.
12887 (movdf_internal): Add 'Y' constraint.
12888 * config/xtensa/xtensa.opt (mauto-litpools): New option.
12889 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12891 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12893 * config/arm/arm-fpus.def: Replace booleans with feature flags.
12895 * config/arm/arm.c (ARM_FPU): Update macro.
12896 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12897 (TARGET_FP16): Likewise.
12898 (TARGET_CRYPTO): Likewise.
12899 (TARGET_NEON): Likewise.
12900 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
12903 2015-08-12 Tom de Vries <tom@codesourcery.com>
12907 * doc/install.texi: Remove --with_host_libstdcxx item. Update
12908 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12909 accordingly. Mention default for --with-stage1-ldflags.
12911 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12913 * config/arm/arm.h (arm_fpu_feature_set): New.
12914 (ARM_FPU_FSET_HAS): New.
12915 (FPU_FL_NONE): New.
12916 (FPU_FL_NEON): New.
12917 (FPU_FL_FP16): New.
12918 (FPU_FL_CRYPTO): New.
12920 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12922 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12923 after -mcmodel=large -fPIC sorry.
12925 2015-08-12 Richard Biener <rguenther@suse.de>
12927 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12928 comparison operand order and commutative ternary op operand order.
12929 (sccvn_dom_walker::cond_stack): New state to track temporary
12931 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12933 (sccvn_dom_walker::record_cond): Add a single temporary conditional
12935 (sccvn_dom_walker::record_conds): Add a temporary conditional
12936 expressions and all related expressions also true/false.
12937 (sccvn_dom_walker::before_dom_children): Record temporary
12938 expressions based on the controlling condition of a single
12939 predecessor. When trying to simplify a conditional statement
12940 lookup expressions we might have inserted earlier.
12942 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
12945 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12946 to ARM core registers.
12948 2015-08-12 Nathan Sidwell <nathan@acm.org>
12950 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12951 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12953 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
12955 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12956 line with comments.
12957 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12959 2015-08-12 Richard Biener <rguenther@suse.de>
12961 * gimple.h (remove_pointer): New trait.
12962 (GIMPLE_CHECK2): New inline template function.
12963 (gassign::code_): New constant static member.
12964 (is_a_helper<const gassign *>): Add.
12965 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12966 and forward to a new gassign overload with less checking and a
12967 cheaper way to access the operand.
12968 (gimple_assign_lhs_ptr): Likewise.
12969 (gimple_assign_set_lhs): Likewise.
12970 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12972 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12974 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12976 (gimple_assign_rhs_code): Likewise.
12977 * gimple.c (gassign::code_): Define.
12979 2015-08-12 Richard Biener <rguenther@suse.de>
12981 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12982 Eliminate edges marked as not executable by SCCVN.
12983 * tree-ssa-sccvn.c: Include gimple-iterator.h.
12984 (cond_dom_walker): Rename to sccvn_dom_walker.
12985 (sccvn_dom_walker::before_dom_children): Value-number defs
12987 (run_scc_vn): Remove loop value-numbering all SSA names.
12988 Drop not visited SSA names to varying.
12990 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12992 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12993 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12994 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12995 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12996 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12997 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12998 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12999 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13000 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13002 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13005 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13006 to enum feature_priority and feature_list.
13007 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13008 and isa_names_table.
13010 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13012 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13013 vect_induction_def.
13015 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13019 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13020 account when deciding what was the command-line status.
13022 2015-08-11 Nathan Sidwell <nathan@acm.org>
13024 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13026 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13027 we're not the only contributor to target phi.
13029 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13031 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13034 2015-08-11 Tom de Vries <tom@codesourcery.com>
13036 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13038 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13040 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13042 * config/i386/i386.md (cpu): Remove knl.
13044 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13047 PR middle-end/66332
13048 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13049 open-coded sequence.
13050 * omp-low.c (oacc_process_reduction_data): Remove handline of
13051 GOMP_DEVICE_HOST_NONSHM.
13053 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13054 GET_MODE_INNER changes.
13056 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13057 Ilya Verbin <ilya.verbin@intel.com>
13059 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13061 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13063 * doc/options.texi (EnabledBy): Document that the argument must be
13065 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13066 Not enabled by -Wall.
13067 * optc-gen.awk: Give nicer error messages. Detect if the argument
13068 of EnabledBy is not a Common option.
13069 * common.opt (Wnull-dereference): Not enabled by -Wall.
13070 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13072 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13074 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13075 model == 0x4f as Broadwell.
13077 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13079 PR rtl-optimization/67028
13080 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13081 Add test to see if a const_int fits in the new mode.
13083 2015-08-07 DJ Delorie <dj@redhat.com>
13085 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13087 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13089 PR rtl-optimization/67029
13090 * ira-color.c: Include "recog.h" before including "ira-int.h".
13091 * target-globals.c: Likewise.
13092 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13093 adds an alternative_mask argument and use it instead of
13094 preferred_alternatives.
13095 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13096 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13097 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13098 (sched_analyze_insn): Update call to
13099 ira_implicitly_set_insn_hard_regs.
13100 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13101 (implicit_clobber_conflict_p): Update call to
13102 ira_implicitly_set_insn_hard_regs.
13104 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13106 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13108 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13111 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13112 currently_expanding_to_rtl is set.
13114 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13116 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13117 * configure: Regenerate.
13119 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13120 Jiong Wang <jiong.wang@arm.com>
13122 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13123 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13124 (REG_CLASS_NAMES): Likewise.
13125 (REG_CLASS_CONTENTS): Likewise.
13126 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13127 (aarch64_register_move_cost): Likewise.
13128 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13130 * config/aarch64/constraints.md (Uc0): New constraint.
13132 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13134 * config/aarch64/constraints.md (Usf): Add the test of
13135 aarch64_is_noplt_call_p.
13137 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13139 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13141 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13142 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13143 (call_symbol): Likewise.
13145 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13147 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13148 for vectorizing multiplication patterns.
13149 * tree-vectorizer.h: Adjust the number of patterns.
13151 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13153 * config/i386/sse.md (*vec_concatv2df): Declare added
13154 alternatives as sselog type.
13156 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13158 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13161 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13163 * config/s390/s390.c (s390_expand_tbegin): Expand either
13164 tbegin_1_z13 or tbegin_1 depending on VX flag.
13165 * config/s390/s390.md ("tbegin_1_z13"): New expander.
13167 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13169 * config/s390/s390.opt: Clarify description for -mzvector
13170 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13173 2015-08-06 Richard Biener <rguenther@suse.de>
13175 * gimple.h (gimple_call_set_fn): Access op member directly.
13176 (gimple_call_chain_ptr): Likewise.
13177 (gimple_call_set_chain): Likewise.
13178 (gimple_cond_lhs_ptr): Likewise.
13179 (gimple_cond_set_lhs): Likewise.
13180 (gimple_cond_rhs_ptr): Likewise.
13181 (gimple_cond_set_rhs): Likewise.
13182 (gimple_cond_true_label): Likewise.
13183 (gimple_cond_set_true_label): Likewise.
13184 (gimple_cond_set_false_label): Likewise.
13185 (gimple_cond_false_label): Likewise.
13186 (gimple_label_label): Likewise.
13187 (gimple_label_set_label): Likewise.
13188 (gimple_goto_set_dest): Likewise.
13189 (gimple_asm_input_op): Likewise.
13190 (gimple_asm_input_op_ptr): Likewise.
13191 (gimple_asm_set_input_op): Likewise.
13192 (gimple_asm_output_op): Likewise.
13193 (gimple_asm_output_op_ptr): Likewise.
13194 (gimple_asm_set_output_op): Likewise.
13195 (gimple_asm_clobber_op): Likewise.
13196 (gimple_asm_set_clobber_op): Likewise.
13197 (gimple_asm_label_op): Likewise.
13198 (gimple_asm_set_label_op): Likewise.
13199 (gimple_switch_index): Likewise.
13200 (gimple_switch_index_ptr): Likewise.
13201 (gimple_return_retval_ptr): Likewise.
13202 (gimple_return_retval): Likewise.
13203 (gimple_return_set_retval): Likewise.
13204 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
13205 (gimple_switch_label): Likewise.
13206 (gimple_switch_set_label): Likewise.
13208 2015-08-06 Richard Biener <rguenther@suse.de>
13210 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13211 bool comparison canonicalization and restrict to integers.
13213 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
13215 * coretypes.h (enum symbol_visibility): Relocate here.
13216 * flag-types.h (enum symbol_visibility): Remove.
13217 * tree-core.h (enum symbol_visibility): Remove.
13219 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
13222 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13223 for no_split_stack function attribute along with
13225 (rs6000_expand_split_stack_prologue): Likewise.
13227 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
13228 Jeff Law <law@redhat.com>
13231 * doc/invoke.texi (Wnull-dereference): New.
13232 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13233 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13234 Warn for potential NULL dereferences.
13235 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13236 * ubsan.c (instrument_nonnull_arg): Call
13237 infer_nonnull_range_by_attribute.
13238 (instrument_nonnull_return): Likewise.
13239 * common.opt (Wnull-dereference); New.
13240 * gimple.c (infer_nonnull_range): Remove bool arguments.
13241 (infer_nonnull_range_by_dereference): New.
13242 (infer_nonnull_range_by_attribute): New.
13243 * gimple.h: Update declarations.
13245 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13247 * gensupport.c (sequence_num): Replace with...
13248 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13249 ...these new variables.
13250 (init_rtx_reader_args_cb): Update accordingly.
13251 (get_num_code_insns): Likewise.
13252 (read_md_rtx): Rework to use a while loop and get_c_test.
13253 Use the new counters. Remove redundant DEFINE_SUBST case.
13254 * genoutput.c (gen_split): Delete.
13255 (main): Don't call it.
13257 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13259 * gensupport.h (get_c_test): Declare.
13260 * gensupport.c (get_c_test): New function.
13261 * genconditions.c (main): Use it.
13262 * genrecog.c (validate_pattern): Likewise.
13263 (match_pattern_1): Likewise. Remove c_test argument.
13264 (match_pattern): Update accordingly and remove c_test argument.
13265 (main): Update accordingly.
13267 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13269 * gensupport.h (get_num_insn_codes): Declare.
13270 * gensupport.c (get_num_insn_codes): New function.
13271 * genattrtab.c (optimize_attrs): Rename max_insn_code to
13273 (main): Likewise. Use get_num_insn_codes.
13274 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13276 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13278 PR middle-end/66311
13279 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13280 is zero- rather than sign-extended.
13282 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13284 * target-insns.def (can_extend): Delete.
13286 2015-08-05 Richard Biener <rguenther@suse.de>
13288 PR tree-optimization/67121
13289 * tree-if-conv.c (combine_blocks): Clear range-info produced
13290 by stmts no longer executed conditionally.
13292 2015-08-05 Nick Clifton <nickc@redhat.com>
13294 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13295 to allow identical far pointers to remain.
13297 2015-08-05 Richard Biener <rguenther@suse.de>
13299 PR middle-end/67120
13300 * match.pd: Compare address bases with == if they are decls
13301 or SSA names, not operand_equal_p. Otherwise fail.
13303 2015-08-05 Richard Biener <rguenther@suse.de>
13305 PR tree-optimization/67055
13306 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13309 * g++.dg/torture/pr67055.C: New testcase.
13311 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13313 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13315 (define_attr "enabled"): Handle avx521vl and noavx512vl.
13316 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13317 AVX-512 alternative out of SSE.
13318 (define_insn "*vec_concatv2df"): Ditto.
13320 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13322 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13323 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13324 CODE_FOR_avx_ptestv4di.
13325 * config/i386/sse.md (define_mode_iterator V_AVX): New.
13326 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13327 (define_insn "avx_ptest256"): Merge this ...
13328 (define_insn "sse4_1_ptest"): And this ...
13329 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13331 2015-08-05 Richard Biener <rguenther@suse.de>
13333 PR tree-optimization/67109
13334 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13335 against too big groups. Print whether this is a load or store
13336 group. Rename from ...
13337 (vect_analyze_group_access): ... this which is now a wrapper
13338 dissolving an invalid group.
13339 (vect_analyze_data_ref_accesses): Print whether this is a load
13342 2015-08-05 Richard Biener <rguenther@suse.de>
13344 PR middle-end/67107
13345 * match.pd: Guard const_binop result checking against NULL_TREE
13348 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
13350 * cse.c (cse_insn): Restoring old behaviour for src_eqv
13351 when dest and value in the REG_EQUAL are same and dest
13352 is STRICT_LOW_PART.
13354 2015-08-04 Anatoly Sokolov <aesok@post.ru>
13356 * config/moxie/moxie.h (PRINT_OPERAND,
13357 PRINT_OPERAND_ADDRESS): Remove macros.
13358 * config/moxie/moxie-protos.h (moxie_print_operand,
13359 moxie_print_operand_address): Remove declaration.
13360 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13361 TARGET_PRINT_OPERAND_ADDRESS): Define.
13362 (moxie_print_operand, moxie_print_operand_address): Make static.
13364 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
13367 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13368 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13370 2015-08-04 Richard Biener <rguenther@suse.de>
13372 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13374 (dt_operand::gen_gimple_expr): Adjust.
13376 2015-08-04 Richard Biener <rguenther@suse.de>
13378 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13379 bool compares on RHS.
13380 * match.pd: Add X ==/!= !X is false/true pattern.
13382 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
13384 * config/aarch64/aarch64.c: Change inner loop statement cost
13385 to be consistent with other targets.
13387 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
13389 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13392 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
13394 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13395 (machine_function): Remove pseudos field.
13397 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13399 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13400 Exit early and use target_option_current_node if processing current
13403 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13405 * doc/extend.texi (AArch64 Function Attributes): New node.
13406 (AArch64 Pragmas): Likewise.
13408 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13410 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13411 Initialize simd builtins if TARGET_SIMD.
13412 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13413 Make sure that the builtins are initialized only once no matter how
13414 many times the function is called.
13415 (aarch64_init_builtins): Unconditionally initialize crc builtins.
13416 (aarch64_relayout_simd_param): New function.
13417 (aarch64_simd_expand_args): Use above during argument expansion.
13418 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13419 simd builtins if TARGET_SIMD.
13420 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13422 (aarch64_relayout_simd_types): Likewise.
13424 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13426 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13427 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13428 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13429 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13431 (aarch64_reset_previous_fndecl): New function.
13432 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13434 * config/aarch64/aarch64-c.c: New file.
13435 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13436 Push and pop options at beginning and end. Remove ifdef
13437 __ARM_FEATURE_CRC32.
13438 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13439 Add pragma +nothing+simd and +nothing+crypto where appropriate.
13440 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13441 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13443 (aarch64_register_pragmas): Likewise.
13444 (aarch64_reset_previous_fndecl): Likewise.
13445 (aarch64_process_target_attr): Likewise.
13446 (aarch64_override_options_internal): Likewise.
13448 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13450 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13452 (aarch64_can_inline_p): Likewise.
13453 (TARGET_CAN_INLINE_P): Define.
13455 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13457 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13458 Remove static. Handle OPT_mgeneral_regs_only,
13459 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13460 OPT_momit_leaf_frame_pointer.
13461 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13462 (aarch64_attr_opt_type): New enum.
13463 (aarch64_attribute_info): New struct.
13464 (aarch64_handle_attr_arch): New function.
13465 (aarch64_handle_attr_cpu): Likewise.
13466 (aarch64_handle_attr_tune): Likewise.
13467 (aarch64_handle_attr_isa_flags): Likewise.
13468 (aarch64_attributes): New table.
13469 (aarch64_process_one_target_attr): New function.
13470 (num_occurences_in_str): Likewise.
13471 (aarch64_process_target_attr): Likewise.
13472 (aarch64_option_valid_attribute_p): Likewise.
13473 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13474 * config/aarch64/aarch64-protos.h: Include input.h
13475 (aarch64_handle_option): Declare prototype.
13477 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13479 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13480 * config/aarch64/aarch64.c: Include target-globals.h
13481 (aarch64_previous_fndecl): New variable.
13482 (aarch64_set_current_function): New function.
13483 (TARGET_SET_CURRENT_FUNCTION): Define.
13485 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13487 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13488 (explicit_arch): Likewise.
13489 (x_aarch64_isa_flags): Likewise.
13490 (mgeneral-regs-only): Mark as Save.
13491 (mfix-cortex-a53-835769): Likewise.
13492 (mcmodel=): Likewise.
13493 (mstrict-align): Likewise.
13494 (momit-leaf-frame-pointer): Likewise.
13495 (mtls-dialect): Likewise.
13496 (master=): Likewise.
13497 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13498 (aarch64_isa_flags): Remove extern declaration.
13499 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13500 to indicate success or failure.
13501 (aarch64_validate_march): Likewise.
13502 (aarch64_validate_mtune): Likewise.
13503 (aarch64_isa_flags): Delete.
13504 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13505 instead of aarch64_isa_flags.
13506 (aarch64_get_tune_cpu): New function.
13507 (aarch64_get_arch): Likewise.
13508 (aarch64_override_options): Use above and set up explicit_tune_core
13510 (aarch64_print_extension): Move earlier in file. Add isa_flags
13511 argument and use that instead of the global aarch64_isa_flags.
13512 (aarch64_option_save): New function.
13513 (aarch64_option_restore): Likewise.
13514 (aarch64_option_print): Likewise.
13515 (aarch64_declare_function_name): Likewise.
13516 (aarch64_start_file): Delete.
13517 (TARGET_ASM_FILE_START): Do not define.
13518 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13519 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13522 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13524 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13525 flag_omit_leaf_frame_pointer to 2.
13527 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13529 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13531 (TARGET_FIX_ERR_A53_835769): New macro.
13532 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13533 handling of opts->x_aarch64_fix_a53_err835769.
13534 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13535 than aarch64_fix_a53_err835769.
13536 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13537 * config/aarch64/aarch64-linux.h: Likewise.
13539 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
13541 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13542 ix86_expand_int_movcc as boolean.
13544 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13546 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13547 (aarch64_cpu_string): Likewise.
13548 (aarch64_tune_string): Likewise.
13549 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13550 (aarch64_parse_extension): Return aarch64_parse_opt_result.
13551 Add extra argument to put result into.
13552 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
13553 (aarch64_parse_cpu): Add arguments to put results into. Return
13554 aarch64_parse_opt_result.
13555 (aarch64_parse_tune): Likewise.
13556 (aarch64_override_options_after_change_1): New function.
13557 (aarch64_override_options_internal): New function.
13558 (aarch64_validate_mcpu): Likewise.
13559 (aarch64_validate_march): Likewise.
13560 (aarch64_validate_mtune): Likewise.
13561 (aarch64_override_options): Update to reflect above changes.
13562 Move some logic into aarch64_override_options_internal.
13563 Initialize target_option_default_node and target_option_current_node.
13564 (aarch64_override_options_after_change): Move logic into
13565 aarch64_override_options_after_change_1 and call it with global_options.
13566 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13567 flag values from that.
13569 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13571 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13572 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13573 * config/aarch64/aarch64.c (struct processor): Add arch field.
13574 (all_architectures): Handle above, move above all_cores.
13575 (all_cores): Handle above.
13576 (aarch64_parse_arch): Handle above changes.
13577 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13578 above. Update comments.
13579 (armv8.1-a): Likewise.
13580 * config/aarch64/aarch64-cores.def: Update according to above.
13581 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13582 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13583 aarch64_arch_driver_info.
13585 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13587 * config/aarch64/aarch64.c (struct processor): Add ident field.
13588 Rename core sched_core.
13589 (all_cores): Handle above changes.
13590 (all_architectures): Likewise.
13591 (aarch64_parse_arch): Likewise.
13592 (aarch64_override_options): Likewise.
13594 2015-08-04 Richard Biener <rguenther@suse.de>
13596 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13597 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13598 comparisons embedded in [VEC_]COND_EXPRs.
13600 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
13602 * tree-if-conv.c: Fix various typos in comments.
13603 * tree-vect-stmts.c: Likewise.
13605 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13607 PR tree-optimization/67043
13608 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13609 preheader after hoisting invariant in it.
13610 (find_defs): Force recomputation of all luids.
13612 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
13614 * config/rs6000/htm.md (tabort.): Restrict the source operand to
13615 using a base register.
13617 2015-08-03 David Malcolm <dmalcolm@redhat.com>
13619 * main.c (main): Pass in NULL for toplev's external_timer.
13620 * timevar.c: Include coretypes.h.
13621 (class timer::named_items): New.
13622 (timer::named_items::named_items): New.
13623 (timer::named_items::~named_items): New.
13624 (timer::named_items::push): New.
13625 (timer::named_items::pop): New.
13626 (timer::named_items::print): New.
13627 (timer::timer): Initialize field "m_jit_client_items".
13628 (timer::~timer): New.
13629 (timer::push): Move bulk of implementation to...
13630 (timer::push_internal): ...here. New function.
13631 (timer::pop): Move bulk of implementation to...
13632 (timer::pop_internal): ...here. New function.
13633 (timer::push_client_item): New.
13634 (timer::pop_client_item): New.
13635 (timer::print_row): New function, taken from timer::print.
13636 (timer::print): Print "GCC items" header if we also have client
13637 items. Move row-printing to timer::print_row. Print any client
13639 (timer::get_topmost_item_name): New method.
13640 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13641 (TV_JIT_CLIENT_CODE): New.
13642 * timevar.h (timer::push_client_item): New declaration.
13643 (timer::pop_client_item): New declaration.
13644 (timer::get_topmost_item_name): New method.
13645 (timer::push_internal): New declaration.
13646 (timer::pop_internal): New declaration.
13647 (timer::print_row): New declaration.
13648 (timer::named_items): New declaration.
13649 (timer::m_jit_client_items): New field.
13650 (timer): Add friend class named_items.
13651 (auto_timevar::auto_timevar): Add timer param.
13652 (auto_timevar::~auto_timevar): Use field "m_timer".
13653 (auto_timevar::m_timer): New field.
13654 * toplev.c (initialize_rtl): Add g_timer as param when
13655 constructing auto_timevar instance.
13656 (toplev::toplev): Add "external_timer" param, and use it to
13657 initialize the "g_timer" global if non-NULL.
13658 (toplev::~toplev): If this created "g_timer", delete it.
13659 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13660 with "external_timer" timer *.
13662 2015-08-03 Alexander Basov <coohpt@gmail.com>
13664 PR middle-end/64744
13665 PR middle-end/48470
13666 PR middle-end/43404
13667 * cfgexpand.c (expand_one_var): Add check if stack is going to
13668 be used in naked function.
13669 * expr.c (expand_expr_addr_expr_1): Remove excess checking
13670 whether expression should not reside in MEM.
13671 * function.c (use_register_for_decl): Do not use registers for
13672 non-register things (volatile, float, BLKMode) in naked functions.
13674 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
13677 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13678 Adjust splits to match new pattern.
13680 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13682 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13685 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13686 point in VSX registers.
13688 * config/rs6000/constraints.md (wb constraint): Document unused
13690 (we constraint): Likewise.
13691 (wo constraint): Likewise.
13692 (wp constraint): New constraint for IEEE 128-bit floating point in
13694 (wq constraint): Likewise.
13696 * config/rs6000/predicates.md (easy_fp_constant): Add support for
13697 IEEE 128-bit floating point in VSX registers.
13698 (easy_scalar_constant): Likewise.
13700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13701 constraints (wp, wq) for IEEE 128-bit floating point in VSX
13703 (rs6000_init_hard_regno_mode_ok): Likewise.
13705 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13706 floating point in VSX registers.
13709 (VSX_M2): Likewise.
13715 (vsx_le_permute_<mode>): Add support to properly swap bytes for
13716 IEEE 128-bit floating point in VSX registers on little endian.
13717 (vsx_le_undo_permute_<mode>): Likewise.
13718 (vsx_le_perm_load_<mode>): Likewise.
13719 (vsx_le_perm_store_<mode>): Likewise.
13720 (splitters for IEEE 128-bit fp moves): Likewise.
13722 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13725 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13726 floating point in VSX registers.
13729 * doc/md.text (Machine Constraints): Document wp and wq
13730 constraints on PowerPC.
13732 2015-08-03 Jeff Law <law@redhat.com>
13734 PR middle-end/66314
13735 PR gcov-profile/66899
13736 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13737 iterate over the jump threading paths when an element in the
13738 jump threading paths array is eliminated.
13740 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
13742 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13744 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
13746 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13747 is_use_properly_guarded the variable def_preds. Free its
13748 contents before returning.
13749 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13750 (is_use_properly_guarded): Replace local variable def_preds with
13751 a parameter. Adjust accordingly. Only update *def_preds if it's
13754 2015-08-03 Richard Biener <rguenther@suse.de>
13756 * genmatch.c (simplify::for_subst_vec): New member.
13757 (binary_ok): New helper for for lowering.
13758 (lower_for): Delay substituting operators into result expressions
13759 if we can merge the results eventually again.
13760 (capture_info::walk_result): Adjust for user_id appearing as
13761 result expression operator.
13762 (expr::gen_transform): Likewise.
13763 (dt_simplify::gen_1): Likewise.
13764 (dt_simplify::gen): Pass not substituted operators to tail
13765 functions or initialize local variable with it.
13766 (decision_tree::gen): Adjust function signature.
13767 * match.pd: Fix tests against global code and add default
13768 cases to switch stmts.
13770 2015-08-03 Richard Biener <rguenther@suse.de>
13772 * genmatch.c (dt_simplify::gen): Create captures array
13773 with an initializer.
13775 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13777 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13778 the host compiler is affected by placement new aliasing bug.
13779 * configure: Regenerate.
13780 * Makefile.in (ALIASING_FLAGS): New variable.
13781 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13783 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
13786 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13787 (negmulsf3_vfp): Likewise.
13788 (muldf3negdf_vfp): Disable for -frounding-math.
13789 (mulsf3negsf_vfp): Likewise.
13790 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13791 fix MULT cost with -frounding-math.
13793 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13795 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13796 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13797 explicit. Prefer to add the flag whenever possible.
13798 (noce_process_if_block): Try noce_try_store_flag_constants before
13801 2015-08-03 Richard Biener <rguenther@suse.de>
13803 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13804 New hash-map to record equivalent transforms.
13805 (dt_node::analyze): Populate the equivalent transforms hash-map.
13806 (dt_simplify::info): Add reference to hash-map entry.
13807 (dt_simplify::gen): If we have split out a function for the
13808 transform, generate a call to it.
13809 (sinfo_hashmap_traits::hash): New function.
13810 (compare_op): New helper function for ...
13811 (sinfo_hashmap_traits::equal_keys): ... this new function.
13812 (decision_tree::gen): Split out common equivalent transforms
13815 2015-08-03 Richard Biener <rguenther@suse.de>
13817 * gimple-fold.c (fold_gimple_assign): Remove folding of
13818 the comparison in COND_EXPRs.
13820 2015-08-03 Richard Biener <rguenther@suse.de>
13822 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13823 on the rhs of assignments first simplify the embedded
13826 2015-08-03 Richard Biener <rguenther@suse.de>
13828 PR tree-optimization/66917
13829 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13831 (DR_VECT_AUX): New macro.
13832 (set_dr_misalignment): Adjust.
13833 (dr_misalignment): Likewise.
13834 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13835 Compute whether the base is at least element aligned.
13836 * tree-vect-stmts.c (ensure_base_align): Adjust.
13837 (vectorizable_store): If the base is not element aligned
13838 preserve alignment of the original access if misalignment is unknown.
13839 (vectorizable_load): Likewise.
13841 2015-08-02 Martin Sebor <msebor@redhat.com>
13843 * c-family/c.opt (-Wframe-address): New warning option.
13844 * doc/invoke.texi (Wframe-address): Document it.
13845 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13846 Clarify possible effects of calling the functions with non-zero
13847 arguments and mention -Wframe-address.
13848 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13850 2015-08-01 Michael Collison <michael.collison@linaro.org
13851 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13853 * config/arm/arm.md (*arm_smin_cmp): New pattern.
13854 (*arm_umin_cmp): Likewise.
13856 2015-08-01 Caroline Tice <cmtice@google.com>
13859 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13861 (vtbl_find_mangled_name): New function.
13862 (vtbl_register_mangled_name): New function.
13863 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
13864 mangled name in mangled name vectors.
13865 (find_or_create_vtbl_map_node): Ditto.
13866 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
13867 update recursion_depth on function entry; pass it to every recursive
13868 call; automatically exit if depth > 25 (give up looking at that point).
13869 (verify_bb_vtables): Initialize recursion_depth and pass it to
13870 var_is_used_for_virtual_call_p.
13871 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13872 global variable decls.
13873 (vtbl_register_mangled_name): New extern function decl.
13875 2015-08-01 Tom de Vries <tom@codesourcery.com>
13877 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13879 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13881 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13882 operation_no_trapping_overflow. Allow non-overflow operations.
13883 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13886 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
13889 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13891 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13893 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13894 Enable for TARGET_32BIT.
13895 (*if_move_neg): Likewise.
13897 2015-07-31 Nick Clifton <nickc@redhat.com>
13899 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13900 Returns true for __model__.
13901 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13903 2015-07-31 Alan Modra <amodra@gmail.com>
13906 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13907 (rs6000_emit_prologue): Set it.
13908 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13910 2015-07-31 Richard Biener <rguenther@suse.de>
13912 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13913 -> X == (C1 ^ C2) which is already implemented in match.pd.
13914 Remove redundant dispatching to fold_relational_const.
13915 Move unordered self and NaN compares ...
13916 * match.pd: ... as patterns here. Remove some stray captures
13919 2015-07-31 Petr Murzin <petr.murzin@intel.com>
13921 * config/i386/i386.c
13922 (bdesc_special_args): Convert mask type from signed to unsigned for
13924 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13925 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13926 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13927 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13928 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13929 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13930 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13931 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13932 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13933 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13934 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13935 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13936 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13937 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13938 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13939 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13940 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13941 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13942 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13943 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13944 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13945 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13946 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13947 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13948 * config/i386/i386-builtin-types.def
13949 (V16QI_FTYPE_V16SI): Remove.
13950 (V8DF_FTYPE_V8SI): Ditto.
13951 (V8HI_FTYPE_V8DI): Ditto.
13952 (V8SI_FTYPE_V8DI): Ditto.
13953 (V8SF_FTYPE_V8DF): Ditto.
13954 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13955 (V16HI_FTYPE_V16SI): Ditto.
13956 (V16SF_FTYPE_V16HI): Ditto.
13957 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13958 (V16SF_FTYPE_V16SI): Ditto.
13959 (V4DI_FTYPE_V4DI): Ditto.
13960 (V16SI_FTYPE_V16SF): Ditto.
13961 (V16SF_FTYPE_FLOAT): Ditto.
13962 (V8DF_FTYPE_DOUBLE): Ditto.
13963 (V8DI_FTYPE_INT64): Ditto.
13964 (V8DI_FTYPE_V4DI): Ditto.
13965 (V16QI_FTYPE_V8DI): Ditto.
13966 (UINT_FTYPE_V4SF): Ditto.
13967 (UINT64_FTYPE_V4SF): Ditto.
13968 (UINT_FTYPE_V2DF): Ditto.
13969 (UINT64_FTYPE_V2DF): Ditto.
13970 (V16SI_FTYPE_V16SI): Ditto.
13971 (V8DI_FTYPE_V8DI): Ditto.
13972 (V16SI_FTYPE_PV4SI): Ditto.
13973 (V16SF_FTYPE_PV4SF): Ditto.
13974 (V8DI_FTYPE_PV2DI): Ditto.
13975 (V8DF_FTYPE_PV2DF): Ditto.
13976 (V4DI_FTYPE_PV2DI): Ditto.
13977 (V4DF_FTYPE_PV2DF): Ditto.
13978 (V16SI_FTYPE_PV2SI): Ditto.
13979 (V16SF_FTYPE_PV2SF): Ditto.
13980 (V8DI_FTYPE_PV4DI): Ditto.
13981 (V8DF_FTYPE_PV4DF): Ditto.
13982 (V8SF_FTYPE_FLOAT): Ditto.
13983 (V4SF_FTYPE_FLOAT): Ditto.
13984 (V4DF_FTYPE_DOUBLE): Ditto.
13985 (V8SF_FTYPE_PV4SF): Ditto.
13986 (V8SI_FTYPE_PV4SI): Ditto.
13987 (V4SI_FTYPE_PV2SI): Ditto.
13988 (V8SF_FTYPE_PV2SF): Ditto.
13989 (V8SI_FTYPE_PV2SI): Ditto.
13990 (V16SF_FTYPE_PV8SF): Ditto.
13991 (V16SI_FTYPE_PV8SI): Ditto.
13992 (V8DI_FTYPE_V8SF): Ditto.
13993 (V4DI_FTYPE_V4SF): Ditto.
13994 (V2DI_FTYPE_V4SF): Ditto.
13995 (V64QI_FTYPE_QI): Ditto.
13996 (V32HI_FTYPE_HI): Ditto.
13997 (V8UHI_FTYPE_V8UHI): Ditto.
13998 (V16UHI_FTYPE_V16UHI): Ditto.
13999 (V32UHI_FTYPE_V32UHI): Ditto.
14000 (V2UDI_FTYPE_V2UDI): Ditto.
14001 (V4UDI_FTYPE_V4UDI): Ditto.
14002 (V8UDI_FTYPE_V8UDI): Ditto.
14003 (V4USI_FTYPE_V4USI): Ditto.
14004 (V8USI_FTYPE_V8USI): Ditto.
14005 (V16USI_FTYPE_V16USI): Ditto.
14006 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14007 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14008 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14009 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14010 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14011 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14012 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14013 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14014 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14015 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14016 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14017 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14018 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14019 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14020 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14021 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14022 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14023 (V16SI_FTYPE_V16SI_SI): Ditto.
14024 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14025 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14026 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14027 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14028 (QI_FTYPE_QI): Ditto.
14029 (SI_FTYPE_SI): Ditto.
14030 (DI_FTYPE_DI): Ditto.
14031 (QI_FTYPE_QI_QI): Ditto.
14032 (QI_FTYPE_QI_INT): Ditto.
14033 (HI_FTYPE_HI_INT): Ditto.
14034 (SI_FTYPE_SI_INT): Ditto.
14035 (DI_FTYPE_DI_INT): Ditto.
14036 (HI_FTYPE_V16QI_V16QI): Ditto.
14037 (SI_FTYPE_V32QI_V32QI): Ditto.
14038 (DI_FTYPE_V64QI_V64QI): Ditto.
14039 (QI_FTYPE_V8HI_V8HI): Ditto.
14040 (HI_FTYPE_V16HI_V16HI): Ditto.
14041 (SI_FTYPE_V32HI_V32HI): Ditto.
14042 (QI_FTYPE_V4SI_V4SI): Ditto.
14043 (QI_FTYPE_V8SI_V8SI): Ditto.
14044 (QI_FTYPE_V2DI_V2DI): Ditto.
14045 (QI_FTYPE_V4DI_V4DI): Ditto.
14046 (QI_FTYPE_V8DI_V8DI): Ditto.
14047 (HI_FTYPE_V16SI_V16SI): Ditto.
14048 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14049 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14050 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14051 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14052 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14053 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14054 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14055 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14056 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14057 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14058 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14059 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14060 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14061 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14062 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14063 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14064 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14065 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14066 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14067 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14068 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14069 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14070 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14071 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14072 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14073 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14074 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14075 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14076 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14077 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14078 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14079 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14080 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14081 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14082 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14083 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14084 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14085 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14086 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14087 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14088 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14089 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14090 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14091 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14092 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14093 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14094 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14095 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14096 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14097 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14098 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14099 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14100 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14101 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14102 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14103 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14104 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14105 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14106 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14107 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14108 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14109 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14110 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14111 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14112 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14113 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14114 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14115 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14116 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14117 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14118 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14119 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14120 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14121 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14122 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14123 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14124 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14125 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14126 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14127 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14128 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14129 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14130 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14131 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14132 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14133 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14134 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14135 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14136 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14137 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14138 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14139 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14140 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14141 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14142 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14143 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14144 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14145 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14146 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14147 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14148 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14149 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14150 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14151 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14152 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14153 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14154 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14155 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14156 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14157 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14158 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14159 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14160 (HI_FTYPE_HI): Ditto.
14161 (HI_FTYPE_V16QI): Ditto.
14162 (SI_FTYPE_V32QI): Ditto.
14163 (DI_FTYPE_V64QI): Ditto.
14164 (QI_FTYPE_V8HI): Ditto.
14165 (HI_FTYPE_V16HI): Ditto.
14166 (SI_FTYPE_V32HI): Ditto.
14167 (QI_FTYPE_V4SI): Ditto.
14168 (QI_FTYPE_V8SI): Ditto.
14169 (HI_FTYPE_V16SI): Ditto.
14170 (QI_FTYPE_V2DI): Ditto.
14171 (QI_FTYPE_V4DI): Ditto.
14172 (QI_FTYPE_V8DI): Ditto.
14173 (V16QI_FTYPE_HI): Ditto.
14174 (V32QI_FTYPE_SI): Ditto.
14175 (V64QI_FTYPE_DI): Ditto.
14176 (V8HI_FTYPE_QI): Ditto.
14177 (V16HI_FTYPE_HI): Ditto.
14178 (V32HI_FTYPE_SI): Ditto.
14179 (V4SI_FTYPE_QI): Ditto.
14180 (V4SI_FTYPE_HI): Ditto.
14181 (V8SI_FTYPE_QI): Ditto.
14182 (V8SI_FTYPE_HI): Ditto.
14183 (V2DI_FTYPE_QI): Ditto.
14184 (V4DI_FTYPE_QI): Ditto.
14185 (HI_FTYPE_HI_HI): Ditto.
14186 (SI_FTYPE_SI_SI): Ditto.
14187 (DI_FTYPE_DI_DI): Ditto.
14188 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14189 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14190 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14191 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14192 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14193 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14194 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14195 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14196 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14197 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14198 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14199 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14200 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14201 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14202 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14203 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14204 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14205 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14206 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14207 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14208 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14209 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14210 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14211 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14212 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14213 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14214 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14215 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14216 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14217 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14218 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14219 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14220 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14221 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14222 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14223 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14224 (V16SI_FTYPE_HI): Ditto.
14225 (V8DI_FTYPE_QI): Ditto.
14226 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14227 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14228 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14229 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14230 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14231 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14232 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14233 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14234 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14235 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14236 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14237 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14238 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14239 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14240 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14241 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14242 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14243 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14244 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14245 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14246 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14247 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14248 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14249 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14250 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14251 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14252 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14253 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14254 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14255 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14256 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14257 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14258 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14259 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14260 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14261 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14262 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14263 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14264 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14265 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14266 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14267 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14268 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14269 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14270 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14271 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14272 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14273 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14274 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14275 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14276 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14277 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14278 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14279 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14280 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14281 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14282 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14283 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14284 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14285 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14286 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14287 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14288 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14289 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14290 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14291 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14292 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14293 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14294 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14295 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14296 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14297 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14298 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14299 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14300 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14301 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14302 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14303 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14304 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14305 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14306 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14307 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14308 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14309 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14310 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14311 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14312 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14313 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14314 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14315 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14316 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14317 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14318 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14319 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14320 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14321 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14322 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14323 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14324 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14325 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14326 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14327 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14328 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14329 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14330 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14331 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14332 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14333 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14334 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14335 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14336 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14337 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14338 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14339 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14340 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14341 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14342 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14343 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14344 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14345 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14346 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14347 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14348 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14349 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14350 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14351 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14352 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14353 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14354 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14355 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14356 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14357 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14358 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14359 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14360 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14361 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14362 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14363 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14364 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14365 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14366 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14367 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14368 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14369 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14370 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14371 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14372 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14373 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14374 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14375 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14376 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14377 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14378 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14379 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14380 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14381 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14382 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14383 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14384 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14385 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14386 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14387 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14388 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14389 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14390 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14391 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14392 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14393 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14394 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14395 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14396 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14397 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14398 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14399 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14400 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14401 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14402 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14403 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14404 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14405 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14406 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14407 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14408 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14409 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14410 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14411 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14412 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14413 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14414 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14415 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14416 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14417 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14418 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14419 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14420 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14421 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14422 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14423 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14424 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14425 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14426 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14427 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14428 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14429 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14430 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14431 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14432 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14433 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14434 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14435 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14436 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14437 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14438 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14439 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14440 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14441 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14442 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14443 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14444 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14445 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14446 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14447 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14448 (QI_FTYPE_V8DF_INT_QI): Ditto.
14449 (QI_FTYPE_V4DF_INT_QI): Ditto.
14450 (QI_FTYPE_V2DF_INT_QI): Ditto.
14451 (HI_FTYPE_V16SF_INT_HI): Ditto.
14452 (QI_FTYPE_V8SF_INT_QI): Ditto.
14453 (QI_FTYPE_V4SF_INT_QI): Ditto.
14454 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14456 2015-07-31 Richard Biener <rguenther@suse.de>
14458 * gimple-fold.c (fold_gimple_assign): Remove folding of
14461 2015-07-31 Tom de Vries <tom@codesourcery.com>
14463 PR tree-optimization/66846
14464 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14465 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14466 (expand_omp_target) [ENABLE_CHECKING]: Same.
14467 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14468 cfun if !LOOPS_NEED_FIXUP.
14469 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
14470 that omp_for already has its own loop struct.
14471 * tree-parloops.c (create_phi_for_local_result)
14472 (create_call_for_reduction): Handle simple latch bb.
14473 (create_parallel_loop): Add simple latch bb to preserve
14474 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
14475 (gen_parallel_loop): Remove call to cancel_loop_tree.
14476 (parallelize_loops): Skip loops that are inner loops of parallelized
14478 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14479 verify_loop_structure.
14481 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14483 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14484 * config/v850/v850.md (RV_REGNUM): New constants.
14485 * config/v850/v850.c (v850_libcall_value): New functions.
14486 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14487 (TARGET_LIBCALL_VALUE): Define.
14489 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14491 * rtl.h (lowpart_subreg): Move in file.
14492 * loop-iv.c (lowpart_subreg): Move to...
14493 * simplify-rtx.c (lowpart_subreg): ...here.
14494 (simplify_binary_operation_1): Use lowpart_subreg instead of
14495 simplify_gen_subreg.
14496 * expr.c (expand_expr_real_2): Ditto.
14497 * emit-rtl.c (gen_lowpart_common): Ditto.
14498 * combine.c (gen_lowpart_for_combine): Ditto.
14499 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14500 expand_debug_source_expr): Ditto.
14502 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
14504 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14505 (expand_builtin_atomic_clear): Remove support for atomic_clear
14508 2015-07-30 Richard Biener <rguenther@suse.de>
14510 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14511 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14512 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
14513 redundant operand canonicalization.
14515 2015-07-30 David Sherwood <david.sherwood@arm.com>
14517 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14518 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14519 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14520 * config/arm/arm.c (neon_valid_immediate): Likewise.
14521 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14522 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14523 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14524 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14525 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14526 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14527 * config/i386/sse.md
14528 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14529 (*ssse3_palignr<mode>_perm): Likewise.
14530 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14531 * config/spu/spu.c (arith_immediate_p): Likewise.
14532 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14533 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14535 2015-07-30 Richard Biener <rguenther@suse.de>
14537 * genmatch.c (decision_tree::gen_gimple): Merge with ...
14538 (decision_tree::gen_generic): ... this into ...
14539 (decision_tree::gen): ... this.
14540 (main): Adjust callers.
14542 2015-07-30 Richard Biener <rguenther@suse.de>
14544 * genmatch.c (verbose): New global.
14545 (warning_at): Add overload with source_location.
14546 (capture_info::capture_info): Add bool whether generating gimple
14547 or generic. Add gimple member.
14548 (capture_info::cinfo): Add capture member.
14549 (capture_info::walk_match): Record capture. Warn on
14550 non-captured leafs.
14551 (capture_info::walk_c_expr): Add more fragments captures cannot
14552 escape through. Warn on escaped captures.
14553 (dt_simplify::gen_1): Warn on operands we force to have no
14555 (main): Initialize verbose.
14556 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14558 2015-07-30 Richard Biener <rguenther@suse.de>
14560 PR middle-end/67053
14561 * match.pd: Allow both operands to independently have conversion
14562 when simplifying compares of addresses.
14564 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14568 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14569 around those cases that need one.
14571 2015-07-29 Aditya Kumar <hiraditya@msn.com>
14573 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14575 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
14577 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14578 New. Copied from config/i386/gnu-user.h.
14579 (ASM_COMMENT_START): Likewise.
14580 (DBX_REGISTER_NUMBER): Likewise.
14582 2015-07-29 Richard Biener <rguenther@suse.de>
14584 * gimple-fold.c (fold_gimple_cond): Remove.
14585 (fold_stmt_1): Do not call it.
14587 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
14589 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14590 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14592 * config/aarch64/aarch64-modes.def: Add HFmode.
14594 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14595 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14597 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14598 aarch64_promoted_type): New.
14600 (aarch64_float_const_representable_p): Disable HFmode.
14601 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14602 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14603 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14605 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14606 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14608 * config/aarch64/iterators.md (GPF_F16): New.
14610 2015-07-29 Richard Biener <rguenther@suse.de>
14612 * match.pd: Merge address comparison patterns and make them
14613 handle some more cases.
14615 2015-07-29 Richard Biener <rguenther@suse.de>
14617 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14618 (parser::parse_capture): Add bool argument on whether to reject
14620 (parser::parse_expr): Adjust.
14621 (parser::parse_op): Likewise.
14622 (parser::parse_pattern): Likewise.
14624 2015-07-29 Richard Biener <rguenther@suse.de>
14626 * gimple-fold.c (has_use_on_stmt): New function.
14627 (replace_stmt_with_simplification): Use it to allow
14628 abnormals originally referenced in the stmt.
14629 (fold_stmt_1): Canonicalize operand order.
14631 2015-07-28 David Sherwood <david.sherwood@arm.com>
14633 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14634 GET_MODE_INNER unconditionally.
14635 * config/spu/spu.c (arith_immediate_p): Likewise.
14636 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14637 * expmed.c (synth_mult): Remove check for VOIDmode result from
14639 (expand_mult_const): Likewise.
14640 * fold-const.c (fold_binary_loc): Replace call to element_precision
14641 with call to GET_MODE_PRECISION.
14642 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14644 (emit_mode_inner): Likewise.
14645 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14647 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14648 (GET_MODE_UNIT_PRECISION): Likewise.
14649 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14650 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14651 * stor-layout.c (bitwise_type_for_mode): Update assert.
14652 (element_precision): Remove.
14654 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14656 * target-insns.def (reload_load_address): New targetm instruction
14658 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14660 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14662 * target-insns.def (atomic_test_and_set): New targetm instruction
14664 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14665 HAVE_*/gen_* interface.
14667 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14669 * target-insns.def (can_extend, ptr_extend): New targetm instruction
14671 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14672 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14673 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14674 * rtlanal.c (nonzero_bits1): Likewise.
14675 (num_sign_bit_copies1): Likewise.
14677 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14679 * target-insns.def (eh_return): New targetm instruction pattern.
14680 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14682 * function.c (thread_prologue_and_epilogue_insns): Remove
14683 preprocessor condition.
14685 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14687 * target-insns.def (indirect_jump): New targetm instruction pattern.
14688 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14691 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14693 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14694 instead of nonimmediate_operand. Remove C condiition.
14696 2015-07-28 Richard Biener <rguenther@suse.de>
14698 * match.pd: Add more simplification of address comparisons.
14700 2015-07-28 Richard Biener <rguenther@suse.de>
14702 * match.pd: Re-order two cases in comparison with max/min
14703 value simplification to make it apply for bools.
14705 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14707 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14708 Handle simple SIGN_EXTEND or ZERO_EXTEND.
14709 (aarch64_rtx_costs): Properly strip extend or extract before
14710 passing down to rtx costs again.
14712 2015-07-28 Nick Clifton <nickc@redhat.com>
14714 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14715 Optimizes the case where -mes0 is active and a constant symbolic
14717 * config/rl78/rl78-protos.h: Prototype the new function.
14718 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14720 2015-07-28 Tom de Vries <tom@codesourcery.com>
14722 * tree-parloops.c (reduc_stmt_res): New function.
14723 (initialize_reductions, add_field_for_reduction)
14724 (create_phi_for_local_result, create_loads_for_reductions)
14725 (create_stores_for_reduction, build_new_reduction): Handle case that
14726 reduc_stmt is a phi.
14727 (gather_scalar_reductions): Allow double_reduc reductions.
14729 2015-07-28 Richard Biener <rguenther@suse.de>
14731 * fold-const.c (fold_comparison): Remove equality folding
14732 of decl addresses ...
14733 * match.pd: ... here and merge with existing pattern.
14735 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14737 PR tree-optimization/66828
14738 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14739 from int64_t to uint64_t.
14741 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
14743 * opts-common.c (read_cmdline_option): List DriverOnly enum values
14744 as valid only in the error message of the driver, not in the
14745 messages of the language compilers.
14747 2015-07-27 Tom de Vries <tom@codesourcery.com>
14749 * tree-parloops.c (gather_scalar_reductions): Simplify function
14752 2015-07-27 Marek Polacek <polacek@redhat.com>
14754 * ipa-devirt.c (types_same_for_odr): Fix typo.
14756 2015-07-27 Jason Merrill <jason@redhat.com>
14759 * dwarf2out.c (gen_inlined_subroutine_die): Check
14760 cgraph_function_possibly_inlined_p.
14762 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14764 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14765 Place integer variant first.
14766 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14768 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14771 * config/arm/arm-builtins.c (enum arm_builtins):
14772 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14773 (ARM_BUILTIN_NEON_BASE): Rename macro to....
14774 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14775 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14776 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14778 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14781 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14782 Add qualifier_lane_index.
14783 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14784 (arm_getlane_qualifiers): Use qualifier_lane_index.
14785 (arm_lanemac_qualifiers): Rename to...
14786 (arm_mac_n_qualifiers): ...this.
14787 (LANEMAC_QUALIFIERS): Rename to...
14788 (MAC_N_QUALIFIERS): ...this.
14789 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14790 (arm_setlane_qualifiers): Use qualifier_lane_index.
14791 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14792 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14793 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14794 (arm_expand_neon_builtin): Handle qualifier_lane_index.
14796 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14797 * config/arm/arm.c (bounds_check): Likewise, improve error message.
14798 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14799 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14800 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14801 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14802 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14803 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14804 qualifiers to TERNOP_IMM.
14805 (vdup_lane): Change qualifiers to GETLANE.
14806 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14807 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14808 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14809 vqdmlsl_n): Change qualifiers to MAC_N.
14811 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14812 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14813 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14814 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14815 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14816 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14817 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14818 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14819 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14820 Remove call to neon_lane_bounds.
14822 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14824 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14825 Place integer variant first.
14827 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
14829 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14830 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14831 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14832 for armv6kz targets.
14833 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14834 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14835 (FL_FOR_ARCH6ZK): Remove.
14836 (FL_FOR_ARCH6KZ): New.
14837 (arm_arch6zk): New declaration.
14838 * config/arm/arm-tables.opt: Regenerate.
14839 * config/arm/arm.c (arm_arch6kz): New.
14840 (arm_option_override): Set arm_arch6kz.
14841 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14842 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14843 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14845 2015-07-27 Marek Polacek <polacek@redhat.com>
14849 * doc/invoke.texi: Document -Wtautological-compare.
14851 2015-07-27 Richard Biener <rguenther@suse.de>
14853 * genmatch.c (decision_tree::gen_gimple): Split out large
14854 subtrees into separate functions.
14855 (decision_tree::gen_generic): Likewise.
14857 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
14859 * config/alpha/alpha.c: Use SUBREG_P predicate.
14860 * config/alpha/predicates.md: Ditto.
14862 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14864 * config.host (s390*-*-*): Include driver-native.c only when
14865 building with s390* as host *and* target.
14867 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14870 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14871 T bit register modified_between_p check.
14873 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14875 * config/i386/i386.c: Use SUBREG_P predicate.
14876 * config/i386/i386.md: Ditto.
14877 * config/i386/sse.md: Ditto.
14878 * config/i386/predicates.md: Ditto.
14880 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14883 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14884 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14886 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14888 * Makefile.in: Remove use of TREEBROWSER.
14889 * config.in: Regenerated.
14890 * configure: Regenerated.
14891 * configure.ac: Remove definition of TREEBROWSER.
14892 * tree-browser.c: Removed.
14893 * tree-browser.def: Removed.
14895 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14897 * graphite-scop-detection.c: Include gimple-pretty-print.h.
14898 (stmt_simple_for_scop_p): Print when a stmt is not handled in
14900 (scopdet_basic_block_info): Print when a loop or bb cannot be
14901 represented in Graphite.
14903 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14906 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14907 execution guard when min_size is less than size_needed.
14909 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14911 * doc/install.texi: Document supported versions of ISL.
14913 2015-07-25 Jeff Law <law@redhat.com>
14917 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14918 unable to find X NE 0 in the tables, return X as the simplified
14920 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14921 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14922 to VISISTED_BBS. */
14923 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14924 after removing the control flow statement and unnecessary edges.
14926 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
14929 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14931 PR rtl-optimization/64164
14932 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14933 * tree-ssa-copyrename.c: Removed.
14934 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14935 -ftree-coalesce-vars.
14936 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14937 * common.opt (ftree-copyrename): Ignore.
14938 (ftree-coalesce-inlined-vars): Likewise.
14939 * doc/invoke.texi: Remove the ignored options above.
14940 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14941 * tree-ssa-coalesce.h: ... here.
14942 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14943 headers required by it.
14944 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14945 across variables when flag_tree_coalesce_vars. Check register
14946 use and promoted modes to allow coalescing. Moved to
14947 tree-ssa-coalesce.c.
14948 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14949 with its member functions to tree-ssa-coalesce.c.
14950 (var_map_base_init): Likewise. Renamed to
14951 compute_samebase_partition_bases.
14952 (partition_view_normal): Drop want_bases parameter.
14953 (partition_view_bitmap): Likewise.
14954 * tree-ssa-live.h: Adjust declarations.
14955 * tree-ssa-coalesce.c: Include explow.h.
14956 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14957 default defs at the entry point.
14958 (dump_part_var_map): New.
14959 (compute_optimized_partition_bases): New, called by...
14960 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14961 of compute_samebase_partition_bases. Adjust.
14962 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14963 * cfgexpand.c (leader_merge): New.
14964 (get_rtl_for_parm_ssa_default_def): New.
14965 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14966 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14967 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14968 redundant MEM attr setting.
14969 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14971 (expand_one_stack_var): ... this. New wrapper to check and
14972 skip already expanded SSA partitions.
14973 (record_alignment_for_reg_var): New, factored out of...
14974 (expand_one_var): ... this.
14975 (expand_one_ssa_partition): New.
14976 (adjust_one_expanded_partition_var): New.
14977 (expand_one_register_var): Check and skip already expanded SSA
14979 (expand_used_vars): Don't create DECLs for anonymous SSA
14980 names. Expand all SSA partitions, then adjust all SSA names.
14981 (pass::execute): Replace the loops that set
14982 SA.partition_to_pseudo from partition leaders and cleared
14983 DECL_RTL for multi-location variables, and that which used to
14984 rename vars and set attrs, with one that clears DECL_RTL and
14985 checks that PARMs and RESULTs default_defs match DECL_RTL.
14986 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14987 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14988 * explow.c (promote_ssa_mode): New.
14989 * explow.h (promote_ssa_mode): Declare.
14990 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14991 * function.c: Include cfgexpand.h.
14992 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14993 (use_register_for_parm_decl): Wrapper for the above to
14994 special-case the result_ptr.
14995 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14996 (split_complex_args): Take assign_parm_data_all argument.
14997 Pass it to rtl_for_parm. Set up rtl and context for split
14999 (assign_parms_augmented_arg_list): Adjust.
15000 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15001 multiple locations. Recognize split complex args.
15002 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15003 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15004 (assign_parm_setup_block): Prefer SSA-assigned location.
15005 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15006 if stack_parm is NULL.
15007 (assign_parm_setup_stack): Prefer SSA-assigned location.
15008 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15009 rtl before testing for pointer bounds. Special-case result_ptr.
15010 (expand_function_start): Maybe reset DECL_RTL of result.
15011 Prefer SSA-assigned location for result and static chain.
15012 Factor out DECL_RESULT and SET_DECL_RTL.
15013 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15014 anonymous SSA names. Use promote_ssa_mode.
15015 (get_temp_reg): Likewise.
15016 (remove_ssa_form): Adjust.
15017 * stor-layout.c (layout_decl): Don't set mem attributes of
15019 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15020 and get its reg_usage for reg invalidation.
15021 (compute_bb_dataflow): Pass it insn.
15022 (emit_notes_in_bb): Likewise.
15024 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15026 * config/i386/i386.c (ix86_va_start): Remove
15027 unneeded !TARGET_64BIT check.
15028 (ix86_gimplify_va_arg): Ditto.
15030 2015-07-24 Tom de Vries <tom@codesourcery.com>
15032 * graphite-sese-to-poly.c (build_poly_scop): Always call
15033 rewrite_commutative_reductions_out_of_ssa.
15035 2015-07-24 Tom de Vries <tom@codesourcery.com>
15037 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15038 flag_associative_math to FLOAT_TYPE_P. Honour
15039 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15041 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15044 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15045 and "%qD" in warning_at instead of "%q+D" in warning.
15047 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15049 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15050 (ix86_function_abi): Cleanup.
15052 2015-07-24 Michael Darling <darlingm@gmail.com>
15055 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15056 * configure: Likewise
15057 * configure.ac: Likewise
15058 * doc/install.texi: Likewise
15059 * doc/tm.texi: Likewise
15060 * doc/tm.texi.in: Likewise
15062 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15064 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15065 manually swapping values.
15066 * cse.c (fold_rtx): Likewise.
15067 * lra-eliminations.c (form_sum): Likewise.
15069 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15072 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15073 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15074 (*jcc_1, *jcc_2, jump, simple_return_internal)
15075 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15076 Set length_nobnd attribute instead of length attribute.
15077 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15078 (length_nobnd): Remove attribute.
15079 (length): Remove length_nobnd processing.
15081 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15083 * gimplify.c (omp_default_clause): New function. Reorganize flow
15084 for clarity. Broken out of ...
15085 (omp_notice_variable): ... here.
15087 2015-07-24 Gary Funck <gary@intrepid.com>
15089 PR middle-end/66984
15090 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15091 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15093 2015-07-24 Tom de Vries <tom@codesourcery.com>
15095 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15096 exit-first loop transform.
15098 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15101 * tree-cfg.c (struct replace_decls_d): New struct.
15102 (replace_block_vars_by_duplicates_1): New function.
15103 (replace_block_vars_by_duplicates): Use it to replace the decls
15104 in the value exprs by duplicates.
15106 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15108 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15109 -shared, -symbolic, -rdynamic.
15111 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15114 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15115 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15118 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15121 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15122 edge summary is available.
15124 2015-07-24 Richard Biener <rguenther@suse.de>
15126 * genmatch.c (struct dt_node): Add statistic fields.
15127 (dt_node::analyze): New method.
15128 (decision_tree::gen_gimple): Call analyze on the root node
15129 and print statistics to stderr.
15130 (decision_tree::gen_generic): Likewise.
15132 2015-07-24 Richard Biener <rguenther@suse.de>
15134 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15135 against the highest or lowest possible integer ...
15136 * match.pd: ... as patterns here.
15138 2015-07-24 Richard Biener <rguenther@suse.de>
15140 * genmatch.c (struct capture_info): Add same_as field.
15141 (capture_info::capture_info): Initialize same_as.
15142 (capture_info::walk_match): Compute same_as.
15143 (capture_info::walk_result): Compute stuff for the leader.
15144 (capture_info::walk_c_expr): Likewise.
15145 (dt_simplify::gen_1): Only look at leaders when deciding
15146 to force no side-effects or emit side-effects of omitted operands.
15148 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15150 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15151 reg note to the GPR -> FPR save instructions.
15153 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15155 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15157 (s390_expand_insv): Don't generate risbg pattern for constant zero
15159 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15160 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15163 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15165 * config/s390/s390.c (s390_reorg): Clean up handling of processors
15168 (s390_issue_rate): Likewise.
15169 (s390_sched_reorder): Likewise.
15170 (s390_sched_variable_issue): Likewise.
15171 (s390_loop_unroll_adjust): Likewise.
15172 (s390_option_override): Likewise.
15174 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15176 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15177 processor capabilities with -march=native.
15178 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15179 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
15180 (S390_TARGET_BITS_STRING): Macro to simplify specs.
15182 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15184 * config/s390/s390.c (s390_issue_rate): Handle
15185 PROCESSOR_2094_Z9_EC.
15186 (s390_option_override): Likewise.
15187 (s390_adjust_priority): Likewise.
15189 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15191 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15192 when cross compiling.
15194 2015-07-24 Richard Biener <rguenther@suse.de>
15196 * fold-const.c (maybe_canonicalize_comparison_1): Move
15197 A code CST canonicalization ...
15198 * match.pd: ... to a pattern here.
15200 2015-07-24 Jiong Wang <jiong.wang@arm.com>
15203 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15205 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15206 (HONOR_REG_ALLOC_ORDER): Define.
15208 2015-07-24 Richard Biener <rguenther@suse.de>
15210 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15211 * fold-const.c (fold_comparison): Move parameter does not
15212 alias &local simplification ...
15213 * match.pd: ... as a pattern here.
15215 2015-07-24 Richard Biener <rguenther@suse.de>
15217 * gimple-fold.c (replace_stmt_with_simplification): Special-case
15218 valueizing call operands.
15219 * gimple-match-head.c (maybe_push_res_to_seq): Take
15220 number of call arguments from ops array.
15221 (do_valueize): New function.
15222 (gimple_simplify): Return true if valueization changed
15223 any operand even if the result didn't simplify further.
15225 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15227 PR middle-end/25530
15228 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15230 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15232 PR middle-end/25529
15233 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15235 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15237 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15240 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15242 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15245 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
15247 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15248 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
15250 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15251 ms_va_list_type_node initialization.
15253 2015-07-23 Jeff Law <law@redhat.com>
15256 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15257 unable to find X NE 0 in the tables, return X as the simplified
15259 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15260 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15261 to VISISTED_BBS. */
15262 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15263 after removing the control flow statement and unnecessary edges.
15265 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15267 * tree-pass.h (get_current_pass_name): Removed.
15269 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15271 PR rtl-optimization/64164
15272 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15273 * tree-ssa-copyrename.c: Removed.
15274 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15275 -ftree-coalesce-vars.
15276 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15277 * common.opt (ftree-copyrename): Ignore.
15278 (ftree-coalesce-inlined-vars): Likewise.
15279 * doc/invoke.texi: Remove the ignored options above.
15280 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15281 * tree-ssa-coalesce.h: ... here.
15282 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15283 headers required by it.
15284 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15285 across variables when flag_tree_coalesce_vars. Check register
15286 use and promoted modes to allow coalescing. Moved to
15287 tree-ssa-coalesce.c.
15288 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15289 with its member functions to tree-ssa-coalesce.c.
15290 (var_map_base_init): Likewise. Renamed to
15291 compute_samebase_partition_bases.
15292 (partition_view_normal): Drop want_bases parameter.
15293 (partition_view_bitmap): Likewise.
15294 * tree-ssa-live.h: Adjust declarations.
15295 * tree-ssa-coalesce.c: Include explow.h.
15296 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15297 default defs at the entry point.
15298 (dump_part_var_map): New.
15299 (compute_optimized_partition_bases): New, called by...
15300 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15301 of compute_samebase_partition_bases. Adjust.
15302 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15303 * cfgexpand.c (leader_merge): New.
15304 (get_rtl_for_parm_ssa_default_def): New.
15305 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15306 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15307 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15308 redundant MEM attr setting.
15309 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15311 (expand_one_stack_var): ... this. New wrapper to check and
15312 skip already expanded SSA partitions.
15313 (record_alignment_for_reg_var): New, factored out of...
15314 (expand_one_var): ... this.
15315 (expand_one_ssa_partition): New.
15316 (adjust_one_expanded_partition_var): New.
15317 (expand_one_register_var): Check and skip already expanded SSA
15319 (expand_used_vars): Don't create DECLs for anonymous SSA
15320 names. Expand all SSA partitions, then adjust all SSA names.
15321 (pass::execute): Replace the loops that set
15322 SA.partition_to_pseudo from partition leaders and cleared
15323 DECL_RTL for multi-location variables, and that which used to
15324 rename vars and set attrs, with one that clears DECL_RTL and
15325 checks that PARMs and RESULTs default_defs match DECL_RTL.
15326 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15327 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15328 * explow.c (promote_ssa_mode): New.
15329 * explow.h (promote_ssa_mode): Declare.
15330 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15331 * function.c: Include cfgexpand.h.
15332 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15333 (use_register_for_parm_decl): Wrapper for the above to
15334 special-case the result_ptr.
15335 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15336 (split_complex_args): Take assign_parm_data_all argument.
15337 Pass it to rtl_for_parm. Set up rtl and context for split
15339 (assign_parms_augmented_arg_list): Adjust.
15340 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15341 multiple locations. Recognize split complex args.
15342 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15343 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15344 (assign_parm_setup_block): Prefer SSA-assigned location.
15345 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15346 if stack_parm is NULL.
15347 (assign_parm_setup_stack): Prefer SSA-assigned location.
15348 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15349 rtl before testing for pointer bounds. Special-case result_ptr.
15350 (expand_function_start): Maybe reset DECL_RTL of result.
15351 Prefer SSA-assigned location for result and static chain.
15352 Factor out DECL_RESULT and SET_DECL_RTL.
15353 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15354 anonymous SSA names. Use promote_ssa_mode.
15355 (get_temp_reg): Likewise.
15356 (remove_ssa_form): Adjust.
15357 * stor-layout.c (layout_decl): Don't set mem attributes of
15359 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15360 and get its reg_usage for reg invalidation.
15361 (compute_bb_dataflow): Pass it insn.
15362 (emit_notes_in_bb): Likewise.
15364 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15367 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15369 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15370 (rs6000_emit_2insn_and): Handle dot forms.
15371 * config/rs6000/rs6000.md (and<mode>3): Adjust.
15372 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
15373 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15375 2015-07-23 Richard Biener <rguenther@suse.de>
15377 * generic-match-head.c: Include cgraph.h.
15378 * gimple-match-head.c: Likewise.
15379 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15381 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15382 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
15385 2015-07-23 Richard Biener <rguenther@suse.de>
15387 * gimple-fold.c (fold_gimple_cond): Do not require folding
15388 results to pass valid_gimple_rhs_p.
15389 * tree-cfg.h (fold_cond_expr_cond): Remove.
15390 * tree-cfg.c (fold_cond_expr_cond): Likewise.
15391 (make_edges): Do not call it.
15392 * tree-inline.c (tree_function_versioning): Likewise.
15394 2015-07-23 Tom de Vries <tom@codesourcery.com>
15396 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15397 vect_force_simple_reduction.
15398 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15399 (vect_is_simple_reduction_1): Add and handle
15400 need_wrapping_integral_overflow parameter.
15401 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15402 need_wrapping_integral_overflow parameter.
15403 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15404 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15407 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
15409 PR tree-optimization/66926,66951
15410 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15411 INNER_LOOP and fix up condition for renaming virtual operands.
15413 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15415 * combine.c (try_combine): Use std::swap instead of manually
15418 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
15420 * config/mips/i6400.md: New file.
15421 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15422 (mips64r6): Likewise.
15424 * config/mips/mips-tables.opt: Regenerate.
15425 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15426 (mips_issue_rate): Add support for i6400.
15427 (mips_multipass_dfa_lookahead): Likewise.
15428 * config/mips/mips.h (TUNE_I6400): Define.
15429 * config/mips/mips.md: Include i6400.md.
15430 (processor): Add i6400.
15431 * doc/invoke.texi (-march=@var{arch}): Add i6400.
15433 2015-07-23 Richard Biener <rguenther@suse.de>
15435 PR middle-end/66916
15436 * match.pd: Guard widen and sign-change comparison simplification
15439 2015-07-23 Richard Biener <rguenther@suse.de>
15441 PR tree-optimization/66945
15442 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15443 ::before_dom_children): Force the propagators idea of
15444 non-executable edges to materialize, not what the folder
15447 2015-07-23 Richard Biener <rguenther@suse.de>
15449 * gimple.h (gimple_cond_make_false): Use 0 != 0.
15450 (gimple_cond_make_true): Use 1 != 0.
15452 2015-07-22 DJ Delorie <dj@redhat.com>
15454 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15457 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15458 (ashrhi3): Likewise.
15459 (lshrhi3): Likewise.
15460 (movhi): Take advantage of zero-extend to load small constants.
15461 (movpsi): Likewise.
15462 (and<mode>3): Likewise.
15463 (zero_extendqihi2): Likewise.
15464 (zero_extendqisi2): New.
15465 * config/msp430/constraints.md (N,O): New.
15466 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15468 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
15471 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15472 to enum feature_priority and feature_list.
15473 (fold_builtin_cpu): Add F_AES to enum processor_features
15474 and isa_names_table.
15476 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15479 * config/i386/linux-common.h (MPX_SPEC): Use linker option
15480 for 64bit target only.
15482 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
15484 * config/nvptx/nvptx.c: Expand some comments.
15486 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
15488 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15489 (cortex_a53_advsimd): ...This.
15491 2015-07-22 Richard Biener <rguenther@suse.de>
15493 * genmatch.c (expr::gen_transform): Clarify error message
15494 and display location.
15496 2015-07-22 Richard Biener <rguenther@suse.de>
15498 * genmatch.c (struct operand): Add location member.
15499 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15501 (struct simplify): Remove match_location and result_location
15503 (elsehwere): Adjust.
15505 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
15507 * config/mips/m5100.md: New file.
15508 * config/mips/mips-cpus.def (m5100, m5101): Define.
15509 * config/mips/mips-tables.opt: Regenerate.
15510 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15511 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15512 -march=m5101 to -mips32r5.
15513 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15514 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15516 * config/mips/mips.md: Include m5100.md.
15517 (processor): Add m5100.
15518 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15520 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
15522 * config/mips/mips-cpus.def (interaptiv): Define.
15523 * config/mips/mips-tables.opt: Regenerate.
15524 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15526 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15527 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15529 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15532 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15533 (HONOR_REG_ALLOC_ORDER): Define.
15535 2015-07-22 Richard Biener <rguenther@suse.de>
15537 PR tree-optimization/66952
15538 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15539 blocks we end up executing unconditionally reset all SSA
15540 info such as range and alignment.
15541 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15542 * tree-ssanames.c (reset_flow_sensitive_info): New function.
15544 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15546 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15549 2015-07-22 Richard Biener <rguenther@suse.de>
15551 * genmatch.c (parser::parse_result): Properly handle
15552 match with result operands and conditions.
15554 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15557 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15558 Add qualifier_struct_load_store_lane_index.
15559 (aarch64_types_loadstruct_lane_qualifiers): Use
15560 qualifier_struct_load_store_lane_index for lane index argument for
15562 (aarch64_types_storestruct_lane_qualifiers): Ditto.
15563 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15564 (aarch64_simd_expand_args): Add new argument describing mode of
15565 builtin. Check lane bounds for arguments with
15566 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15567 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15568 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15569 (aarch64_simd_expand_builtin): Handle arguments with
15570 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15571 aarch64_simd_expand_args.
15572 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15573 vst[234]_lane with BUILTIN_VALLDIF.
15574 * config/aarch64/aarch64-simd.md:
15575 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15576 endianness reversal on lane index.
15577 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15578 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15579 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15580 (vec_store_lanesci_lane<mode>): Ditto.
15581 (vec_store_lanesxi_lane<mode>): Ditto.
15582 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15583 reversal of lane index.
15584 (aarch64_ld3_lane<mode>): Ditto.
15585 (aarch64_ld4_lane<mode>): Ditto.
15586 (aarch64_st2_lane<mode>): Ditto.
15587 (aarch64_st3_lane<mode>): Ditto.
15588 (aarch64_st4_lane<mode>): Ditto.
15589 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15590 to qmode. Add new mode parameter. Update uses.
15591 (__LD3_LANE_FUNC): Ditto.
15592 (__LD4_LANE_FUNC): Ditto.
15593 (__ST2_LANE_FUNC): Ditto.
15594 (__ST3_LANE_FUNC): Ditto.
15595 (__ST4_LANE_FUNC): Ditto.
15597 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
15599 * doc/invoke.texi (Language Independent Options): Rename node to
15600 Diagnostic Message Formatting Options.
15602 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
15605 * lra-remat.c (operand_to_remat): Prevent using insns with input
15606 subregs processed separately by IRA.
15608 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
15610 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15612 (single_imm_use): Check for iterator node.
15613 (num_imm_uses): Likewise.
15614 * tree-ssa-operands.c (has_zero_uses_1): Delete.
15615 (single_imm_use_1): Check for iterator node.
15617 2015-07-21 Mike Frysinger <vapier@gentoo.org>
15618 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15620 * configure.ac: Add check for new options in isl-0.15.
15621 * config.in, configure: Rebuilt.
15622 * graphite-blocking.c: Include <isl/constraint.h>
15623 * graphite-interchange.c, graphite-poly.c: Likewise.
15624 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15625 * graphite.c: Likewise.
15626 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15628 * graphite-dependences.c: Include <isl/constraint.h>.
15629 (max_number_of_out_dimensions): Returns isl_stat.
15630 (extend_schedule_1): Likewise
15631 (extend_schedule): Corresponding changes.
15632 * graphite-optimize-isl.c: Include <isl/constraint.h> and
15634 (getSingleMap): Change return type of isl_stat.
15635 (optimize_isl): Conditionally use
15636 isl_options_set_schedule_serialize_sccs.
15637 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15638 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15640 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
15643 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15644 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15646 2015-07-21 Richard Biener <rguenther@suse.de>
15648 PR tree-optimization/66948
15649 * genmatch.c (capture_info::walk_match): Also recurse to
15650 captures. Properly compute expr state from captures of
15652 * match.pd: Add single-use guards to
15653 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15655 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15657 * config/nvptx/mkoffload.c (process): Add static destructor call.
15659 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15661 PR middle-end/66915
15662 * match.pd (A - B -> A + (-B)): Don't allow folding
15663 when type if a fixed-point type.
15665 2015-07-20 DJ Delorie <dj@redhat.com>
15667 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15668 (iorqi3_real): Likewise for set1.
15670 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
15672 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15675 2015-07-20 Aditya Kumar <hiraditya@msn.com>
15677 * graphite-isl-ast-to-gimple.c:
15678 Refactor so that each function can access 'region'. This will help
15679 maintain a parameter rename_map within a region.
15681 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15683 * config/rs6000/rs6000.md (*lt0_disi): New.
15685 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15688 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
15689 "available letters" comment.
15690 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15691 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15692 and_2rld_operand): Delete.
15693 (and_operand): Adjust.
15694 (rotate_mask_operator): New.
15695 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15696 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15697 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15698 extract_ME): Delete.
15699 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15700 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15701 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15702 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15703 rs6000_emit_2insn_and): New.
15704 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15705 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15706 includes_rldic_lshift_p, includes_rldicr_lshift_p,
15707 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15708 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15709 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15710 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15711 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15712 rs6000_emit_2insn_and): New.
15713 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15714 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15716 <NOT>: Don't fall through to next case.
15717 <AND>: Handle the various rotate-and-mask cases directly.
15718 <IOR>: Always cost as one insn.
15719 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15720 (and<mode>3): Adjust expander for the new patterns.
15721 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15722 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15723 (*and<mode>3_imm_dot_shifted): New.
15724 (*and<mode>3_mask): Delete, rewrite as ...
15725 (and<mode>3_mask): ... New.
15726 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15727 (andsi3_internal0_nomc): Delete.
15728 (*andsi3_internal6): Delete.
15729 (*and<mode>3_2insn): New.
15730 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15731 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15732 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15733 *insvdi_internal3): Delete.
15734 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15735 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15736 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15737 *ior<mode>_mask): New.
15738 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15739 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15740 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15741 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15743 (ashr<mode>3): Delete expander.
15744 (*ashr<mode>3): Rename to ...
15745 (ashr<mode>3): ... This.
15746 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15747 (*rotldi3_internal4, *rotldi3_internal5 and split,
15748 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15749 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15750 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15751 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15752 (splitter for loading a mask): Adjust.
15753 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15755 2015-07-20 Marek Polacek <polacek@redhat.com>
15757 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15758 output_add_clobbers, output_added_clobbers_hard_reg_p,
15759 gen_rtx_scratch): Remove declarations.
15761 2015-07-20 Marek Polacek <polacek@redhat.com>
15764 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15766 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15768 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15769 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15771 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15773 * combine.c (combine_simplify_rtx): Move simplification step
15774 before various transformations/substitutions.
15776 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
15778 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15779 (struct int_traits): Likewise.
15781 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15783 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15784 function to vmsdbgout_function_decl.
15786 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15789 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15790 from misaligned positions.
15791 (ix86_expand_pinsr): Reject insertions to misaligned positions.
15793 2015-07-18 Sebastian Pop <s.pop@samsung.com>
15795 PR middle-end/46851
15796 PR middle-end/60340
15797 * Makefile.in: Removed omega.o.
15798 * common.opt: Document flag fcheck-data-deps as deprecated.
15799 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15800 its associated params: omega-max-vars, omega-max-geqs,
15801 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15802 omega-max-keys, omega-eliminate-redundant-constraints.
15803 * doc/loop.texi: Remove all the section on Omega.
15804 * graphite-blocking.c: Include missing params.h: it used to be
15805 included through tree-data-ref.h and omega.h.
15806 * graphite-isl-ast-to-gimple.c: Same.
15807 * graphite-optimize-isl.c: Same.
15808 * graphite-sese-to-poly.c: Same.
15809 * graphite.c: Same.
15812 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15813 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15814 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15815 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15816 * passes.def: Remove pass_check_data_deps.
15817 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15818 (dump_conflict_function): Same.
15819 (dump_subscript): Same.
15820 (print_direction_vector): Same.
15821 (print_dir_vectors): Same.
15822 (print_lambda_vector): Same.
15823 (print_dist_vectors): Same.
15824 (dump_data_dependence_relation): Same.
15825 (dump_data_dependence_relations): Same.
15826 (dump_dist_dir_vectors): Same.
15828 (init_omega_eq_with_af): Removed.
15829 (omega_extract_distance_vectors): Removed.
15830 (omega_setup_subscript): Removed.
15831 (init_omega_for_ddr_1): Removed.
15832 (init_omega_for_ddr): Removed.
15833 (ddr_consistent_p): Removed.
15834 (compute_affine_dependence): Do not use omega to check data
15836 (compute_data_dependences_for_bb): Removed.
15837 (analyze_all_data_dependences): Removed.
15838 (tree_check_data_deps): Removed.
15839 * tree-data-ref.h: Do not include omega.h.
15840 (compute_data_dependences_for_bb): Removed.
15841 (tree_check_data_deps): Removed.
15842 * tree-ssa-loop.c (pass_check_data_deps): Removed.
15843 (make_pass_check_data_deps): Removed.
15844 * tree-ssa-phiopt.c: Include params.h.
15845 * tree-vect-data-refs.c: Same.
15846 * tree-vect-slp.c: Same.
15848 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15850 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15851 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
15852 (mem->fpreg splitters): Ditto.
15853 (general_operand->nonimmediate_operand splitter): Use explicit modes.
15854 Disable DFmode for TARGET_64BIT.
15856 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
15859 * config/i386/i386.c (ix86_expand_prologue): Replicate static
15860 chain on the stack.
15862 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15864 * config/nvptx/mkoffload.c (process): Constify host data.
15865 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15866 Constify host data.
15867 (generate_host_descr_file): Likewise.
15869 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
15870 Sebastian Pop <s.pop@samsung.com>
15872 PR middle-end/61929
15873 * graphite-dependences.c (add_pdr_constraints): Renamed
15874 pdr->extent to pdr->subscript_sizes.
15875 * graphite-interchange.c (build_linearized_memory_access): Add
15876 back all gcc_assert's that the "isl_int to isl_val conversion"
15877 patch has removed. Refactored.
15878 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15879 * graphite-poly.c (new_poly_dr): Same.
15880 (free_poly_dr): Same.
15881 * graphite-poly.h (struct poly_dr): Same.
15882 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15883 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15884 * graphite-scop-detection.h: Fix space.
15885 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15886 back all gcc_assert's removed by a previous patch.
15887 (wrap): Remove the_isl_ctx global variable that the same patch has
15889 (build_loop_iteration_domains): Same.
15890 (add_param_constraints): Same.
15891 (pdr_add_data_dimensions): Same. Refactored.
15892 (build_poly_dr): Renamed extent to subscript_sizes.
15894 2015-07-17 Marek Polacek <polacek@redhat.com>
15896 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15897 * match.pd: ... here.
15899 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15901 * config/nvptx/mkoffload.c (process): Constify target data.
15902 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15903 Constify target data.
15904 (generate_target_offloadend_file): Likewise.
15906 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15908 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15909 to allow renaming of PHI arguments on edges incoming from outer
15910 loop header, add corresponding check before start PHI iterator.
15911 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15912 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15913 with true force_vectorize. Set-up dominator for outer loop too.
15914 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15915 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15916 was marked with force_vectorize and has restricted cfg.
15917 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15919 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15920 do peeling for outer loops.
15922 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
15923 Matthias Klose <doko@ubuntu.com>
15925 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15926 build-sysroot, sysroot from the `Miscenalleous configure options' to
15927 the `Directories' section and strip trailing `/' from with_sysroot.
15928 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15929 * configure: Regenerated.
15931 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15934 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15935 (TARGET_HARD_DF_REGS): Ditto.
15936 (TARGET_HARD_XF_REGS): Ditto.
15937 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15938 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15939 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15940 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15941 (*movsf_internal): Add alternatives 16 and 17. Enable
15942 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15944 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15946 PR rtl-optimization/66891
15947 * calls.c (expand_call): Wrap precompute_register_parameters with
15948 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15950 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15952 * config/nvptx/mkoffload.c (process): Constify mapping variables.
15953 Define target data struct and initialize it.
15955 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
15957 PR rtl-optimization/66626
15958 * ira.h (emit-rtl.h): Include.
15959 (non_spilled_static_chain_regno_p): New.
15960 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15961 unless it is non spilled static chain pseudo.
15962 (assign_hard_rego): Spill memory profitable allocno unless it is
15963 non spilled static chain pseudo.
15964 (allocno_spill_priority_compare): Put non spilled static chain
15965 pseudo at the end of sorted array.
15966 (improve_allocation): Do nothing if we have static chain and
15968 (allocno__priority_compare_func): Put non spilled static chain
15969 pseudo at the beginning of sorted array.
15970 (move_spill_restore): Ignore non spilled static chain pseudo.
15971 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15972 to non spilled static chain pseudo.
15973 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15974 pseudo at the beginning of sorted array.
15975 (spill_for): Spill non spilled static chain pseudo last.
15976 * lra-constraints.c (lra_constraints): Remove static chain pseudo
15977 check for equivalence.
15979 2015-07-16 Martin Liska <mliska@suse.cz>
15982 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15983 dst_ctx if it does not exist.
15985 2015-07-16 Martin Liska <mliska@suse.cz>
15987 * hash-set.h (remove): New function.
15988 (iterator): New iteration class for hash_set.
15990 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15992 * genattrtab.c (make_canonical): Add a file_location parameter.
15993 Use fatal_at rather than fatal.
15994 (get_attr_value): Likewise. Update call to make_canonical.
15995 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15996 (make_internal_attr): Update calls accordingly.
15998 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16000 * read-md.h (message_with_line, error_with_line): Delete.
16001 * read-md.c (message_with_line, error_with_line): Delete.
16002 * gensupport.h: Include read-md.h.
16003 (md_rtx_info): New structure.
16004 (read_md_rtx): Use it. Return a bool success value.
16005 * gensupport.c (read_md_rtx): Likewise.
16006 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16007 (main): Update after interface changes.
16008 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16009 (main): Update after interface changes.
16010 * genattrtab.c (insn_code_number): Delete.
16011 (optimize_attrs): Add a max_insn_code parameter and use it instead
16012 of insn_code_number.
16013 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16014 Use *_at rather than *_with_line functions.
16015 (gen_insn): Likewise.
16016 (gen_delay): Likewise.
16017 (gen_insn_reserv): Likewise.
16018 (gen_bypass): Take an md_rtx_info rather than an rtx.
16019 (main): Update after interface changes. Use a local max_insn_code
16020 variable instead of insn_code_number.
16021 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16022 an rtx. Use fatal_at rather than fatal.
16023 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16024 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16025 (gen_absence_set, gen_final_absence_set, gen_automaton)
16026 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16027 (main): Update after interface changes.
16028 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16030 (main): Update after interface changes.
16031 * genconditions.c (main): Use new read_md_rtx interface.
16032 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16033 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16034 (main): Update after interface changes.
16035 * genemit.c (insn_code_number, insn_index_number): Delete.
16036 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16037 Use fatal_at rather than fatal.
16038 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16040 (gen_split): Likewise.
16041 (main): Update after interface changes.
16042 * genextract.c (line_no): Delete.
16043 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16044 Update call to walk_rtx.
16045 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16046 rather than message_with_line.
16047 (walk_rtx): Add an md_rtx_info argument. Update call to
16048 VEC_safe_set_locstr.
16049 (main): Update after interface changes.
16050 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16051 and lineno. Use error_at rather than separate message_with_line
16052 calls and have_error assignments.
16053 (main): Update after interface changes.
16054 * genmddump.c (main): Use new read_md_rtx interface.
16055 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16056 (main): Update after interface changes.
16057 * genoutput.c (next_code_number): Delete.
16058 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16059 (gen_peephole, gen_expand, gen_split): Likewise.
16060 (note_constraint): Likewise. Use *_at rather than *_with_line
16062 (main): Update after interface changes.
16063 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16065 (main): Update after interface changes.
16066 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16067 than an rtx and lineno.
16068 (process_define_constraint): Likewise.
16069 (process_define_register_constraint): Likewise.
16070 (main): Update after interface changes.
16071 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16072 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16073 Use *_at rather than *_with_line functions.
16074 (match_pattern_2): Likewise.
16075 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16076 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16077 Use *_at rather than *_with_line functions.
16078 * gentarget-def.c (add_insn): New function.
16079 (main): Use it. Use new read_md_rtx interface.
16081 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16083 * gensupport.h (compute_test_codes): Take a file_location rather
16084 than a line number.
16085 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16086 rather than *_with_line functions.
16087 (process_define_predicate): Update call to compute_test_codes.
16088 * genpreds.c (validate_exp): Take a file_location rather than a
16089 line number. Use *_at functions rather than *_with_line functions.
16090 (process_define_predicate): Update call to validate_exp.
16091 (constraint_data): Replace lineno field with a file_location.
16092 (add_constraint): Take a file_location rather than a line number.
16093 Use *_at functions rather than *_with_line functions. Fix error
16094 message for address constraints. Update after changes to
16095 validate_exp, constraint_data and compute_test_codes.
16096 (process_define_constraint): Update accordingly.
16097 (process_define_register_constraint): Likewise.
16099 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16101 * genoutput.c (data): Use a file_location to record the source
16104 (idata, idata_end): Remove initialization.
16105 (constraint_data): Replace lineno with a file_location.
16106 (output_insn_data): Update after changes to data.
16107 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16108 (scan_operands): Likewise, using *_at rather than *_with_line
16110 (process_template): Likewise.
16111 (validate_insn_alternatives): Likewise.
16112 (validate_insn_operands): Likewise.
16113 (validate_optab_operands): Likewise.
16114 (init_insn_for_nothing): Initialize idata and idata_end.
16115 (note_constraint): Update after changes to constraint_data,
16116 using at rather than with_line functions.
16117 (mdep_constraint_len): Take a file_location rather than a
16118 line number. Use at rather than with_line functions.
16120 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16122 * read-md.h (fatal_at): Declare.
16123 * read-md.c (fatal_at): New function.
16124 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16125 to record the source position.
16126 (check_attr_test): Take a file_location instead of a line number.
16127 Use fatal_at instead of fatal.
16128 (check_attr_value): Update after above changes, using "at"
16129 rather than "with_line" reporting functions.
16130 (convert_set_attr_alternative): Likewise.
16131 (gen_attr): Likewise.
16132 (check_defs): Likewise. Don't assign to read_md_filename.
16133 (gen_insn): Update initialization after above changes.
16134 (gen_delay): Likewise.
16135 (write_insn_cases): Print the filename for a define_peephole.
16136 (gen_insn_reserv): Take a line number as argument and update
16137 the call to check_attr_test.
16138 (main): Pass a line number to gen_insn_reserv.
16140 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16142 * read-md.h (file_location): New structure.
16143 (directive_handler_t): Take a file_location rather than a line number.
16144 (message_at, error_at): Declare.
16145 (read_skip_construct): Delete.
16146 * read-md.c (message_with_line_1): Replace with...
16147 (message_at_1): ...this new function.
16148 (message_at, error_at): New functions.
16149 (message_with_line, error_with_line): Update to use message_at_1.
16150 (handle_enum): Take a file_location rather than a line number
16151 and use error_at for error reporting.
16152 (handle_include): Likewise.
16153 (read_skip_construct): Likewise. Make static.
16154 (handle_file): Update after above changes. Pass a file_location
16155 rather than a line number to handle_directive.
16156 * gensupport.c (queue_elem): Replace separate filename and lineno
16157 with a file_location.
16158 (queue_pattern): Replace filename and lineno arguments with a
16159 file_location. Update after change to queue_elem.
16160 (process_define_predicate): Replace lineno argument with a
16161 file_location and use error_at for error reporting. Update
16162 after above changes.
16163 (process_rtx): Likewise.
16164 (subst_pattern_match): Likewise.
16165 (get_alternatives_number): Likewise.
16166 (alter_predicate_for_insn): Likewise.
16167 (rtx_handle_directive): Likewise.
16168 (is_predicable): Update after above changes, using error_at rather
16169 than error_with_line.
16170 (has_subst_attribute): Likewise.
16171 (identify_predicable_attribute): Likewise.
16172 (alter_attrs_for_subst_insn): Likewise.
16173 (process_one_cond_exec): Likewise.
16174 (process_substs_on_one_elem): Likewise.
16175 (process_define_subst): Likewise.
16176 (check_define_attr_duplicates): Likewise.
16177 (read_md_rtx): Update after change to queue_elem.
16179 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16181 * genoutput.c (next_index_number): Delete.
16182 (data): Remove index_number.
16183 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16184 (main): Remove manipulation of next_index_number.
16186 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16188 * genattrtab.c (check_attr_value): Remove handling of null attrs.
16189 (make_canonical): Likewise.
16191 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
16193 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16194 instead of adjust_address_nv.
16195 (restore_stack_nonlocal): Likewise.
16196 (nonlocal_goto): Likewise.
16198 2015-07-16 Tom de Vries <tom@codesourcery.com>
16200 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16201 not have a corresponding loop header phi.
16203 2015-07-16 Tom de Vries <tom@codesourcery.com>
16205 * tree-parloops.c (create_loads_for_reductions): Handle case that
16206 reduction is unused.
16208 2015-07-16 Richard Biener <rguenther@suse.de>
16210 PR tree-optimization/66894
16211 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16212 about deriving NE_EXPR from truncated values.
16214 2015-07-16 Martin Liska <mliska@suse.cz>
16217 (object_allocator): Add new class.
16218 (pool_allocator::initialize): Use the underlying class.
16219 (pool_allocator::allocate): Likewise.
16220 (pool_allocator::remove): Likewise.
16221 (operator new): A new generic allocator.
16222 * asan.c (struct asan_mem_ref): Remove unused members.
16223 (asan_mem_ref_new): Replace new operator with
16224 object_allocator::allocate.
16225 (free_mem_ref_resources): Change deallocation.
16226 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16227 with object_allocator.
16228 * config/sh/sh.c (add_constant): Replace new operator with
16229 object_allocator::allocate.
16230 (sh_reorg): Change call to a release method.
16231 * cselib.c (struct elt_list): Remove unused members.
16232 (new_elt_list): Replace new operator with
16233 object_allocator::allocate.
16234 (new_elt_loc_list): Likewise.
16235 (new_cselib_val): Likewise.
16236 (unchain_one_elt_list): Change delete operator with remove method.
16237 (unchain_one_elt_loc_list): Likewise.
16238 (unchain_one_value): Likewise.
16239 (cselib_finish): Release newly added static allocators.
16240 * cselib.h (struct cselib_val): Remove unused members.
16241 (struct elt_loc_list): Likewise.
16242 * df-problems.c (df_chain_alloc): Replace pool_allocator with
16244 * df-scan.c (struct df_scan_problem_data): Likewise.
16245 (df_scan_alloc): Likewise.
16246 * df.h (struct dataflow): Likewise.
16247 * dse.c (struct read_info_type): Likewise.
16248 (struct insn_info_type): Likewise.
16249 (struct dse_bb_info_type): Likewise.
16250 (struct group_info): Likewise.
16251 (struct deferred_change): Likewise.
16252 (get_group_info): Likewise.
16253 (delete_dead_store_insn): Likewise.
16254 (free_read_records): Likewise.
16255 (replace_read): Likewise.
16256 (check_mem_read_rtx): Likewise.
16257 (scan_insn): Likewise.
16258 (dse_step1): Likewise.
16259 (dse_step7): Likewise.
16260 * et-forest.c (struct et_occ): Remove unused members.
16261 (et_new_occ): Use allocate instead of new operator.
16262 (et_new_tree): Likewise.
16263 (et_free_tree): Call release method explicitly.
16264 (et_free_tree_force): Likewise.
16265 (et_free_pools): Likewise.
16266 (et_split): Use remove instead of delete operator.
16267 * et-forest.h (struct et_node): Remove unused members.
16268 * ipa-cp.c: Change pool_allocator to object_allocator.
16269 * ipa-inline-analysis.c: Likewise.
16270 * ipa-profile.c: Likewise.
16271 * ipa-prop.c: Likewise.
16272 * ipa-prop.h: Likewise.
16273 * ira-build.c (initiate_cost_vectors): Cast return value.
16274 (ira_allocate_cost_vector): Likewise.
16275 * ira-color.c (struct update_cost_record): Remove unused members.
16276 * lra-int.h (struct lra_live_range): Likewise.
16277 (struct lra_copy): Likewise.
16278 (struct lra_insn_reg): Likewise.
16279 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16280 * lra.c (new_insn_reg): Replace new operator with allocate method.
16281 (free_insn_regs): Same for operator delete.
16282 (finish_insn_regs): Release new static allocator.
16283 (finish_insn_recog_data): Likewise.
16284 (lra_free_copies): Replace delete operator with remove method.
16285 (lra_create_copy): Replace operator new with allocate method.
16286 (invalidate_insn_data_regno_info): Same for remove method.
16287 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16288 (free_debug_insn_changes): Replace delete operator with remove method.
16289 (replace_oldest_value_reg): Replace operator new with allocate method.
16290 (pass_cprop_hardreg::execute): Release new static variable.
16291 * sched-deps.c (sched_deps_init): Change pool_allocator to
16293 * sel-sched-ir.c: Likewise.
16294 * sel-sched-ir.h: Likewise.
16295 * stmt.c (expand_case): Likewise.
16296 (expand_sjlj_dispatch_table): Likewise.
16297 * tree-sra.c (struct access): Remove unused members.
16298 (struct assign_link): Likewise.
16299 (sra_deinitialize): Release newly added static pools.
16300 (create_access_1):Replace operator new with allocate method.
16301 (build_accesses_from_assign): Likewise.
16302 (create_artificial_child_access): Likewise.
16303 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16304 pool_allocator to object_allocator.
16305 * tree-ssa-pre.c: Likewise.
16306 * tree-ssa-reassoc.c: Likewise.
16307 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16308 * tree-ssa-strlen.c: Likewise.
16309 * tree-ssa-structalias.c: Likewise.
16310 * var-tracking.c (onepart_pool_allocate): New function.
16311 (unshare_variable): Use the newly added function.
16312 (variable_merge_over_cur): Likewise.
16313 (variable_from_dropped): Likewise.
16314 (variable_was_changed): Likewise.
16315 (set_slot_part): Likewise.
16316 (emit_notes_for_differences_1): Likewise.
16317 (vt_finalize): Release newly added static pools.
16319 2015-07-16 Martin Jambor <mjambor@suse.cz>
16321 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
16322 all uses. Fix two typos in its general comment.
16323 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
16325 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
16327 * config/i386/linux-common.h (LINK_MPX): New.
16328 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16329 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16330 indicating '-z bndplt' support by linker.
16331 * configure: Regenerate.
16332 * config.in: Regenerate.
16334 2015-07-16 Richard Biener <rguenther@suse.de>
16336 * fold-const.c (fold_widened_comparison): Remove.
16337 (fold_sign_changed_comparison): Likewise.
16338 (fold_comparison): Move widened and sign-changed comparison
16340 * match.pd: ... to patterns here.
16341 * generic-match-head.c: Include target.h.
16342 * gimple-match-head.c: Likewise.
16344 2015-07-16 Richard Biener <rguenther@suse.de>
16346 * tree-ssa-dom.c (dom_valueize): New function.
16347 (record_temporary_equivalences): Also record equivalences
16348 for dominating stmts that have uses of equivalences we are
16351 2015-07-16 Bin Cheng <bin.cheng@arm.com>
16353 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16354 add_autoinc_candidates.
16355 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16356 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16357 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16358 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16360 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16361 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16362 Remove parameter struct iv*. Call add_autoinc_candidates here.
16363 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16364 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16366 (find_iv_candidates): Call new functions.
16368 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
16370 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16371 uninitialized-variable warning.
16373 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
16376 * config/sh/sh.md (movdi): Split simple reg move to two movsi
16377 when the destination is R0.
16379 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
16382 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16383 * config/i386/i386.c (ix86_expand_pextr): New function.
16384 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
16385 for non-lowpart subregs.
16386 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16387 (insv<mode>): Use SWI248 mode iterator.
16388 (insv<mode>_1): Ditto.
16390 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16391 Sebastian Pop <s.pop@samsung.com>
16393 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16394 iterator to use_stmt.
16396 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16397 Sebastian Pop <s.pop@samsung.com>
16399 * graphite-scop-detection.c (build_scops_1): Discard scops for
16402 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16403 Sebastian Pop <s.pop@samsung.com>
16405 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16406 case of a return statement in scop.
16408 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16409 Sebastian Pop <s.pop@samsung.com>
16411 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16412 INTEGER_TYPE parameters.
16413 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16414 VECTOR_CST in scan_tree_for_params.
16415 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16417 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16419 * gimple-pretty-print.h: Don't include pretty-print.h.
16420 * tree-streamer.h: Don't include lto-streamer.h.
16421 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16422 * gimple-streamer-in.c: Remove redundant includes.
16423 * gimple-streamer-out.c: Likewise.
16424 * ipa-devirt.c: Likewise.
16425 * ipa-icf.c: Likewise.
16426 * ipa-inline-analysis.c: Likewise.
16427 * ipa-polymorphic-call.c: Likewise.
16428 * ipa-profile.c: Likewise.
16429 * ipa-prop.c: Likewise.
16430 * ipa-pure-const.c: Likewise.
16431 * lto-cgraph.c: Likewise.
16432 * lto-streamer-in.c: Likewise.
16433 * lto-streamer-out.c: Likewise.
16434 * lto-streamer.c: Likewise.
16435 * tree-streamer-in.c: Likewise.
16436 * tree-streamer-out.c: Likewise.
16437 * tree-streamer.c: Likewise.
16439 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16441 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16443 * opts.c: Remove multiline #include comment.
16445 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
16447 * config/nvptx/mkoffload.c (process): Add C++ protection to
16450 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16453 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16454 null before IEEE 128-bit floating point support patch.
16456 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16458 * simplify-rtx.c (simplify_ternary_operation): Add simplification
16459 for (!c) != {0,...,0} ? a : b for vector modes.
16461 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
16462 Martin Jambor <mjambor@suse.cz>
16464 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16465 struct func_body_info* instead of struct ipa_node_params*, expecting
16466 fbi->info to be filled in. Replace throughout. Adjust call to
16467 ipa_load_from_parm_agg.
16468 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16469 instead of struct ipa_node_params*. Adjust calls to other functions
16470 so that they pass either fbi or fbi->info.
16471 (set_switch_stmt_execution_predicate): Likewise.
16472 (will_be_nonconstant_predicate): Likewise.
16473 (compute_bb_predicates): Likewise.
16474 (estimate_function_body_sizes): Move asserts earlier. Fill in
16475 struct func_body_info, replace parms_info with fbi.info. Adjust
16476 calls to functions that now accept struct func_body_info.
16477 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16478 (struct func_body_info): Likewise.
16479 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16480 remove static. Adjust callers.
16481 (ipa_load_from_parm_agg): Remove.
16482 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16483 (func_body_info): Likewise.
16484 (ipa_load_from_parm_agg): Adjust prototype.
16486 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16488 * gensupport.c (rtx_handle_directive): Adjust.
16489 * read-rtl.c (apply_iterators): Take vector to add rtxs to
16490 instead of expr list rtx.
16491 (add_define_attr_for_define_subst): Likewise.
16492 (add_define_subst_attr): Likewise.
16493 (read_subst_mapping): Likewise.
16494 (read_rtx): Likewise.
16495 * rtl.h (read_rtx): Adjust.
16497 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16499 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16501 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16504 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16505 (*tls_local_dynamic_base_64_<mode>): Ditto.
16506 (*tls_local_dynamic_base_64_largepic): Ditto.
16507 (tls_global_dynamic_64_<mode>): Update expander pattern.
16508 (tls_local_dynamic_base_64_<mode>): Ditto.
16510 2015-07-15 Richard Biener <rguenther@suse.de>
16512 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16513 and bool_var == 1 -> bool_var simplifications ...
16514 * match.pd: ... to patterns here. Factor out negate_expr_p
16515 cases from the A - B -> A + (-B) patterns as negate_expr_p
16516 predicate and add a -(A + B) -> (-B) - A pattern.
16518 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16520 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16522 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
16523 Robert Suchanek <robert.suchanek@imgtec.com>
16525 * config/mips/mips.c (mips_int_mask): New enum.
16526 (mips_shadow_set): Likewise.
16527 (int_mask): New variable.
16528 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16529 (machine_function): Add int_mask and use_shadow_register_set.
16530 (mips_attribute_table): Add attribute handlers for interrupt and
16531 use_shadow_register_set.
16532 (mips_interrupt_mask): New static function.
16533 (mips_handle_interrupt_attr): Likewise.
16534 (mips_handle_use_shadow_register_set_attr): Likewise.
16535 (mips_use_shadow_register_set): Change return type to enum
16536 mips_shadow_set. Add argument handling for use_shadow_register_set
16538 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16539 compare with mips_shadow_set enum.
16540 (mips_compute_frame_info): Add interrupt mask and
16541 use_shadow_register_set to per-function information structure.
16542 Add a stack slot for EPC unconditionally.
16543 (mips_expand_prologue): Compare use_shadow_register_set value
16544 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
16545 masked interrupt register but in EIC mode use K0 and save Cause in K0.
16546 EPC saved and restored unconditionally. Use PMODE_INSN macro when
16547 copying the stack pointer from the shadow register set.
16548 * config/mips/mips.h (SR_IM0): New define.
16549 * config/mips/mips.md (mips_rdpgpr): Rename to...
16550 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
16551 * doc/extend.texi (Declaring Attributes of Functions): Document
16552 optional arguments for interrupt and use_shadow_register_set
16555 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16557 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16558 interrupt attribute.
16559 (mips_expand_prologue): Disable the floating point unit in an ISR.
16560 * config/mips/mips.h (SR_COP1): New define.
16562 2015-07-15 Richard Biener <rguenther@suse.de>
16564 * genmatch.c (parser::peek, parser::peek_ident): Add argument
16565 to tell how many tokens to peek ahead (default 1).
16566 (parser::eat_token, parser::eat_ident): Return token consumed.
16567 (parser::parse_result): Parse new switch statement.
16568 * match.pd: Use case statements where appropriate.
16570 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16572 PR rtl-optimization/58066
16573 * calls.c (expand_call): Precompute register parameters before stack
16574 alignment is performed.
16576 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16578 PR rtl-optimization/66838
16579 * postreload.c (reload_cse_move2add): Also process
16580 CALL_INSN_FUNCTION_USAGE when resetting information of
16581 call-clobbered registers.
16583 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16584 Cesar Philippidis <cesar@codesourcery.com>
16585 Chung-Lin Tang <cltang@codesourcery.com>
16587 * config/nios2/constraints.md (U, v): New constraints.
16588 * config/nios2/predicates.md (rdprs_dcache_operand): New.
16589 (ldstex_memory_operand): New.
16590 * config/nios2/sync.md: New file.
16591 * config/nios2/nios2.md (unspecv): Add new builtin function
16593 (rdprs, flushd, flushda, wrpie, eni): New patterns.
16594 (top-level): Include sync.md.
16595 * config/nios2/nios2.c (N2_FTYPES): Add function types for
16597 (N2_BUILTINS): Add arch field setting, add new builtins.
16598 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16600 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16601 Also handle ldex/stex/ldsex/stsex builtins.
16602 (nios2_expand_rdprs_builtin): New function.
16603 (nios2_expand_cache_builtin): New function.
16604 (nios2_expand_wrpie_builtin): New function.
16605 (nios2_expand_eni_builtin): New function.
16606 (nios2_expand_builtin): Add arch field handling and new builtin
16608 * doc/extend.texi (Altera Nios II Built-in Functions): Document
16610 * doc/md.texi (Machine Constraints): Document U and v constraints.
16612 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16613 Cesar Philippidis <cesar@codesourcery.com>
16614 Chung-Lin Tang <cltang@codesourcery.com>
16616 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16617 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16618 callee_save_reg_size and uses_anonymous_args fields.
16619 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16620 (nios2_create_cfa_notes): New function.
16621 (nios2_adjust_stack): New function for adjusting stack.
16622 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16623 Use nios2_adjust_stack.
16624 (nios2_expand_epilogue): Likewise.
16625 (nios2_expand_return): New function.
16626 (nios2_can_use_return_insn): Update for CDX pop.n usage.
16627 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16628 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16629 * config/nios2/nios2.md (return): Use nios2_expand_return.
16631 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16632 Cesar Philippidis <cesar@codesourcery.com>
16633 Chung-Lin Tang <cltang@codesourcery.com>
16635 * config/nios2/predicates.md (pop_operation): New.
16636 (ldwm_operation, stwm_operation): New.
16637 (nios2_hard_register_operand): New.
16638 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16639 (ldstwm_operation_p): Declare.
16640 (gen_ldstwm_peep): Declare.
16641 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16642 (base_reg_adjustment_p): New.
16643 (pop_operation_p): New.
16644 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16645 (nios2_ldstwm_regset_p): New.
16646 (ldstwm_operation_p): New.
16648 (nios2_ldst_parallel): New.
16649 (struct ldswm_operand): Declare.
16650 (compare_ldstwm_operands): New.
16651 (can_use_cdx_ldstw): New.
16652 (gen_ldstwm_peep): New.
16653 * config/nios2/nios2-ldstwm.sml: New.
16654 * config/nios2/nios2.md: Include ldstwm.md.
16655 * config/nios2/ldstwm.md: Generated.
16657 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16658 Cesar Philippidis <cesar@codesourcery.com>
16659 Chung-Lin Tang <cltang@codesourcery.com>
16661 * config/nios2/nios2.h (LABEL_ALIGN): Define.
16662 (REG_ALLOC_ORDER): Define.
16663 (ADJUST_REG_ALLOC_ORDER): Define.
16664 (HONOR_REG_ALLOC_ORDER): Define.
16665 (CDX_REG_P): Define.
16666 (ANDCLEAR_INT): Define.
16667 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16668 (nios2_label_align): Declare.
16669 (nios2_cdx_narrow_form_p): Declare.
16670 (nios2_adjust_reg_alloc_order): Declare.
16671 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16673 (nios2_large_unspec_reloc_p): New function, split from...
16674 (nios2_legitimate_pic_operand_p): ...here.
16675 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16676 (nios2_print_operand_punct_valid_p): New.
16677 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
16678 (split_mem_address): New.
16679 (split_alu_insn): New.
16681 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16682 (enum nios2_add_insn_kind): New.
16683 (nios2_add_insn_names, nios2_add_insn_narrow): New.
16684 (nios2_add_insn_classify): New.
16685 (nios2_add_insn_asm): New.
16686 (nios2_cdx_narrow_form_p): New.
16687 (label_align, min_labelno, max_labelno): New.
16688 (nios2_reorg): New.
16689 (nios2_label_align): New.
16690 (nios2_adjust_reg_alloc_order): New.
16691 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16692 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16693 * config/nios2/constraints.md (P): New constraint.
16694 * config/nios2/predicates.md (const_and_operand): New.
16695 (and_operand): New.
16696 (stack_memory_operand): New.
16697 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16698 (length): Update to use nios2_cdx_narrow_form_p().
16699 (type): Add new insn type values.
16700 (control, alu, st, ld, shift): Update insn reservations with
16701 new insn type values.
16702 (*high, *lo_sum): Define new insn patterns for constant generation.
16703 (movqi_internal, movhi_internal, movsi_internal): Reduce
16704 alternatives, update asm template to handle CDX variants, update
16706 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16707 template, update type attributes.
16708 (extendhisi2, extendqi<mode>2): Likewise.
16709 (addsi3): Change to use function for asm string.
16710 (subsi3): Add CDX notation to asm template, update type attributes.
16711 (negsi3, one_cmplsi3): Likewise.
16712 (andsi3): New pattern, specialized from logical patterns.
16713 (<code>si3): Remove and case, combine alternatives, update asm
16715 (<shift_op>si3): Add CDX notation, update type attributes.
16716 (rotrsi3): Update type attribute.
16717 (*merge, extzv, insv): New insn patterns.
16718 (return): Change to define_expand.
16719 (simple_return): Add CDX notation, update type attributes.
16720 (indirect_jump): Add CDX notation.
16721 (jump): Update asm cases, update length attribute expression.
16722 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16723 (nios2_cbranch): Update asm cases and length attribute expression
16724 to handle CDX variants.
16725 (nios2_cmp<code>): Update asm template.
16726 (nop): Add CDX notation, update type attributes.
16727 (trap): Add CDX notation.
16728 (ctrapsi4): Update asm cases and length attribute expression to
16729 handle CDX variant.
16730 * doc/md.texi (Machine Constraints): Document P constraint.
16732 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16733 Cesar Philippidis <cesar@codesourcery.com>
16734 Chung-Lin Tang <cltang@codesourcery.com>
16736 * config/nios2/nios2.h (SMALL_INT12): New macro.
16737 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16738 (nios2_valid_addr_expr_p): Use it.
16739 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16740 with implicit "io" instructions on R2.
16741 * config/nios2/constraints.md (w): New constraint.
16742 * config/nios2/predicates.md (ldstio_memory_operand): New.
16743 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16744 operand predicate and constraint.
16745 (ld<bh>io_signed, st<bhw>io>): Likewise.
16746 * doc/md.texi (Machine Constraints): Document w constraint.
16748 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16749 Cesar Philippidis <cesar@codesourcery.com>
16750 Chung-Lin Tang <cltang@codesourcery.com>
16752 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16753 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16754 Nios II architecture level.
16755 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16756 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16757 (OPTION_DEFAULT_SPECS): Define.
16758 (ASM_SPEC): Add -march= spec strings.
16759 * config/nios2/nios2.c (nios2_option_override): Check for
16760 conflicts involving new options.
16761 * config.gcc (nios2*-*-*): Support --with-arch=.
16762 * doc/invoke.texi (Option Summary, Nios II Options): Document
16763 -march=, -mbmx, and -mcdx.
16765 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
16767 PR rtl-optimization/66626
16768 * lra-constraints.c (lra_constraints): Prevent equivalence
16769 substitution for static chain pseudo in functions with nonlocal
16772 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16774 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16775 (nios2_emit_stack_limit_check): Add size parameter. Handle
16776 -fstack-limit-symbol as well as -fstack-limit-register.
16777 (nios2_expand_prologue): Emit only a single stack limit check,
16778 even if multiple stack adjustments are required.
16779 (nios2_option_override): Diagnose unsupported combination of -fpic
16780 and -stack-limit-symbol.
16782 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
16784 * Makefile.in (top_srcdir): New.
16785 * configure.ac: Use AM_ZLIB.
16786 * configure: Regeneated.
16788 2015-07-14 Matthias Klose <doko@ubuntu.com>
16791 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16793 2015-07-14 Richard Biener <rguenther@suse.de>
16795 PR tree-optimization/66863
16796 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16797 what we record for conversion use stmt lhs inequalities.
16799 2015-07-14 Richard Biener <rguenther@suse.de>
16801 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16802 (decision_tree::gen_gimple): Likewise.
16804 2015-07-14 Tom de Vries <tom@codesourcery.com>
16806 * gcc.c (greater_than_spec_func): Declare forward.
16807 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16808 -ftree-parallelize-loops={0,1}.
16809 (static_spec_functions): Add greater_than_spec_func function with name
16811 (greater_than_spec_func): New function.
16813 2015-07-14 Richard Biener <rguenther@suse.de>
16815 * tree-ssa-dom.c (record_temporary_equivalences): Merge
16816 wideing type conversion case from record_equivalences_from_incoming_edge
16817 and use record_equality to record equivalences.
16818 (record_equivalences_from_incoming_edge): Call
16819 record_temporary_equivalences.
16821 2015-07-14 Richard Biener <rguenther@suse.de>
16823 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16824 (struct if_expr): New.
16825 (struct with_expr): Likewise.
16826 (is_a_helper): Add helpers for if_expr and with_expr.
16827 (struct simplify): Add simplify_kind enum and member. Remove
16829 (simplify::simplify): Adjust.
16830 (lower_commutative): Adjust.
16831 (lower_opt_convert): Likewise.
16832 (lower_cond): Likewise.
16833 (replace_id): Handle with_expr and if_expr.
16834 (lower_for): Adjust.
16835 (dt_simplify::gen_1): New recursive worker, split out from ...
16836 (dt_simplify::gen): ... here. Deal with if and with expansion
16838 (capture_info::capture_info): Take context argument
16839 (capture_info::walk_result): Only analyze specific result.
16840 (parser::parse_result): New function.
16841 (parser::parse_simplify): Adjust to parse ifs with then end
16843 (parser::parse_if): Simplify.
16844 (parser::parse_pattern): Pass down simplify kind.
16845 * match.pd: Convert if structure to new syntax.
16847 2015-07-13 Marek Polacek <polacek@redhat.com>
16849 * rtl.c (rtx_equal_p_cb): Fix typo.
16851 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
16853 * omega.h: Don't include config.h, don't include params.h again if
16854 omega.h has already been included.
16855 * graphite-poly.h: Include sese.h.
16856 * graphite.c: Don't include sese.h, remove needless includes and
16857 minimize includes outside #ifdef HAVE_isl block.
16858 * graphite-blocking.c: Don't include sese.h, remove needless includes,
16859 and wrap entire file in #ifdef HAVE_isl
16860 * graphite-dependences.c: Likewise.
16861 * graphite-interchange.c: Likewise.
16862 * graphite-isl-ast-to-gimple.c: Likewise.
16863 * graphite-optimize-isl.c: Likewise.
16864 * graphite-poly.c: Likewise.
16865 * graphite-scop-detection.c: Likewise.
16866 * graphite-sese-to-poly.c: Likewise.
16868 2015-07-13 Tom de Vries <tom@codesourcery.com>
16870 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16872 2015-07-13 Renlin Li <renlin.li@arm.com>
16875 * simplify-rtx.c (simplify_const_relational_operation): Add
16876 side_effects_p checks.
16878 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
16880 * bitmap.h: Fix double word typos.
16881 * builtins.c: Same.
16883 * cfgloopmanip.c: Same.
16886 * cgraphclones.c: Same.
16888 * config/aarch64/aarch64-protos.h: Same.
16889 * config/aarch64/aarch64.c: Same.
16890 * config/aarch64/aarch64.md: Same.
16891 * config/arm/arm.md: Same.
16892 * config/arm/arm1020e.md: Same.
16893 * config/arm/arm1026ejs.md: Same.
16894 * config/arm/arm926ejs.md: Same.
16895 * config/arm/fa526.md: Same.
16896 * config/arm/fa606te.md: Same.
16897 * config/arm/fa626te.md: Same.
16898 * config/arm/fa726te.md: Same.
16899 * config/arm/fmp626.md: Same.
16900 * config/darwin.c: Same.
16901 * config/epiphany/epiphany.c: Same.
16902 * config/frv/frv.c: Same.
16903 * config/ft32/ft32.c: Same.
16904 * config/gnu-user.h: Same.
16905 * config/h8300/constraints.md: Same.
16906 * config/i386/i386.c: Same.
16907 * config/i386/i386.md: Same.
16908 * config/iq2000/iq2000.md: Same.
16909 * config/mips/mips.c: Same.
16910 * config/mmix/mmix.md: Same.
16911 * config/moxie/moxie.c: Same.
16912 * config/nds32/nds32.md: Same.
16913 * config/pa/pa.h: Same.
16914 * config/rs6000/aix.h: Same.
16915 * config/rs6000/rs6000.h: Same.
16916 * config/sh/sh.c: Same.
16917 * config/tilegx/tilegx.md: Same.
16918 * config/tilepro/gen-mul-tables.cc: Same.
16921 * doc/invoke.texi: Same.
16923 * dwarf2out.c: Same.
16926 * genmatch.c: Same.
16927 * gimplify.c: Same.
16928 * hash-table.h: Same.
16929 * internal-fn.c: Same.
16931 * ipa-devirt.c: Same.
16934 * ipa-profile.c: Same.
16935 * ipa-prop.c: Same.
16936 * ipa-prop.h: Same.
16939 * reg-stack.c: Same.
16940 * regcprop.c: Same.
16945 * tree-inline.c: Same.
16946 * tree-sra.c: Same.
16947 * tree-ssa-dom.c: Same.
16948 * tree-ssa-loop-ivopts.c: Same.
16949 * tree-ssa-structalias.c: Same.
16950 * tree-ssa-tail-merge.c: Same.
16951 * tree-ssa-ter.c: Same.
16952 * tree-ssa-threadupdate.c: Same.
16953 * tree-ssa-uninit.c: Same.
16954 * tree-ssanames.c: Same.
16955 * tree-vect-loop-manip.c: Same.
16956 * tree-vrp.c: Same.
16958 * valtrack.c: Same.
16961 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16963 PR middle-end/66726
16964 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16965 tree_ssa_phiopt_worker): Call it.
16967 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16969 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16970 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16973 2015-07-11 Marek Polacek <polacek@redhat.com>
16975 PR middle-end/66353
16976 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16977 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16978 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16979 rather than bb_has_abnormal_call_pred.
16980 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16981 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16982 rather than bb_has_abnormal_call_pred.
16984 2015-07-10 Anatoly Sokolov <aesok@post.ru>
16986 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16987 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16988 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16989 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16990 v850_legitimate_address_p): New functions.
16991 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16993 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
16996 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16997 indirect sibcall with register arguments if register available
16998 for argument passing.
16999 (init_cumulative_args): Set cfun->machine->arg_reg_available
17000 to (cum->nregs > 0) or to true if function has a variable
17002 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17003 to false if cum->nregs <= 0.
17004 * config/i386/i386.h (machine_function): Add arg_reg_available.
17006 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17008 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17009 and gen_higpart instead of gen_rtx_SUBREG.
17010 * config/i386/i386.md
17011 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17012 (read-modify peephole2): Use gen_lowpart instead of
17013 gen_rtx_SUBREG for operand 5.
17015 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17017 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17019 * config/tilepro/mul-tables.c: Regenerate.
17020 * config/tilegx/mul-tables.c: Regenerate.
17022 2015-07-10 Richard Biener <rguenther@suse.de>
17024 * fold-const.c (distribute_bit_expr): Remove.
17025 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17026 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17027 to A & (B | C) and simplifying A << C1 << C2 to ...
17028 * match.pd: ... patterns here.
17030 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17032 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17033 Mark mem as READONLY and NOTRAP for PIC symbol.
17035 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17037 * gimple-predict.h: New file.
17038 (gimple_predict_predictor, gimple_predict_set_predictor,
17039 gimple_predict_outcome, gimple_predict_set_outcome,
17040 gimple_build_predict): Relocate here.
17041 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17042 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17044 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17045 * basic-block.h: Don't include cfghooks.h.
17046 * backend.h: Don't include predict.h.
17047 * cfghooks.h: Include predict.h.
17048 * gimple-pretty-print.c: Include gimple-predict.h.
17049 * gimplify.c: Likwise.
17050 * predict.c: Adjust includes.
17051 * tree-inline.c: Likewise.
17052 * asan.c: Likewise.
17053 * auto-inc-dec.c: Likewise.
17054 * auto-profile.c: Likewise.
17055 * bb-reorder.c: Likewise.
17056 * builtins.c: Likewise.
17057 * caller-save.c: Likewise.
17058 * calls.c: Likewise.
17059 * cfganal.c: Likewise.
17060 * cfgbuild.c: Likewise.
17062 * cfgcleanup.c: Likewise.
17063 * cfgexpand.c: Likewise.
17064 * cfghooks.c: Likewise.
17065 * cfgloopanal.c: Likewise.
17066 * cfgloop.c: Likewise.
17067 * cfgloopmanip.c: Likewise.
17068 * cfgrtl.c: Likewise.
17069 * cgraph.c: Likewise.
17070 * cgraphunit.c: Likewise.
17071 * combine.c: Likewise.
17072 * cprop.c: Likewise.
17075 * dojump.c: Likewise.
17077 * except.c: Likewise.
17078 * expmed.c: Likewise.
17079 * expr.c: Likewise.
17080 * final.c: Likewise.
17081 * fold-const.c: Likewise.
17082 * function.c: Likewise.
17083 * fwprop.c: Likewise.
17084 * gcc-plugin.h: Likewise.
17085 * gcse.c: Likewise.
17086 * genattrtab.c: Likewise.
17087 * genemit.c: Likewise.
17088 * gengtype.c: Likewise.
17089 * genopinit.c: Likewise.
17090 * genoutput.c: Likewise.
17091 * genpreds.c: Likewise.
17092 * genrecog.c: Likewise.
17093 * gimple-fold.c: Likewise.
17094 * gimple-iterator.c: Likewise.
17095 * gimple-ssa-isolate-paths.c: Likewise.
17096 * gimple-ssa-strength-reduction.c: Likewise.
17097 * graph.c: Likewise.
17098 * graphite-blocking.c: Likewise.
17099 * graphite.c: Likewise.
17100 * graphite-dependences.c: Likewise.
17101 * graphite-interchange.c: Likewise.
17102 * graphite-isl-ast-to-gimple.c: Likewise.
17103 * graphite-optimize-isl.c: Likewise.
17104 * graphite-poly.c: Likewise.
17105 * graphite-scop-detection.c: Likewise.
17106 * graphite-sese-to-poly.c: Likewise.
17107 * haifa-sched.c: Likewise.
17108 * ifcvt.c: Likewise.
17109 * internal-fn.c: Likewise.
17110 * ipa-cp.c: Likewise.
17111 * ipa-profile.c: Likewise.
17112 * ipa-split.c: Likewise.
17113 * ipa-utils.c: Likewise.
17114 * ira-build.c: Likewise.
17115 * ira-color.c: Likewise.
17116 * ira-conflicts.c: Likewise.
17117 * ira-costs.c: Likewise.
17118 * ira-emit.c: Likewise.
17119 * ira-lives.c: Likewise.
17120 * jump.c: Likewise.
17121 * loop-doloop.c: Likewise.
17122 * loop-init.c: Likewise.
17123 * loop-invariant.c: Likewise.
17124 * loop-unroll.c: Likewise.
17125 * lower-subreg.c: Likewise.
17126 * lra-assigns.c: Likewise.
17128 * lra-coalesce.c: Likewise.
17129 * lra-constraints.c: Likewise.
17130 * lra-lives.c: Likewise.
17131 * lto-cgraph.c: Likewise.
17132 * lto-streamer-in.c: Likewise.
17133 * mode-switching.c: Likewise.
17134 * modulo-sched.c: Likewise.
17135 * omp-low.c: Likewise.
17136 * optabs.c: Likewise.
17137 * passes.c: Likewise.
17138 * postreload.c: Likewise.
17139 * postreload-gcse.c: Likewise.
17140 * profile.c: Likewise.
17141 * recog.c: Likewise.
17142 * regstat.c: Likewise.
17143 * reload1.c: Likewise.
17144 * reorg.c: Likewise.
17145 * rtlanal.c: Likewise.
17146 * sched-ebb.c: Likewise.
17147 * sel-sched-ir.c: Likewise.
17148 * sese.c: Likewise.
17149 * shrink-wrap.c: Likewise.
17150 * simplify-rtx.c: Likewise.
17151 * stmt.c: Likewise.
17152 * store-motion.c: Likewise.
17153 * tracer.c: Likewise.
17154 * trans-mem.c: Likewise.
17155 * tree-call-cdce.c: Likewise.
17156 * tree-cfg.c: Likewise.
17157 * tree-cfgcleanup.c: Likewise.
17158 * tree-chkp.c: Likewise.
17159 * tree-complex.c: Likewise.
17160 * tree-eh.c: Likewise.
17161 * tree-if-conv.c: Likewise.
17162 * tree-loop-distribution.c: Likewise.
17163 * tree-outof-ssa.c: Likewise.
17164 * tree-parloops.c: Likewise.
17165 * tree-predcom.c: Likewise.
17166 * tree-pretty-print.c: Likewise.
17167 * tree-profile.c: Likewise.
17168 * tree-sra.c: Likewise.
17169 * tree-ssa.c: Likewise.
17170 * tree-ssa-coalesce.c: Likewise.
17171 * tree-ssa-dce.c: Likewise.
17172 * tree-ssa-dom.c: Likewise.
17173 * tree-ssa-forwprop.c: Likewise.
17174 * tree-ssa-ifcombine.c: Likewise.
17175 * tree-ssa-loop-ch.c: Likewise.
17176 * tree-ssa-loop-im.c: Likewise.
17177 * tree-ssa-loop-ivcanon.c: Likewise.
17178 * tree-ssa-loop-ivopts.c: Likewise.
17179 * tree-ssa-loop-manip.c: Likewise.
17180 * tree-ssa-loop-prefetch.c: Likewise.
17181 * tree-ssa-loop-unswitch.c: Likewise.
17182 * tree-ssa-math-opts.c: Likewise.
17183 * tree-ssa-phiopt.c: Likewise.
17184 * tree-ssa-pre.c: Likewise.
17185 * tree-ssa-reassoc.c: Likewise.
17186 * tree-ssa-sink.c: Likewise.
17187 * tree-ssa-tail-merge.c: Likewise.
17188 * tree-ssa-threadedge.c: Likewise.
17189 * tree-ssa-threadupdate.c: Likewise.
17190 * tree-switch-conversion.c: Likewise.
17191 * tree-tailcall.c: Likewise.
17192 * tree-vect-data-refs.c: Likewise.
17193 * tree-vect-loop.c: Likewise.
17194 * tree-vect-loop-manip.c: Likewise.
17195 * tree-vectorizer.c: Likewise.
17196 * tree-vrp.c: Likewise.
17197 * ubsan.c: Likewise.
17198 * value-prof.c: Likewise.
17199 * varasm.c: Likewise.
17200 * var-tracking.c: Likewise.
17201 * config/aarch64/aarch64-builtins.c: Likewise.
17202 * config/aarch64/aarch64.c: Likewise.
17203 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17204 * config/alpha/alpha.c: Likewise.
17205 * config/arc/arc.c: Likewise.
17206 * config/arm/arm.c: Likewise.
17207 * config/avr/avr.c: Likewise.
17208 * config/bfin/bfin.c: Likewise.
17209 * config/c6x/c6x.c: Likewise.
17210 * config/cr16/cr16.c: Likewise.
17211 * config/cris/cris.c: Likewise.
17212 * config/darwin.c: Likewise.
17213 * config/darwin-c.c: Likewise.
17214 * config/epiphany/epiphany.c: Likewise.
17215 * config/epiphany/mode-switch-use.c: Likewise.
17216 * config/epiphany/resolve-sw-modes.c: Likewise.
17217 * config/fr30/fr30.c: Likewise.
17218 * config/frv/frv.c: Likewise.
17219 * config/ft32/ft32.c: Likewise.
17220 * config/h8300/h8300.c: Likewise.
17221 * config/i386/i386.c: Likewise.
17222 * config/i386/winnt.c: Likewise.
17223 * config/ia64/ia64.c: Likewise.
17224 * config/iq2000/iq2000.c: Likewise.
17225 * config/lm32/lm32.c: Likewise.
17226 * config/m32c/m32c.c: Likewise.
17227 * config/m32r/m32r.c: Likewise.
17228 * config/m68k/m68k.c: Likewise.
17229 * config/mcore/mcore.c: Likewise.
17230 * config/mep/mep.c: Likewise.
17231 * config/microblaze/microblaze.c: Likewise.
17232 * config/mips/mips.c: Likewise.
17233 * config/mmix/mmix.c: Likewise.
17234 * config/mn10300/mn10300.c: Likewise.
17235 * config/moxie/moxie.c: Likewise.
17236 * config/msp430/msp430.c: Likewise.
17237 * config/nds32/nds32.c: Likewise.
17238 * config/nds32/nds32-cost.c: Likewise.
17239 * config/nds32/nds32-fp-as-gp.c: Likewise.
17240 * config/nds32/nds32-intrinsic.c: Likewise.
17241 * config/nds32/nds32-isr.c: Likewise.
17242 * config/nds32/nds32-md-auxiliary.c: Likewise.
17243 * config/nds32/nds32-memory-manipulation.c: Likewise.
17244 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17245 * config/nds32/nds32-predicates.c: Likewise.
17246 * config/nios2/nios2.c: Likewise.
17247 * config/nvptx/nvptx.c: Likewise.
17248 * config/pa/pa.c: Likewise.
17249 * config/pdp11/pdp11.c: Likewise.
17250 * config/rl78/rl78.c: Likewise.
17251 * config/rs6000/rs6000.c: Likewise.
17252 * config/rx/rx.c: Likewise.
17253 * config/s390/s390.c: Likewise.
17254 * config/sh/sh.c: Likewise.
17255 * config/sh/sh-mem.cc: Likewise.
17256 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17257 * config/sh/sh_treg_combine.cc: Likewise.
17258 * config/sparc/sparc.c: Likewise.
17259 * config/spu/spu.c: Likewise.
17260 * config/stormy16/stormy16.c: Likewise.
17261 * config/tilegx/tilegx.c: Likewise.
17262 * config/tilepro/tilepro.c: Likewise.
17263 * config/v850/v850.c: Likewise.
17264 * config/vax/vax.c: Likewise.
17265 * config/visium/visium.c: Likewise.
17266 * config/xtensa/xtensa.c: Likewise.
17268 2015-07-10 Richard Biener <rguenther@suse.de>
17270 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17271 (decision_tree::gen_gimple): Likewise.
17272 (decision_tree::gen_generic): Likewise.
17274 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17277 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17278 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17280 2015-07-10 Jakub Jelinek <jakub@redhat.com>
17282 PR middle-end/66820
17283 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17284 or ORT_TASK contexts.
17285 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17288 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17290 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17293 2015-07-10 Tom de Vries <tom@codesourcery.com>
17295 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17296 insert nit + 1 bound.
17298 2015-07-10 Richard Biener <rguenther@suse.de>
17300 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17301 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17302 (if_convertible_loop_p_1): For this always compute bb predicates.
17303 (if_convertible_loop_p): And free them.
17305 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17307 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17310 2015-07-10 Richard Biener <rguenther@suse.de>
17312 PR tree-optimization/66823
17313 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17314 inverted predicate.
17316 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
17318 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17319 to handle mips[32|64]r3 and mips[32|64]r5.
17321 2015-07-09 Jakub Jelinek <jakub@redhat.com>
17323 PR middle-end/66633
17324 * tree-nested.c (get_static_chain): Or in a flag into
17325 info->static_chain_added.
17326 (get_frame_field, get_nonlocal_debug_decl): Likewise.
17327 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17328 2015-07-01 changes.
17329 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17330 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17333 PR tree-optimization/66718
17334 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17336 (vect_simd_lane_linear): New function.
17337 (vectorizable_simd_clone_call): Support using linear arguments for
17338 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17340 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17343 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17345 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17347 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17348 Use machine mode, not enum machine_mode in the prototype.
17350 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17351 classify 128-bit floating point support.
17352 (FLOAT128_IBM_P): Likewise.
17353 (FLOAT128_VECTOR_P): Likewise.
17354 (FLOAT128_2REG_P): Likewise.
17355 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17356 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17357 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17358 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17360 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17361 tests against TFmode/TDmode, since those modes do not use VSX
17363 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17365 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17366 tests against TFmode, etc.
17367 (invalid_e500_subreg): Add tests against IFmode/KFmode.
17368 (reg_offset_addressing_ok_p): Likewise.
17369 (rs6000_legitimate_offset_address_p): Likewise.
17370 (rs6000_legitimize_address): Likewise.
17371 (rs6000_legitimize_reload_address): Likewise.
17372 (rs6000_legitimate_address_p): Clean up tests against TFmode and
17373 TDmode to use the new helper macros, which will include IFmode and
17375 (rs6000_emit_move): Likewise.
17376 (rs6000_darwin64_record_arg_recurse): Likewise.
17377 (print_operand): Likewise.
17378 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17379 that uses a single vector register as a vector and not as a
17380 floating point register in terms of the calling sequence.
17381 (rs6000_discover_homogeneous_aggregate): Likewise.
17382 (rs6000_return_in_memory): Likewise.
17383 (init_cumulative_args): Likewise.
17384 (rs6000_function_arg_boundary): Likewise.
17385 (rs6000_function_arg_advance_1): Likewise.
17386 (rs6000_function_arg): Likewise.
17387 (rs6000_pass_by_reference): Likewise.
17388 (rs6000_gimplify_va_arg): Likewise.
17389 (rs6000_secondary_reload_memory): Use machine_mode not enum
17391 (rs6000_split_multireg_move): Use new helper macros.
17392 (spe_func_has_64bit_regs_p): Likewise.
17393 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17394 (output_toc): Use new helper macros.
17395 (rs6000_register_move_cost): Likewise.
17396 (rs6000_function_value): Add IEEE 128-bit floating point calling
17398 (rs6000_libcall_value): Likewise.
17399 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17400 floating point support.
17401 (rs6000_vector_mode_supported_p): Likewise.
17403 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
17405 PR rtl-optimization/66782
17406 * lra-int.h (struct lra_insn_recog_data): Add comment about
17407 clobbered hard regs for arg_hard_regs.
17408 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17409 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17410 Add condition for processing used hard regs.
17411 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17412 Process clobbered hard regs.
17414 2015-07-09 Michael Matz <matz@suse.de>
17416 * genmatch.c (fprintf_indent): New function.
17417 (operand::gen_transform): Add indent parameter.
17418 (expr::gen_transform, c_expr::gen_transform,
17419 capture::gen_transform): Ditto and use fprintf_indent.
17420 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17421 (dt_operand::gen, dt_operand::gen_predicate,
17422 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17423 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17424 (decision_tree::gen_gimple): Adjust calls and indent generated
17426 (decision_tree::gen_generic): Ditto.
17427 (write_predicate): Ditto.
17429 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17432 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17433 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17434 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17435 {GENERAL,SSE,MMX}_REG_P where appropriate.
17437 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17439 * lto-streamer.h: Don't include target.h and alloc-pool.h.
17440 * builtins.c: Adjust includes.
17441 * gimple.c: Likewise.
17442 * ipa-icf.c: Likewise.
17443 * lto-opts.c: Likewise.
17444 * ipa-reference.c: Likewise.
17445 * lto-section-out.c: Likewise.
17446 * lto-streamer-in.c: Likewise.
17447 * lto-streamer-out.c: Likewise.
17448 * opts-global.c: Likewise.
17449 * symtab.c: Likewise.
17450 * tree-chkp.c: Likewise.
17451 * tree-ssa-live.c: Likewise.
17452 * tree-streamer-in.c: Likewise.
17453 * tree-streamer-out.c: Likewise.
17454 * config/darwin.c: Likewise.
17455 * config/i386/winnt.c: Likewise.
17457 2015-07-09 Richard Biener <rguenther@suse.de>
17459 * genmatch.c (struct expr): Add force_single_use flag.
17460 (expr::expr): Add copy constructor.
17461 (capture_info::walk_match): Gather force_single_use captures.
17462 (expr::gen_transform): Use possibly NULLified sequence.
17463 (dt_simplify::gen): Apply single-use restrictions by NULLifying
17464 seq if any constrained expr is not single-use.
17465 (parser::parse_expr): Refactor to allow multiple flags. Handle
17466 's' flag to force an expression have a single-use if the pattern
17467 simplifies to more than one statement.
17468 * match.pd: Convert most single_use conditionals to :s flags.
17470 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17472 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17473 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17474 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17476 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17478 * flags.h: Don't include flag-types.h or options.h.
17479 * opts-common.c: Adjust includes.
17480 * opts-global.c: Likewise.
17481 * common/config/epiphany/epiphany-common.c: Likewise.
17483 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17486 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17489 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17492 * config/i386/i386.c (ix86_return_in_memory): Return true
17493 if int_size_in_bytes returns negative for IA MCU.
17495 2015-07-09 Marek Polacek <polacek@redhat.com>
17497 PR tree-optimization/66718
17498 * Makefile.in (OBJS): Add gimple-laddress.o.
17499 * passes.def: Schedule pass_laddress.
17500 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17501 * tree-pass.h (make_pass_laddress): Declare.
17502 * gimple-laddress.c: New file.
17504 2015-07-09 Richard Biener <rguenther@suse.de>
17506 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17508 2015-07-09 Richard Biener <rguenther@suse.de>
17510 PR tree-optimization/66807
17511 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17513 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
17515 * function.c (stack_protect_epilogue): Use if rather than switch for
17516 check targetm.have_stack_protect_test.
17518 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17520 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17521 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17522 * config/arc/arc.h: Likewise.
17523 * config/arm/arm.h: Likewise.
17524 * config/bfin/bfin.h: Likewise.
17525 * config/epiphany/epiphany.h: Likewise.
17526 * config/frv/frv.h: Likewise.
17527 * config/ia64/ia64.h: Likewise.
17528 * config/iq2000/iq2000.h: Likewise.
17529 * config/lm32/lm32.h: Likewise.
17530 * config/m32r/m32r.h: Likewise.
17531 * config/mcore/mcore.h: Likewise.
17532 * config/mep/mep.h: Likewise.
17533 * config/microblaze/microblaze.h: Likewise.
17534 * config/mips/mips.h: Likewise.
17535 * config/mmix/mmix.h: Likewise.
17536 * config/mn10300/mn10300.h: Likewise.
17537 * config/nds32/nds32.h: Likewise.
17538 * config/nios2/nios2.h: Likewise.
17539 * config/pa/pa.h: Likewise.
17540 * config/rl78/rl78.h: Likewise.
17541 * config/sh/sh.h: Likewise.
17542 * config/sparc/sparc.h: Likewise.
17543 * config/stormy16/stormy16.h: Likewise.
17544 * config/tilegx/tilegx.h: Likewise.
17545 * config/tilepro/tilepro.h: Likewise.
17546 * config/v850/v850.h: Likewise.
17547 * config/xtensa/xtensa.h: Likewise.
17548 * doc/tm.texi: Regenerate.
17549 * doc/tm.texi.in: Adjust.
17550 * combine.c (simplify_set): Likewise.
17551 (simplify_comparison): Likewise.
17552 * expr.c (store_constructor): Likewise.
17553 * internal-fn.c (expand_arith_overflow): Likewise.
17554 * reload.c (push_reload): Likewise.
17555 (find_reloads): Likewise.
17556 (find_reloads_subreg_address): Likewise.
17557 * reload1.c (eliminate_regs_1): Likewise.
17558 * rtlanal.c (nonzero_bits1): Likewise.
17559 (num_sign_bit_copies1): Likewise.
17560 * simplify-rtx.c (simplify_truncation): Likewise.
17562 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17564 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17565 of AUTO_INC_DEC with the preprocessor.
17566 * combine.c (combine_instructions): Likewise.
17567 (can_combine_p): Likewise.
17568 (try_combine): Likewise.
17569 * emit-rtl.c (try_split): Likewise.
17570 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17571 * lower-subreg.c (resolve_simple_move): Likewise.
17572 * lra.c (update_inc_notes): Likewise.
17573 * recog.c (asm_operand_ok): Likewise.
17574 (constrain_operands): Likewise.
17575 * regrename.c (scan_rtx_address): Likewise.
17576 * reload.c (update_auto_inc_notes): Likewise.
17577 (reg_inc_found_and_valid_p): Likewise.
17578 * reload1.c (reload): Likewise.
17579 (emit_input_reload_insns): Likewise.
17580 (delete_output_reload): Likewise.
17581 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17582 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17584 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17586 * rtl.h: Always define AUTO_INC_DEC.
17587 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17588 * combine.c (combine_instructions): Likewise.
17589 (can_combine_p): Likewise.
17590 (try_combine): Likewise.
17591 * emit-rtl.c (try_split): Likewise.
17592 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17593 * lower-subreg.c (resolve_simple_move): Likewise.
17594 * lra.c (update_inc_notes): Likewise.
17595 * recog.c (asm_operand_ok): Likewise.
17596 (constrain_operands): Likewise.
17597 * regrename.c (scan_rtx_address): Likewise.
17598 * reload.c (update_auto_inc_notes): Likewise.
17599 (find_equiv_reg): Likewise.
17600 * reload1.c (reload): Likewise.
17601 (reload_as_needed): Likewise.
17602 (choose_reload_regs): Likewise.
17603 (emit_input_reload_insns): Likewise.
17604 (delete_output_reload): Likewise.
17605 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17606 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17608 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17610 * combine.c (can_combine_def_p): Don't check the value of
17611 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17612 (combinable_i3pat): Likewise.
17613 (mark_used_regs_combine): Likewise.
17614 * regrename.c (rename_chains): Likewise.
17615 * reload.c (find_reloads_address): Likewise.
17616 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17618 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17620 * combine.c (update_rsp_from_reg_equal): Don't check if
17621 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17622 (reg_nonzero_bits_for_combine): Likewise.
17623 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17625 * config/frv/frv.h: Likewise.
17626 * config/lm32/lm32.h: Likewise.
17627 * config/mep/mep.h: Likewise.
17628 * config/mips/mips.h: Likewise.
17629 * config/rs6000/rs6000.h: Likewise.
17630 * config/sh/sh.h: Likewise.
17631 * config/tilegx/tilegx.h (enum reg_class): Likewise.
17632 * config/tilepro/tilepro.h: Likewise.
17633 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17634 * doc/tm.texi: Regenerate.
17635 * doc/tm.texi.in: Adjust.
17636 * rtlanal.c (nonzero_bits1): Likewise.
17638 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17640 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17641 with the preprocessor.
17642 (combine_instructions): Likewise.
17643 (try_combine): Likewise.
17645 (distribute_notes): Likewise.
17647 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17649 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17651 (simplify_set): Likewise.
17652 * cse.c (cse_insn): Likewise.
17653 * fold-const.c (fold_single_bit_test): Likewise.
17654 (fold_unary_loc): Likewise.
17655 * postreload.c (reload_cse_simplify_set): Likewise.
17656 (reload_cse_simplify_operands): Likewise.
17658 2015-07-08 Jiong Wang <jiong.wang@arm.com>
17660 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17661 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17663 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17666 * config/i386/x86intrin.h: Include <adxintrin.h> even if
17667 __iamcu__ is defined.
17669 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17671 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17673 2015-07-08 Iain Sandoe <iain@codesourcery.com>
17676 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17677 names from preservation.
17679 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17682 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17684 (function_arg_advance_32): Don't pass vectors in registers for
17686 (function_arg_32): Likewise.
17687 (ix86_return_in_memory): Don't return vectors in registers for
17690 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
17692 PR middle-end/66334
17693 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17694 hard regno live at the start of BB with incoming abnormal edges.
17695 * lra-lives.c (process_bb_lives): Ditto.
17697 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
17700 * config/nvptx/mkoffload.c (main): Create an offload image only in
17701 64-bit configurations.
17703 2015-07-08 Martin Liska <mliska@suse.cz>
17706 * tree-sra.c (create_access_1): Call ctor without brackets.
17707 (create_artificial_child_access): Likewise.
17709 2015-07-08 Richard Biener <rguenther@suse.de>
17711 PR tree-optimization/66793
17712 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17713 Properly split the block after stmts ending it.
17715 2015-07-08 Richard Biener <rguenther@suse.de>
17717 PR tree-optimization/66794
17718 * passes.c (execute_function_todo): Assert that post-dominators
17720 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17721 Free post-dominators.
17723 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17725 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17728 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17730 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17731 more than or equal 8 and less than 32 when optimizing for size.
17733 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17735 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17736 COSTS_N_INSNS (1) and increment it appropriately throughout the
17739 2015-07-08 Richard Biener <rguenther@suse.de>
17741 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17743 2015-07-08 Alan Modra <amodra@gmail.com>
17745 * target.def (rtx_costs): Remove "code" param, add "mode".
17746 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17747 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
17748 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17749 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
17750 call. Track mode when given in rtx.
17751 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
17752 (default_address_cost): Pass Pmode to rtx_cost.
17753 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17754 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17756 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
17757 (notreg_cost): Add mode param. Use it.
17758 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
17759 mode param and pass to set_src_cost. Update all calls.
17760 (hash_scan_set): Formatting.
17761 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17762 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17764 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17765 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17766 emit_store_flag): Update set_src_cost and rtx_cost calls.
17767 * auto-inc-dec.c (attempt_change): Likewise.
17768 * calls.c (precompute_register_parameters): Likewise.
17769 * combine.c (expand_compound_operation, make_extraction,
17770 force_to_mode, distribute_and_simplify_rtx): Likewise.
17771 * dojump.c (prefer_and_bit_test): Likewise.
17772 * dse.c (find_shift_sequence): Likewise.
17773 * expr.c (compress_float_constant): Likewise.
17774 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17775 * ifcvt.c (noce_try_sign_mask): Likewise.
17776 * loop-doloop.c (doloop_optimize): Likewise.
17777 * loop-invariant.c (create_new_invariant): Likewise.
17778 * lower-subreg.c (shift_cost, compute_costs): Likewise.
17779 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17780 lshift_cheap_p): Likewise.
17781 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17782 try_replace_in_use, reload_cse_move2add): Likewise.
17783 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17785 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17786 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17787 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17788 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17790 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
17792 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17793 * config/arc/arc.c (arc_rtx_costs): Likewise.
17794 * config/arm/arm.c (arm_rtx_costs): Likewise.
17795 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17796 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17797 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17798 * config/cris/cris.c (cris_rtx_costs): Likewise.
17799 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17800 * config/frv/frv.c (frv_rtx_costs): Likewise.
17801 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17802 * config/i386/i386.c (ix86_rtx_costs): Likewise.
17803 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17804 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17805 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17806 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17807 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17808 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17809 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17810 * config/mep/mep.c (mep_rtx_cost): Likewise.
17811 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17812 * config/mips/mips.c (mips_rtx_costs): Likewise.
17813 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17814 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17815 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17816 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17817 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17818 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17819 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17820 * config/pa/pa.c (hppa_rtx_costs): Likewise.
17821 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17822 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17823 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17824 * config/s390/s390.c (s390_rtx_costs): Likewise.
17825 * config/sh/sh.c (sh_rtx_costs): Likewise.
17826 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17827 * config/spu/spu.c (spu_rtx_costs): Likewise.
17828 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17829 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17830 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17831 * config/v850/v850.c (v850_rtx_costs): Likewise.
17832 * config/vax/vax.c (vax_rtx_costs): Likewise.
17833 * config/visium/visium.c (visium_rtx_costs): Likewise.
17834 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17835 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17836 "code" param, and pass as outer_code to first rtx_cost call. Pass
17837 mode to rtx_cost calls.
17838 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17840 (aarch64_rtx_costs_wrapper): Update.
17841 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17842 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17844 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17845 and rtx_cost calls.
17846 (avr_operand_rtx_cost): Similarly.
17847 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17848 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17849 * config/mips/mips.c (mips_stack_address_p): Comment typo.
17850 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17851 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17852 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17854 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17855 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17856 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17857 * doc/tm.texi: Regenerate.
17859 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
17861 * tree-core.h: Include symtab.h.
17862 * rtl.h: Include hard-reg-set.h but not flags.h.
17863 (HARD_CONST): Remove condition compilation involving HARD_CONST since
17864 hard-reg-set.h is always included.
17865 * regs.h: Don't include hard-reg-set.h or rtl.h.
17866 * cfg.h: Include dominance.h.
17867 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17868 * backend.h: New. Aggregate commonly used backend header files.
17869 * gimple-ssa.h: Don't include tree-hasher.h.
17870 * ssa.h: New. Aggregate commonly used SSA header files.
17871 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17872 * sel-sched-ir.h: Flatten includes.
17873 * lra-int.h: Flatten completely.
17874 * sel-sched-dump.h: Flatten includes.
17875 * ira-int.h: Flatten includes.
17876 * gimple-streamer.h: Remove all includes.
17877 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17878 * resource.h: Flatten hard-reg-set.h and df.h.
17879 * sched-int.h: Flatten insn-arrt.h and df.h.
17880 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17881 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17882 * genattrtab.c (write_header): Adjust generated includes.
17883 * genautomata.c (main): Likewise.
17884 * genconditions.c (write-header): Likewise.
17885 * genemit.c (main): Likewise.
17886 * gengtype.c (open_base_files): Likewise.
17887 * genopinit.c (main): Likewise.
17888 * genoutput.c (output_prologue): Likewise.
17889 * genpeep.c (main): Likewise.
17890 * genpreds.c (write_insn_preds_c): Likewise.
17891 * genrecog.c (write_header): Likewise.
17892 * alias.c: Adjust includes.
17893 * asan.c: Likewise.
17894 * attribs.c: Likewise.
17895 * auto-inc-dec.c: Likewise.
17896 * auto-profile.c: Likewise.
17897 * bb-reorder.c: Likewise.
17898 * bt-load.c: Likewise.
17899 * builtins.c: Likewise.
17900 * caller-save.c: Likewise.
17901 * calls.c: Likewise.
17902 * ccmp.c: Likewise.
17904 * cfganal.c: Likewise.
17905 * cfgbuild.c: Likewise.
17906 * cfgcleanup.c: Likewise.
17907 * cfgexpand.c: Likewise.
17908 * cfghooks.c: Likewise.
17909 * cfgloop.c: Likewise.
17910 * cfgloopanal.c: Likewise.
17911 * cfgloopmanip.c: Likewise.
17912 * cfgrtl.c: Likewise.
17913 * cgraph.c: Likewise.
17914 * cgraphbuild.c: Likewise.
17915 * cgraphclones.c: Likewise.
17916 * cgraphunit.c: Likewise.
17917 * cilk-common.c: Likewise.
17918 * combine-stack-adj.c: Likewise.
17919 * combine.c: Likewise.
17920 * compare-elim.c: Likewise.
17921 * convert.c: Likewise.
17922 * coverage.c: Likewise.
17923 * cppbuiltin.c: Likewise.
17924 * cprop.c: Likewise.
17926 * cselib.c: Likewise.
17927 * data-streamer-in.c: Likewise.
17928 * data-streamer-out.c: Likewise.
17929 * data-streamer.c: Likewise.
17930 * dbxout.c: Likewise.
17933 * debug.c: Likewise.
17934 * df-core.c: Likewise.
17935 * df-problems.c: Likewise.
17936 * df-scan.c: Likewise.
17938 * dojump.c: Likewise.
17939 * dominance.c: Likewise.
17940 * domwalk.c: Likewise.
17941 * double-int.c: Likewise.
17943 * dumpfile.c: Likewise.
17944 * dwarf2asm.c: Likewise.
17945 * dwarf2cfi.c: Likewise.
17946 * dwarf2out.c: Likewise.
17947 * emit-rtl.c: Likewise.
17948 * et-forest.c: Likewise.
17949 * except.c: Likewise.
17950 * explow.c: Likewise.
17951 * expmed.c: Likewise.
17952 * expr.c: Likewise.
17953 * final.c: Likewise.
17954 * fixed-value.c: Likewise.
17955 * fold-const.c: Likewise.
17956 * function.c: Likewise.
17957 * fwprop.c: Likewise.
17958 * gcc-plugin.h: Likewise.
17959 * gcse-common.c: Likewise.
17960 * gcse.c: Likewise.
17961 * generic-match-head.c: Likewise.
17962 * ggc-page.c: Likewise.
17963 * gimple-builder.c: Likewise.
17964 * gimple-expr.c: Likewise.
17965 * gimple-fold.c: Likewise.
17966 * gimple-iterator.c: Likewise.
17967 * gimple-low.c: Likewise.
17968 * gimple-match-head.c: Likewise.
17969 * gimple-pretty-print.c: Likewise.
17970 * gimple-ssa-isolate-paths.c: Likewise.
17971 * gimple-ssa-strength-reduction.c: Likewise.
17972 * gimple-streamer-in.c: Likewise.
17973 * gimple-streamer-out.c: Likewise.
17974 * gimple-walk.c: Likewise.
17975 * gimple.c: Likewise.
17976 * gimplify-me.c: Likewise.
17977 * gimplify.c: Likewise.
17978 * godump.c: Likewise.
17979 * graph.c: Likewise.
17980 * graphite-blocking.c: Likewise.
17981 * graphite-dependences.c: Likewise.
17982 * graphite-interchange.c: Likewise.
17983 * graphite-isl-ast-to-gimple.c: Likewise.
17984 * graphite-optimize-isl.c: Likewise.
17985 * graphite-poly.c: Likewise.
17986 * graphite-scop-detection.c: Likewise.
17987 * graphite-sese-to-poly.c: Likewise.
17988 * graphite.c: Likewise.
17989 * haifa-sched.c: Likewise.
17990 * hw-doloop.c: Likewise.
17991 * ifcvt.c: Likewise.
17992 * init-regs.c: Likewise.
17993 * internal-fn.c: Likewise.
17994 * ipa-chkp.c: Likewise.
17995 * ipa-comdats.c: Likewise.
17996 * ipa-cp.c: Likewise.
17997 * ipa-devirt.c: Likewise.
17998 * ipa-icf-gimple.c: Likewise.
17999 * ipa-icf.c: Likewise.
18000 * ipa-inline-analysis.c: Likewise.
18001 * ipa-inline-transform.c: Likewise.
18002 * ipa-inline.c: Likewise.
18003 * ipa-polymorphic-call.c: Likewise.
18004 * ipa-profile.c: Likewise.
18005 * ipa-prop.c: Likewise.
18006 * ipa-pure-const.c: Likewise.
18007 * ipa-ref.c: Likewise.
18008 * ipa-reference.c: Likewise.
18009 * ipa-split.c: Likewise.
18010 * ipa-utils.c: Likewise.
18011 * ipa-visibility.c: Likewise.
18013 * ira-build.c: Likewise.
18014 * ira-color.c: Likewise.
18015 * ira-conflicts.c: Likewise.
18016 * ira-costs.c: Likewise.
18017 * ira-emit.c: Likewise.
18018 * ira-lives.c: Likewise.
18020 * jump.c: Likewise.
18021 * langhooks.c: Likewise.
18023 * loop-doloop.c: Likewise.
18024 * loop-init.c: Likewise.
18025 * loop-invariant.c: Likewise.
18026 * loop-iv.c: Likewise.
18027 * loop-unroll.c: Likewise.
18028 * lower-subreg.c: Likewise.
18029 * lra-assigns.c: Likewise.
18030 * lra-coalesce.c: Likewise.
18031 * lra-constraints.c: Likewise.
18032 * lra-eliminations.c: Likewise.
18033 * lra-lives.c: Likewise.
18034 * lra-remat.c: Likewise.
18035 * lra-spills.c: Likewise.
18037 * lto-cgraph.c: Likewise.
18038 * lto-compress.c: Likewise.
18039 * lto-opts.c: Likewise.
18040 * lto-section-in.c: Likewise.
18041 * lto-section-out.c: Likewise.
18042 * lto-streamer-in.c: Likewise.
18043 * lto-streamer-out.c: Likewise.
18044 * lto-streamer.c: Likewise.
18046 * mode-switching.c: Likewise.
18047 * modulo-sched.c: Likewise.
18048 * omega.c: Likewise.
18049 * omp-low.c: Likewise.
18050 * optabs.c: Likewise.
18051 * opts-global.c: Likewise.
18052 * passes.c: Likewise.
18053 * plugin.c: Likewise.
18054 * postreload-gcse.c: Likewise.
18055 * postreload.c: Likewise.
18056 * predict.c: Likewise.
18057 * print-rtl.c: Likewise.
18058 * print-tree.c: Likewise.
18059 * profile.c: Likewise.
18060 * real.c: Likewise.
18061 * realmpfr.c: Likewise.
18062 * recog.c: Likewise.
18064 * reg-stack.c: Likewise.
18065 * regcprop.c: Likewise.
18066 * reginfo.c: Likewise.
18067 * regrename.c: Likewise.
18068 * regstat.c: Likewise.
18069 * reload.c: Likewise.
18070 * reload1.c: Likewise.
18071 * reorg.c: Likewise.
18072 * resource.c: Likewise.
18073 * rtl-chkp.c: Likewise.
18074 * rtlanal.c: Likewise.
18075 * rtlhooks.c: Likewise.
18076 * sanopt.c: Likewise.
18077 * sched-deps.c: Likewise.
18078 * sched-ebb.c: Likewise.
18079 * sched-rgn.c: Likewise.
18080 * sched-vis.c: Likewise.
18081 * sdbout.c: Likewise.
18082 * sel-sched-dump.c: Likewise.
18083 * sel-sched-ir.c: Likewise.
18084 * sel-sched.c: Likewise.
18085 * sese.c: Likewise.
18086 * shrink-wrap.c: Likewise.
18087 * simplify-rtx.c: Likewise.
18088 * stack-ptr-mod.c: Likewise.
18089 * stmt.c: Likewise.
18090 * stor-layout.c: Likewise.
18091 * store-motion.c: Likewise.
18092 * stringpool.c: Likewise.
18093 * symtab.c: Likewise.
18094 * target-globals.c: Likewise.
18095 * targhooks.c: Likewise.
18096 * toplev.c: Likewise.
18097 * tracer.c: Likewise.
18098 * trans-mem.c: Likewise.
18099 * tree-affine.c: Likewise.
18100 * tree-browser.c: Likewise.
18101 * tree-call-cdce.c: Likewise.
18102 * tree-cfg.c: Likewise.
18103 * tree-cfgcleanup.c: Likewise.
18104 * tree-chkp-opt.c: Likewise.
18105 * tree-chkp.c: Likewise.
18106 * tree-chrec.c: Likewise.
18107 * tree-complex.c: Likewise.
18108 * tree-data-ref.c: Likewise.
18109 * tree-dfa.c: Likewise.
18110 * tree-diagnostic.c: Likewise.
18111 * tree-dump.c: Likewise.
18112 * tree-eh.c: Likewise.
18113 * tree-emutls.c: Likewise.
18114 * tree-if-conv.c: Likewise.
18115 * tree-inline.c: Likewise.
18116 * tree-into-ssa.c: Likewise.
18117 * tree-iterator.c: Likewise.
18118 * tree-loop-distribution.c: Likewise.
18119 * tree-nested.c: Likewise.
18120 * tree-nrv.c: Likewise.
18121 * tree-object-size.c: Likewise.
18122 * tree-outof-ssa.c: Likewise.
18123 * tree-parloops.c: Likewise.
18124 * tree-phinodes.c: Likewise.
18125 * tree-predcom.c: Likewise.
18126 * tree-pretty-print.c: Likewise.
18127 * tree-profile.c: Likewise.
18128 * tree-scalar-evolution.c: Likewise.
18129 * tree-sra.c: Likewise.
18130 * tree-ssa-address.c: Likewise.
18131 * tree-ssa-alias.c: Likewise.
18132 * tree-ssa-ccp.c: Likewise.
18133 * tree-ssa-coalesce.c: Likewise.
18134 * tree-ssa-copy.c: Likewise.
18135 * tree-ssa-copyrename.c: Likewise.
18136 * tree-ssa-dce.c: Likewise.
18137 * tree-ssa-dom.c: Likewise.
18138 * tree-ssa-dse.c: Likewise.
18139 * tree-ssa-forwprop.c: Likewise.
18140 * tree-ssa-ifcombine.c: Likewise.
18141 * tree-ssa-live.c: Likewise.
18142 * tree-ssa-loop-ch.c: Likewise.
18143 * tree-ssa-loop-im.c: Likewise.
18144 * tree-ssa-loop-ivcanon.c: Likewise.
18145 * tree-ssa-loop-ivopts.c: Likewise.
18146 * tree-ssa-loop-manip.c: Likewise.
18147 * tree-ssa-loop-niter.c: Likewise.
18148 * tree-ssa-loop-prefetch.c: Likewise.
18149 * tree-ssa-loop-unswitch.c: Likewise.
18150 * tree-ssa-loop.c: Likewise.
18151 * tree-ssa-math-opts.c: Likewise.
18152 * tree-ssa-operands.c: Likewise.
18153 * tree-ssa-phiopt.c: Likewise.
18154 * tree-ssa-phiprop.c: Likewise.
18155 * tree-ssa-pre.c: Likewise.
18156 * tree-ssa-propagate.c: Likewise.
18157 * tree-ssa-reassoc.c: Likewise.
18158 * tree-ssa-sccvn.c: Likewise.
18159 * tree-ssa-scopedtables.c: Likewise.
18160 * tree-ssa-sink.c: Likewise.
18161 * tree-ssa-strlen.c: Likewise.
18162 * tree-ssa-structalias.c: Likewise.
18163 * tree-ssa-tail-merge.c: Likewise.
18164 * tree-ssa-ter.c: Likewise.
18165 * tree-ssa-threadedge.c: Likewise.
18166 * tree-ssa-threadupdate.c: Likewise.
18167 * tree-ssa-uncprop.c: Likewise.
18168 * tree-ssa-uninit.c: Likewise.
18169 * tree-ssa.c: Likewise.
18170 * tree-ssanames.c: Likewise.
18171 * tree-stdarg.c: Likewise.
18172 * tree-streamer-in.c: Likewise.
18173 * tree-streamer-out.c: Likewise.
18174 * tree-streamer.c: Likewise.
18175 * tree-switch-conversion.c: Likewise.
18176 * tree-tailcall.c: Likewise.
18177 * tree-vect-data-refs.c: Likewise.
18178 * tree-vect-generic.c: Likewise.
18179 * tree-vect-loop-manip.c: Likewise.
18180 * tree-vect-loop.c: Likewise.
18181 * tree-vect-patterns.c: Likewise.
18182 * tree-vect-slp.c: Likewise.
18183 * tree-vect-stmts.c: Likewise.
18184 * tree-vectorizer.c: Likewise.
18185 * tree-vrp.c: Likewise.
18186 * tree.c: Likewise.
18187 * tsan.c: Likewise.
18188 * ubsan.c: Likewise.
18189 * valtrack.c: Likewise.
18190 * value-prof.c: Likewise.
18191 * var-tracking.c: Likewise.
18192 * varasm.c: Likewise.
18193 * varpool.c: Likewise.
18194 * vmsdbgout.c: Likewise.
18195 * vtable-verify.c: Likewise.
18197 * wide-int.cc: Likewise.
18198 * xcoffout.c: Likewise.
18199 * config/aarch64/aarch64-builtins.c: Likewise.
18200 * config/aarch64/aarch64.c: Likewise.
18201 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18202 * config/alpha/alpha.c: Likewise.
18203 * config/arc/arc.c: Likewise.
18204 * config/arm/aarch-common.c: Likewise.
18205 * config/arm/arm-builtins.c: Likewise.
18206 * config/arm/arm-c.c: Likewise.
18207 * config/arm/arm.c: Likewise.
18208 * config/avr/avr-c.c: Likewise.
18209 * config/avr/avr-log.c: Likewise.
18210 * config/avr/avr.c: Likewise.
18211 * config/bfin/bfin.c: Likewise.
18212 * config/c6x/c6x.c: Likewise.
18213 * config/cr16/cr16.c: Likewise.
18214 * config/cris/cris.c: Likewise.
18215 * config/darwin-c.c: Likewise.
18216 * config/darwin.c: Likewise.
18217 * config/epiphany/epiphany.c: Likewise.
18218 * config/epiphany/mode-switch-use.c: Likewise.
18219 * config/epiphany/resolve-sw-modes.c: Likewise.
18220 * config/fr30/fr30.c: Likewise.
18221 * config/frv/frv.c: Likewise.
18222 * config/ft32/ft32.c: Likewise.
18223 * config/h8300/h8300.c: Likewise.
18224 * config/i386/i386-c.c: Likewise.
18225 * config/i386/i386.c: Likewise.
18226 * config/i386/msformat-c.c: Likewise.
18227 * config/i386/winnt-cxx.c: Likewise.
18228 * config/i386/winnt-stubs.c: Likewise.
18229 * config/i386/winnt.c: Likewise.
18230 * config/ia64/ia64-c.c: Likewise.
18231 * config/ia64/ia64.c: Likewise.
18232 * config/iq2000/iq2000.c: Likewise.
18233 * config/lm32/lm32.c: Likewise.
18234 * config/m32c/m32c-pragma.c: Likewise.
18235 * config/m32c/m32c.c: Likewise.
18236 * config/m32r/m32r.c: Likewise.
18237 * config/m68k/m68k.c: Likewise.
18238 * config/mcore/mcore.c: Likewise.
18239 * config/mep/mep-pragma.c: Likewise.
18240 * config/mep/mep.c: Likewise.
18241 * config/microblaze/microblaze-c.c: Likewise.
18242 * config/microblaze/microblaze.c: Likewise.
18243 * config/mips/mips.c: Likewise.
18244 * config/mmix/mmix.c: Likewise.
18245 * config/mn10300/mn10300.c: Likewise.
18246 * config/moxie/moxie.c: Likewise.
18247 * config/msp430/msp430-c.c: Likewise.
18248 * config/msp430/msp430.c: Likewise.
18249 * config/nds32/nds32-cost.c: Likewise.
18250 * config/nds32/nds32-fp-as-gp.c: Likewise.
18251 * config/nds32/nds32-intrinsic.c: Likewise.
18252 * config/nds32/nds32-isr.c: Likewise.
18253 * config/nds32/nds32-md-auxiliary.c: Likewise.
18254 * config/nds32/nds32-memory-manipulation.c: Likewise.
18255 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18256 * config/nds32/nds32-predicates.c: Likewise.
18257 * config/nds32/nds32.c: Likewise.
18258 * config/nios2/nios2.c: Likewise.
18259 * config/nvptx/nvptx.c: Likewise.
18260 * config/pa/pa.c: Likewise.
18261 * config/pdp11/pdp11.c: Likewise.
18262 * config/rl78/rl78-c.c: Likewise.
18263 * config/rl78/rl78.c: Likewise.
18264 * config/rs6000/rs6000-c.c: Likewise.
18265 * config/rs6000/rs6000.c: Likewise.
18266 * config/rx/rx.c: Likewise.
18267 * config/s390/s390-c.c: Likewise.
18268 * config/s390/s390.c: Likewise.
18269 * config/sh/sh-c.c: Likewise.
18270 * config/sh/sh-mem.cc: Likewise.
18271 * config/sh/sh.c: Likewise.
18272 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18273 * config/sh/sh_treg_combine.cc: Likewise.
18274 * config/sol2-c.c: Likewise.
18275 * config/sol2-cxx.c: Likewise.
18276 * config/sol2-stubs.c: Likewise.
18277 * config/sol2.c: Likewise.
18278 * config/sparc/sparc-c.c: Likewise.
18279 * config/sparc/sparc.c: Likewise.
18280 * config/spu/spu-c.c: Likewise.
18281 * config/spu/spu.c: Likewise.
18282 * config/stormy16/stormy16.c: Likewise.
18283 * config/tilegx/mul-tables.c: Likewise.
18284 * config/tilegx/tilegx-c.c: Likewise.
18285 * config/tilegx/tilegx.c: Likewise.
18286 * config/tilepro/mul-tables.c: Likewise.
18287 * config/tilepro/tilepro-c.c: Likewise.
18288 * config/tilepro/tilepro.c: Likewise.
18289 * config/v850/v850-c.c: Likewise.
18290 * config/v850/v850.c: Likewise.
18291 * config/vax/vax.c: Likewise.
18292 * config/visium/visium.c: Likewise.
18293 * config/vms/vms-c.c: Likewise.
18294 * config/vms/vms.c: Likewise.
18295 * config/vxworks.c: Likewise.
18296 * config/xtensa/xtensa.c: Likewise.
18298 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
18300 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18301 Remove operand constraints. Change operand 2 predicate to
18302 nonmemory operand. Limit const_int values to mode bitsize. Only
18303 allow const_int values less than 32 when optimizing for size.
18304 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18305 Remove operand constraints.
18306 (*bt<mode>): Use SImode for const_int values less than 32.
18307 (regmode): Remove mode attribute.
18309 2015-07-07 Anatoly Sokolov <aesok@post.ru>
18311 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18312 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18313 moxie_legitimate_address_p): New functions.
18314 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18316 2015-07-07 Tom de Vries <tom@codesourcery.com>
18318 PR tree-optimization/66642
18319 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18320 header comment. Rename split_edge variable to edge_at_split. Split
18321 exit edge to create new loop exit bb. Insert loop exit phis in new
18324 2015-07-07 Tom de Vries <tom@codesourcery.com>
18326 * tree-cfg.c (get_virtual_phi): New function.
18327 * tree-cfg.h (get_virtual_phi): Declare.
18328 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18329 (rewrite_virtuals_into_loop_closed_ssa): New function.
18330 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18332 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18333 (transform_to_exit_first_loop_alt): Use
18334 rewrite_virtuals_into_loop_closed_ssa.
18336 2015-07-07 Richard Biener <rguenther@suse.de>
18338 * fold-const.c (fold_binary_loc): Move
18339 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18340 * match.pd: ... here.
18341 Add (X * C1) % C2 -> 0 simplification pattern derived from
18344 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
18347 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18348 change for target/65249.
18350 2015-07-07 Paulo Matos <pmatos@broadcom.com>
18352 * symtab.c (address_matters_1): Fix typo in comment above.
18353 (can_increase_alignment_p): Likewise.
18355 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18357 * function.c (free_after_compilation): Clear PROP_cfg in
18358 f->curr_properties.
18360 2015-07-07 Richard Biener <rguenther@suse.de>
18362 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18364 (add_control_edge): Remove excessive vertical space in dumping.
18365 (process_ssa_edge_worklist): Simulate at most one statement and
18366 return whether we did. Do not simulate PHIs if they are in a
18367 BB not yet simulated.
18368 (ssa_propagate): Adjust to always drain the BB worklist whenever
18369 a BB is available there, likewise the VARYING edges list before
18370 the interesting edge list.
18372 2015-07-07 Christian Bruel <christian.bruel@st.com>
18375 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18377 2015-07-07 Richard Biener <rguenther@suse.de>
18379 PR middle-end/66739
18380 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18383 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18385 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
18386 modes for operands 0 and 3. Use SImode for operands 2 and 3.
18387 Copy operand 0 to a temporary if !ext_register_operand. Remove
18388 ancient extract_bit_field workaround.
18389 (insv<mode>_1): Rename from mov<mode>_insv_1.
18390 (*insvqi): Rename from *movqi_insv_2.
18391 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18392 for renamed insvsi_1.
18393 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18395 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
18397 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
18398 call to nvptx_reorg_subreg.
18400 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
18402 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18403 * graphite-dependencies.c, graphite-interchange.c,
18404 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18405 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18408 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
18410 * match.pd: Remove element_mode inside HONOR_*.
18411 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18412 (~X | X -> -1, ~X ^ X -> -1): Merge.
18413 * tree.c (build_each_one_cst): New function.
18414 * tree.h (build_each_one_cst): Likewise.
18416 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18418 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18421 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
18423 * config.gcc <mips*-*-*>: Add fused-madd.opt.
18424 * config/mips/mips.opt (mfused-madd): Remove.
18425 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18426 * config/mips/mips.h (TARGET_MIPS8000): New.
18427 (ISA_HAS_FP_MADD4_MSUB4): Remove.
18428 (ISA_HAS_FP_MADDF_MSUBF): Remove.
18429 (ISA_HAS_FP_MADD3_MSUB3): Remove.
18430 (ISA_HAS_NMADD4_NMSUB4): Remove.
18431 (ISA_HAS_NMADD3_NMSUB3): Remove.
18432 (ISA_HAS_FUSED_MADD4): New.
18433 (ISA_HAS_UNFUSED_MADD4): New.
18434 (ISA_HAS_FUSED_MADDF): New.
18435 (ISA_HAS_FUSED_MADD3): New.
18436 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18437 (*fma<mode>4_madd3) New.
18438 (*fma<mode>4_madd4) New.
18439 (*fma<mode>4_maddf) New.
18441 (*fms<mode>4_msub3) New.
18442 (*fms<mode>4_msub4) New.
18444 (*fnma<mode>4_nmadd3) New.
18445 (*fnma<mode>4_nmadd4) New.
18447 (*fnms<mode>4_nmsub3) New.
18448 (*fnms<mode>4_nmsub4) New.
18449 (*madd4<mode>) Modify to be unfused only.
18450 (*msub4<mode>) Modify to be unfused only.
18451 (*nmadd4<mode>) Modify to be unfused only.
18452 (*nmsub4<mode>) Modify to be unfused only.
18453 (*madd3<mode>) Remove.
18454 (*msub3<mode>) Remove.
18455 (*nmadd3<mode>) Remove.
18456 (*nmsub3<mode>) Remove.
18457 (*nmadd3<mode>_fastmath) Remove.
18458 (*nmsub3<mode>_fastmath) Remove.
18459 (*nmadd4<mode>_fastmath) Update condition.
18460 (*nmsub4<mode>_fastmath) Update condition.
18462 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18465 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18466 alignment attribute, exploring one level down for records and arrays.
18468 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18470 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
18471 modes for operands 0 and 1. Use SImode for operands 2 and 3.
18472 Copy operand 1 to a temporary if !ext_register_operand. Remove
18473 ancient extract_bit_field workaround.
18474 (*extv<mode>): Rename from *mov<mode>_extv_1.
18475 (*extvqi): Rename from *movqi_extv_1.
18476 (extzv<mode>): Rename from extzv. Use SWI248 modes for
18477 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
18478 to a temporary if !ext_register_operand. Remove ancient
18479 extract_bit_field workaround.
18480 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18481 (*extzvqi): Rename from *movqi_extzv_2.
18482 (*testqi_ext_3): Remove modes from const_int_operand predicated
18483 operands. Add "n" constraint.
18484 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18485 operand. Add "J" constraint.
18486 (*btsq, *btrq, *btcq peephole2s): Remove mode from
18487 const_0_to_63 predicated operand.
18488 (regmode): New insn attribute.
18489 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
18490 to nonmemory_operand. Use regmode insn attribute.
18491 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18492 (*jcc_bt<mode>_mask): Remove mode from operand 3.
18493 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18494 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18495 operands. Use "N" constraint instead of "n".
18497 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18499 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18501 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18504 * config/i386/i386.c (iamcu_cost): New.
18505 (m_IAMCU): Likewise.
18506 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18507 (processor_target_table): Add an entry for "iamcu".
18508 (processor_alias_table): Likewise.
18509 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18510 (ix86_adjust_cost): Likewise.
18511 (ia32_multipass_dfa_lookahead): Likewise.
18512 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18513 * config/i386/x86-tune.def: Updated for m_IAMCU.
18515 2015-07-06 Richard Biener <rguenther@suse.de>
18517 PR tree-optimization/66772
18518 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18519 values are available in the PHI node BB when there are
18520 still unexecutable edges.
18522 2015-07-06 Richard Biener <rguenther@suse.de>
18524 PR tree-optimization/66767
18525 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18526 Make sure to build the alignment test on a SSA name without
18527 final alignment info valid only if the alignment test
18530 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
18533 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18534 loop start when inserting LSETUP.
18536 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18539 * config/i386/i386.c (ix86_option_override_internal): Allow
18540 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18542 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18544 * read-md.c (decimal_string): Rename to ...
18545 (md_decimal_string): ... this.
18546 (handle_enum): Reflect this.
18548 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18551 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18553 2015-07-06 Richard Biener <rguenther@suse.de>
18555 PR middle-end/66759
18556 * match.pd: Add missing constraint of y to REAL_CST in
18557 REAL_CST - x CMP y to y - CST CMP x simplification.
18559 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
18561 PR tree-optimization/66757
18562 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18564 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
18565 Sandra Loosemore <sandra@codesourcery.com>
18567 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18568 Delete extern declaration.
18569 (gprel_constant_p): Add extern declaration.
18570 * config/nios2/constraints.md ("S"): Use gprel_constant_p
18571 instead of nios2_symbol_ref_in_small_data_p.
18572 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18573 (nios2_symbol_ref_in_small_data_p): Make static.
18574 (gprel_constant_p): Make non-static.
18576 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18578 * doc/fragments.texi (Target Fragment): Convert debian.org
18580 * doc/install.texi (Configuration): Ditto.
18582 2015-07-05 Jakub Jelinek <jakub@redhat.com>
18584 PR tree-optimization/66718
18585 * tree-vect-stmts.c (vectorizable_call): Replace uses of
18586 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18588 PR tree-optimization/66718
18589 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18590 vectorizable_load, vectorizable_condition): Move vectype,
18591 nunits, ncopies computation after checking what kind of statement
18594 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18596 * target-insns.def (extv, extzv, insv): New targetm instruction
18598 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18600 * recog.c (simplify_while_replacing): Likewise.
18602 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18604 * target-insns.def (doloop_begin, doloop_end): New targetm
18605 instruction patterns.
18606 * loop-init.c: Include target.h.
18607 (pass_loop2::gate): Use the new targetm patterns instead of
18608 HAVE_*/gen_* interface.
18609 (pass_rtl_doloop::gate): Likewise.
18610 (pass_rtl_doloop::execute): Remove preprocessor condition.
18611 * hw-doloop.c: Build unconditionally.
18612 * loop-doloop.c: Likewise.
18613 (doloop_optimize): Use the new targetm patterns instead of
18614 HAVE_*/gen_* interface.
18615 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18616 * modulo-sched.c (doloop_register_get): Likewise.
18618 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18620 * target-insns.def (clear_cache): New targetm instruction pattern.
18621 * builtins.c (expand_builtin___clear_cache): Use it instead of
18622 HAVE_*/gen_* interface.
18624 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18626 * target-insns.def (allocate_stack, check_stack, probe_stack)
18627 (probe_stack_address, split_stack_prologue, split_stack_space_check):
18628 New targetm instruction patterns.
18629 * explow.c (allocate_dynamic_stack_space): Use them instead of
18630 HAVE_*/gen_* interface.
18631 (emit_stack_probe): Likewise.
18632 (probe_stack_range): Likewise.
18633 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18635 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18637 * target-insns.def (stack_protect_set, stack_protect_test): New
18638 targetm instruction patterns.
18639 * cfgexpand.c (stack_protect_prologue): Use them instead of
18640 HAVE_*/gen_* interface.
18641 * function.c (stack_protect_epilogue): Likewise.
18643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18645 * expr.h (gen_move_insn_uncast): Delete.
18646 * expr.c (gen_move_insn_uncast): Delete.
18648 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18650 * target-insns.def (restore_stack_block, restore_stack_function)
18651 (restore_stack_nonlocal, save_stack_block, save_stack_function)
18652 (save_stack_nonlocal): New targetm instruction patterns.
18653 * builtins.c (expand_builtin_apply): Use them instead of
18654 HAVE_*/gen_* interface.
18655 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18657 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18659 * target-insns.def (trap): New targetm instruction pattern.
18660 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18662 * explow.c (allocate_dynamic_stack_space): Likewise.
18663 * ifcvt.c (find_if_header): Likewise.
18665 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18667 * target-insns.def (prefetch): New targetm instruction pattern.
18668 * tree-ssa-loop-prefetch.c: Include targeth.
18669 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18670 of HAVE_*/gen_* interface.
18671 * builtins.c (expand_builtin_prefetch): Likewise.
18672 * toplev.c (process_options): Likewise.
18674 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18676 * target-insns.def (untyped_call, untyped_return): New targetm
18677 instruction patterns.
18678 * builtins.c (expand_builtin_apply): Use them instead of
18679 HAVE_*/gen_* interface.
18680 (result_vector): Define unconditionally.
18682 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18684 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18685 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18686 (nonlocal_goto_receiver): New targetm instruction patterns.
18687 * builtins.c (expand_builtin_setjmp_setup): Use them instead
18688 of HAVE_*/gen_* interface.
18689 (expand_builtin_setjmp_receiver): Likewise.
18690 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18691 * except.c (expand_dw2_landing_pad_for_region): Likewise.
18693 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18695 * target.def: Add code_for_* hooks.
18696 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18697 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18698 * target-insns.def (casesi, tablejump): New targetm instruction
18700 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18701 (do_tablejump): Likewise.
18702 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18703 (expand_sjlj_dispatch_table): Likewise.
18704 * targhooks.c (default_case_values_threshold): Likewise.
18706 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
18708 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18709 Use rtx_insn * instead of rtx.
18710 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18711 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18712 (nios2_call_tls_get_addr): Likewise.
18713 (nios2_emit_expensive_div): Likewise.
18714 (nios2_emit_move_sequence): Change return type to bool.
18715 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18716 Change return type to bool.
18718 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18721 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18723 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
18726 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18727 of register_operand. Remove constraint.
18729 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
18731 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18732 the first argument.
18734 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
18736 * attribs.c (decl_attributes): Guard inform with the return value
18737 of the preceding warning.
18739 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18741 * doc/invoke.texi (moverride): Move to correct section.
18743 2015-07-03 Richard Biener <rguenther@suse.de>
18745 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18747 (dt_operand::gen_gimple_expr): After valueizing operands
18748 re-canonicalize operand order for commutative tree codes.
18750 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
18753 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18755 (__crc32w): Likewise.
18756 (__crc32d): Likewise.
18757 (__rdpmc): Likewise.
18758 (__rdtscp): Likewise.
18759 (_rdpmc): Likewise.
18760 (_rdtscp): Likewise.
18761 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18764 2015-07-03 Richard Biener <rguenther@suse.de>
18766 * fold-const.c (fold_mathfn_compare): Remove.
18767 (fold_inf_compare): Likewise.
18768 (fold_comparison): Move floating point comparison simplifications...
18769 * match.pd: ... to patterns here. Introduce simple_comparisons
18770 operator list and use it for patterns formerly in fold_comparison.
18772 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18774 PR tree-optimization/66119
18775 * toplev.c (process_options): Don't set up default values for
18776 the sra_max_scalarization_size_{speed,size} parameters.
18777 * tree-sra (analyze_all_variable_accesses): If no values
18778 have been set for the sra_max_scalarization_size_{speed,size}
18779 parameters, call get_move_ratio to get target defaults.
18781 2015-07-03 Richard Biener <rguenther@suse.de>
18783 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18784 * match.pd: ... here.
18786 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
18789 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18790 is not actually the default on FreeBSD.
18792 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18794 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18796 (CMPGE_8HI): Likewise.
18797 (CMPGE_4SI): Likewise.
18798 (CMPGE_2DI): Likewise.
18799 (CMPGE_U16QI): Likewise.
18800 (CMPGE_U8HI): Likewise.
18801 (CMPGE_U4SI): Likewise.
18802 (CMPGE_U2DI): Likewise.
18803 (CMPLE_16QI): Likewise.
18804 (CMPLE_8HI): Likewise.
18805 (CMPLE_4SI): Likewise.
18806 (CMPLE_2DI): Likewise.
18807 (CMPLE_U16QI): Likewise.
18808 (CMPLE_U8HI): Likewise.
18809 (CMPLE_U4SI): Likewise.
18810 (CMPLE_U2DI): Likewise.
18811 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18812 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18813 ALTIVEC_BUILTIN_VEC_CMPLE.
18814 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18815 floating-point vector modes.
18816 (vector_nlt<mode>): New define_expand.
18817 (vector_nltu<mode>): Likewise.
18818 (vector_ngt<mode>): Likewise.
18819 (vector_ngtu<mode>): Likewise.
18821 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18823 PR rtl-optimization/66706
18824 * combine.c (make_compound_operation): If an AND of SUBREG of
18825 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18827 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
18829 * tree-pass.h (make_pass_ch_vect): New.
18830 * passes.def: Add pass_ch_vect just before pass_if_conversion.
18832 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18833 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18834 make_pass_ch_vect): New.
18835 (pass_ch): Extend ch_base.
18837 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18838 (ch_base::copy_headers): ...here.
18840 2015-07-02 Richard Biener <rguenther@suse.de>
18842 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18843 * fold-const.c (get_pointer_modulus_and_residue): Remove.
18844 (fold_binary_loc): Implement (T)ptr & CST in terms of
18845 get_pointer_alignment_1.
18846 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18847 Make sure to build the alignment test on a SSA name without
18848 final alignment info valid only after the prologue.
18850 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
18852 * config/cris/cris.md ("epilogue"): Remove condition.
18853 ("prologue"): Ditto.
18855 2015-07-02 Richard Biener <rguenther@suse.de>
18857 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18858 parameter to record a condition that is false.
18859 (record_conditions): When recording an extra NE_EXPR that is
18860 true also record a EQ_EXPR that is false.
18862 2015-07-02 Bin Cheng <bin.cheng@arm.com>
18864 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18865 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18866 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
18867 (set_iv, find_interesting_uses_address, add_candidate_1): New
18868 argument to alloc_iv.
18869 (find_interesting_uses_op, find_interesting_uses_cond): Don't
18870 duplicate struct iv.
18871 (free_loop_data): Don't free struct iv explicitly.
18872 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18874 2015-07-01 DJ Delorie <dj@redhat.com>
18876 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18878 (SUPPORTS_DISCRIMINATOR): Define.
18880 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18883 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18884 there are no CALLs in the same pattern.
18886 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18888 PR rtl-optimization/61047
18889 * rtlanal.c (get_initial_register_offset): New function.
18890 (rtx_addr_can_trap_p_1): Check offsets of stack references.
18892 2015-07-01 Richard Biener <rguenther@suse.de>
18894 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18895 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18896 ~X CMP C -> X CMP' ~C to ...
18897 * match.pd: ... patterns here.
18899 2015-07-01 Nick Clifton <nickc@redhat.com>
18901 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18902 a 16-bit value into a 20-bit memory slot.
18904 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18906 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18907 "aarch64_tiny", "aarch64_small", "aarch64_large",
18908 "aarch64_little_endian", "aarch64_big_endian".
18910 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18912 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18913 Document "aarch64_small_fpic".
18915 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18917 * configure.ac: Add check for aarch64 assembler -fpic relocation
18919 * configure: Regenerate.
18920 * config.in: Regenerate.
18921 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18922 to -fPIC if not support of -fpic relocation modifier in assembler.
18924 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18927 * rtl.c (classify_insn): Handle returns in PARALLELs.
18929 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
18931 PR middle-end/66633
18932 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18933 to true if the function is nested and if not optimizing.
18934 (convert_local_omp_clauses): Initialize need_frame to true if the
18935 function contains nested functions and if not optimizing.
18937 2015-07-01 Richard Biener <rguenther@suse.de>
18939 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18940 (X & Y) ^ Y -> ~X & Y transforms to ...
18941 * match.pd: ... here.
18943 2015-07-01 Richard Biener <rguenther@suse.de>
18945 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18946 of converts to avoid uninteresting noise from the conversion
18947 simplifying patterns.
18949 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
18951 * config/c6x/c6x.c (try_rename_operands): Do not depend on
18952 gcc_assert evaluating its argument for side-effect.
18954 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
18957 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18960 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18962 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18963 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18964 (hash_scc): Add this_ref_p and ref_p parameters and pass them
18965 to the inner DFS walk.
18967 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18969 * target-insns.def (jump): New targetm instruction pattern.
18970 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18971 instead of gen_jump.
18972 (fix_up_crossing_landing_pad): Likewise.
18973 (add_labels_and_missing_jumps): Likewise.
18974 (fix_crossing_conditional_branches): Likewise.
18975 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18976 (force_nonfallthru_and_redirect): Likewise.
18977 * cse.c (cse_insn): Likewise.
18978 * expmed.c (expand_divmod): Likewise.
18979 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18980 * haifa-sched.c (init_before_recovery): Likewise.
18981 (sched_create_recovery_edges): Likewise.
18982 * ifcvt.c (find_cond_trap): Likewise.
18983 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18984 (expand_float, expand_fix): Likewise.
18985 * stmt.c (emit_jump): Likewise.
18987 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18989 * defaults.h (HAVE_load_multiple, gen_load_multiple)
18990 (HAVE_store_multiple, gen_store_multiple): Delete.
18991 * target-insns.def (load_multiple, store_multiple): New targetm
18992 instruction patterns.
18993 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18994 of HAVE_*/gen_* interface.
18996 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18998 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18999 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19000 (gen_mem_signal_fence): Delete.
19001 * target-insns.def (mem_signal_fence, mem_thread_fence)
19002 (memory_barrier): New targetm instruction patterns.
19003 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19005 (expand_mem_signal_fence): Likewise.
19007 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19009 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19010 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19011 targetm instruction patterns.
19012 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19014 * calls.c (expand_call): Likewise.
19015 * cfgrtl.c (cfg_layout_finalize): Likewise.
19016 * df-scan.c (df_get_entry_block_def_set): Likewise.
19017 (df_get_exit_block_use_set): Likewise.
19018 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19019 * final.c (final_start_function): Likewise.
19020 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19021 (reposition_prologue_and_epilogue_notes): Likewise.
19022 * reorg.c (find_end_label): Likewise.
19023 * toplev.c (process_options): Likewise.
19025 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19027 * typed-splay-tree.h: New file.
19029 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19032 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19033 (lra_substitute_pseudo_within_insn): Ditto.
19034 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19036 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19037 to lra_substitute_pseudo.
19038 * lra-lives.c (process_bb_lives): Add an argument to
19039 lra_substitute_pseudo_within_insn call.
19040 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19041 argument to lra_substitute_pseudo and
19042 lra_substitute_pseudo_within_insn calls.
19043 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19045 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19047 * configure: Regenerated.
19049 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19051 * config.gcc: Support i[34567]86-*-elfiamcu target.
19052 * config/i386/iamcu.h: New.
19053 * config/i386/i386.opt: Add -miamcu.
19054 * doc/invoke.texi: Document -miamcu.
19055 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19056 off x87/MMX/SSE/AVX codegen for -miamcu.
19057 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19058 __iamcu/__iamcu__ for -miamcu.
19059 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19060 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19061 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19062 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19063 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19064 MCU by default. Default long double to 64-bit for Intel MCU.
19065 Turn on -freg-struct-return for Intel MCU. Issue an error when
19066 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19068 (function_arg_advance_32): Pass value whose size is no larger
19069 than 8 bytes in registers for Intel MCU.
19070 (function_arg_32): Likewise.
19071 (ix86_return_in_memory): Return value whose size is no larger
19072 than 8 bytes in registers for Intel MCU.
19073 (iamcu_alignment): New function.
19074 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19076 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19077 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19080 2015-06-30 Marek Polacek <polacek@redhat.com>
19082 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19083 both operands of the resulting expression.
19085 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19086 the final expression with the operand's type and then convert
19087 it to the type of the expression.
19089 2015-06-30 Richard Biener <rguenther@suse.de>
19091 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19092 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19093 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19094 * match.pd: ... to patterns here.
19096 2015-06-30 Richard Biener <rguenther@suse.de>
19098 PR tree-optimization/66704
19099 * tree-vect-data-refs.c (vect_setup_realignment): Use
19100 make_ssa_name for non-SSA name source.
19102 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19104 PR middle-end/66702
19105 * omp-low.c (simd_clone_adjust): Handle addressable linear
19106 or uniform parameters or non-gimple type uniform parameters.
19108 2015-06-30 Richard Biener <rguenther@suse.de>
19110 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19111 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19112 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19113 * match.pd: ... here.
19114 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19115 Move (x & y) | x -> x and friends before
19116 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19118 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19120 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19121 -mfix-ut699 is not specified.
19122 (leon3_load): Rename into...
19123 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19126 2015-06-30 Marek Polacek <polacek@redhat.com>
19128 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19129 * match.pd: ... here.
19131 2015-06-30 Richard Biener <rguenther@suse.de>
19133 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19134 * fold-const.c (build_range_check): Replace uses of
19135 HAVE_canonicalize_funcptr_for_compare.
19136 (fold_widened_comparison): Likewise.
19137 (fold_sign_changed_comparison): Likewise.
19138 * dojump.c: Include "target.h".
19139 (do_compare_and_jump): Replace uses of
19140 HAVE_canonicalize_funcptr_for_compare and
19141 gen_canonicalize_funcptr_for_compare.
19142 * expr.c (do_store_flag): Likewise.
19144 2015-06-30 Tom de Vries <tom@codesourcery.com>
19146 PR tree-optimization/66652
19147 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19148 max_loop_iterations to determine if nit + 1 overflows.
19150 2015-06-30 Richard Biener <rguenther@suse.de>
19152 * tree-vrp.c (register_edge_assert_for_2): Also register
19153 asserts for dominating conversion results.
19155 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19157 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19158 field in struct iv.
19160 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19163 * configure.ac: Fix filds and fildq test for 64-bit.
19164 * configure: Regenerated.
19166 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
19168 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19169 (nvptx_reorg): Here. Keep the non-subreg pieces.
19171 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
19173 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19174 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19176 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
19178 * config/i386/i386.md (*jcc_1): Use %! in asm template.
19179 Set attribute "length_nobnd" instead of "length".
19182 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19184 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
19186 * config/nios2/nios2.c (nios2_delegitimize_address): Make
19187 assert less restrictive.
19189 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
19192 * cgraphunit.c (cgraph_node::finalize_function): Do not call
19193 do_warn_unused_parameter.
19194 * function.c (do_warn_unused_parameter): Move from here.
19195 * function.h (do_warn_unused_parameter): Do not declare.
19197 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19200 * gcc.target/arm/armv-sync-comp-swap.c: New.
19201 * gcc.target/arm/armv-sync-op-acquire.c: New.
19202 * gcc.target/arm/armv-sync-op-full.c: New.
19203 * gcc.target/arm/armv-sync-op-release.c: New.
19205 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19208 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19209 initial acquire barrier with final barrier.
19211 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19214 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19215 initial acquire barrier with final barrier.
19217 2015-06-29 Richard Henderson <rth@redhat.com>
19219 * config/i386/constraints.md (Bf): New constraint.
19220 * config/i386/i386-c.c (ix86_target_macros): Define
19221 __GCC_ASM_FLAG_OUTPUTS__.
19222 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19224 * doc/extend.texi (FlagOutputOperands): Document them.
19226 2015-06-29 Jiong Wang <jiong.wang@arm.com>
19228 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19229 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19231 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19232 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19233 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19234 (aarch64_symbol_context): Ditto.
19235 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19236 and use new pattern name.
19237 (aarch64_expand_mov_immediate): Ditto.
19238 (aarch64_print_operand): Ditto.
19239 (aarch64_classify_tls_symbol): Ditto.
19241 2015-06-29 Marek Polacek <polacek@redhat.com>
19242 Marc Glisse <marc.glisse@inria.fr>
19244 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19245 * match.pd: ... pattern here.
19247 2015-06-29 Tom de Vries <tom@codesourcery.com>
19249 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19250 function structure.
19252 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19254 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19255 feature description, split out the native option, add a link to
19256 the feature documentation, rearrange and slightly rewrite text.
19257 (Aarch64 options, -mcpu): Likewise.
19258 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
19259 +rdma implies Adv. SIMD.
19261 2015-06-29 Marek Polacek <polacek@redhat.com>
19264 * function.c (stack_protect_epilogue): Remove a cast to int.
19265 * doc/invoke.texi: Update -Wswitch-bool description.
19267 2015-06-29 Richard Biener <rguenther@suse.de>
19269 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19270 * fold-const.c (fold_binary_loc): Move &A - &B simplification
19271 via ptr_difference_const ...
19272 * match.pd: ... here.
19273 When matching (X ^ Y) == Y also match with swapped operands.
19275 2015-06-29 Richard Biener <rguenther@suse.de>
19277 * lto-streamer.h (LTO_major_version): Bump to 5.
19279 2015-06-29 Richard Biener <rguenther@suse.de>
19281 PR tree-optimization/66677
19282 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19283 STMT_VINFO_VEC_STMT clobbering less strict.
19285 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19287 PR middle-end/64130
19288 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19289 division, compute max and min when value ranges for dividend and
19290 divisor are available.
19292 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
19293 Sandra Loosemore <sandra@codesourcery.com>
19295 * regrename.h (regrename_do_replace): Change to return bool.
19296 * regrename.c (rename_chains): Check return value of
19297 regname_do_replace.
19298 (regrename_do_replace): Re-validate the modified insns and
19299 return bool status.
19300 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19301 Update to match rename_chains changes.
19302 * config/c6x/c6x.c (try_rename_operands): Assert that
19303 regrename_do_replace returns true.
19305 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
19307 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19308 operand 2 here. Use copy_addr_to_reg to copy non-index
19309 register operand 2 to a temporary.
19310 (<mode>_stx): Ditto for operand 1.
19311 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19312 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19313 (ix86_store_bounds): Ditto.
19315 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
19317 * print-tree.c (print_node) [TREE_VEC]: Print its length.
19319 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
19321 * gimple.c (gimple_call_set_fndecl): Remove.
19322 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19323 build1_loc directly instead of build_fold_addr_expr_loc.
19325 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19327 * hash-map.h (hash_map::traverse): Use the definition of the
19328 Key typedef rather than the typedef itself.
19330 2015-06-26 Martin Jambor <mjambor@suse.cz>
19333 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19334 NULL instead of calling dump_enabled_p.
19336 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19338 * config/aarch64/aarch64.opt: (override): New.
19339 * doc/invoke.texi (override): Document.
19340 * config/aarch64/aarch64.c (aarch64_flag_desc): New
19341 (aarch64_fusible_pairs): Likewise.
19342 (aarch64_tuning_flags): Likewise.
19343 (aarch64_tuning_override_function): Likewise.
19344 (aarch64_tuning_override_functions): Likewise.
19345 (aarch64_parse_one_option_token): Likewise.
19346 (aarch64_parse_boolean_options): Likewise.
19347 (aarch64_parse_fuse_string): Likewise.
19348 (aarch64_parse_tune_string): Likewise.
19349 (aarch64_parse_one_override_token): Likewise.
19350 (aarch64_parse_override_string): Likewise.
19351 (aarch64_override_options): Parse the -override string if it
19354 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19356 * config/aarch64/aarch64-protos.h (tune_params): Remove
19357 const from members.
19358 (aarch64_tune_params): Remove const, change to no longer be
19360 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19361 change to no longer be a pointer, initialize to generic_tunings.
19362 (aarch64_min_divisions_for_recip_mul): Change dereference of
19363 aarch64_tune_params to member access.
19364 (aarch64_reassociation_width): Likewise.
19365 (aarch64_rtx_mult_cost): Likewise.
19366 (aarch64_address_cost): Likewise.
19367 (aarch64_branch_cost): Likewise.
19368 (aarch64_rtx_costs): Likewise.
19369 (aarch64_register_move_cost): Likewise.
19370 (aarch64_memory_move_cost): Likewise.
19371 (aarch64_sched_issue_rate): Likewise.
19372 (aarch64_builtin_vectorization_cost): Likewise.
19373 (aarch64_override_options): Take a copy of the selected tuning
19374 struct in to aarch64_tune_params, rather than just setting
19375 a pointer, change dereferences of aarch64_tune_params to member
19377 (aarch64_override_options_after_change): Change dereferences of
19378 aarch64_tune_params to member access.
19379 (aarch64_macro_fusion_p): Likewise.
19380 (aarch_macro_fusion_pair_p): Likewise.
19381 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19383 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19385 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19386 (aarch64_tune_flags): Likewise.
19387 (AARCH64_TUNE_FMA_STEERING): Likewise.
19388 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19389 to AARCH64_FL_USE_FMA_STEERING_PASS.
19390 (cortex-a57.cortex-a53): Likewise.
19391 (cortex-a72): Use cortexa72_tunings.
19392 (cortex-a72.cortex-a53): Likewise.
19393 (exynos-m1): Likewise.
19394 * config/aarch64/aarch64-protos.h (tune_params): Add
19395 a field: extra_tuning_flags.
19396 * config/aarch64/aarch64-tuning-flags.def: New.
19397 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19398 (aarch64_extra_tuning_flags): Likewise.
19399 (aarch64_tune_params): Declare here.
19400 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19401 (cortexa53_tunings): Likewise.
19402 (cortexa57_tunings): Likewise.
19403 (thunderx_tunings): Likewise.
19404 (xgene1_tunings): Likewise.
19405 (cortexa72_tunings): New.
19406 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19407 (gate): Check against aarch64_tune_params.
19408 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19411 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19413 * config/aarch64/aarch64-fusion-pairs.def: New.
19414 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19415 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19416 aarch64_fusion_pairs.
19417 (AARCH64_FUSE_MOV_MOVK): Likewise.
19418 (AARCH64_FUSE_ADRP_ADD): Likewise.
19419 (AARCH64_FUSE_MOVK_MOVK): Likewise.
19420 (AARCH64_FUSE_ADRP_LDR): Likewise.
19421 (AARCH64_FUSE_CMP_BRANCH): Likewise.
19423 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19425 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19426 SYMBOL_SMALL_GOT_28K.
19427 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19428 relocation modifiers.
19429 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19430 (ldr_got_small_28k_<mode>): New.
19431 (ldr_got_small_28k_sidi): New.
19432 * config/aarch64/iterators.md (got_modifier): New mode iterator.
19433 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19434 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19435 SYMBOL_SMALL_GOT_28K.
19436 (aarch64_rtx_costs): Add costs for new instruction sequences.
19437 (initialize_aarch64_code_model): Initialize new model.
19438 (aarch64_classify_symbol): Recognize new model and new symbol classification.
19439 (aarch64_asm_preferred_eh_data_format): Support new model.
19440 (aarch64_load_symref_appropriately): Generate new instruction
19441 sequences for -fpic.
19442 (TARGET_USE_PSEUDO_PIC_REG): New definition.
19443 (aarch64_use_pseudo_pic_reg): New function.
19445 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19447 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19448 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19449 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19450 (aarch64_expand_mov_immediate): Ditto.
19451 (aarch64_print_operand): Ditto.
19452 (aarch64_classify_symbol): Ditto.
19454 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
19456 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19458 2015-06-26 Bin Cheng <bin.cheng@arm.com>
19461 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19462 assertion failed. Remove assertion itself.
19464 2015-06-26 Richard Biener <rguenther@suse.de>
19466 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19467 and -A CMP CST -> A CMP -CST which is redundant with a pattern
19469 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19470 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19471 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19472 * match.pd: ... patterns here.
19474 2015-06-26 Marek Polacek <polacek@redhat.com>
19476 * match.pd ((x | y) & ~(x & y) -> x ^ y,
19477 (x | y) & (~x ^ y) -> x & y): New patterns.
19479 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19481 * rtl.h (emit): Add an optional boolean parameter to control
19482 whether barriers are emitted.
19483 * emit-rtl.c (emit): Likewise.
19484 * gensupport.c (get_emit_function): Return null rather than "emit".
19485 * genemit.c (gen_emit_seq): Handle the null return value.
19486 Don't emit barriers after the final instruction in the sequence.
19487 * gentarget-def.c (main): Don't emit barriers after the instruction.
19489 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19491 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19492 TARGET_UNIFIED_ASM.
19494 2015-06-26 Richard Biener <rguenther@suse.de>
19496 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19498 2015-06-26 Richard Biener <rguenther@suse.de>
19500 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19501 irrespective on whether the inner operation has a single use
19502 of both off are constant.
19504 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
19505 Segher Boessenkool <segher@kernel.crashing.org>
19508 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19509 before doing PUT_MODE or PUT_CODE on operands to avoid
19510 in-place RTX modification.
19512 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19514 * gentarget-def.c (def_target_insn): Cast return of strtol to
19517 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19519 * gimple.h (gimple_call_set_fn): Move inline function.
19520 * gimple.c (gimple_call_set_fn): Relocate here.
19522 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
19526 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19527 the replacement insn will work.
19529 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19531 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19534 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19536 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19537 * cgraph.h: Include ipa-ref.h and plugin-api.h.
19538 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19539 (symtab_node::address_can_be_compared_p): Move function.
19540 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19542 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19543 * auto-profile.c: Likewise.
19544 * bb-reorder.c: Likewise.
19545 * builtins.c: Likewise.
19546 * calls.c: Likewise.
19547 * cfgexpand.c: Likewise.
19548 * cgraphbuild.c: Likewise.
19549 * cgraphclones.c: Likewise.
19550 * cgraphunit.c: Likewise.
19551 * combine.c: Likewise.
19552 * coverage.c: Likewise.
19553 * data-streamer-in.c: Likewise.
19554 * data-streamer-out.c: Likewise.
19555 * data-streamer.c: Likewise.
19556 * dbxout.c: Likewise.
19557 * dwarf2out.c: Likewise.
19558 * except.c: Likewise.
19559 * expr.c: Likewise.
19560 * final.c: Likewise.
19561 * fold-const.c: Likewise.
19562 * ggc-page.c: Likewise.
19563 * gimple-fold.c: Likewise.
19564 * gimple-iterator.c: Likewise.
19565 * gimple-pretty-print.c: Likewise.
19566 * gimple-streamer-in.c: Likewise.
19567 * gimple-streamer-out.c: Likewise.
19568 * gimple.c: Likewise.
19569 * gimplify.c: Likewise.
19570 * ipa-chkp.c: Likewise.
19571 * ipa-comdats.c: Likewise.
19572 * ipa-cp.c: Likewise.
19573 * ipa-devirt.c: Likewise.
19574 * ipa-icf-gimple.c: Likewise.
19575 * ipa-icf.c: Likewise.
19576 * ipa-inline-analysis.c: Likewise.
19577 * ipa-inline-transform.c: Likewise.
19578 * ipa-inline.c: Likewise.
19579 * ipa-polymorphic-call.c: Likewise.
19580 * ipa-profile.c: Likewise.
19581 * ipa-prop.c: Likewise.
19582 * ipa-pure-const.c: Likewise.
19583 * ipa-ref.c: Likewise.
19584 * ipa-reference.c: Likewise.
19585 * ipa-split.c: Likewise.
19586 * ipa-utils.c: Likewise.
19587 * ipa-visibility.c: Likewise.
19589 * langhooks.c: Likewise.
19590 * lto-cgraph.c: Likewise.
19591 * lto-compress.c: Likewise.
19592 * lto-opts.c: Likewise.
19593 * lto-section-in.c: Likewise.
19594 * lto-section-out.c: Likewise.
19595 * lto-streamer-in.c: Likewise.
19596 * lto-streamer-out.c: Likewise.
19597 * lto-streamer.c: Likewise.
19598 * omp-low.c: Likewise.
19599 * opts-global.c: Likewise.
19600 * passes.c: Likewise.
19601 * predict.c: Likewise.
19602 * print-tree.c: Likewise.
19603 * profile.c: Likewise.
19605 * sanopt.c: Likewise.
19606 * stor-layout.c: Likewise.
19607 * symtab.c: Likewise.
19608 * toplev.c: Likewise.
19609 * trans-mem.c: Likewise.
19610 * tree-cfg.c: Likewise.
19611 * tree-chkp.c: Likewise.
19612 * tree-eh.c: Likewise.
19613 * tree-emutls.c: Likewise.
19614 * tree-inline.c: Likewise.
19615 * tree-nested.c: Likewise.
19616 * tree-parloops.c: Likewise.
19617 * tree-pretty-print.c: Likewise.
19618 * tree-profile.c: Likewise.
19619 * tree-sra.c: Likewise.
19620 * tree-ssa-alias.c: Likewise.
19621 * tree-ssa-live.c: Likewise.
19622 * tree-ssa-loop-ivcanon.c: Likewise.
19623 * tree-ssa-loop-ivopts.c: Likewise.
19624 * tree-ssa-pre.c: Likewise.
19625 * tree-ssa-sccvn.c: Likewise.
19626 * tree-ssa-strlen.c: Likewise.
19627 * tree-ssa-structalias.c: Likewise.
19628 * tree-streamer-in.c: Likewise.
19629 * tree-streamer-out.c: Likewise.
19630 * tree-streamer.c: Likewise.
19631 * tree-switch-conversion.c: Likewise.
19632 * tree-tailcall.c: Likewise.
19633 * tree-vect-data-refs.c: Likewise.
19634 * tree-vect-stmts.c: Likewise.
19635 * tree-vectorizer.c: Likewise.
19636 * tree.c: Likewise.
19637 * tsan.c: Likewise.
19638 * ubsan.c: Likewise.
19639 * value-prof.c: Likewise.
19640 * varasm.c: Likewise.
19641 * varpool.c: Likewise.
19642 * config/arm/arm.c: Likewise.
19643 * config/bfin/bfin.c: Likewise.
19644 * config/c6x/c6x.c: Likewise.
19645 * config/cris/cris.c: Likewise.
19646 * config/darwin-c.c: Likewise.
19647 * config/darwin.c: Likewise.
19648 * config/i386/i386.c: Likewise.
19649 * config/i386/winnt.c: Likewise.
19650 * config/microblaze/microblaze.c: Likewise.
19651 * config/mips/mips.c: Likewise.
19652 * config/rs6000/rs6000.c: Likewise.
19653 * config/rx/rx.c: Likewise.
19654 * config/s390/s390.c: Likewise.
19655 * config/tilegx/mul-tables.c: Likewise.
19657 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19659 * config/aarch64/aarch64.c, config/alpha/alpha.c,
19660 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19661 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19662 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19663 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19664 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19665 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19666 config/microblaze/microblaze.c, config/mips/mips.c,
19667 config/mmix/mmix.c, config/mn10300/mn10300.c,
19668 config/moxie/moxie.c, config/msp430/msp430.c,
19669 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19670 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19671 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19672 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19673 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19674 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19675 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19676 target-def.h include.
19677 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
19679 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19681 * Makefile.in (TARGET_DEF): Add target-insns.def.
19682 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19683 (build/gentarget-def.o): New rule.
19684 (genprogrtl): Add target-def.
19685 * target-insns.def, gentarget-def.c: New files.
19686 * target.def: Add targetm.have_* and targetm.gen_* hooks,
19687 based on the contents of target-insns.def.
19688 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19689 (HAVE_return, gen_return): Delete.
19690 * target-def.h: Include insn-target-def.h.
19691 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19692 instead of direct calls. Rely on them to do the appropriate assertions.
19693 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
19694 (convert_jumps_to_returns): Use targetm interface instead of
19696 (thread_prologue_and_epilogue_insns): Likewise.
19697 * reorg.c (find_end_label, dbr_schedule): Likewise.
19698 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19699 * shrink-wrap.c (convert_to_simple_return): Likewise.
19700 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19704 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19705 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19706 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19707 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19708 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19709 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19710 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19711 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19712 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19713 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19714 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19715 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19716 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19717 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19718 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19719 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19722 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19724 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19725 (unbounded_int_hashmap_traits::key_type): Likewise.
19726 * hash-map.h (hash_map): Get the key type from the traits.
19727 * hash-traits.h (default_hash_traits): By default, inherit from the
19728 template parameter.
19729 * alias.c (alias_set_traits): Delete.
19730 (alias_set_entry_d::children): Use alias_set_hash as the first
19731 template parameter.
19732 (record_alias_subset): Update accordingly.
19733 * except.c (tree_hash_traits): Delete.
19734 (type_to_runtime_map): Use tree_hash as the first template parameter.
19735 (init_eh): Update accordingly.
19736 * genmatch.c (capture_id_map_hasher): Delete.
19737 (cid_map_t): Use nofree_string_hash as first template parameter.
19738 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19739 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19740 Use symbol_compare_hash as the first template parameter in
19741 subdivide_hash_map.
19742 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19743 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19744 template parameter.
19745 * passes.c (pass_registry_hasher): Delete.
19746 (name_to_pass_map): Use nofree_string_hash as the first template
19748 (register_pass_name): Update accordingly.
19749 * sanopt.c (sanopt_tree_map_traits): Delete.
19750 (sanopt_tree_triplet_map_traits): Delete.
19751 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19752 template parameter.
19753 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19754 the first template parameter.
19755 * sese.c (rename_map_hasher): Delete.
19756 (rename_map_type): Use tree_ssa_name_hash as the first template
19758 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19759 (function_summary::m_map): Use map_hash as the first template
19761 (function_summary::release): Update accordingly.
19762 * tree-if-conv.c (phi_args_hash_traits): Delete.
19763 (predicate_scalar_phi): Use tree_operand_hash as the first template
19764 parameter to phi_arg_map.
19765 * tree-inline.h (dependence_hasher): Delete.
19766 (copy_body_data::dependence_map): Use dependence_hash as the first
19767 template parameter.
19768 * tree-inline.c (remap_dependence_clique): Update accordingly.
19769 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19770 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19772 (addr_stridxptr): Update accordingly.
19773 * value-prof.c (profile_id_traits): Delete.
19774 (cgraph_node_map): Use profile_id_hash as the first template
19776 (init_node_map): Update accordingly.
19777 * config/alpha/alpha.c (string_traits): Delete.
19778 (machine_function::links): Use nofree_string_hash as the first
19779 template parameter.
19780 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19781 * config/m32c/m32c.c (pragma_traits): Delete.
19782 (pragma_htab): Use nofree_string_hash as the first template parameter.
19783 (m32c_note_pragma_address): Update accordingly.
19784 * config/mep/mep.c (pragma_traits): Delete.
19785 (pragma_htab): Use nofree_string_hash as the first template parameter.
19786 (mep_note_pragma_flag): Update accordingly.
19787 * config/mips/mips.c (mips16_flip_traits): Delete.
19788 (mflip_mips16_htab): Use nofree_string_hash as the first template
19790 (mflip_mips16_use_mips16_p): Update accordingly.
19791 (local_alias_traits): Delete.
19792 (mips16_local_aliases): Use nofree_string_hash as the first template
19794 (mips16_local_alias): Update accordingly.
19796 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19798 * hash-map-traits.h (default_hashmap_traits): Delete.
19800 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19802 * hash-map-traits.h (unbounded_hashmap_traits): New class.
19803 (unbounded_int_hashmap_traits): Likewise.
19804 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19806 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19808 * ipa-icf.h (symbol_compare_hash): New class.
19809 (symbol_compare_hashmap_traits): Use it.
19810 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19811 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19812 (mem_alloc_description::reverse_mem_map_t): Remove redundant
19813 default_hashmap_traits.
19814 * sanopt.c (sanopt_tree_triplet_hash): New class.
19815 (sanopt_tree_triplet_map_traits): Use it.
19817 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19819 * gengtype-parse.c (require_template_declaration): Allow '+' in
19820 template parameters. Consolidate cases.
19821 * hash-traits.h (int_hash): New class.
19822 * alias.c (alias_set_hash): New structure.
19823 (alias_set_traits): Use it.
19824 * symbol-summary.h (function_summary::map_hash): New class.
19825 (function_summary::summary_hashmap_traits): Use it.
19826 * tree-inline.h (dependence_hash): New class.
19827 (dependence_hasher): Use it.
19828 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19829 * value-prof.c (profile_id_hash): New class.
19830 (profile_id_traits): Use it.
19832 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19834 * config/mips/mips.c (mips16_flip_traits): Use it.
19835 (local_alias_traits, mips16_local_aliases): Convert from a map of
19836 rtxes to a map of symbol names.
19837 (mips16_local_alias): Update accordingly.
19839 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19841 * hash-traits.h (string_hash, nofree_string_hash): New classes.
19842 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19843 * passes.c (pass_registry_hasher): Likewise.
19844 * config/alpha/alpha.c (string_traits): Likewise.
19845 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19846 * config/m32c/m32c.c (pragma_traits): Likewise.
19847 * config/mep/mep.c (pragma_traits): Likewise.
19849 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19851 * tree-hash-traits.h (tree_hash): New class.
19852 * except.c: Include tree-hash-traits.h.
19853 (tree_hash_traits): Use tree_hash.
19855 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19857 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19858 * sese.c: Include tree-hash-traits.h.
19859 (rename_map_hasher): Use tree_ssa_name_hasher.
19861 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19863 * tree-hash-traits.h (tree_decl_hash): New class.
19864 * tree-ssa-strlen.c: Include tree-hash-traits.h.
19865 (stridxlist_hash_traits): Use tree_decl_hash.
19867 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19869 * tree-hash-traits.h: New file.
19870 (tree_operand_hash): New class.
19871 * sanopt.c: Include tree-hash-traits.h.
19872 (sanopt_tree_map_traits): Use tree_operand_hash.
19873 * tree-if-conv.c: Include tree-hash-traits.h.
19874 (phi_args_hash_traits): Use tree_operand_hash.
19875 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19876 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19878 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19880 * hash-map-traits.h: Include hash-traits.h.
19881 (simple_hashmap_traits): New class.
19882 * mem-stats.h (hash_map): Change the default traits to
19883 simple_hashmap_traits<default_hash_traits<Key> >.
19885 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19887 * hash-table.h: Update comments.
19889 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19891 * hash-traits.h (default_hash_traits): New structure.
19892 * hash-set.h (default_hashset_traits): Delete.
19893 (hash_set): Use default_hash_traits<Key> instead of
19894 default_hashset_traits. Delete hash_entry type and use Key directly.
19895 * ipa-devirt.c (pair_traits): Delete.
19896 (default_hash_traits <type_pair>): Override.
19897 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19898 (odr_types_equivalent_p, add_type_duplicate): Likewise.
19900 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19902 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19906 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19907 (has_is_empty, is_empty_helper): Delete.
19908 (has_mark_deleted, mark_deleted_helper): Delete.
19909 (has_mark_empty, mark_empty_helper): Delete.
19910 (hash_table::is_deleted): Call the Descriptor unconditionally.
19911 (hash_table::is_empty): Likewise.
19912 (hash_table::mark_deleted): Likewise.
19913 (hash_table::mark_empty): Likewise.
19915 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19917 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
19918 redundant typedefs and members.
19919 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
19920 redundant typedefs.
19921 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19922 * ipa-devirt.c (odr_name_hasher): Likewise.
19923 (polymorphic_call_target_hasher): Likewise.
19924 * ira-costs.c (cost_classes_hasher): Likewise.
19925 * statistics.c (stats_counter_hasher): Likewise.
19926 * trans-mem.c (log_entry_hasher): Likewise.
19927 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19928 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19929 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19930 * var-tracking.c (variable_hasher): Likewise.
19931 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19932 Remove redundant typedefs and members.
19934 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19936 * hash-traits.h (ggc_cache_hasher): Rename to...
19937 (ggc_cache_remove): ...this and remove typedefs.
19938 (ggc_cache_ptr_hash): New class.
19939 * hash-table.h: Update commentary.
19940 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19941 rather than ggc_cache_hasher.
19942 (const_wide_int_hasher, reg_attr_hasher): Likewise.
19943 (const_double_hasher, const_fixed_hasher): Likewise.
19944 * function.c (insn_cache_hasher): Likewise.
19945 * trans-mem.c (tm_wrapper_hasher): Likewise.
19946 * tree.h (tree_decl_map_cache_hasher): Likewise.
19947 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19948 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19949 * ubsan.c (tree_type_map_cache_hasher): Likewise.
19950 * varasm.c (tm_clone_hasher): Likewise.
19951 * config/i386/i386.c (dllimport_hasher): Likewise.
19952 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19953 (tree_hasher): Likewise.
19955 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19957 * hash-traits.h (ggc_hasher): Rename to...
19958 (ggc_remover): ...this and remove typedefs.
19959 (ggc_cache_hasher): Update accordingly. Add typedefs.
19960 (ggc_ptr_hash): New class.
19961 * hash-table.h: Update comment.
19962 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19964 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19965 (tree_descriptor_hasher): Likewise.
19966 * cgraph.c (function_version_hasher): Likewise.
19967 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19968 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19969 (dw_loc_list_hasher, addr_hasher): Likewise.
19970 * function.h (used_type_hasher): Likewise.
19971 * function.c (temp_address_hasher): Likewise.
19972 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19973 * libfuncs.h (libfunc_hasher): Likewise.
19974 * lto-streamer.h (decl_state_hasher): Likewise.
19975 * optabs.c (libfunc_decl_hasher): Likewise.
19976 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19977 * varasm.c (section_hasher, object_block_hasher): Likewise.
19978 (const_rtx_desc_hasher): Likewise.
19979 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19980 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19982 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19984 * hash-traits.h (free_ptr_hash): New class.
19985 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19986 rather than typed_free_remove. Remove redudant typedefs.
19987 (external_ref_hasher): Likewise.
19988 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19989 (ehspec_hasher): Likewise.
19990 * ggc-common.c (saving_hasher): Likewise.
19991 * gimplify.c (gimplify_hasher): Likewise.
19992 * haifa-sched.c (delay_i2_hasher): Likewise.
19993 * loop-invariant.c (invariant_expr_hasher): Likewise.
19994 * loop-iv.c (biv_entry_hasher): Likewise.
19995 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19996 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19997 * tree-cfg.c (locus_discrim_hasher): Likewise.
19998 * tree-eh.c (finally_tree_hasher): Likewise.
19999 * tree-into-ssa.c (var_info_hasher): Likewise.
20000 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20001 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20002 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20003 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20004 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20005 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20006 (shared_bitmap_hasher): Likewise.
20007 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20008 * tree-vectorizer.h (peel_info_hasher): Likewise.
20009 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20010 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20012 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20014 * hash-table.h: Update comments.
20015 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20016 (nofree_ptr_hash): New class.
20017 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20018 than typed_noop_remove. Remove redudant typedefs.
20019 * attribs.c (attribute_hasher): Likewise.
20020 * cfg.c (bb_copy_hasher): Likewise.
20021 * cselib.c (cselib_hasher): Likewise.
20022 * dse.c (invariant_group_base_hasher): Likewise.
20023 * dwarf2cfi.c (trace_info_hasher): Likewise.
20024 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20025 (comdat_type_hasher, loc_list_hasher): Likewise.
20026 * gcse.c (pre_ldst_expr_hasher): Likewise.
20027 * genmatch.c (id_base): Likewise.
20028 * genrecog.c (test_pattern_hasher): Likewise.
20029 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20030 * haifa-sched.c (delay_i1_hasher): Likewise.
20031 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20032 * ipa-icf.h (congruence_class_group_hash): Likewise.
20033 * ipa-profile.c (histogram_hash): Likewise.
20034 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20035 * lto-streamer.h (string_slot_hasher): Likewise.
20036 * lto-streamer.c (tree_entry_hasher): Likewise.
20037 * plugin.c (event_hasher): Likewise.
20038 * postreload-gcse.c (expr_hasher): Likewise.
20039 * store-motion.c (st_expr_hasher): Likewise.
20040 * tree-sra.c (uid_decl_hasher): Likewise.
20041 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20042 (ssa_name_var_hash): Likewise.
20043 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20044 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20045 * tree-ssa-pre.c (pre_expr_d): Likewise.
20046 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20047 * vtable-verify.h (registration_hasher): Likewise.
20048 * vtable-verify.c (vtbl_map_hasher): Likewise.
20049 * config/arm/arm.c (libcall_hasher): Likewise.
20050 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20051 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20052 * config/sol2.c (comdat_entry_hasher): Likewise.
20053 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20054 (print_fold_checksum, fold_checksum_tree): Likewise.
20055 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20056 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20057 (fold_build_call_array_loc): Likewise.
20058 * tree-ssa-ccp.c (gimple_htab): Likewise.
20059 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20060 rather than pointer_type.
20062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20064 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20065 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20067 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20069 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20070 (ggc_hasher::ggc_mx): Likewise.
20071 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20072 that duplicate ggc_hasher ones.
20074 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20076 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20077 (gt_cleare_cache): Check here for deleted and empty entries.
20078 Replace handle_cache_entry with a call to keep_cache_entry.
20079 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20080 (ggc_cache_hasher::keep_cache_entry): New function.
20081 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20082 (tm_wrapper_hasher::keep_cache_entry): New function.
20083 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20084 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20085 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20086 (type_cache_hasher::keep_cache_entry): New function.
20087 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20088 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20089 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20090 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20091 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20092 (tm_clone_hasher::keep_cache_entry): New function.
20093 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20094 (dllimport_hasher::keep_cache_entry): New function.
20096 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20098 * hash-table.h: Include hash-traits.h.
20099 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20100 (ggc_cache_hasher): Move to...
20101 * hash-traits.h: ...this new file.
20103 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20105 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20106 struct cl_optimization.
20107 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20108 * tree.c (make_node_stat): Allocate cl_optimization struct.
20109 (copy_node_stat): Allocate and copy cl_optimization struct.
20111 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20113 * function.h (struct incoming_args): Move struct.
20114 (pass_by_reference, reference_callee_copied): Remove prototypes.
20115 * emit-rtl.h (struct incoming_args): Relocate struct here.
20116 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20118 * function.c (pass_by_reference, reference_callee_copied): Move.
20119 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20120 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20121 * ipa-chkp.c: Include calls.h.
20123 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20125 * alias.h (alias_set_type): Move typedef.
20126 * coretypes.h (alias_set_type): Relocate typedef here.
20127 * rtl.h: Don't include alias.h.
20129 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20131 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20132 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20134 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20135 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20137 * calls.c: Include hard-reg-set.h before rtl.h.
20140 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20141 Vladimir Makarov <vmakarov@redhat.com>
20143 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20146 2015-06-25 Richard Biener <rguenther@suse.de>
20148 * fold-const.c (fold_binary_loc): Move simplification of
20149 (X <<>> C1) & C2 ...
20150 * match.pd: ... here.
20152 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20154 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20156 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20158 * match.pd: Add patterns for vec_conds between 1 and 0.
20160 2015-06-25 Richard Biener <rguenther@suse.de>
20162 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20163 STMT_VINFO_VEC_STMT for SLP.
20164 (vectorizable_store): Likewise.
20165 (vectorizable_load): Likewise.
20166 (vect_transform_stmt): Catch SLP vectorization clobbering
20167 STMT_VINFO_VEC_STMT.
20169 2015-06-25 Richard Biener <rguenther@suse.de>
20171 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20173 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20174 cleanup resulting dead code and parameters.
20175 (vect_transform_slp_perm_load): Adjust.
20177 2015-06-25 Nick Clifton <nickc@redhat.com>
20179 * config/bfin/bfin.c (bfin_expand_prologue): Set
20180 current_function_static_stack_size if flag_stack_usage_info is set.
20181 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20182 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20183 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20184 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20186 2015-06-25 Tom de Vries <tom@codesourcery.com>
20188 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20189 comment that the generated IV is unsigned.
20191 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20194 * config/arm/arm.c (arm_dbx_register_number): Return
20195 DWARF_FRAME_REGISTERS by default.
20197 2015-06-25 Tom de Vries <tom@codesourcery.com>
20199 * dominance.c (calculate_dominance_info): Fix verify_dominators call
20200 argument. Call verify_dominator when reusing dominator info.
20202 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
20205 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20206 an additional element of the unspec vector. Modify indices
20208 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20209 * config/sh/sh.c (prepare_move_operands): Pass incremented
20210 const_int to gen_GOTaddr2picreg.
20211 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20213 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20215 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20216 Condition on TARGET_FLOAT.
20218 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20220 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20223 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20225 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20227 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20228 aarch64_err_no_fpadvsimd.
20230 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20231 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20232 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20233 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20234 Turn error into assert, test TARGET_FLOAT.
20235 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20238 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
20241 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20243 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20245 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20247 2015-06-24 Renlin Li <renlin.li@arm.com>
20249 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20250 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20252 2015-06-24 Richard Biener <rguenther@suse.de>
20254 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20256 (lower_opt_convert): Support lowering of conditional view_convert.
20257 (parser::parse_operation): Likewise.
20258 (parser::parse_for): Likewise.
20260 2015-06-24 Renlin Li <renlin.li@arm.com>
20262 * varasm.c (emit_local): Use unsigned int for align variable.
20264 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20267 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20268 for negative numbers.
20270 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20272 PR rtl-optimization/66306
20273 * reload.c (find_reloads): Swap the match_dup info for
20274 commutative operands.
20276 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20278 * config/s390/vx-builtins.md
20279 ("vec_scatter_element<mode>_<non_vec_int>")
20280 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20281 attribute with bhfgq.
20283 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20285 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20287 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20289 * config/s390/s390-builtin-types.def: Add flag to indicate the
20290 options under which the function type is needed.
20291 * config/s390/s390-builtins.def: Add flag to indicate the options
20292 under which the builtin is enabled.
20293 * config/s390/s390-builtins.h: Add flags parameter to macro
20295 (bflags_for_builtin): New function.
20296 (flags_for_builtin): Renamed to ...
20297 (opflags_for_builtin): ... this.
20298 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20299 flags_for_builtin to bflags_for_builtin and
20300 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20301 * config/s390/s390.c: Add initialization of bflags_builtin and
20302 opflags_builtin arrays.
20303 Remove code for flags_builtin.
20304 (s390_init_builtins): Only create builtin function types if one of
20305 their flags is active.
20306 Only create builtins if all of their flags are active.
20307 (s390_expand_builtin): Rename flags_for_builtin to
20308 opflags_for_builtin.
20310 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20312 * config/s390/vecintrin.h: Remove internal builtins.
20314 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20316 * config/s390/s390.c (s390_secondary_reload): Fix check for
20317 GENERAL_REGS register class.
20319 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20321 * config/s390/s390.c (s390_support_vector_misalignment): Call
20322 default implementation for !TARGET_VX.
20324 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20326 * config/s390/s390.c (s390_legitimate_constant_p): Add
20329 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20331 * config/s390/s390.c (s390_vector_abi): New variable definition.
20332 (s390_check_type_for_vector_abi): New function.
20333 (TARGET_ASM_FILE_END): New macro definition.
20334 (s390_asm_file_end): New function.
20335 (s390_function_arg): Call s390_check_type_for_vector_abi.
20336 (s390_gimplify_va_arg): Likewise.
20337 * configure: Regenerate.
20338 * configure.ac: Check for .gnu_attribute Binutils feature.
20340 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
20343 * config/bfin/bfin.c (hwloop_optimize): Initialize
20344 JUMP_LABEL for newly created jump.
20346 2015-06-23 Tristan Gingold <gingold@adacore.com>
20348 * collect-utils.c (collect_wait): Unlink the response file here
20350 (do_wait): ...here.
20351 (utils_cleanup): ...and here.
20353 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
20355 * df-scan.c: Don't include target-def.h.
20356 * targhooks.c: Likewise.
20357 * config/arm/arm-c.c: Likewise.
20358 * config/i386/i386-c.c: Likewise.
20359 * config/nds32/nds32-cost.c: Likewise.
20360 * config/nds32/nds32-fp-as-gp.c: Likewise.
20361 * config/nds32/nds32-intrinsic.c: Likewise.
20362 * config/nds32/nds32-isr.c: Likewise.
20363 * config/nds32/nds32-md-auxiliary.c: Likewise.
20364 * config/nds32/nds32-memory-manipulation.c: Likewise.
20365 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20366 * config/nds32/nds32-predicates.c: Likewise.
20368 2015-06-23 Richard Biener <rguenther@suse.de>
20370 PR tree-optimization/66636
20371 * tree-vect-stmts.c (vectorizable_store): Properly compute the
20372 def type for further defs for strided stores.
20374 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
20376 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20377 conditional selects.
20378 (setcc_int<mode>, setcc_float<mode>): Reformat.
20380 2015-06-23 Marek Polacek <polacek@redhat.com>
20382 * match.pd ((x + y) - (x | y) -> x & y,
20383 (x + y) - (x & y) -> x | y): New patterns.
20385 2015-06-23 Ludovic Courtès <ludo@gnu.org>
20388 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20389 '-dynamic-linker' within %{!shared: ...}.
20391 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
20394 * config/i386/predicates.md (addsub_vm_operator): New predicate.
20395 (addsub_vs_operator): Ditto.
20396 (addsub_vs_parallel): Ditto.
20397 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20398 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20399 Put minus RTX before plus and adjust vec_merge selector.
20400 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20401 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20402 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20403 (addsub vec_merge splitters): New combiner splitters.
20404 (addsub vec_select/vec_concat splitters): Ditto.
20406 2015-06-23 Bin Cheng <bin.cheng@arm.com>
20408 PR tree-optimization/66449
20409 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20410 POINTER_PLUS_EXPR for pointers.
20412 2015-06-23 Alan Modra <amodra@gmail.com>
20414 * rtlanal.c (commutative_operand_precedence): Correct comments.
20415 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20416 declaration. Return an int. Distinguish REG,REG return from
20418 (struct simplify_plus_minus_op_data): Make local to function.
20419 (simplify_plus_minus): Don't set canonicalized if merely sorting
20420 registers. Avoid packing ops if nothing changes. White space fixes.
20422 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
20424 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20425 -fdump-ada-spec is passed but not if -fsyntax-only is.
20427 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
20430 * lra-lives.c (process_bb_lives): Check insn copying the same
20431 reload pseudo and don't create a copy for it.
20433 2015-06-22 Tom de Vries <tom@codesourcery.com>
20435 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20438 2015-06-22 Tom de Vries <tom@codesourcery.com>
20440 * builtins.def (DEF_GOMP_BUILTIN): Test
20441 'flag_tree_parallelize_loops > 1' instead of
20442 'flag_tree_parallelize_loops'. Test flag_cilkplus.
20444 2015-06-22 Tom de Vries <tom@codesourcery.com>
20446 * dominance.c (calculate_dominance_info): Verify dominators if
20449 2015-06-22 Marek Polacek <polacek@redhat.com>
20451 * match.pd ((x ^ y) ^ (x | y) -> x & y,
20452 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20453 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20454 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20456 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
20459 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20460 cost of embedded comparison.
20462 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20465 * config/rs6000/predicates.md (altivec_register_operand): Permit
20466 virtual stack registers.
20467 (vsx_register_operand): Likewise.
20468 (vfloat_operand): Likewise.
20469 (vint_operand): Likewise.
20470 (vlogical_operand): Likewise.
20472 2015-06-22 Richard Biener <rguenther@suse.de>
20474 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20475 and single_scalar_iteration_cost members.
20476 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20477 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20478 (vect_get_single_scalar_iteration_cost): Remove.
20479 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20480 Use LOOP_VINFO_SCALAR_ITERATION_COST.
20481 * tree-vect-loop.c (destroy_loop_vec_info): Free
20483 (vect_get_single_scalar_iteration_cost): Compute result into
20484 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20485 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
20486 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20487 (vect_estimate_min_profitable_iters): Use them.
20489 2015-06-22 Christian Bruel <christian.bruel@st.com>
20492 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20493 (TARGET_INSERT_ATTRIBUTES): Define.
20494 (thumb_flipper): New var.
20495 * config/arm/arm.opt (-mflip-thumb): New switch.
20497 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20498 Martin Liska <mliska@suse.cz>
20501 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20502 construction of arg_types.
20503 (sem_function::sem_function): Likewise.
20504 (sem_function::~sem_function): Remove destruction of arg_types.
20505 (sem_function::compatible_parm_types_p): New function.
20506 (sem_function::equals_wpa): Reorg matching of return values
20507 and parameter types.
20508 (sem_function::equals_private): Reorg mathcing of argument types.
20509 (sem_function::parse_tree_args): Remove.
20510 * ipa-icf.h (init_wpa): Do not call it.
20511 (parse_tree_args): Remove.
20512 (compatible_parm_types_p): Declare.
20513 (result_type): Remove.
20514 (arg_types): Remove.
20516 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20519 * ipa-polymorphic-call.c
20520 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20521 initializing alias oracle; fix formating; set base_alias_set if it
20524 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
20526 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20527 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20528 (find_inc): Likewise.
20529 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20531 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20532 * df-scan.c (df_swap_refs): Remove.
20533 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20534 * dominance.c (link_roots): Use std::swap instead of manually swapping.
20535 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20536 * fold-const.c (fold_relational_const): Likewise.
20537 * genattrtab.c (simplify_test_exp): Likewise.
20538 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20539 gimple_simplify): Likewise.
20540 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20541 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20542 * ipa-devirt.c (add_type_duplicate): Likewise.
20543 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20544 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20545 * lra.c (lra_create_copy): Likewise.
20546 * lto-streamer-out.c (DFS::DFS): Likewise.
20547 * modulo-sched.c (get_sched_window): Likewise.
20548 * omega.c (omega_pretty_print_problem): Likewise.
20549 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20550 * reload1.c (reloads_unique_chain_p): Likewise.
20551 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20552 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20554 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20556 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20557 predicate_mem_writes): Likewise.
20558 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20559 * tree-predcom.c (combine_chains): Likewise.
20560 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20561 refs_may_alias_p_1): Likewise.
20562 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20563 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20564 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20565 number_of_iterations_cond): Likewise.
20566 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20567 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20568 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20569 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20570 * tree-vrp.c (extract_range_from_binary_expr_1,
20571 extract_range_from_unary_expr_1): Likewise.
20573 2015-06-20 Marek Polacek <polacek@redhat.com>
20575 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20577 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
20580 * config/sh/sh.c (prepare_move_operands): Replace subreg
20581 index term with R0 for base and index addressing.
20583 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
20585 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20587 (movsf_aarch64): Change condition from register_operand to
20588 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
20589 load1. Change type for alternative 7 to store1.
20590 (movdf_aarch64): Likewise.
20592 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
20594 * config/vax/vax.md: Adjust sign/zero extend patterns to
20595 handle SUBREGs in operands[1].
20597 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20599 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20600 of manually swapping.
20601 (expand_vec_perm_interleave2): Likewise.
20603 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
20605 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20606 reuse bounds created for abnormal ssa names.
20608 2015-06-19 Jakub Jelinek <jakub@redhat.com>
20610 * config/nvptx/nvptx.md (allocate_stack): Rename to...
20611 (allocate_stack_<mode>): ... this, and add :P on both
20612 match_operand and unspec.
20613 (allocate_stack): New expander.
20615 2015-06-19 Christian Bruel <christian.bruel@st.com>
20619 * config/arm/arm.c (arm_set_current_function): Handle
20620 explicit default options.
20622 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20624 * config/i386/i386.md (*movsicc_noc_zext): New insn.
20625 (zero-extended cmove with mem peephole2): New pattern.
20626 (cmove with mem peephole2): Merge patterns.
20628 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20630 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20632 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
20634 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20635 * config/mips/mips.md (*madd4<mode>): Ditto.
20636 (*nmadd3<mode>) Ditto.
20637 (*nmadd4<mode>_fastmath): Ditto.
20638 (*nmadd3<mode>_fastmath): Ditto.
20639 (*nmsub4<mode>): Ditto.
20640 (*nmsub3<mode>): Ditto.
20641 (*nmsub4<mode>_fastmath): Ditto.
20642 (*nmsub3<mode>_fastmath): Ditto.
20644 2015-06-18 Michael Matz <matz@suse.de>
20646 PR middle-end/66253
20647 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20648 grouped strided stores.
20649 (vectorizable_load): Don't use the DR from first_stmt in
20650 the non-SLP grouped strided case.
20652 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20655 * function.c (assign_bounds): Add arguments assign_regs,
20656 assign_special, assign_bt.
20657 (assign_parms): For vararg functions handle bounds in BT
20658 and special slots after incoming vararg bounds.
20660 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20662 PR middle-end/66568
20663 * cfgexpand.c (expand_return): Handle missing bounds.
20664 (expand_gimple_stmt_1): Likewise.
20665 * tree-chkp.c (chkp_expand_zero_bounds): New.
20666 * tree-chkp.h (chkp_expand_zero_bounds): New.
20668 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20670 PR middle-end/66567
20671 * ipa-chkp.c (chkp_maybe_create_clone): Require
20672 functions to be instrumentable.
20673 * tree-chkp.c (chkp_replace_function_pointer): Use
20674 chkp_instrumentable_p instead of attribute check.
20676 2015-06-18 Richard Biener <rguenther@suse.de>
20678 PR tree-optimization/66510
20679 * tree-vect-stmts.c (vectorizable_load): Properly compute the
20680 number of vector loads for SLP permuted loads.
20681 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20682 check the stride for loop vectorization.
20683 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20684 vectorization factor.
20685 (vect_analyze_group_access): If the group size is not a power
20686 of two require a epilogue loop.
20687 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20688 compute and optimizing and alias test pruning after final
20689 vectorization factor computation.
20690 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20692 (vect_transform_slp_perm_load): Properly compute the original
20693 number of vector load stmts.
20695 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20697 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20698 "unlikely character , in @var" warning.
20700 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
20702 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20703 (ix86_function_arg_advance): Ditto.
20704 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
20706 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20708 * function.h (struct rtl_data): Remove struct and accessor macros.
20709 * emit-rtl.h (struct rtl_data): Relocate to here.
20710 * Makefile.in (GTFILES): Add emit-rtl.h.
20711 * df-core.c: Include emit-rtl.h.
20712 * genattrtab.c: Likewise.
20713 * genconditions.c: Likewise.
20714 * genpreds.c: Likewise.
20715 * genrecog.c: Likewise.
20716 * regcprop.c: Likewise.
20717 * resource.c: Likewise.
20718 * sched-rgn.c: Likewise.
20719 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20720 * config/i386/winnt.c: Likewise.
20722 2015-06-17 Jakub Jelinek <jakub@redhat.com>
20724 PR middle-end/66429
20725 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20726 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
20727 and has_force_vectorize_loops flags from cfun into
20729 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20730 if simduid is non-NULL.
20731 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20732 * passes.def (pass_simduid_cleanup): Add new pass after loop
20734 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20735 indirection from htab argument's type.
20736 (shrink_simd_arrays): New function.
20737 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
20738 Don't call adjust_simduid_builtins if there are no loops.
20739 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20740 (pass_simduid_cleanup::execute): New method.
20741 (make_pass_simduid_cleanup): New function.
20743 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
20745 * tree-core.h (tree_target_option): Make opts field a pointer to a
20746 cl_target_option instead of an instance of the struct.
20747 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20749 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20750 TARGET_OPTION_NODE.
20751 (copy_node_stat): Allocate and copy struct cl_target_option.
20753 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20755 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20756 Remove conditional exposure of prototypes.
20757 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20758 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
20759 definitions in tree.h with functions.
20760 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20762 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20764 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
20766 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20767 (*cmp<mode>_signed): ... this.
20768 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20769 (*cmp<mode>_unsigned): ... this. Remove %b.
20771 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20773 * coretypes.h: Include input.h and as-a.h.
20774 * rtl.h: Include input.h and as-a.h for generator files.
20775 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20776 * vec.c: Don't include diagnostic-core.h.
20777 * alias.c: Do not include input.h, line-map.h or is-a.h.
20778 * asan.c: Likewise.
20779 * attribs.c: Likewise.
20780 * auto-inc-dec.c: Likewise.
20781 * auto-profile.c: Likewise.
20782 * bb-reorder.c: Likewise.
20783 * bt-load.c: Likewise.
20784 * builtins.c: Likewise.
20785 * caller-save.c: Likewise.
20786 * calls.c: Likewise.
20787 * ccmp.c: Likewise.
20789 * cfganal.c: Likewise.
20790 * cfgbuild.c: Likewise.
20791 * cfgcleanup.c: Likewise.
20792 * cfgexpand.c: Likewise.
20793 * cfghooks.c: Likewise.
20794 * cfgloop.c: Likewise.
20795 * cfgloop.h: Likewise.
20796 * cfgloopanal.c: Likewise.
20797 * cfgloopmanip.c: Likewise.
20798 * cfgrtl.c: Likewise.
20799 * cgraph.c: Likewise.
20800 * cgraphbuild.c: Likewise.
20801 * cgraphclones.c: Likewise.
20802 * cgraphunit.c: Likewise.
20803 * cilk-common.c: Likewise.
20804 * combine-stack-adj.c: Likewise.
20805 * combine.c: Likewise.
20806 * compare-elim.c: Likewise.
20807 * convert.c: Likewise.
20808 * coverage.c: Likewise.
20809 * cppbuiltin.c: Likewise.
20810 * cprop.c: Likewise.
20812 * cselib.c: Likewise.
20813 * data-streamer-in.c: Likewise.
20814 * data-streamer-out.c: Likewise.
20815 * data-streamer.c: Likewise.
20816 * dbxout.c: Likewise.
20819 * debug.c: Likewise.
20820 * df-core.c: Likewise.
20821 * df-problems.c: Likewise.
20822 * df-scan.c: Likewise.
20825 * diagnostic-core.h: Likewise.
20826 * diagnostic.c: Likewise.
20827 * dojump.c: Likewise.
20828 * dominance.c: Likewise.
20829 * domwalk.c: Likewise.
20830 * double-int.c: Likewise.
20832 * dumpfile.c: Likewise.
20833 * dumpfile.h: Likewise.
20834 * dwarf2asm.c: Likewise.
20835 * dwarf2cfi.c: Likewise.
20836 * dwarf2out.c: Likewise.
20837 * emit-rtl.c: Likewise.
20838 * et-forest.c: Likewise.
20839 * except.c: Likewise.
20840 * explow.c: Likewise.
20841 * expmed.c: Likewise.
20842 * expr.c: Likewise.
20843 * final.c: Likewise.
20844 * fixed-value.c: Likewise.
20845 * fold-const.c: Likewise.
20846 * function.c: Likewise.
20847 * fwprop.c: Likewise.
20848 * gcc-plugin.h: Likewise.
20849 * gcse.c: Likewise.
20850 * generic-match-head.c: Likewise.
20851 * ggc-page.c: Likewise.
20852 * gimple-builder.c: Likewise.
20853 * gimple-expr.c: Likewise.
20854 * gimple-fold.c: Likewise.
20855 * gimple-iterator.c: Likewise.
20856 * gimple-low.c: Likewise.
20857 * gimple-match-head.c: Likewise.
20858 * gimple-pretty-print.c: Likewise.
20859 * gimple-ssa-isolate-paths.c: Likewise.
20860 * gimple-ssa-strength-reduction.c: Likewise.
20861 * gimple-streamer-in.c: Likewise.
20862 * gimple-streamer-out.c: Likewise.
20863 * gimple-streamer.h: Likewise.
20864 * gimple-walk.c: Likewise.
20865 * gimple.c: Likewise.
20866 * gimplify-me.c: Likewise.
20867 * gimplify.c: Likewise.
20868 * godump.c: Likewise.
20869 * graph.c: Likewise.
20870 * graphite-blocking.c: Likewise.
20871 * graphite-dependences.c: Likewise.
20872 * graphite-interchange.c: Likewise.
20873 * graphite-isl-ast-to-gimple.c: Likewise.
20874 * graphite-optimize-isl.c: Likewise.
20875 * graphite-poly.c: Likewise.
20876 * graphite-scop-detection.c: Likewise.
20877 * graphite-sese-to-poly.c: Likewise.
20878 * graphite.c: Likewise.
20879 * haifa-sched.c: Likewise.
20880 * hw-doloop.c: Likewise.
20881 * ifcvt.c: Likewise.
20882 * init-regs.c: Likewise.
20883 * input.c: Likewise.
20884 * internal-fn.c: Likewise.
20885 * ipa-chkp.c: Likewise.
20886 * ipa-comdats.c: Likewise.
20887 * ipa-cp.c: Likewise.
20888 * ipa-devirt.c: Likewise.
20889 * ipa-icf-gimple.c: Likewise.
20890 * ipa-icf.c: Likewise.
20891 * ipa-inline-analysis.c: Likewise.
20892 * ipa-inline-transform.c: Likewise.
20893 * ipa-inline.c: Likewise.
20894 * ipa-polymorphic-call.c: Likewise.
20895 * ipa-profile.c: Likewise.
20896 * ipa-prop.c: Likewise.
20897 * ipa-pure-const.c: Likewise.
20898 * ipa-ref.c: Likewise.
20899 * ipa-reference.c: Likewise.
20900 * ipa-split.c: Likewise.
20901 * ipa-utils.c: Likewise.
20902 * ipa-visibility.c: Likewise.
20904 * ira-build.c: Likewise.
20905 * ira-color.c: Likewise.
20906 * ira-conflicts.c: Likewise.
20907 * ira-costs.c: Likewise.
20908 * ira-emit.c: Likewise.
20909 * ira-lives.c: Likewise.
20911 * jump.c: Likewise.
20912 * langhooks.c: Likewise.
20914 * loop-doloop.c: Likewise.
20915 * loop-init.c: Likewise.
20916 * loop-invariant.c: Likewise.
20917 * loop-iv.c: Likewise.
20918 * loop-unroll.c: Likewise.
20919 * lower-subreg.c: Likewise.
20920 * lra-assigns.c: Likewise.
20921 * lra-coalesce.c: Likewise.
20922 * lra-constraints.c: Likewise.
20923 * lra-eliminations.c: Likewise.
20924 * lra-lives.c: Likewise.
20925 * lra-remat.c: Likewise.
20926 * lra-spills.c: Likewise.
20928 * lto-cgraph.c: Likewise.
20929 * lto-compress.c: Likewise.
20930 * lto-opts.c: Likewise.
20931 * lto-section-in.c: Likewise.
20932 * lto-section-out.c: Likewise.
20933 * lto-streamer-in.c: Likewise.
20934 * lto-streamer-out.c: Likewise.
20935 * lto-streamer.c: Likewise.
20937 * mode-switching.c: Likewise.
20938 * modulo-sched.c: Likewise.
20939 * omega.c: Likewise.
20940 * omp-low.c: Likewise.
20941 * optabs.c: Likewise.
20942 * opts-global.c: Likewise.
20943 * opts.h: Likewise.
20944 * passes.c: Likewise.
20945 * plugin.c: Likewise.
20946 * postreload-gcse.c: Likewise.
20947 * postreload.c: Likewise.
20948 * predict.c: Likewise.
20949 * pretty-print.h: Likewise.
20950 * print-rtl.c: Likewise.
20951 * print-tree.c: Likewise.
20952 * profile.c: Likewise.
20953 * real.c: Likewise.
20954 * realmpfr.c: Likewise.
20955 * recog.c: Likewise.
20957 * reg-stack.c: Likewise.
20958 * regcprop.c: Likewise.
20959 * reginfo.c: Likewise.
20960 * regrename.c: Likewise.
20961 * regstat.c: Likewise.
20962 * reload.c: Likewise.
20963 * reload1.c: Likewise.
20964 * reorg.c: Likewise.
20965 * resource.c: Likewise.
20966 * rtl-chkp.c: Likewise.
20967 * rtl-error.c: Likewise.
20968 * rtlanal.c: Likewise.
20969 * rtlhooks.c: Likewise.
20970 * sanopt.c: Likewise.
20971 * sched-deps.c: Likewise.
20972 * sched-ebb.c: Likewise.
20973 * sched-rgn.c: Likewise.
20974 * sched-vis.c: Likewise.
20975 * sdbout.c: Likewise.
20976 * sel-sched-dump.c: Likewise.
20977 * sel-sched-ir.c: Likewise.
20978 * sel-sched.c: Likewise.
20979 * sese.c: Likewise.
20980 * shrink-wrap.c: Likewise.
20981 * simplify-rtx.c: Likewise.
20982 * stack-ptr-mod.c: Likewise.
20983 * statistics.c: Likewise.
20984 * stmt.c: Likewise.
20985 * stor-layout.c: Likewise.
20986 * store-motion.c: Likewise.
20987 * streamer-hooks.c: Likewise.
20988 * stringpool.c: Likewise.
20989 * symtab.c: Likewise.
20990 * target-globals.c: Likewise.
20991 * targhooks.c: Likewise.
20992 * toplev.c: Likewise.
20993 * tracer.c: Likewise.
20994 * trans-mem.c: Likewise.
20995 * tree-affine.c: Likewise.
20996 * tree-browser.c: Likewise.
20997 * tree-call-cdce.c: Likewise.
20998 * tree-cfg.c: Likewise.
20999 * tree-cfgcleanup.c: Likewise.
21000 * tree-chkp-opt.c: Likewise.
21001 * tree-chkp.c: Likewise.
21002 * tree-chrec.c: Likewise.
21003 * tree-complex.c: Likewise.
21004 * tree-data-ref.c: Likewise.
21005 * tree-dfa.c: Likewise.
21006 * tree-diagnostic.c: Likewise.
21007 * tree-dump.c: Likewise.
21008 * tree-eh.c: Likewise.
21009 * tree-emutls.c: Likewise.
21010 * tree-if-conv.c: Likewise.
21011 * tree-inline.c: Likewise.
21012 * tree-into-ssa.c: Likewise.
21013 * tree-iterator.c: Likewise.
21014 * tree-loop-distribution.c: Likewise.
21015 * tree-nested.c: Likewise.
21016 * tree-nrv.c: Likewise.
21017 * tree-object-size.c: Likewise.
21018 * tree-outof-ssa.c: Likewise.
21019 * tree-parloops.c: Likewise.
21020 * tree-phinodes.c: Likewise.
21021 * tree-predcom.c: Likewise.
21022 * tree-pretty-print.c: Likewise.
21023 * tree-profile.c: Likewise.
21024 * tree-scalar-evolution.c: Likewise.
21025 * tree-sra.c: Likewise.
21026 * tree-ssa-address.c: Likewise.
21027 * tree-ssa-alias.c: Likewise.
21028 * tree-ssa-ccp.c: Likewise.
21029 * tree-ssa-coalesce.c: Likewise.
21030 * tree-ssa-copy.c: Likewise.
21031 * tree-ssa-copyrename.c: Likewise.
21032 * tree-ssa-dce.c: Likewise.
21033 * tree-ssa-dom.c: Likewise.
21034 * tree-ssa-dse.c: Likewise.
21035 * tree-ssa-forwprop.c: Likewise.
21036 * tree-ssa-ifcombine.c: Likewise.
21037 * tree-ssa-live.c: Likewise.
21038 * tree-ssa-loop-ch.c: Likewise.
21039 * tree-ssa-loop-im.c: Likewise.
21040 * tree-ssa-loop-ivcanon.c: Likewise.
21041 * tree-ssa-loop-ivopts.c: Likewise.
21042 * tree-ssa-loop-manip.c: Likewise.
21043 * tree-ssa-loop-niter.c: Likewise.
21044 * tree-ssa-loop-prefetch.c: Likewise.
21045 * tree-ssa-loop-unswitch.c: Likewise.
21046 * tree-ssa-loop.c: Likewise.
21047 * tree-ssa-math-opts.c: Likewise.
21048 * tree-ssa-operands.c: Likewise.
21049 * tree-ssa-phiopt.c: Likewise.
21050 * tree-ssa-phiprop.c: Likewise.
21051 * tree-ssa-pre.c: Likewise.
21052 * tree-ssa-propagate.c: Likewise.
21053 * tree-ssa-reassoc.c: Likewise.
21054 * tree-ssa-sccvn.c: Likewise.
21055 * tree-ssa-scopedtables.c: Likewise.
21056 * tree-ssa-sink.c: Likewise.
21057 * tree-ssa-strlen.c: Likewise.
21058 * tree-ssa-structalias.c: Likewise.
21059 * tree-ssa-tail-merge.c: Likewise.
21060 * tree-ssa-ter.c: Likewise.
21061 * tree-ssa-threadedge.c: Likewise.
21062 * tree-ssa-threadupdate.c: Likewise.
21063 * tree-ssa-uncprop.c: Likewise.
21064 * tree-ssa-uninit.c: Likewise.
21065 * tree-ssa.c: Likewise.
21066 * tree-ssanames.c: Likewise.
21067 * tree-stdarg.c: Likewise.
21068 * tree-streamer-in.c: Likewise.
21069 * tree-streamer-out.c: Likewise.
21070 * tree-streamer.c: Likewise.
21071 * tree-switch-conversion.c: Likewise.
21072 * tree-tailcall.c: Likewise.
21073 * tree-vect-data-refs.c: Likewise.
21074 * tree-vect-generic.c: Likewise.
21075 * tree-vect-loop-manip.c: Likewise.
21076 * tree-vect-loop.c: Likewise.
21077 * tree-vect-patterns.c: Likewise.
21078 * tree-vect-slp.c: Likewise.
21079 * tree-vect-stmts.c: Likewise.
21080 * tree-vectorizer.c: Likewise.
21081 * tree-vrp.c: Likewise.
21082 * tree.c: Likewise.
21083 * tsan.c: Likewise.
21084 * ubsan.c: Likewise.
21085 * valtrack.c: Likewise.
21086 * value-prof.c: Likewise.
21087 * var-tracking.c: Likewise.
21088 * varasm.c: Likewise.
21089 * varpool.c: Likewise.
21090 * vmsdbgout.c: Likewise.
21091 * vtable-verify.c: Likewise.
21093 * wide-int.cc: Likewise.
21094 * xcoffout.c: Likewise.
21095 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21096 * common/common-targhooks.c: Likewise.
21097 * config/aarch64/aarch64-builtins.c: Likewise.
21098 * config/aarch64/aarch64.c: Likewise.
21099 * config/alpha/alpha.c: Likewise.
21100 * config/arc/arc.c: Likewise.
21101 * config/arm/aarch-common.c: Likewise.
21102 * config/arm/arm-builtins.c: Likewise.
21103 * config/arm/arm-c.c: Likewise.
21104 * config/arm/arm.c: Likewise.
21105 * config/avr/avr-c.c: Likewise.
21106 * config/avr/avr-log.c: Likewise.
21107 * config/avr/avr.c: Likewise.
21108 * config/bfin/bfin.c: Likewise.
21109 * config/c6x/c6x.c: Likewise.
21110 * config/cr16/cr16.c: Likewise.
21111 * config/cris/cris.c: Likewise.
21112 * config/darwin-c.c: Likewise.
21113 * config/darwin.c: Likewise.
21114 * config/default-c.c: Likewise.
21115 * config/epiphany/epiphany.c: Likewise.
21116 * config/epiphany/mode-switch-use.c: Likewise.
21117 * config/epiphany/resolve-sw-modes.c: Likewise.
21118 * config/fr30/fr30.c: Likewise.
21119 * config/frv/frv.c: Likewise.
21120 * config/ft32/ft32.c: Likewise.
21121 * config/glibc-c.c: Likewise.
21122 * config/h8300/h8300.c: Likewise.
21123 * config/i386/i386-c.c: Likewise.
21124 * config/i386/i386.c: Likewise.
21125 * config/i386/msformat-c.c: Likewise.
21126 * config/i386/winnt-cxx.c: Likewise.
21127 * config/i386/winnt-stubs.c: Likewise.
21128 * config/i386/winnt.c: Likewise.
21129 * config/ia64/ia64-c.c: Likewise.
21130 * config/ia64/ia64.c: Likewise.
21131 * config/iq2000/iq2000.c: Likewise.
21132 * config/lm32/lm32.c: Likewise.
21133 * config/m32c/m32c-pragma.c: Likewise.
21134 * config/m32c/m32c.c: Likewise.
21135 * config/m32r/m32r.c: Likewise.
21136 * config/m68k/m68k.c: Likewise.
21137 * config/mcore/mcore.c: Likewise.
21138 * config/mep/mep-pragma.c: Likewise.
21139 * config/mep/mep.c: Likewise.
21140 * config/microblaze/microblaze-c.c: Likewise.
21141 * config/microblaze/microblaze.c: Likewise.
21142 * config/mips/mips.c: Likewise.
21143 * config/mmix/mmix.c: Likewise.
21144 * config/mn10300/mn10300.c: Likewise.
21145 * config/moxie/moxie.c: Likewise.
21146 * config/msp430/msp430-c.c: Likewise.
21147 * config/msp430/msp430.c: Likewise.
21148 * config/nds32/nds32-cost.c: Likewise.
21149 * config/nds32/nds32-fp-as-gp.c: Likewise.
21150 * config/nds32/nds32-intrinsic.c: Likewise.
21151 * config/nds32/nds32-isr.c: Likewise.
21152 * config/nds32/nds32-md-auxiliary.c: Likewise.
21153 * config/nds32/nds32-memory-manipulation.c: Likewise.
21154 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21155 * config/nds32/nds32-predicates.c: Likewise.
21156 * config/nds32/nds32.c: Likewise.
21157 * config/nios2/nios2.c: Likewise.
21158 * config/nvptx/nvptx.c: Likewise.
21159 * config/pa/pa.c: Likewise.
21160 * config/pdp11/pdp11.c: Likewise.
21161 * config/rl78/rl78-c.c: Likewise.
21162 * config/rl78/rl78.c: Likewise.
21163 * config/rs6000/rs6000-c.c: Likewise.
21164 * config/rs6000/rs6000.c: Likewise.
21165 * config/rx/rx.c: Likewise.
21166 * config/s390/s390-c.c: Likewise.
21167 * config/s390/s390.c: Likewise.
21168 * config/sh/sh-c.c: Likewise.
21169 * config/sh/sh-mem.cc: Likewise.
21170 * config/sh/sh.c: Likewise.
21171 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21172 * config/sh/sh_treg_combine.cc: Likewise.
21173 * config/sol2-c.c: Likewise.
21174 * config/sol2-cxx.c: Likewise.
21175 * config/sol2-stubs.c: Likewise.
21176 * config/sol2.c: Likewise.
21177 * config/sparc/sparc-c.c: Likewise.
21178 * config/sparc/sparc.c: Likewise.
21179 * config/spu/spu-c.c: Likewise.
21180 * config/spu/spu.c: Likewise.
21181 * config/stormy16/stormy16.c: Likewise.
21182 * config/tilegx/mul-tables.c: Likewise.
21183 * config/tilegx/tilegx-c.c: Likewise.
21184 * config/tilegx/tilegx.c: Likewise.
21185 * config/tilepro/mul-tables.c: Likewise.
21186 * config/tilepro/tilepro-c.c: Likewise.
21187 * config/tilepro/tilepro.c: Likewise.
21188 * config/v850/v850-c.c: Likewise.
21189 * config/v850/v850.c: Likewise.
21190 * config/vax/vax.c: Likewise.
21191 * config/visium/visium.c: Likewise.
21192 * config/vms/vms-c.c: Likewise.
21193 * config/vms/vms.c: Likewise.
21194 * config/vxworks.c: Likewise.
21195 * config/winnt-c.c: Likewise.
21196 * config/xtensa/xtensa.c: Likewise.
21198 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
21200 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21202 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21204 2015-06-17 Richard Biener <rguenther@suse.de>
21206 PR tree-optimization/66251
21207 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21208 stmts for SLP strided stores.
21211 2015-05-22 Richard Biener <rguenther@suse.de>
21213 PR tree-optimization/66251
21214 * tree-vect-stmts.c (vectorizable_conversion): Properly
21215 set STMT_VINFO_VEC_STMT even for the SLP case.
21217 2015-05-26 Michael Matz <matz@suse.de>
21219 PR middle-end/66251
21220 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21221 STMT_VINFO_VEC_STMT, also with SLP.
21223 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
21226 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21227 (*avx_addsubv4df3_1s): Ditto.
21228 (*sse3_addsubv2df3_1): Ditto.
21229 (*sse3_addsubv2df3_1s): Ditto.
21230 (*avx_addsubv8sf3_1): Ditto.
21231 (*avx_addsubv8sf3_1s): Ditto.
21232 (*sse3_addsubv4sf3_1): Ditto.
21233 (*sse3_addsubv4sf3_1s): Ditto.
21235 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
21237 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21238 (SYSROOT_SUFFIX_SPEC): Update.
21239 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21240 (STARTFILE_PREFIX_SPEC): Update.
21241 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21242 (MULTILIB_REQUIRED): New.
21243 (MULTILIB_OSDIRNAMES): New.
21244 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21245 (MULTILIB_REQUIRED): New.
21246 (MULTILIB_OSDIRNAMES): New.
21248 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
21250 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21251 * config/aarch64/aarch64-options-extensions.def: Update "fP",
21252 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
21253 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21254 (AARCH64_FL_PAN): New.
21255 (AARCH64_FL_LOR): New.
21256 (AARCH64_FL_RDMA): New.
21257 (AARCH64_FL_FOR_ARCH8_1): New.
21258 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21259 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21261 2015-06-16 Martin Liska <mliska@suse.cz>
21263 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21264 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21267 2015-06-16 Richard Biener <rguenther@suse.de>
21269 * tree-vect-stmts.c (vectorizable_store): Adjust.
21270 (vectorizable_load): Likewise.
21271 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21273 (vect_create_data_ref_ptr): Likewise.
21274 (bump_vector_ptr): Adjust.
21276 2015-06-16 Richard Biener <rguenther@suse.de>
21278 * tree-vect-stmts.c (vectorizable_load): Properly start loads
21279 with the first element if this is grouped loads.
21281 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
21283 * config/arm/arm-protos.h (struct tune_params): Rename
21284 log_op_non_sc to log_op_non_short_circuit, and rename enum
21285 values to expand SC to SHORT_CIRCUIT.
21286 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21287 to LOG_OP_NON_SHORT_CIRCUIT.
21288 (arm_fastmul_tune):Likewise
21289 (arm_strongarm_tune): Likewise.
21290 (arm_xscale_tune): Likewise.
21291 (arm_9e_tune): Likewise.
21292 (arm_marvell_pj4_tune): Likewise.
21293 (arm_v6t2_tune): Likewise.
21294 (arm_cortex_tune): Likewise.
21295 (arm_cortex_a8_tune): Likewise.
21296 (arm_cortex_a7_tune): Likewise.
21297 (arm_cortex_a15_tune): Likewise.
21298 (arm_cortex_a53_tune): Likewise.
21299 (arm_cortex_a57_tune): Likewise.
21300 (arm_xgene1_tune): Likewise.
21301 (arm_cortex_a5_tune): Likewise.
21302 (arm_cortex_a9_tune): Likewise.
21303 (arm_cortex_a12_tune): Likewise.
21304 (arm_v7m_tune): Likewise.
21305 (arm_cortex_m7_tune): Likewise.
21306 (arm_v6m_tune): Likewise.
21307 (arm_fa726te_tune): Likewise.
21309 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
21311 * altivec.md: Delete UNSPEC_VMLADDUHM.
21312 (mulv4si3_p8): New pattern.
21313 (mulv4si3): Use it for POWER8.
21314 (mulv8hi3): Use vmladduhm with zero addend.
21315 (altivec_vmladduhm): Descriptive RTL.
21317 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
21319 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21320 to use neon_move instead of mov_imm.
21321 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21322 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21324 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21325 aarch64_float_const_zero_rtx_p check before TFmode check.
21326 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21328 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
21329 code and attributes to match. Change condition from register_operand
21330 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
21331 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
21334 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
21337 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21338 there is no parent.
21340 2015-06-14 Shiva Chen <shiva0217@gmail.com>
21342 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21343 HOST_WIDE_INT parameter.
21345 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
21348 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21349 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21351 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21353 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
21355 * rtl.h (classify_insn): Declare.
21356 * emit-rtl.c (classify_insn): Move to...
21357 * rtl.c: ...here and add generator support.
21358 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21359 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21360 * genemit.c (gen_emit_seq): New function.
21361 (gen_expand, gen_split): Use it.
21363 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
21365 * tree.c (make_vector_stat): Fix comment to state that the
21366 function returns a VECTOR_CST.
21368 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
21370 * gensupport.h (add_implicit_parallel): Declare.
21371 * genrecog.c (add_implicit_parallel): Move to...
21372 * gensupport.c (add_implicit_parallel): ...here.
21373 (process_one_cond_exec): Use it.
21374 * genemit.c (gen_insn): Likewise.
21376 2015-06-13 Iain Sandoe <iain@codesourcery.com>
21379 * passes.c (rest_of_decl_compilation): Do not register globals for
21380 early debug if they are declared in built-ins.
21382 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
21384 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21386 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21388 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21390 (noce_try_cmove_arith): Likewise.
21391 (noce_get_alt_condition): Likewise.
21393 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21395 * common/config/i386/i386-common.c
21396 (OPTION_MASK_ISA_MWAITX_SET): New.
21397 (ix86_handle_option): Handle mwaitx.
21398 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21399 (x86_64-*-*): Likewise.
21400 * config/i386/mwaitxintrin.h: New header.
21401 * config/i386/cpuid.h (bit_MWAITX): Define.
21402 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21404 * config/i386/i386.opt (mwaitx): New.
21405 * config/i386/i386-builtin-types.def
21406 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21407 * config/i386/i386-c.c: Define __MWAITX__ if needed.
21408 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21410 (ix86_option_override_internal): Handle new option.
21411 (processor_alias_table): Added PTA_MWAITX.
21412 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21413 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21414 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21415 IX86_BUILTIN_MONITORX built-ins.
21416 * config/i386/i386.h (TARGET_MWAITX): New.
21417 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21419 (mwaitx): New pattern.
21420 (monitorx_<mode>): New pattern.
21421 * config/i386/x86intrin.h: Include mwaitxintrin.h.
21422 * doc/extend.texi: Document monitorx and mwaitx builtins.
21423 * doc/invoke.texi: Document -mmwaitx option.
21425 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
21427 * emit-rtl.c (need_atomic_barrier_p): Mask model with
21428 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
21430 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21432 * dbxout.c (xcoff_debug_hooks): Provide a function for
21433 register_main_translation_unit hook.
21435 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21437 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21438 variants cases from switch.
21439 (rs6000_post_atomic_barrier): Same.
21440 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21441 (rs6000_expand_atomic_exchange): Same.
21442 (rs6000_expand_atomic_op): Same.
21443 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21444 SYNC variants cases from switch.
21445 (atomic_load): Same.
21446 (atomic_store): Same.
21448 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
21450 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21451 CONST_INT for goto.
21453 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
21456 * dwarf2out.c (check_die): Check for common duplicate attributes.
21457 (add_location_or_const_value_attribute): Do not add duplicate
21459 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21461 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21462 (gen_type_die_with_usage): Call check_die.
21463 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21465 2015-06-11 Jason Merrill <jason@redhat.com>
21467 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21470 2015-06-11 Marek Polacek <polacek@redhat.com>
21472 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21474 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
21477 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21478 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21479 (*addx_extend_sp32): Fix pasto.
21480 (*subx_extend): Rename into...
21481 (*subx_extend_sp32): ...this.
21482 (*adddi3_extend_sp32): Add earlyclobber.
21483 (*subdi3_insn_sp32): Likewise.
21484 (*subdi3_extend_sp32): Likewise.
21485 (*and_not_di_sp32): Likewise.
21486 (*or_not_di_sp32): Likewise.
21487 (*xor_not_di_sp32): Likewise.
21488 (*negdi2_sp32): Likewise.
21489 (*one_cmpldi2_sp32): Likewise.
21491 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
21493 * debug.h (struct gcc_debug_hooks): Add a
21494 register_main_translation_unit hook.
21495 * debug.c (do_nothing_debug_hooks): Provide a function for this
21497 * dbxout.c (dbx_debug_hooks): Likewise.
21498 * sdbout.c (sdb_debug_hooks): Likewise.
21499 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21500 * dwarf2out.c (main_translation_unit): New global variable.
21501 (dwarf2out_register_main_translation_unit): New function
21502 implementing the new hook.
21503 (dwarf2_debug_hooks): Assign
21504 dwarf2out_register_main_translation_unit to this new hook.
21505 (dwarf2out_init): Associate any main translation unit to
21508 2015-06-11 Marek Polacek <polacek@redhat.com>
21510 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21512 2015-06-11 Marek Polacek <polacek@redhat.com>
21514 * match.pd: Use single_use throughout.
21516 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21518 * config/arm/arm.c (arm_option_params_internal): When optimising
21519 for speed set max_insns_skipped when arm_restrict_it.
21521 2015-06-11 Christian Bruel <christian.bruel@st.com>
21524 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21526 (arm_cpu_builtins): New function.
21527 (arm_pragma_target_parse): Call arm_cpu_builtins.
21528 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21529 (arm_register_target_pragmas): Likewise.
21530 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21531 Call arm_register_target_pragmas.
21532 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21533 (arm_pragma_target_parse): Likewise.
21535 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
21537 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21538 of the second operand.
21540 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
21543 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21544 to prepare mask operand for AVX512 modes.
21546 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21549 * doc/md.texi (Machine Constraints): Document that on the PowerPC
21550 if you use a constraint that targets a VSX register, you must use
21551 %x<n> in the template.
21553 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
21555 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21556 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21557 (define_insn "trap"): New definition.
21559 2015-06-10 Richard Biener <rguenther@suse.de>
21561 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21563 (vect_supported_load_permutation_p): ... here. Handle
21564 supportable permutations in reductions.
21565 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21566 for vectorizing strided group loads.
21568 2015-06-10 Jakub Jelinek <jakub@redhat.com>
21571 * config/i386/i386.c (ix86_split_long_move): For collisions
21572 involving direct tls segment refs, move the UNSPEC_TP possibly
21573 wrapped in ZERO_EXTEND out of the address for lea, to each of
21576 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21578 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21579 dmb sy. Adjust tabs.
21581 2015-06-10 Tom de Vries <tom@codesourcery.com>
21583 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21585 2015-06-10 Martin Liska <mliska@suse.cz>
21588 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21589 all enum values in mem_alloc_origin.
21590 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21592 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21593 * bitmap.c (bitmap_register): Likewise.
21594 (dump_bitmap_statistics): Likewise.
21595 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21596 (ggc_record_overhead): Likewise.
21597 * hash-map.h: Likewise.
21598 * hash-set.h: Likewise.
21599 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21600 * hash-table.h: Likewise.
21601 * vec.c (vec_prefix::register_overhead): Likewise.
21602 (vec_prefix::release_overhead): Likewise.
21603 (dump_vec_loc_statistics): Likewise.
21605 2015-06-09 Christian Bruel <christian.bruel@st.com>
21608 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21609 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21610 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21611 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21612 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21613 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21614 (arm_valid_target_attribute_p): Likewise.
21615 (arm_set_current_function, arm_can_inline_p): Likewise.
21616 (arm_valid_target_attribute_rec): Likewise.
21617 (arm_previous_fndecl): New variable.
21618 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21619 (TARGET_CAN_INLINE_P): Define.
21620 (arm_asm_trampoline_template): Emit mode.
21621 (arm_file_start): Don't set unified syntax.
21622 (arm_declare_function_name): Set unified syntax and mode.
21623 (arm_option_override): Init target_option_default_node.
21624 and target_option_current_node.
21625 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21626 (*call_symbol): Likewise.
21627 * doc/extend.texi: Document ARM/Thumb target attribute.
21628 * doc/invoke.texi: Likewise.
21630 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21633 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21634 PR rtl-optimization/64164
21635 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21636 * tree-ssa-copyrename.c: Removed.
21637 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21638 -ftree-coalesce-vars.
21639 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21640 * common.opt (ftree-copyrename): Ignore.
21641 (ftree-coalesce-inlined-vars): Likewise.
21642 * doc/invoke.texi: Remove the ignored options above.
21643 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21644 * tree-ssa-coalesce.h: ... here.
21645 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21646 headers required by it.
21647 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21648 across variables when flag_tree_coalesce_vars. Check register
21649 use and promoted modes to allow coalescing. Moved to
21650 tree-ssa-coalesce.c.
21651 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21652 with its member functions to tree-ssa-coalesce.c.
21653 (var_map_base_init): Likewise. Renamed to
21654 compute_samebase_partition_bases.
21655 (partition_view_normal): Drop want_bases parameter.
21656 (partition_view_bitmap): Likewise.
21657 * tree-ssa-live.h: Adjust declarations.
21658 * tree-ssa-coalesce.c: Include explow.h.
21659 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21660 default defs at the entry point.
21661 (dump_part_var_map): New.
21662 (compute_optimized_partition_bases): New, called by...
21663 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21664 of compute_samebase_partition_bases. Adjust.
21665 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21666 * cfgexpand.c (leader_merge): New.
21667 (get_rtl_for_parm_ssa_default_def): New.
21668 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21669 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21670 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21671 redundant MEM attr setting.
21672 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21674 (expand_one_stack_var): ... this. New wrapper to check and
21675 skip already expanded SSA partitions.
21676 (record_alignment_for_reg_var): New, factored out of...
21677 (expand_one_var): ... this.
21678 (expand_one_ssa_partition): New.
21679 (adjust_one_expanded_partition_var): New.
21680 (expand_one_register_var): Check and skip already expanded SSA
21682 (expand_used_vars): Don't create DECLs for anonymous SSA
21683 names. Expand all SSA partitions, then adjust all SSA names.
21684 (pass::execute): Replace the loops that set
21685 SA.partition_to_pseudo from partition leaders and cleared
21686 DECL_RTL for multi-location variables, and that which used to
21687 rename vars and set attrs, with one that clears DECL_RTL and
21688 checks that PARMs and RESULTs default_defs match DECL_RTL.
21689 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21690 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21691 * explow.c (promote_ssa_mode): New.
21692 * explow.h (promote_ssa_mode): Declare.
21693 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21694 * function.c: Include cfgexpand.h.
21695 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21696 (use_register_for_parm_decl): Wrapper for the above to
21697 special-case the result_ptr.
21698 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21699 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21700 multiple locations.
21701 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21702 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21703 (assign_parm_setup_block): Prefer SSA-assigned location.
21704 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21705 if stack_parm is NULL.
21706 (assign_parm_setup_stack): Prefer SSA-assigned location.
21707 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21708 rtl before testing for pointer bounds. Special-case result_ptr.
21709 (expand_function_start): Maybe reset DECL_RTL of result.
21710 Prefer SSA-assigned location for result and static chain.
21711 Factor out DECL_RESULT and SET_DECL_RTL.
21712 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21713 anonymous SSA names. Use promote_ssa_mode.
21714 (get_temp_reg): Likewise.
21715 (remove_ssa_form): Adjust.
21716 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21717 and get its reg_usage for reg invalidation.
21718 (compute_bb_dataflow): Pass it insn.
21719 (emit_notes_in_bb): Likewise.
21720 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21721 fail assert on conversion between unsigned types.
21723 2015-06-09 Tom de Vries <tom@codesourcery.com>
21725 PR tree-optimization/65460
21726 * omp-low.c (expand_omp_target): Set parallelized_function on
21727 cgraph_node for child_fn.
21729 2015-06-09 Tom de Vries <tom@codesourcery.com>
21731 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21732 parallelized_function before add_new_function.
21734 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
21736 * gcc-plugin.h: Move decls to plugin.h and include it.
21737 * plugin.h: Relocate decls from gcc-plugin.h
21738 * ggc-page.c: Include required header files.
21739 * passes.c: Likewise.
21740 * cgraphunit.c: Likewise.
21742 2015-06-09 Tom de Vries <tom@codesourcery.com>
21744 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21746 2015-06-09 Jason Merrill <jason@redhat.com>
21749 * toplev.c (check_global_declaration): Don't warn about a clone.
21751 2015-06-09 Marek Polacek <polacek@redhat.com>
21753 PR tree-optimization/66299
21754 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21755 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21758 2015-06-09 Richard Biener <rguenther@suse.de>
21760 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21761 (vect_analyze_slp_instance): Instead do not falsely drop
21764 2015-06-09 Richard Biener <rguenther@suse.de>
21766 PR middle-end/66423
21767 * match.pd: Handle A % (unsigned)(1 << B).
21769 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
21771 * varasm.c (output_object_block_htab): Remove.
21772 (output_object_block_compare): New.
21773 (output_object_blocks): Sort named object_blocks before outputting
21776 2015-06-09 Richard Biener <rguenther@suse.de>
21778 PR tree-optimization/66419
21779 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21780 consider GROUP_GAP when detecting a perfect subchain.
21782 2015-06-09 Nick Clifton <nickc@redhat.com>
21784 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21785 place read only data in the .frodata section.
21787 2015-06-09 Shiva Chen <shiva0217@gmail.com>
21789 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21790 (atomic_store<mode>): Likewise.
21792 2015-06-09 Richard Biener <rguenther@suse.de>
21794 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21796 2015-06-09 Richard Biener <rguenther@suse.de>
21798 PR middle-end/66413
21799 * tree-inline.c (insert_init_debug_bind): Unshare value.
21801 2015-06-09 Richard Biener <rguenther@suse.de>
21803 PR tree-optimization/66396
21804 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21805 Rename virtual operands.
21807 2015-06-09 Tom de Vries <tom@codesourcery.com>
21809 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21810 always return false.
21812 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21814 PR rtl-optimization/64164
21815 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21816 * tree-ssa-copyrename.c: Removed.
21817 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21818 -ftree-coalesce-vars.
21819 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21820 * common.opt (ftree-copyrename): Ignore.
21821 (ftree-coalesce-inlined-vars): Likewise.
21822 * doc/invoke.texi: Remove the ignored options above.
21823 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21824 * tree-ssa-coalesce.h: ... here.
21825 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21826 headers required by it.
21827 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21828 across variables when flag_tree_coalesce_vars. Check register
21829 use and promoted modes to allow coalescing. Moved to
21830 tree-ssa-coalesce.c.
21831 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21832 with its member functions to tree-ssa-coalesce.c.
21833 (var_map_base_init): Likewise. Renamed to
21834 compute_samebase_partition_bases.
21835 (partition_view_normal): Drop want_bases parameter.
21836 (partition_view_bitmap): Likewise.
21837 * tree-ssa-live.h: Adjust declarations.
21838 * tree-ssa-coalesce.c: Include explow.h.
21839 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21840 default defs at the entry point.
21841 (dump_part_var_map): New.
21842 (compute_optimized_partition_bases): New, called by...
21843 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21844 of compute_samebase_partition_bases. Adjust.
21845 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21846 * cfgexpand.c (leader_merge): New.
21847 (get_rtl_for_parm_ssa_default_def): New.
21848 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21849 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21850 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21851 redundant MEM attr setting.
21852 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21854 (expand_one_stack_var): ... this. New wrapper to check and
21855 skip already expanded SSA partitions.
21856 (record_alignment_for_reg_var): New, factored out of...
21857 (expand_one_var): ... this.
21858 (expand_one_ssa_partition): New.
21859 (adjust_one_expanded_partition_var): New.
21860 (expand_one_register_var): Check and skip already expanded SSA
21862 (expand_used_vars): Don't create DECLs for anonymous SSA
21863 names. Expand all SSA partitions, then adjust all SSA names.
21864 (pass::execute): Replace the loops that set
21865 SA.partition_to_pseudo from partition leaders and cleared
21866 DECL_RTL for multi-location variables, and that which used to
21867 rename vars and set attrs, with one that clears DECL_RTL and
21868 checks that PARMs and RESULTs default_defs match DECL_RTL.
21869 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21870 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21871 * explow.c (promote_ssa_mode): New.
21872 * explow.h (promote_ssa_mode): Declare.
21873 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21874 * function.c: Include cfgexpand.h.
21875 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21876 (use_register_for_parm_decl): Wrapper for the above to
21877 special-case the result_ptr.
21878 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21879 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21880 multiple locations.
21881 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21882 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21883 (assign_parm_setup_block): Prefer SSA-assigned location.
21884 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21885 if stack_parm is NULL.
21886 (assign_parm_setup_stack): Prefer SSA-assigned location.
21887 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21888 rtl before testing for pointer bounds. Special-case result_ptr.
21889 (expand_function_start): Maybe reset DECL_RTL of result.
21890 Prefer SSA-assigned location for result and static chain.
21891 Factor out DECL_RESULT and SET_DECL_RTL.
21892 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21893 anonymous SSA names. Use promote_ssa_mode.
21894 (get_temp_reg): Likewise.
21895 (remove_ssa_form): Adjust.
21896 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21897 and get its reg_usage for reg invalidation.
21898 (compute_bb_dataflow): Pass it insn.
21899 (emit_notes_in_bb): Likewise.
21900 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21901 fail assert on conversion between unsigned types.
21903 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21906 * tree-inline.c (reset_debug_binding): New.
21907 (reset_debug_bindings): Likewise.
21908 (expand_call_inline): Call it.
21910 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21912 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21915 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21917 * lto-streamer-out.c (lto_output_location): Stream
21918 reserved locations correctly.
21919 * lto-streamer-in.c (lto_output_location): Likewise.
21921 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
21923 * coretypes.h: Include hash-table.h and hash-set.h for host files.
21924 * ggc.h: Don't include statistics.h>
21925 * hash-map.h: Remove all includes.
21926 * hash-set.h: Likewise.
21927 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21928 the include list. Remove <new>.
21929 * inchash.h: Remove all includes.
21930 * mem-stats.h: Likewise.
21931 * vec.h: No special processing for generators or ggc.
21932 * alias.c : Adjust include files.
21933 * alloc-pool.c : Likewise.
21934 * alloc-pool.h : Likewise.
21935 * asan.c : Likewise.
21936 * attribs.c : Likewise.
21937 * auto-inc-dec.c : Likewise.
21938 * auto-profile.c : Likewise.
21939 * bb-reorder.c : Likewise.
21940 * bitmap.c : Likewise.
21941 * bitmap.h : Likewise.
21942 * bt-load.c : Likewise.
21943 * builtins.c : Likewise.
21944 * caller-save.c : Likewise.
21945 * calls.c : Likewise.
21946 * ccmp.c : Likewise.
21947 * cfg.c : Likewise.
21948 * cfganal.c : Likewise.
21949 * cfgbuild.c : Likewise.
21950 * cfgcleanup.c : Likewise.
21951 * cfgexpand.c : Likewise.
21952 * cfghooks.c : Likewise.
21953 * cfgloop.c : Likewise.
21954 * cfgloop.h : Likewise.
21955 * cfgloopanal.c : Likewise.
21956 * cfgloopmanip.c : Likewise.
21957 * cfgrtl.c : Likewise.
21958 * cgraph.c : Likewise.
21959 * cgraphbuild.c : Likewise.
21960 * cgraphclones.c : Likewise.
21961 * cgraphunit.c : Likewise.
21962 * cilk-common.c : Likewise.
21963 * combine-stack-adj.c : Likewise.
21964 * combine.c : Likewise.
21965 * compare-elim.c : Likewise.
21966 * context.c : Likewise.
21967 * convert.c : Likewise.
21968 * coverage.c : Likewise.
21969 * cppbuiltin.c : Likewise.
21970 * cprop.c : Likewise.
21971 * cse.c : Likewise.
21972 * cselib.c : Likewise.
21973 * data-streamer-in.c : Likewise.
21974 * data-streamer-out.c : Likewise.
21975 * data-streamer.c : Likewise.
21976 * data-streamer.h : Likewise.
21977 * dbxout.c : Likewise.
21978 * dce.c : Likewise.
21979 * ddg.c : Likewise.
21980 * debug.c : Likewise.
21981 * df-core.c : Likewise.
21982 * df-problems.c : Likewise.
21983 * df-scan.c : Likewise.
21985 * dfp.c : Likewise.
21986 * dojump.c : Likewise.
21987 * dominance.c : Likewise.
21988 * domwalk.c : Likewise.
21989 * double-int.c : Likewise.
21990 * dse.c : Likewise.
21991 * dumpfile.c : Likewise.
21992 * dwarf2asm.c : Likewise.
21993 * dwarf2cfi.c : Likewise.
21994 * dwarf2out.c : Likewise.
21995 * emit-rtl.c : Likewise.
21996 * et-forest.c : Likewise.
21997 * except.c : Likewise.
21998 * except.h : Likewise.
21999 * explow.c : Likewise.
22000 * expmed.c : Likewise.
22001 * expr.c : Likewise.
22002 * final.c : Likewise.
22003 * fixed-value.c : Likewise.
22004 * fold-const.c : Likewise.
22005 * function.c : Likewise.
22006 * fwprop.c : Likewise.
22007 * gcc-plugin.h : Likewise.
22008 * gcc.c : Likewise.
22009 * gcse-common.c : Likewise.
22010 * gcse.c : Likewise.
22011 * genattrtab.c : Likewise.
22012 * genautomata.c : Likewise.
22013 * genconditions.c : Likewise.
22014 * genemit.c : Likewise.
22015 * generic-match-head.c : Likewise.
22016 * genextract.c : Likewise.
22017 * gengtype-state.c : Likewise.
22018 * gengtype.c : Likewise.
22019 * genhooks.c : Likewise.
22020 * genmatch.c : Likewise.
22021 * genmodes.c : Likewise.
22022 * genrecog.c : Likewise.
22023 * gensupport.c : Likewise.
22024 * ggc-common.c : Likewise.
22025 * ggc-internal.h : Likewise.
22026 * ggc-none.c : Likewise.
22027 * ggc-page.c : Likewise.
22028 * gimple-builder.c : Likewise.
22029 * gimple-expr.c : Likewise.
22030 * gimple-fold.c : Likewise.
22031 * gimple-iterator.c : Likewise.
22032 * gimple-low.c : Likewise.
22033 * gimple-match-head.c : Likewise.
22034 * gimple-pretty-print.c : Likewise.
22035 * gimple-ssa-isolate-paths.c : Likewise.
22036 * gimple-ssa-strength-reduction.c : Likewise.
22037 * gimple-ssa.h : Likewise.
22038 * gimple-streamer-in.c : Likewise.
22039 * gimple-streamer-out.c : Likewise.
22040 * gimple-streamer.h : Likewise.
22041 * gimple-walk.c : Likewise.
22042 * gimple.c : Likewise.
22043 * gimplify-me.c : Likewise.
22044 * gimplify.c : Likewise.
22045 * godump.c : Likewise.
22046 * graph.c : Likewise.
22047 * graphds.c : Likewise.
22048 * graphite-blocking.c : Likewise.
22049 * graphite-dependences.c : Likewise.
22050 * graphite-interchange.c : Likewise.
22051 * graphite-isl-ast-to-gimple.c : Likewise.
22052 * graphite-optimize-isl.c : Likewise.
22053 * graphite-poly.c : Likewise.
22054 * graphite-scop-detection.c : Likewise.
22055 * graphite-sese-to-poly.c : Likewise.
22056 * graphite.c : Likewise.
22057 * haifa-sched.c : Likewise.
22058 * hard-reg-set.h : Likewise.
22059 * hw-doloop.c : Likewise.
22060 * ifcvt.c : Likewise.
22061 * inchash.c : Likewise.
22062 * incpath.c : Likewise.
22063 * init-regs.c : Likewise.
22064 * input.c : Likewise.
22065 * internal-fn.c : Likewise.
22066 * ipa-chkp.c : Likewise.
22067 * ipa-comdats.c : Likewise.
22068 * ipa-cp.c : Likewise.
22069 * ipa-devirt.c : Likewise.
22070 * ipa-icf-gimple.c : Likewise.
22071 * ipa-icf.c : Likewise.
22072 * ipa-inline-analysis.c : Likewise.
22073 * ipa-inline-transform.c : Likewise.
22074 * ipa-inline.c : Likewise.
22075 * ipa-polymorphic-call.c : Likewise.
22076 * ipa-profile.c : Likewise.
22077 * ipa-prop.c : Likewise.
22078 * ipa-pure-const.c : Likewise.
22079 * ipa-ref.c : Likewise.
22080 * ipa-reference.c : Likewise.
22081 * ipa-split.c : Likewise.
22082 * ipa-utils.c : Likewise.
22083 * ipa-visibility.c : Likewise.
22084 * ipa.c : Likewise.
22085 * ira-build.c : Likewise.
22086 * ira-color.c : Likewise.
22087 * ira-conflicts.c : Likewise.
22088 * ira-costs.c : Likewise.
22089 * ira-emit.c : Likewise.
22090 * ira-lives.c : Likewise.
22091 * ira.c : Likewise.
22092 * jump.c : Likewise.
22093 * langhooks.c : Likewise.
22094 * lcm.c : Likewise.
22095 * libfuncs.h : Likewise.
22096 * lists.c : Likewise.
22097 * loop-doloop.c : Likewise.
22098 * loop-init.c : Likewise.
22099 * loop-invariant.c : Likewise.
22100 * loop-iv.c : Likewise.
22101 * loop-unroll.c : Likewise.
22102 * lower-subreg.c : Likewise.
22103 * lra-assigns.c : Likewise.
22104 * lra-coalesce.c : Likewise.
22105 * lra-constraints.c : Likewise.
22106 * lra-eliminations.c : Likewise.
22107 * lra-lives.c : Likewise.
22108 * lra-remat.c : Likewise.
22109 * lra-spills.c : Likewise.
22110 * lra.c : Likewise.
22111 * lto-cgraph.c : Likewise.
22112 * lto-compress.c : Likewise.
22113 * lto-opts.c : Likewise.
22114 * lto-section-in.c : Likewise.
22115 * lto-section-out.c : Likewise.
22116 * lto-streamer-in.c : Likewise.
22117 * lto-streamer-out.c : Likewise.
22118 * lto-streamer.c : Likewise.
22119 * lto-streamer.h : Likewise.
22120 * mcf.c : Likewise.
22121 * mode-switching.c : Likewise.
22122 * modulo-sched.c : Likewise.
22123 * omega.c : Likewise.
22124 * omp-low.c : Likewise.
22125 * optabs.c : Likewise.
22126 * opts-global.c : Likewise.
22127 * opts.h : Likewise.
22128 * passes.c : Likewise.
22129 * plugin.c : Likewise.
22130 * postreload-gcse.c : Likewise.
22131 * postreload.c : Likewise.
22132 * predict.c : Likewise.
22133 * print-rtl.c : Likewise.
22134 * print-tree.c : Likewise.
22135 * profile.c : Likewise.
22136 * read-md.c : Likewise.
22137 * read-md.h : Likewise.
22138 * read-rtl.c : Likewise.
22139 * real.c : Likewise.
22140 * realmpfr.c : Likewise.
22141 * recog.c : Likewise.
22142 * ree.c : Likewise.
22143 * reg-stack.c : Likewise.
22144 * regcprop.c : Likewise.
22145 * reginfo.c : Likewise.
22146 * regrename.c : Likewise.
22147 * regstat.c : Likewise.
22148 * reload.c : Likewise.
22149 * reload1.c : Likewise.
22150 * reorg.c : Likewise.
22151 * resource.c : Likewise.
22152 * rtl-chkp.c : Likewise.
22153 * rtl.c : Likewise.
22154 * rtl.h : Likewise.
22155 * rtlanal.c : Likewise.
22156 * rtlhash.c : Likewise.
22157 * rtlhash.h : Likewise.
22158 * rtlhooks.c : Likewise.
22159 * sanopt.c : Likewise.
22160 * sched-deps.c : Likewise.
22161 * sched-ebb.c : Likewise.
22162 * sched-rgn.c : Likewise.
22163 * sched-vis.c : Likewise.
22164 * sdbout.c : Likewise.
22165 * sel-sched-dump.c : Likewise.
22166 * sel-sched-ir.c : Likewise.
22167 * sel-sched-ir.h : Likewise.
22168 * sel-sched.c : Likewise.
22169 * sese.c : Likewise.
22170 * shrink-wrap.c : Likewise.
22171 * shrink-wrap.h : Likewise.
22172 * simplify-rtx.c : Likewise.
22173 * stack-ptr-mod.c : Likewise.
22174 * statistics.c : Likewise.
22175 * stmt.c : Likewise.
22176 * stor-layout.c : Likewise.
22177 * store-motion.c : Likewise.
22178 * stringpool.c : Likewise.
22179 * symtab.c : Likewise.
22180 * target-globals.c : Likewise.
22181 * targhooks.c : Likewise.
22182 * tlink.c : Likewise.
22183 * toplev.c : Likewise.
22184 * tracer.c : Likewise.
22185 * trans-mem.c : Likewise.
22186 * tree-affine.c : Likewise.
22187 * tree-affine.h : Likewise.
22188 * tree-browser.c : Likewise.
22189 * tree-call-cdce.c : Likewise.
22190 * tree-cfg.c : Likewise.
22191 * tree-cfgcleanup.c : Likewise.
22192 * tree-chkp-opt.c : Likewise.
22193 * tree-chkp.c : Likewise.
22194 * tree-chrec.c : Likewise.
22195 * tree-complex.c : Likewise.
22196 * tree-data-ref.c : Likewise.
22197 * tree-dfa.c : Likewise.
22198 * tree-diagnostic.c : Likewise.
22199 * tree-dump.c : Likewise.
22200 * tree-eh.c : Likewise.
22201 * tree-eh.h : Likewise.
22202 * tree-emutls.c : Likewise.
22203 * tree-hasher.h : Likewise.
22204 * tree-if-conv.c : Likewise.
22205 * tree-inline.c : Likewise.
22206 * tree-inline.h : Likewise.
22207 * tree-into-ssa.c : Likewise.
22208 * tree-iterator.c : Likewise.
22209 * tree-loop-distribution.c : Likewise.
22210 * tree-nested.c : Likewise.
22211 * tree-nrv.c : Likewise.
22212 * tree-object-size.c : Likewise.
22213 * tree-outof-ssa.c : Likewise.
22214 * tree-parloops.c : Likewise.
22215 * tree-phinodes.c : Likewise.
22216 * tree-predcom.c : Likewise.
22217 * tree-pretty-print.c : Likewise.
22218 * tree-profile.c : Likewise.
22219 * tree-scalar-evolution.c : Likewise.
22220 * tree-sra.c : Likewise.
22221 * tree-ssa-address.c : Likewise.
22222 * tree-ssa-alias.c : Likewise.
22223 * tree-ssa-ccp.c : Likewise.
22224 * tree-ssa-coalesce.c : Likewise.
22225 * tree-ssa-copy.c : Likewise.
22226 * tree-ssa-copyrename.c : Likewise.
22227 * tree-ssa-dce.c : Likewise.
22228 * tree-ssa-dom.c : Likewise.
22229 * tree-ssa-dse.c : Likewise.
22230 * tree-ssa-forwprop.c : Likewise.
22231 * tree-ssa-ifcombine.c : Likewise.
22232 * tree-ssa-live.c : Likewise.
22233 * tree-ssa-loop-ch.c : Likewise.
22234 * tree-ssa-loop-im.c : Likewise.
22235 * tree-ssa-loop-ivcanon.c : Likewise.
22236 * tree-ssa-loop-ivopts.c : Likewise.
22237 * tree-ssa-loop-manip.c : Likewise.
22238 * tree-ssa-loop-niter.c : Likewise.
22239 * tree-ssa-loop-prefetch.c : Likewise.
22240 * tree-ssa-loop-unswitch.c : Likewise.
22241 * tree-ssa-loop.c : Likewise.
22242 * tree-ssa-math-opts.c : Likewise.
22243 * tree-ssa-operands.c : Likewise.
22244 * tree-ssa-phiopt.c : Likewise.
22245 * tree-ssa-phiprop.c : Likewise.
22246 * tree-ssa-pre.c : Likewise.
22247 * tree-ssa-propagate.c : Likewise.
22248 * tree-ssa-reassoc.c : Likewise.
22249 * tree-ssa-sccvn.c : Likewise.
22250 * tree-ssa-scopedtables.c : Likewise.
22251 * tree-ssa-sink.c : Likewise.
22252 * tree-ssa-strlen.c : Likewise.
22253 * tree-ssa-structalias.c : Likewise.
22254 * tree-ssa-tail-merge.c : Likewise.
22255 * tree-ssa-ter.c : Likewise.
22256 * tree-ssa-threadedge.c : Likewise.
22257 * tree-ssa-threadupdate.c : Likewise.
22258 * tree-ssa-uncprop.c : Likewise.
22259 * tree-ssa-uninit.c : Likewise.
22260 * tree-ssa.c : Likewise.
22261 * tree-ssanames.c : Likewise.
22262 * tree-stdarg.c : Likewise.
22263 * tree-streamer-in.c : Likewise.
22264 * tree-streamer-out.c : Likewise.
22265 * tree-streamer.c : Likewise.
22266 * tree-streamer.h : Likewise.
22267 * tree-switch-conversion.c : Likewise.
22268 * tree-tailcall.c : Likewise.
22269 * tree-vect-data-refs.c : Likewise.
22270 * tree-vect-generic.c : Likewise.
22271 * tree-vect-loop-manip.c : Likewise.
22272 * tree-vect-loop.c : Likewise.
22273 * tree-vect-patterns.c : Likewise.
22274 * tree-vect-slp.c : Likewise.
22275 * tree-vect-stmts.c : Likewise.
22276 * tree-vectorizer.c : Likewise.
22277 * tree-vectorizer.h : Likewise.
22278 * tree-vrp.c : Likewise.
22279 * tree.c : Likewise.
22280 * tsan.c : Likewise.
22281 * ubsan.c : Likewise.
22282 * valtrack.c : Likewise.
22283 * valtrack.h : Likewise.
22284 * value-prof.c : Likewise.
22285 * var-tracking.c : Likewise.
22286 * varasm.c : Likewise.
22287 * varpool.c : Likewise.
22289 * vmsdbgout.c : Likewise.
22290 * vtable-verify.c : Likewise.
22291 * vtable-verify.h : Likewise.
22292 * web.c : Likewise.
22293 * wide-int.cc : Likewise.
22294 * xcoffout.c : Likewise.
22295 * config/aarch64/aarch64-builtins.c : Likewise.
22296 * config/aarch64/aarch64.c : Likewise.
22297 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22298 * config/alpha/alpha.c : Likewise.
22299 * config/arc/arc.c : Likewise.
22300 * config/arm/aarch-common.c : Likewise.
22301 * config/arm/arm-builtins.c : Likewise.
22302 * config/arm/arm-c.c : Likewise.
22303 * config/arm/arm.c : Likewise.
22304 * config/avr/avr-c.c : Likewise.
22305 * config/avr/avr-log.c : Likewise.
22306 * config/avr/avr.c : Likewise.
22307 * config/bfin/bfin.c : Likewise.
22308 * config/c6x/c6x.c : Likewise.
22309 * config/cr16/cr16.c : Likewise.
22310 * config/cris/cris.c : Likewise.
22311 * config/darwin-c.c : Likewise.
22312 * config/darwin.c : Likewise.
22313 * config/default-c.c : Likewise.
22314 * config/epiphany/epiphany.c : Likewise.
22315 * config/epiphany/mode-switch-use.c : Likewise.
22316 * config/epiphany/resolve-sw-modes.c : Likewise.
22317 * config/fr30/fr30.c : Likewise.
22318 * config/frv/frv.c : Likewise.
22319 * config/ft32/ft32.c : Likewise.
22320 * config/glibc-c.c : Likewise.
22321 * config/h8300/h8300.c : Likewise.
22322 * config/i386/i386-c.c : Likewise.
22323 * config/i386/i386.c : Likewise.
22324 * config/i386/msformat-c.c : Likewise.
22325 * config/i386/winnt-cxx.c : Likewise.
22326 * config/i386/winnt-stubs.c : Likewise.
22327 * config/i386/winnt.c : Likewise.
22328 * config/ia64/ia64-c.c : Likewise.
22329 * config/ia64/ia64.c : Likewise.
22330 * config/iq2000/iq2000.c : Likewise.
22331 * config/lm32/lm32.c : Likewise.
22332 * config/m32c/m32c-pragma.c : Likewise.
22333 * config/m32c/m32c.c : Likewise.
22334 * config/m32r/m32r.c : Likewise.
22335 * config/m68k/m68k.c : Likewise.
22336 * config/mcore/mcore.c : Likewise.
22337 * config/mep/mep-pragma.c : Likewise.
22338 * config/mep/mep.c : Likewise.
22339 * config/microblaze/microblaze-c.c : Likewise.
22340 * config/microblaze/microblaze.c : Likewise.
22341 * config/mips/mips.c : Likewise.
22342 * config/mmix/mmix.c : Likewise.
22343 * config/mn10300/mn10300.c : Likewise.
22344 * config/moxie/moxie.c : Likewise.
22345 * config/msp430/msp430-c.c : Likewise.
22346 * config/msp430/msp430.c : Likewise.
22347 * config/nds32/nds32-cost.c : Likewise.
22348 * config/nds32/nds32-fp-as-gp.c : Likewise.
22349 * config/nds32/nds32-intrinsic.c : Likewise.
22350 * config/nds32/nds32-isr.c : Likewise.
22351 * config/nds32/nds32-md-auxiliary.c : Likewise.
22352 * config/nds32/nds32-memory-manipulation.c : Likewise.
22353 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22354 * config/nds32/nds32-predicates.c : Likewise.
22355 * config/nds32/nds32.c : Likewise.
22356 * config/nios2/nios2.c : Likewise.
22357 * config/nvptx/nvptx.c : Likewise.
22358 * config/pa/pa.c : Likewise.
22359 * config/pdp11/pdp11.c : Likewise.
22360 * config/rl78/rl78-c.c : Likewise.
22361 * config/rl78/rl78.c : Likewise.
22362 * config/rs6000/rs6000-c.c : Likewise.
22363 * config/rs6000/rs6000.c : Likewise.
22364 * config/rx/rx.c : Likewise.
22365 * config/s390/s390-c.c : Likewise.
22366 * config/s390/s390.c : Likewise.
22367 * config/sh/sh-c.c : Likewise.
22368 * config/sh/sh-mem.cc : Likewise.
22369 * config/sh/sh.c : Likewise.
22370 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22371 * config/sh/sh_treg_combine.cc : Likewise.
22372 * config/sol2-c.c : Likewise.
22373 * config/sol2-cxx.c : Likewise.
22374 * config/sol2-stubs.c : Likewise.
22375 * config/sol2.c : Likewise.
22376 * config/sparc/sparc-c.c : Likewise.
22377 * config/sparc/sparc.c : Likewise.
22378 * config/spu/spu-c.c : Likewise.
22379 * config/spu/spu.c : Likewise.
22380 * config/stormy16/stormy16.c : Likewise.
22381 * config/tilegx/mul-tables.c : Likewise.
22382 * config/tilegx/tilegx-c.c : Likewise.
22383 * config/tilegx/tilegx.c : Likewise.
22384 * config/tilepro/mul-tables.c : Likewise.
22385 * config/tilepro/tilepro-c.c : Likewise.
22386 * config/tilepro/tilepro.c : Likewise.
22387 * config/v850/v850-c.c : Likewise.
22388 * config/v850/v850.c : Likewise.
22389 * config/vax/vax.c : Likewise.
22390 * config/visium/visium.c : Likewise.
22391 * config/vms/vms-c.c : Likewise.
22392 * config/vms/vms.c : Likewise.
22393 * config/vxworks.c : Likewise.
22394 * config/winnt-c.c : Likewise.
22395 * config/xtensa/xtensa.c : Likewise.
22397 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22400 * ipa-utils.h (warn_types_mismatch): Update prototype.
22401 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22403 (type_mismatch_p): New function.
22404 (warn_types_mismatch): Reorg to work better on non-C++ types.
22405 (odr_types_equivalent_p): Add loc1/loc2 parameters.
22406 (add_type_duplicate): Update.
22408 2015-06-08 Tom de Vries <tom@codesourcery.com>
22410 PR rtl-optimization/66444
22411 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22414 2015-06-08 Richard Biener <rguenther@suse.de>
22416 PR tree-optimization/66422
22417 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22418 block after inserted gcc_unreachable.
22420 2015-06-08 Nick Clifton <nickc@redhat.com>
22422 * config/rx/rx.c (rx_function_value): Do not promote vector types.
22423 (rx_promote_function_mode): Likewise.
22424 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22426 2015-06-08 Jakub Jelinek <jakub@redhat.com>
22428 * genattrtab.c (insn_alternatives): Change type from int *
22430 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22431 (get_attr_value): Change type of num_alt to uint64_t.
22432 (compute_alternative_mask): Change return type from
22433 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22434 (make_alternative_compare, mk_attr_alt): Change argument type
22435 from int to uint64_t.
22436 (simplify_test_exp): Change type of i from int to uint64_t.
22437 Shift ((uint64_t) 1) instead of 1 up.
22438 (main): Adjust oballocvec first argument from int to uint64_t.
22439 Shift ((uint64_t) 1) instead of 1 up.
22441 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
22444 * gdbhooks.py: Import sys.
22445 (intptr): New function. Replace int(...) by intptr(...).
22447 2015-06-08 Richard Biener <rguenther@suse.de>
22449 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22450 adjustment for gaps at the end of a SLP load group properly.
22451 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22452 all permutations we can generate.
22453 (vect_transform_slp_perm_load): Use the correct group-size.
22455 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
22457 * genmatch.c (expr::gen_transform): For conditions, guess the type
22458 from the second operand.
22460 2015-06-08 Tom de Vries <tom@codesourcery.com>
22462 PR tree-optimization/66442
22463 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22464 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22465 if the loop latch is not a singleton. Use
22466 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22468 2015-06-08 Marek Polacek <polacek@redhat.com>
22471 * toplev.c (check_global_declaration): Don't warn about artificial
22474 2015-06-08 Tom de Vries <tom@codesourcery.com>
22476 PR tree-optimization/66436
22477 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22479 * gimplify.c: Add tree-dump.h include.
22480 (gimplify_function_tree): Dump function to gimple dump file.
22481 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22484 2015-06-08 Tom de Vries <tom@codesourcery.com>
22486 PR tree-optimization/66435
22487 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22490 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
22492 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22493 of ptr_type_node to not be ptr_to_node.
22494 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22495 TREE_TYPE of pointers.
22496 * gimple-expr.c (useless_type_conversion): Reorder the check for
22497 function pointers and TYPE_CANONICAL.
22499 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
22502 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22503 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22504 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22506 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22507 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22508 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22509 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22510 and non iso if unix2003.
22512 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
22514 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22516 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
22518 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22519 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22520 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22521 except.c, final.c, function.c, gcse-common.c, genemit.c,
22522 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22523 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22524 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22525 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22528 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
22530 * combine.c (combine_split_insns): Remove cast.
22531 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22532 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22533 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22534 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22535 * genemit.c (gen_split): Change return type of generated functions to
22537 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22538 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22539 gen_peephole2_* functions.
22540 (print_subroutine, main): Likewise.
22541 * recog.c (peephole2_optimize): Remove cast.
22542 (peep2_next_insn): Promote return type to rtx_insn.
22543 * recog.h (peep2_next_insn): Fix prototype.
22544 * rtl.h (try_split, split_insns): Likewise.
22546 2015-06-06 DJ Delorie <dj@redhat.com>
22548 * config/msp430/msp430.c (msp430_asm_integer): Support addition
22549 and subtraction too.
22551 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
22554 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22555 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22556 instead of Snd. Disparage Sid/z alternative with '^'.
22558 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
22560 * dwarf2out.c: Remove deferred_locations*.
22561 (dwarf2_debug_hooks): Add early_finish hook.
22562 Remove global_decl hook.
22563 Add early_global_decl and late_global_decl hook.
22564 New global early_dwarf.
22565 New structure set_early_dwarf.
22566 (output_die): Indicate whether a DIE was generated early
22567 when generating assembly with -dA.
22568 (struct limbo_die_struct): Document created_for field.
22569 Remove file_table_last_lookup.
22570 (remove_AT): Return TRUE if successful.
22571 (remove_child_TAG): Clear die_parent.
22572 (reparent_child): New function abstracted from...
22573 (splice_child_die): ...here.
22574 (new_die): ICE if a DIE ends up in limbo too late.
22576 (defer_location): Remove.
22577 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22578 (fill_variable_array_bounds): New.
22579 (decl_start_label): Call fill_variable_array_bounds.
22580 (gen_formal_parameter_die): Rewrite to reuse previously generated
22582 (gen_subprogram_die): Same.
22583 (gen_variable_die): Same.
22584 (gen_const_die): Same.
22585 (gen_label_die): Same.
22586 (gen_lexical_block_die): Same.
22587 (decl_will_get_specification_p): New.
22588 (local_function_static): New.
22589 (gen_struct_or_union_type_die): Fill in variable-length fields.
22590 (gen_typedef_die): Fill in variable-length typedefs.
22591 (gen_tagged_type_die): Gracefully return on error_mark_node.
22592 Handle re-entrancy.
22593 (gen_type_die_with_usage): Handle variable-length types.
22594 Remove duplicate code for ARRAY_TYPE case.
22595 (process_scope_var): Only process imported modules during early
22597 (dwarf2out_early_global_decl): New.
22598 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22599 (dwarf2out_type_decl): Set early_dwarf while calling
22601 (dwarf2out_decl): Verify that we did not recreate a previously
22603 Do not return on DECL_EXTERNALs in VAR_DECLs.
22604 Abstract some code to local_function_static.
22605 (lookup_filename): Remove use of file_table_last_lookup.
22606 Gracefully exit on missing file_name.
22607 (dwarf2out_finish): Verify limbo list.
22608 Remove deferred_locations_list use.
22609 Move deferred_asm_name and limbo flushing to...
22610 (dwarf2out_early_finish): ...here. New.
22611 (dwarf2out_c_finalize): Remove set of deferred_location_list,
22612 deferred_asm_name, and file_table_last_lookup.
22613 * cgraph.h (referred_to_p): Add default argument.
22614 * cgraphunit.c (referred_to_p): Add and handle include_self
22616 (analyze_functions): Add first_time argument.
22617 Call check_global_declaration for all symbols.
22618 Call late_global_decl for nodes for moribund nodes.
22619 (finalize_compilation_unit): Add new argument to
22621 Call early_global_decl for functions.
22622 Call early_finish debug hook.
22623 * dbxout.c (dbxout_early_global_decl): New.
22624 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
22625 (dbx_debug_hooks): Add new hooks.
22626 (xcoff_debug_hooks): Same.
22627 * debug.c (do_nothing_debug_hooks): Add early_finish field.
22628 Add early and late debug hooks.
22629 Remove global_decl hook.
22630 * debug.h (struct gcc_debug_hooks): Add early_finish,
22631 early_global_decl, and late_global_decl fields.
22632 Remove global_decl field.
22633 Document gcc_debug_hooks.
22634 * gengtype.c (output_typename): Remove.
22635 * godump.c (go_early_global_decl): New.
22636 (go_late_global_decl): New.
22637 (go_global_decl): Remove.
22638 (dump_go_spec_init): Remove global_decl. Add
22639 {early,late}_global_decl.
22640 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22641 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22642 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22643 (write_global_declarations): Remove.
22644 (global_decl_processing): New.
22645 * langhooks.h (struct lang_hooks_for_decls): Remove
22646 final_write_globals field.
22647 Add post_compilation_parsing_cleanups field.
22648 * passes.c (rest_of_decl_compilation): Call early_global_decl.
22649 * sdbout.c: Add early and late_global_decl hooks. Remove
22650 sdbout_global_decl hook.
22651 Add early_finish field for sdb_debug_hooks.
22652 (sdbout_global_decl): Remove.
22653 (sdbout_early_global_decl): New.
22654 (sdbout_late_global_decl): New.
22655 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22656 * toplev.c (check_global_declaration): Rename from
22657 check_global_declaration_1.
22658 Adapt to use symtab infrastructure.
22659 (check_global_declarations): Remove.
22660 (emit_debug_global_declarations): Remove.
22661 (compile_file): Remove call to final_write_globals langhook.
22662 Run the actual compilation process.
22663 Perform any post compilation parser cleanups.
22664 Generate late debug info.
22665 * toplev.h (check_global_declaration): New.
22666 (check_global_declaration_1): Remove.
22667 (check_global_declarations): Remove.
22668 (write_global_declarations): Remove.
22669 (emit_debug_global_declarations): Remove.
22670 (global_decl_processing): New.
22671 * tree-core.h (struct tree_block): Add DIE field.
22672 * tree.h (BLOCK_DIE): New.
22673 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22675 (vmsdbgout_early_global_decl): New.
22676 (vmsdbgout_late_global_decl): New.
22677 Add early_finish debug hook field to vmsdbg_debug_hooks.
22678 Remove vmsdbgout_decl to vmsdbgout_function_decl.
22679 Add early and late_global_decl debug hooks.
22681 2015-06-05 Julian Brown <julian@codesourcery.com>
22682 Sandra Loosemore <sandra@codesourcery.com>
22684 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22685 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22686 to print-sysroot-suffix.sh script.
22688 2015-06-05 Tom de Vries <tom@codesourcery.com>
22690 merge from gomp4 branch:
22691 2015-05-28 Tom de Vries <tom@codesourcery.com>
22693 PR tree-optimization/65443
22694 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22695 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22696 (try_transform_to_exit_first_loop_alt): New function.
22697 (transform_to_exit_first_loop): Use
22698 try_transform_to_exit_first_loop_alt.
22700 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
22702 * builtins.c (expand_builtin_atomic_compare_exchange): Call
22703 emit_cmp_and_jump_insns with the mode of target.
22705 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22707 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22709 2015-06-04 DJ Delorie <dj@redhat.com>
22711 * config/msp430/msp430.md (movsi_s): New. Special case for
22712 storing a 20-bit symbol into a 32-bit register.
22713 * config/msp430/msp430.c (msp430_subreg): Add support for it.
22714 * config/msp430/predicates.md (msp430_symbol_operand): New.
22716 2015-06-04 Sriraman Tallam <tmsriram@google.com>
22718 * c-family/c-common.c (noplt): New attribute.
22719 (handle_noplt_attribute): New handler.
22720 * calls.c (prepare_call_address): Check for noplt
22722 * config/i386/i386.c (ix86_expand_call): Check
22723 for noplt attribute.
22724 (ix86_nopic_noplt_attribute_p): New function.
22725 (ix86_output_call_insn): Output indirect call for non-pic
22727 * doc/extend.texi (noplt): Document new attribute.
22728 * doc/invoke.texi: Document new attribute.
22730 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
22732 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22733 real.h, and fixed-value.h when included in host source files.
22734 * double-int.h: Remove redundant #includes listed above.
22735 * fixed-value.h: Likewise.
22736 * real.h: Likewise.
22737 * wide-int.h: Likewise.
22738 * inchash.h: Likewise.
22739 * rtl.h: Add some include files When included from a generator file.
22740 * target.h: Remove wide-int.h and insn-modes.h from the include list.
22741 * internal-fn.h: Don't include coretypes.h.
22742 * alias.c: Adjust includes for restructured coretypes.h.
22743 * asan.c: Likewise.
22744 * attribs.c: Likewise.
22745 * auto-inc-dec.c: Likewise.
22746 * auto-profile.c: Likewise.
22747 * bb-reorder.c: Likewise.
22748 * bt-load.c: Likewise.
22749 * builtins.c: Likewise.
22750 * caller-save.c: Likewise.
22751 * calls.c: Likewise.
22752 * ccmp.c: Likewise.
22754 * cfganal.c: Likewise.
22755 * cfgbuild.c: Likewise.
22756 * cfgcleanup.c: Likewise.
22757 * cfgexpand.c: Likewise.
22758 * cfghooks.c: Likewise.
22759 * cfgloop.c: Likewise.
22760 * cfgloop.h: Likewise.
22761 * cfgloopanal.c: Likewise.
22762 * cfgloopmanip.c: Likewise.
22763 * cfgrtl.c: Likewise.
22764 * cgraph.c: Likewise.
22765 * cgraphbuild.c: Likewise.
22766 * cgraphclones.c: Likewise.
22767 * cgraphunit.c: Likewise.
22768 * cilk-common.c: Likewise.
22769 * combine-stack-adj.c: Likewise.
22770 * combine.c: Likewise.
22771 * compare-elim.c: Likewise.
22772 * convert.c: Likewise.
22773 * coverage.c: Likewise.
22774 * cppbuiltin.c: Likewise.
22775 * cprop.c: Likewise.
22777 * cselib.c: Likewise.
22778 * data-streamer-in.c: Likewise.
22779 * data-streamer-out.c: Likewise.
22780 * data-streamer.c: Likewise.
22781 * dbxout.c: Likewise.
22784 * debug.c: Likewise.
22785 * df-core.c: Likewise.
22786 * df-problems.c: Likewise.
22787 * df-scan.c: Likewise.
22790 * dojump.c: Likewise.
22791 * dominance.c: Likewise.
22792 * domwalk.c: Likewise.
22793 * double-int.c: Likewise.
22795 * dumpfile.c: Likewise.
22796 * dwarf2asm.c: Likewise.
22797 * dwarf2cfi.c: Likewise.
22798 * dwarf2out.c: Likewise.
22799 * dwarf2out.h: Likewise.
22800 * emit-rtl.c: Likewise.
22801 * et-forest.c: Likewise.
22802 * except.c: Likewise.
22803 * explow.c: Likewise.
22804 * expmed.c: Likewise.
22805 * expr.c: Likewise.
22806 * final.c: Likewise.
22807 * fixed-value.c: Likewise.
22808 * fold-const.c: Likewise.
22809 * function.c: Likewise.
22810 * fwprop.c: Likewise.
22811 * gcc-plugin.h: Likewise.
22812 * gcse.c: Likewise.
22813 * generic-match-head.c: Likewise.
22814 * ggc-page.c: Likewise.
22815 * gimple-builder.c: Likewise.
22816 * gimple-expr.c: Likewise.
22817 * gimple-fold.c: Likewise.
22818 * gimple-iterator.c: Likewise.
22819 * gimple-low.c: Likewise.
22820 * gimple-match-head.c: Likewise.
22821 * gimple-pretty-print.c: Likewise.
22822 * gimple-ssa-isolate-paths.c: Likewise.
22823 * gimple-ssa-strength-reduction.c: Likewise.
22824 * gimple-streamer-in.c: Likewise.
22825 * gimple-streamer-out.c: Likewise.
22826 * gimple-streamer.h: Likewise.
22827 * gimple-walk.c: Likewise.
22828 * gimple.c: Likewise.
22829 * gimplify-me.c: Likewise.
22830 * gimplify.c: Likewise.
22831 * godump.c: Likewise.
22832 * graph.c: Likewise.
22833 * graphite-blocking.c: Likewise.
22834 * graphite-dependences.c: Likewise.
22835 * graphite-interchange.c: Likewise.
22836 * graphite-isl-ast-to-gimple.c: Likewise.
22837 * graphite-optimize-isl.c: Likewise.
22838 * graphite-poly.c: Likewise.
22839 * graphite-scop-detection.c: Likewise.
22840 * graphite-sese-to-poly.c: Likewise.
22841 * graphite.c: Likewise.
22842 * haifa-sched.c: Likewise.
22843 * hooks.h: Likewise.
22844 * hw-doloop.c: Likewise.
22845 * ifcvt.c: Likewise.
22846 * incpath.c: Likewise.
22847 * init-regs.c: Likewise.
22848 * internal-fn.c: Likewise.
22849 * ipa-chkp.c: Likewise.
22850 * ipa-comdats.c: Likewise.
22851 * ipa-cp.c: Likewise.
22852 * ipa-devirt.c: Likewise.
22853 * ipa-icf-gimple.c: Likewise.
22854 * ipa-icf.c: Likewise.
22855 * ipa-inline-analysis.c: Likewise.
22856 * ipa-inline-transform.c: Likewise.
22857 * ipa-inline.c: Likewise.
22858 * ipa-polymorphic-call.c: Likewise.
22859 * ipa-profile.c: Likewise.
22860 * ipa-prop.c: Likewise.
22861 * ipa-pure-const.c: Likewise.
22862 * ipa-ref.c: Likewise.
22863 * ipa-reference.c: Likewise.
22864 * ipa-split.c: Likewise.
22865 * ipa-utils.c: Likewise.
22866 * ipa-visibility.c: Likewise.
22868 * ira-build.c: Likewise.
22869 * ira-color.c: Likewise.
22870 * ira-conflicts.c: Likewise.
22871 * ira-costs.c: Likewise.
22872 * ira-emit.c: Likewise.
22873 * ira-lives.c: Likewise.
22875 * jump.c: Likewise.
22876 * langhooks.c: Likewise.
22878 * loop-doloop.c: Likewise.
22879 * loop-init.c: Likewise.
22880 * loop-invariant.c: Likewise.
22881 * loop-iv.c: Likewise.
22882 * loop-unroll.c: Likewise.
22883 * lower-subreg.c: Likewise.
22884 * lra-assigns.c: Likewise.
22885 * lra-coalesce.c: Likewise.
22886 * lra-constraints.c: Likewise.
22887 * lra-eliminations.c: Likewise.
22888 * lra-lives.c: Likewise.
22889 * lra-remat.c: Likewise.
22890 * lra-spills.c: Likewise.
22892 * lto-cgraph.c: Likewise.
22893 * lto-compress.c: Likewise.
22894 * lto-opts.c: Likewise.
22895 * lto-section-in.c: Likewise.
22896 * lto-section-out.c: Likewise.
22897 * lto-streamer-in.c: Likewise.
22898 * lto-streamer-out.c: Likewise.
22899 * lto-streamer.c: Likewise.
22901 * mode-switching.c: Likewise.
22902 * modulo-sched.c: Likewise.
22903 * omega.c: Likewise.
22904 * omp-low.c: Likewise.
22905 * optabs.c: Likewise.
22906 * opts-global.c: Likewise.
22907 * passes.c: Likewise.
22908 * plugin.c: Likewise.
22909 * postreload-gcse.c: Likewise.
22910 * postreload.c: Likewise.
22911 * predict.c: Likewise.
22912 * print-rtl.c: Likewise.
22913 * print-tree.c: Likewise.
22914 * profile.c: Likewise.
22915 * real.c: Likewise.
22916 * realmpfr.c: Likewise.
22917 * realmpfr.h: Likewise.
22918 * recog.c: Likewise.
22920 * reg-stack.c: Likewise.
22921 * regcprop.c: Likewise.
22922 * reginfo.c: Likewise.
22923 * regrename.c: Likewise.
22924 * regs.h: Likewise.
22925 * regstat.c: Likewise.
22926 * reload.c: Likewise.
22927 * reload1.c: Likewise.
22928 * reorg.c: Likewise.
22929 * resource.c: Likewise.
22930 * rtl-chkp.c: Likewise.
22931 * rtlanal.c: Likewise.
22932 * rtlhooks.c: Likewise.
22933 * sanopt.c: Likewise.
22934 * sched-deps.c: Likewise.
22935 * sched-ebb.c: Likewise.
22936 * sched-rgn.c: Likewise.
22937 * sched-vis.c: Likewise.
22938 * sdbout.c: Likewise.
22939 * sel-sched-dump.c: Likewise.
22940 * sel-sched-ir.c: Likewise.
22941 * sel-sched.c: Likewise.
22942 * sese.c: Likewise.
22943 * shrink-wrap.c: Likewise.
22944 * shrink-wrap.h: Likewise.
22945 * simplify-rtx.c: Likewise.
22946 * stack-ptr-mod.c: Likewise.
22947 * statistics.c: Likewise.
22948 * stmt.c: Likewise.
22949 * stor-layout.c: Likewise.
22950 * store-motion.c: Likewise.
22951 * stringpool.c: Likewise.
22952 * symtab.c: Likewise.
22953 * target-globals.c: Likewise.
22954 * targhooks.c: Likewise.
22955 * toplev.c: Likewise.
22956 * tracer.c: Likewise.
22957 * trans-mem.c: Likewise.
22958 * tree-affine.c: Likewise.
22959 * tree-affine.h: Likewise.
22960 * tree-browser.c: Likewise.
22961 * tree-call-cdce.c: Likewise.
22962 * tree-cfg.c: Likewise.
22963 * tree-cfgcleanup.c: Likewise.
22964 * tree-chkp-opt.c: Likewise.
22965 * tree-chkp.c: Likewise.
22966 * tree-chrec.c: Likewise.
22967 * tree-complex.c: Likewise.
22968 * tree-data-ref.c: Likewise.
22969 * tree-dfa.c: Likewise.
22970 * tree-diagnostic.c: Likewise.
22971 * tree-dump.c: Likewise.
22972 * tree-eh.c: Likewise.
22973 * tree-emutls.c: Likewise.
22974 * tree-if-conv.c: Likewise.
22975 * tree-inline.c: Likewise.
22976 * tree-into-ssa.c: Likewise.
22977 * tree-iterator.c: Likewise.
22978 * tree-loop-distribution.c: Likewise.
22979 * tree-nested.c: Likewise.
22980 * tree-nrv.c: Likewise.
22981 * tree-object-size.c: Likewise.
22982 * tree-outof-ssa.c: Likewise.
22983 * tree-parloops.c: Likewise.
22984 * tree-phinodes.c: Likewise.
22985 * tree-predcom.c: Likewise.
22986 * tree-pretty-print.c: Likewise.
22987 * tree-pretty-print.h: Likewise.
22988 * tree-profile.c: Likewise.
22989 * tree-scalar-evolution.c: Likewise.
22990 * tree-sra.c: Likewise.
22991 * tree-ssa-address.c: Likewise.
22992 * tree-ssa-alias.c: Likewise.
22993 * tree-ssa-ccp.c: Likewise.
22994 * tree-ssa-coalesce.c: Likewise.
22995 * tree-ssa-copy.c: Likewise.
22996 * tree-ssa-copyrename.c: Likewise.
22997 * tree-ssa-dce.c: Likewise.
22998 * tree-ssa-dom.c: Likewise.
22999 * tree-ssa-dse.c: Likewise.
23000 * tree-ssa-forwprop.c: Likewise.
23001 * tree-ssa-ifcombine.c: Likewise.
23002 * tree-ssa-live.c: Likewise.
23003 * tree-ssa-loop-ch.c: Likewise.
23004 * tree-ssa-loop-im.c: Likewise.
23005 * tree-ssa-loop-ivcanon.c: Likewise.
23006 * tree-ssa-loop-ivopts.c: Likewise.
23007 * tree-ssa-loop-manip.c: Likewise.
23008 * tree-ssa-loop-niter.c: Likewise.
23009 * tree-ssa-loop-prefetch.c: Likewise.
23010 * tree-ssa-loop-unswitch.c: Likewise.
23011 * tree-ssa-loop.c: Likewise.
23012 * tree-ssa-loop.h: Likewise.
23013 * tree-ssa-math-opts.c: Likewise.
23014 * tree-ssa-operands.c: Likewise.
23015 * tree-ssa-phiopt.c: Likewise.
23016 * tree-ssa-phiprop.c: Likewise.
23017 * tree-ssa-pre.c: Likewise.
23018 * tree-ssa-propagate.c: Likewise.
23019 * tree-ssa-reassoc.c: Likewise.
23020 * tree-ssa-sccvn.c: Likewise.
23021 * tree-ssa-scopedtables.c: Likewise.
23022 * tree-ssa-sink.c: Likewise.
23023 * tree-ssa-strlen.c: Likewise.
23024 * tree-ssa-structalias.c: Likewise.
23025 * tree-ssa-tail-merge.c: Likewise.
23026 * tree-ssa-ter.c: Likewise.
23027 * tree-ssa-threadedge.c: Likewise.
23028 * tree-ssa-threadupdate.c: Likewise.
23029 * tree-ssa-uncprop.c: Likewise.
23030 * tree-ssa-uninit.c: Likewise.
23031 * tree-ssa.c: Likewise.
23032 * tree-ssanames.c: Likewise.
23033 * tree-stdarg.c: Likewise.
23034 * tree-streamer-in.c: Likewise.
23035 * tree-streamer-out.c: Likewise.
23036 * tree-streamer.c: Likewise.
23037 * tree-switch-conversion.c: Likewise.
23038 * tree-tailcall.c: Likewise.
23039 * tree-vect-data-refs.c: Likewise.
23040 * tree-vect-generic.c: Likewise.
23041 * tree-vect-loop-manip.c: Likewise.
23042 * tree-vect-loop.c: Likewise.
23043 * tree-vect-patterns.c: Likewise.
23044 * tree-vect-slp.c: Likewise.
23045 * tree-vect-stmts.c: Likewise.
23046 * tree-vectorizer.c: Likewise.
23047 * tree-vrp.c: Likewise.
23048 * tree.c: Likewise.
23049 * tsan.c: Likewise.
23050 * ubsan.c: Likewise.
23051 * valtrack.c: Likewise.
23052 * value-prof.c: Likewise.
23053 * var-tracking.c: Likewise.
23054 * varasm.c: Likewise.
23055 * varpool.c: Likewise.
23056 * vmsdbgout.c: Likewise.
23057 * vtable-verify.c: Likewise.
23059 * wide-int-print.cc: Likewise.
23060 * wide-int-print.h: Likewise.
23061 * wide-int.cc: Likewise.
23062 * xcoffout.c: Likewise.
23063 * config/aarch64/aarch64-builtins.c: Likewise.
23064 * config/aarch64/aarch64.c: Likewise.
23065 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23066 * config/alpha/alpha.c: Likewise.
23067 * config/arc/arc.c: Likewise.
23068 * config/arm/aarch-common.c: Likewise.
23069 * config/arm/arm-builtins.c: Likewise.
23070 * config/arm/arm-c.c: Likewise.
23071 * config/arm/arm.c: Likewise.
23072 * config/avr/avr-c.c: Likewise.
23073 * config/avr/avr-log.c: Likewise.
23074 * config/avr/avr.c: Likewise.
23075 * config/bfin/bfin.c: Likewise.
23076 * config/c6x/c6x.c: Likewise.
23077 * config/cr16/cr16.c: Likewise.
23078 * config/cris/cris.c: Likewise.
23079 * config/darwin-c.c: Likewise.
23080 * config/darwin.c: Likewise.
23081 * config/default-c.c: Likewise.
23082 * config/epiphany/epiphany.c: Likewise.
23083 * config/epiphany/mode-switch-use.c: Likewise.
23084 * config/epiphany/resolve-sw-modes.c: Likewise.
23085 * config/fr30/fr30.c: Likewise.
23086 * config/frv/frv.c: Likewise.
23087 * config/ft32/ft32.c: Likewise.
23088 * config/glibc-c.c: Likewise.
23089 * config/h8300/h8300.c: Likewise.
23090 * config/i386/i386-c.c: Likewise.
23091 * config/i386/i386.c: Likewise.
23092 * config/i386/msformat-c.c: Likewise.
23093 * config/i386/winnt-cxx.c: Likewise.
23094 * config/i386/winnt-stubs.c: Likewise.
23095 * config/i386/winnt.c: Likewise.
23096 * config/ia64/ia64-c.c: Likewise.
23097 * config/ia64/ia64.c: Likewise.
23098 * config/iq2000/iq2000.c: Likewise.
23099 * config/lm32/lm32.c: Likewise.
23100 * config/m32c/m32c-pragma.c: Likewise.
23101 * config/m32c/m32c.c: Likewise.
23102 * config/m32r/m32r.c: Likewise.
23103 * config/m68k/m68k.c: Likewise.
23104 * config/mcore/mcore.c: Likewise.
23105 * config/mep/mep-pragma.c: Likewise.
23106 * config/mep/mep.c: Likewise.
23107 * config/microblaze/microblaze-c.c: Likewise.
23108 * config/microblaze/microblaze.c: Likewise.
23109 * config/mips/mips.c: Likewise.
23110 * config/mmix/mmix.c: Likewise.
23111 * config/mn10300/mn10300.c: Likewise.
23112 * config/moxie/moxie.c: Likewise.
23113 * config/msp430/msp430-c.c: Likewise.
23114 * config/msp430/msp430.c: Likewise.
23115 * config/nds32/nds32-cost.c: Likewise.
23116 * config/nds32/nds32-fp-as-gp.c: Likewise.
23117 * config/nds32/nds32-intrinsic.c: Likewise.
23118 * config/nds32/nds32-isr.c: Likewise.
23119 * config/nds32/nds32-md-auxiliary.c: Likewise.
23120 * config/nds32/nds32-memory-manipulation.c: Likewise.
23121 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23122 * config/nds32/nds32-predicates.c: Likewise.
23123 * config/nds32/nds32.c: Likewise.
23124 * config/nios2/nios2.c: Likewise.
23125 * config/nvptx/nvptx.c: Likewise.
23126 * config/pa/pa.c: Likewise.
23127 * config/pdp11/pdp11.c: Likewise.
23128 * config/rl78/rl78-c.c: Likewise.
23129 * config/rl78/rl78.c: Likewise.
23130 * config/rs6000/rs6000-c.c: Likewise.
23131 * config/rs6000/rs6000.c: Likewise.
23132 * config/rx/rx.c: Likewise.
23133 * config/s390/s390-c.c: Likewise.
23134 * config/s390/s390.c: Likewise.
23135 * config/sh/sh-c.c: Likewise.
23136 * config/sh/sh-mem.cc: Likewise.
23137 * config/sh/sh.c: Likewise.
23138 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23139 * config/sh/sh_treg_combine.cc: Likewise.
23140 * config/sol2-c.c: Likewise.
23141 * config/sol2-cxx.c: Likewise.
23142 * config/sol2-stubs.c: Likewise.
23143 * config/sol2.c: Likewise.
23144 * config/sparc/sparc-c.c: Likewise.
23145 * config/sparc/sparc.c: Likewise.
23146 * config/spu/spu-c.c: Likewise.
23147 * config/spu/spu.c: Likewise.
23148 * config/stormy16/stormy16.c: Likewise.
23149 * config/tilegx/mul-tables.c: Likewise.
23150 * config/tilegx/tilegx-c.c: Likewise.
23151 * config/tilegx/tilegx.c: Likewise.
23152 * config/tilepro/mul-tables.c: Likewise.
23153 * config/tilepro/tilepro-c.c: Likewise.
23154 * config/tilepro/tilepro.c: Likewise.
23155 * config/v850/v850-c.c: Likewise.
23156 * config/v850/v850.c: Likewise.
23157 * config/vax/vax.c: Likewise.
23158 * config/visium/visium.c: Likewise.
23159 * config/vms/vms-c.c: Likewise.
23160 * config/vms/vms.c: Likewise.
23161 * config/vxworks.c: Likewise.
23162 * config/winnt-c.c: Likewise.
23163 * config/xtensa/xtensa.c: Likewise.
23164 * common/config/bfin/bfin-common.c: Likewise.
23166 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
23168 * tree.h (tree_code_for_canonical_type_merging): New function.
23169 * tree.c (gimple_canonical_types_compatible_p): Use
23170 tree_code_for_canonical_type_merging..
23172 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23176 * doc/tm.texi: Regenerate.
23177 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23178 * target.def (TARGET_RELAXED_ORDERING): Likewise.
23179 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23180 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23181 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23182 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23183 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23184 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23185 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23187 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23189 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23190 register fma steering pass.
23191 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23192 AARCH64_TUNE_FMA_STEERING.
23194 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
23196 * tree.c (verify_type_variant): Verify that type and variant is
23198 (gimple_canonical_types_compatible_p): Look for main variants.
23200 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23202 * config.gcc (powerpc*-*-*): Add support for a new configure
23203 option --with-advance-toolchain=<xxx> which overrides using the
23204 default header files, libraries and dynamic linker.
23206 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23207 specs to support the configure --with-advance-toolchain=<xxx>
23209 (INCLUDE_EXTRA_SPEC): Likewise.
23210 (LINK_OS_EXTRA_SPEC32): Likewise.
23211 (LINK_OK_EXTRA_SPEC64): Likewise.
23212 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23213 (DYNAMIC_LINKER_PREFIX): Likewise.
23214 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23216 (GLIBC_DYNAMIC_LINKER32): Likewise.
23217 (GLIBC_DYNAMIC_LINKER64): Likewise.
23218 (LINK_OS_LINUX_SPEC32): Likewise.
23219 (LINK_OS_LINUX_SPEC64): Likewise.
23221 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23222 configuration option.
23224 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
23227 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23228 to determine current function ABI.
23229 (ix86_function_value_regno_p): Ditto.
23231 2015-06-03 Martin Liska <mliska@suse.cz>
23233 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23234 * bitmap.h (struct bitmap_usage): Likewise.
23235 * ggc-common.c (struct ggc_usage): Likewise.
23236 * mem-stats.h (struct mem_location): Likewise.
23237 (struct mem_usage): Likewise.
23238 * vec.c (struct vec_usage): Likewise.
23240 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
23242 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23245 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
23247 * doc/plugins.texi (enum plugin_event): New event.
23248 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23249 and PLUGIN_FINISH_FUNCTION.
23250 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23251 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23253 2015-06-03 Richard Biener <rguenther@suse.de>
23255 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23256 compute GROUP_GAP for the first element.
23257 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23260 2015-06-03 Nick Clifton <nickc@redhat.com>
23262 * config/rl78/rl78-real.md: Add peepholes to avoid a register
23263 copy when calling a function.
23264 * config/rl78/rl78.c (need_to_save): Do not push the frame
23265 pointer in an interrupt handler prologue if it is never used.
23267 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23269 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23271 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23273 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23274 reference when cloning alias node.
23276 2015-06-03 Martin Liska <mliska@suse.cz>
23278 * alloc-pool.h (struct pool_usage): Correct space padding.
23279 * ggc-page.c (ggc_print_statistics): Align columns in a report.
23280 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23281 * tree.c (dump_tree_statistics): Align columns in a report.
23283 2015-06-03 Martin Liska <mliska@suse.cz>
23285 * alloc-pool.c (allocate_pool_descriptor): Remove.
23286 (struct pool_output_info): Likewise.
23287 (print_alloc_pool_statistics): Likewise.
23288 (dump_alloc_pool_statistics): Likewise.
23289 * alloc-pool.h (struct pool_usage): New struct.
23290 (pool_allocator::initialize): Change usage of memory statistics
23291 to a new interface.
23292 (pool_allocator::release): Likewise.
23293 (pool_allocator::allocate): Likewise.
23294 (pool_allocator::remove): Likewise.
23295 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23296 for a pool allocator.
23297 * mem-stats.h (struct mem_location): Add new ctor.
23298 (struct mem_usage): Add counter for number of
23300 (mem_alloc_description::register_descriptor): New overload of
23301 * mem-stats.h (mem_location::to_string): New function.
23302 * bitmap.h (struct bitmap_usage): Use this new function.
23303 * ggc-common.c (struct ggc_usage): Likewise.
23306 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23308 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23309 of GCC_INSN_FLAGS_H block.
23311 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23313 * explow.c (plus_constant): Update check after force_const_mem call
23314 to see if the value returned is not a NULL_RTX.
23316 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23318 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23319 remove instumentation thunks calling reachable functions.
23320 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23321 * lto/lto-partition.c (privatize_symbol_name_1): New.
23322 (privatize_symbol_name): Privatize both decl and orig_decl
23323 names for instrumented functions.
23324 * cgraph.c (cgraph_node::verify_node): Add transparent
23325 alias chain check for instrumented node.
23327 2015-06-03 Marek Polacek <polacek@redhat.com>
23331 * tree.c (attribute_value_equal): Handle attribute format.
23332 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23334 2015-06-03 Richard Biener <rguenther@suse.de>
23336 PR tree-optimization/63916
23337 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23338 Forward-propagate non-invariant addresses by splicing their
23339 reference ops if the result isn't going to be used by PRE.
23340 (vn_reference_lookup_3): Remove pointless assert.
23342 2015-06-03 Richard Biener <rguenther@suse.de>
23344 PR tree-optimization/66375
23345 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23346 add to the evolution before following SSA edges.
23348 2015-06-03 Bin Cheng <bin.cheng@arm.com>
23350 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23351 (dump_use, dump_cand, find_induction_variables): Pass new argument
23353 (record_use): Preserve the ssa name information in IV.
23355 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23357 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23359 (add_mode_tests): Don't add mode tests if the predicate only
23360 accepts scalar constant integers. Otherwise, allow the mode
23361 of "op" to be VOIDmode if the predicate does accept such integers.
23363 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
23366 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23367 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23368 (aarch64_secondary_reload): Likewise
23369 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23371 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23374 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
23375 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23378 * cprop.c (try_replace_reg): Check cost of constants before propagating.
23380 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23382 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23383 provide access to the IBM extended double floating point mode if
23384 long double is IEEE 128-bit floating point.
23385 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23386 point if long double is the IBM extended double type.
23388 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23389 enable adding IEEE 128-bit floating point support.
23390 (-mfloat128-software): Likewise.
23391 (-mfloat128-sw): Likewise.
23393 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23394 128-bit floating point types to occupy any register if
23395 -mlong-double-64. Do not allow use of IFmode/KFmode unless
23396 -mfloat128-software is enabled.
23397 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23399 (rs6000_option_override_internal): Add -mfloat128-* support.
23400 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23402 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23403 and float128 type nodes.
23404 (ieee128_float_type_node): Likewise.
23405 (ibm128_float_type_node): Likewise.
23407 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23410 * config/aarch64/geniterators.sh: Rewrite in awk.
23412 2015-06-02 Martin Liska <mliska@suse.cz>
23414 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23415 values to avoid -Wmaybe-uninitialized errors.
23417 2015-06-02 Richard Biener <rguenther@suse.de>
23420 * dwarf2out.c (lookup_context_die): New function.
23421 (resolve_addr): Avoid forcing a full DIE for the
23422 target of a DW_TAG_GNU_call_site during late compilation.
23423 Instead create a stub DIE without a type if we have a
23424 context DIE present.
23426 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
23428 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23430 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23432 PR tree-optimization/48052
23433 * cfgloop.h (struct control_iv): New.
23434 (struct loop): New field control_ivs.
23435 * tree-ssa-loop-niter.c : Include "stor-layout.h".
23436 (number_of_iterations_lt): Set no_overflow information.
23437 (number_of_iterations_exit): Init control iv in niter struct.
23438 (record_control_iv): New.
23439 (estimate_numbers_of_iterations_loop): Call record_control_iv.
23440 (loop_exits_before_overflow): New. Interface factored out of
23441 scev_probably_wraps_p.
23442 (scev_probably_wraps_p): Factor loop niter related code into
23443 loop_exits_before_overflow.
23444 (free_numbers_of_iterations_estimates_loop): Free control ivs.
23445 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23447 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
23449 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23450 the target doesn't belong to the current function.
23452 2015-06-02 Marek Polacek <polacek@redhat.com>
23454 PR middle-end/66345
23455 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23456 get_maxval_strlen does not produce an INTEGER_CST.
23458 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
23460 * config/arc/constraints.md: Use lower-case names in match_code.
23461 * config/mmix/constraints.md: Likewise.
23463 2015-06-02 Richard Biener <rguenther@suse.de>
23465 PR tree-optimization/65961
23466 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23467 check and clarify dump message.
23468 (vect_build_slp_tree): If all children are built up from scalars
23469 build up the parent from scalars instead.
23470 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23472 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
23475 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
23476 instead of print ... .
23478 2015-06-02 Alan Modra <amodra@gmail.com>
23480 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23483 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23485 PR tree-optimization/52563
23486 PR tree-optimization/62173
23487 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
23488 (alloc_iv, set_iv): New parameter.
23489 (determine_biv_step): Delete.
23490 (find_bivs): Inline original determine_biv_step. Pass new
23491 argument to set_iv.
23492 (idx_find_step): Use no_overflow information for conversion.
23493 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23494 resolve_mixers handle folded_casts.
23495 (instantiate_scev_name): Change bool parameter to bool pointer.
23496 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23497 (instantiate_array_ref, instantiate_scev_not): Ditto.
23498 (instantiate_scev_3, instantiate_scev_2): Ditto.
23499 (instantiate_scev_1, instantiate_scev_r): Ditto.
23500 (instantiate_scev_convert, ): Change parameter. Pass argument
23501 to chrec_convert_aggressive.
23502 (instantiate_scev): Change argument.
23503 (resolve_mixers): New parameter and set it.
23504 (scev_const_prop): New argument.
23505 * tree-scalar-evolution.h (resolve_mixers): New parameter.
23506 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23508 (chrec_convert): New parameter. Move definition below.
23509 (chrec_convert_aggressive): New parameter and set it. Call
23510 convert_affine_scev.
23511 * tree-chrec.h (chrec_convert): New parameter.
23512 (chrec_convert_aggressive): Ditto.
23514 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23516 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23517 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23518 the LHS of a no-return call if its type has variable size.
23519 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23520 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23522 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
23524 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23525 * config.in: Regenerate.
23527 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23529 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23530 consecutive accesses within outer-loop with force_vectorize
23531 for references with zero step in inner-loop.
23533 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23535 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23536 rather than from gcc/build directory.
23538 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23541 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23542 for __sync memory models, emit initial loads and final barriers as
23545 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23548 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23549 (aarch64_split_atomic_op): Check for __sync memory models, emit
23550 appropriate initial loads and final barriers.
23552 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23554 * Makefile.in: Fix gcov dependencies that should
23555 not point to a build folder.
23557 2015-06-01 Richard Biener <rguenther@suse.de>
23560 2015-05-29 Richard Biener <rguenther@suse.de>
23562 PR tree-optimization/66314
23563 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23564 parameter that says which loop the new block belongs to.
23565 (ssa_create_duplicates): Blocks duplicated for the threaded
23566 path belong to the loop of the thread destination.
23568 2015-06-01 Martin Liska <mliska@suse.cz>
23570 * sched-deps.c: Include pool-alloc.h before
23571 cselib.h header file is included.
23573 2015-06-01 Richard Biener <rguenther@suse.de>
23575 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23578 2015-06-01 Martin Liska <mliska@suse.cz>
23580 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23581 a function local variable.
23583 2015-06-01 Martin Liska <mliska@suse.cz>
23585 * alloc-pool.c (create_alloc_pool): Remove.
23586 (empty_alloc_pool): Likewise.
23587 (free_alloc_pool): Likewise.
23588 (free_alloc_pool_if_empty): Likewise.
23589 (pool_alloc): Likewise.
23590 (pool_free): Likewise.
23591 * alloc-pool.h: Remove old declarations.
23593 2015-06-01 Martin Liska <mliska@suse.cz>
23595 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23596 (ira_create_object): Likewise.
23597 (ira_create_allocno): Likewise.
23598 (ira_create_live_range): Likewise.
23599 (copy_live_range): Likewise.
23600 (ira_finish_live_range): Likewise.
23601 (ira_free_allocno_costs): Likewise.
23602 (finish_allocno): Likewise.
23603 (finish_allocnos): Likewise.
23604 (initiate_prefs): Likewise.
23605 (ira_create_pref): Likewise.
23606 (finish_pref): Likewise.
23607 (finish_prefs): Likewise.
23608 (initiate_copies): Likewise.
23609 (ira_create_copy): Likewise.
23610 (finish_copy): Likewise.
23611 (finish_copies): Likewise.
23612 (finish_prefs): Likewise.
23614 2015-06-01 Martin Liska <mliska@suse.cz>
23616 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23617 (allocate_and_init_ipcp_value): Likewise.
23618 (ipcp_lattice::add_value): Likewise.
23619 (merge_agg_lats_step): Likewise.
23620 (ipcp_driver): Likewise.
23621 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23622 (ipa_free_all_structures_after_iinln): Likewise.
23623 * ipa-prop.h: Likewise.
23625 2015-06-01 Martin Liska <mliska@suse.cz>
23627 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23629 (set_hint_predicate): Likewise.
23630 (inline_summary_alloc): Likewise.
23631 (reset_inline_edge_summary): Likewise.
23632 (reset_inline_summary): Likewise.
23633 (set_cond_stmt_execution_predicate): Likewise.
23634 (set_switch_stmt_execution_predicate): Likewise.
23635 (compute_bb_predicates): Likewise.
23636 (estimate_function_body_sizes): Likewise.
23637 (inline_free_summary): Likewise.
23639 2015-06-01 Martin Liska <mliska@suse.cz>
23641 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23642 (ipa_edge_duplication_hook): Likewise.
23643 (ipa_free_all_structures_after_ipa_cp): Likewise.
23644 (ipa_free_all_structures_after_iinln): Likewise.
23646 2015-06-01 Martin Liska <mliska@suse.cz>
23648 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23649 (ipa_profile_generate_summary): Likewise.
23650 (ipa_profile_read_summary): Likewise.
23651 (ipa_profile): Likewise.
23653 2015-06-01 Martin Liska <mliska@suse.cz>
23655 * tree-ssa-structalias.c (new_var_info): Use new type-based
23657 (new_constraint): Likewise.
23658 (init_alias_vars): Likewise.
23659 (delete_points_to_sets): Likewise.
23661 2015-06-01 Martin Liska <mliska@suse.cz>
23663 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23664 (free_strinfo): Likewise.
23665 (pass_strlen::execute): Likewise.
23667 2015-06-01 Martin Liska <mliska@suse.cz>
23669 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23671 (vn_reference_insert_pieces): Likewise.
23672 (vn_phi_insert): Likewise.
23673 (visit_reference_op_call): Likewise.
23674 (copy_phi): Likewise.
23675 (copy_reference): Likewise.
23676 (process_scc): Likewise.
23677 (allocate_vn_table): Likewise.
23678 (free_vn_table): Likewise.
23680 2015-06-01 Martin Liska <mliska@suse.cz>
23682 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23684 (add_repeat_to_ops_vec): Likewise.
23685 (get_ops): Likewise.
23686 (maybe_optimize_range_tests): Likewise.
23687 (init_reassoc): Likewise.
23688 (fini_reassoc): Likewise.
23690 2015-06-01 Martin Liska <mliska@suse.cz>
23692 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23694 (bitmap_set_new): Likewise.
23695 (get_or_alloc_expr_for_constant): Likewise.
23696 (get_or_alloc_expr_for): Likewise.
23697 (phi_translate_1): Likewise.
23698 (compute_avail): Likewise.
23699 (init_pre): Likewise.
23700 (fini_pre): Likewise.
23702 2015-06-01 Martin Liska <mliska@suse.cz>
23704 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23705 (delete_dep_node): Likewise.
23706 (create_deps_list): Likewise.
23707 (free_deps_list): Likewise.
23708 (sched_deps_init): Likewise.
23709 (sched_deps_finish): Likewise.
23711 2015-06-01 Martin Liska <mliska@suse.cz>
23713 * regcprop.c (free_debug_insn_changes): Use new type-based
23715 (replace_oldest_value_reg): Likewise.
23716 (pass_cprop_hardreg::execute): Likewise.
23718 2015-06-01 Martin Liska <mliska@suse.cz>
23720 * ira-build.c (initiate_cost_vectors): Use new type-based
23722 (ira_allocate_cost_vector): Likewise.
23723 (ira_free_cost_vector): Likewise.
23724 (finish_cost_vectors): Likewise.
23726 2015-06-01 Martin Liska <mliska@suse.cz>
23728 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23730 (free_sched_pools): Likewise.
23731 * sel-sched-ir.h (_list_alloc): Likewise.
23732 (_list_remove): Likewise.
23734 2015-06-01 Martin Liska <mliska@suse.cz>
23736 * stmt.c (add_case_node): Use new type-based pool allocator.
23737 (expand_case): Likewise.
23738 (expand_sjlj_dispatch_table): Likewise.
23740 2015-06-01 Martin Liska <mliska@suse.cz>
23742 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23743 (free_bb): Likewise.
23744 (pass_cse_reciprocals::execute): Likewise.
23746 2015-06-01 Martin Liska <mliska@suse.cz>
23748 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23749 (sra_deinitialize) Likewise.
23750 (create_access_1) Likewise.
23751 (build_accesses_from_assign) Likewise.
23752 (create_artificial_child_access) Likewise.
23754 2015-06-01 Martin Liska <mliska@suse.cz>
23756 * dse.c (get_group_info):Use new type-based pool allocator.
23757 (dse_step0) Likewise.
23758 (free_store_info) Likewise.
23759 (delete_dead_store_insn) Likewise.
23760 (free_read_records) Likewise.
23761 (record_store) Likewise.
23762 (replace_read) Likewise.
23763 (check_mem_read_rtx) Likewise.
23764 (scan_insn) Likewise.
23765 (dse_step1) Likewise.
23766 (dse_step7) Likewise.
23768 2015-06-01 Martin Liska <mliska@suse.cz>
23770 * df-scan.c (struct df_scan_problem_data):Use new type-based
23772 (df_scan_free_internal) Likewise.
23773 (df_scan_alloc) Likewise.
23774 (df_grow_reg_info) Likewise.
23775 (df_free_ref) Likewise.
23776 (df_insn_create_insn_record) Likewise.
23777 (df_mw_hardreg_chain_delete) Likewise.
23778 (df_insn_info_delete) Likewise.
23779 (df_free_collection_rec) Likewise.
23780 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23781 (df_sort_and_compress_mws) Likewise.
23782 (df_ref_create_structure) Likewise.
23783 (df_ref_record) Likewise.
23785 2015-06-01 Martin Liska <mliska@suse.cz>
23787 * df-problems.c (df_chain_create):Use new type-based pool allocator.
23788 (df_chain_unlink_1) Likewise.
23789 (df_chain_unlink) Likewise.
23790 (df_chain_remove_problem) Likewise.
23791 (df_chain_alloc) Likewise.
23792 (df_chain_free) Likewise.
23793 * df.h (struct dataflow) Likewise.
23795 2015-06-01 Martin Liska <mliska@suse.cz>
23797 * cselib.c (new_elt_list):Use new type-based pool allocator.
23798 (new_elt_loc_list) Likewise.
23799 (unchain_one_elt_list) Likewise.
23800 (unchain_one_elt_loc_list) Likewise.
23801 (unchain_one_value) Likewise.
23802 (new_cselib_val) Likewise.
23803 (cselib_init) Likewise.
23804 (cselib_finish) Likewise.
23806 2015-06-01 Martin Liska <mliska@suse.cz>
23808 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23809 (sh_reorg) Likewise.
23811 2015-06-01 Martin Liska <mliska@suse.cz>
23813 * cfg.c (initialize_original_copy_tables):Use new type-based
23815 (free_original_copy_tables) Likewise.
23816 (copy_original_table_clear) Likewise.
23817 (copy_original_table_set) Likewise.
23819 2015-06-01 Martin Liska <mliska@suse.cz>
23821 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23823 (asan_mem_ref_new) Likewise.
23824 (free_mem_ref_resources) Likewise.
23826 2015-06-01 Martin Liska <mliska@suse.cz>
23828 * var-tracking.c (variable_htab_free):Use new type-based
23830 (attrs_list_clear) Likewise.
23831 (attrs_list_insert) Likewise.
23832 (attrs_list_copy) Likewise.
23833 (shared_hash_unshare) Likewise.
23834 (shared_hash_destroy) Likewise.
23835 (unshare_variable) Likewise.
23836 (var_reg_delete_and_set) Likewise.
23837 (var_reg_delete) Likewise.
23838 (var_regno_delete) Likewise.
23839 (drop_overlapping_mem_locs) Likewise.
23840 (variable_union) Likewise.
23841 (insert_into_intersection) Likewise.
23842 (canonicalize_values_star) Likewise.
23843 (variable_merge_over_cur) Likewise.
23844 (dataflow_set_merge) Likewise.
23845 (remove_duplicate_values) Likewise.
23846 (variable_post_merge_new_vals) Likewise.
23847 (dataflow_set_preserve_mem_locs) Likewise.
23848 (dataflow_set_remove_mem_locs) Likewise.
23849 (variable_from_dropped) Likewise.
23850 (variable_was_changed) Likewise.
23851 (set_slot_part) Likewise.
23852 (clobber_slot_part) Likewise.
23853 (delete_slot_part) Likewise.
23854 (loc_exp_insert_dep) Likewise.
23855 (notify_dependents_of_changed_value) Likewise.
23856 (emit_notes_for_differences_1) Likewise.
23857 (vt_emit_notes) Likewise.
23858 (vt_initialize) Likewise.
23859 (vt_finalize) Likewise.
23861 2015-06-01 Martin Liska <mliska@suse.cz>
23863 * ira-color.c (init_update_cost_records):Use new type-based
23865 (get_update_cost_record) Likewise.
23866 (free_update_cost_record_list) Likewise.
23867 (finish_update_cost_records) Likewise.
23868 (initiate_cost_update) Likewise.
23870 2015-06-01 Martin Liska <mliska@suse.cz>
23872 * lra.c (init_insn_regs): Use new type-based pool allocator.
23873 (new_insn_reg) Likewise.
23874 (free_insn_reg) Likewise.
23875 (free_insn_regs) Likewise.
23876 (finish_insn_regs) Likewise.
23877 (init_insn_recog_data) Likewise.
23878 (init_reg_info) Likewise.
23879 (finish_reg_info) Likewise.
23880 (lra_free_copies) Likewise.
23881 (lra_create_copy) Likewise.
23882 (invalidate_insn_data_regno_info) Likewise.
23884 2015-06-01 Martin Liska <mliska@suse.cz>
23886 * lra-lives.c (free_live_range): Use new type-based pool allocator.
23887 (free_live_range_list) Likewise.
23888 (create_live_range) Likewise.
23889 (copy_live_range) Likewise.
23890 (lra_merge_live_ranges) Likewise.
23891 (remove_some_program_points_and_update_live_ranges) Likewise.
23892 (lra_live_ranges_init) Likewise.
23893 (lra_live_ranges_finish) Likewise.
23895 2015-06-01 Martin Liska <mliska@suse.cz>
23897 * et-forest.c (et_new_occ): Use new type-based pool allocator.
23898 (et_new_tree): Likewise.
23899 (et_free_tree): Likewise.
23900 (et_free_tree_force): Likewise.
23901 (et_free_pools): Likewise.
23902 (et_split): Likewise.
23904 2015-06-01 Martin Liska <mliska@suse.cz>
23906 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23908 * alloc-pool.h (pool_allocator::pool_allocator): New function.
23909 (pool_allocator::release): Likewise.
23910 (inline pool_allocator::release_if_empty): Likewise.
23911 (inline pool_allocator::~pool_allocator): Likewise.
23912 (pool_allocator::allocate): Likewise.
23913 (pool_allocator::remove): Likewise.
23915 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23917 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23920 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23922 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23924 * config/arm/arm.c (arm_print_tune_info): Likewise.
23925 (arm_macro_fusion_p): Likewise.
23926 (arm_macro_fusion_pair_p): Likewise.
23928 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23930 * config/aarch64/aarch64-protos.h (tune_params): Rename
23931 fuseable_ops to fusible_ops.
23932 * config/aarch64/aarch64.c (generic_tunings): Rename
23933 fuseable_ops to fusible_ops.
23934 (cortexa53_tunings): Likewise.
23935 (cortexa57_tunings): Likewise.
23936 (thunderx_tunings): Likewise.
23937 (xgene1_tunings): Likewise.
23938 (aarch64_macro_fusion_p): Likewise.
23939 (aarch64_macro_fusion_pair_p): Likewise.
23941 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
23943 * config/s390/driver-native.c: New file.
23944 * config/s390/x-native: New file.
23945 * config.host: Add new files for s390.
23946 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23948 * config.gcc: Likewise.
23949 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23950 * config/s390/s390-opts.h (enum processor_type): Ditto.
23951 * config/s390/s390.c (s390_option_override): Catch unhandled
23954 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
23957 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23958 redirection for instrumented calls.
23959 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23960 (append_compiler_options): Append -fcheck-pointer-bounds.
23961 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23962 (chkp_redirect_edge): New.
23963 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23964 (chkp_redirect_edge): New.
23966 2015-06-01 Richard Biener <rguenther@suse.de>
23968 PR tree-optimization/66280
23969 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23972 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23974 * config/aarch64/aarch64.md
23975 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23978 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23980 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23981 Remove obsolete kludge.
23983 2015-06-01 Richard Biener <rguenther@suse.de>
23985 * tree-ssa-reassoc.c (get_rank): Simplify.
23987 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
23989 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23990 * configure: Regenerated.
23992 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
23994 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23995 issue (add space between string literal and macro).
23996 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23998 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24000 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24001 implict or explicit -fPIE or -fpie.
24003 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24005 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24007 2015-05-28 DJ Delorie <dj@redhat.com>
24009 * expmed.c (extract_bit_field_1): Avoid clobbering a
24010 yet-to-be-used base/index register.
24012 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24014 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24015 (alias_stats): Add num_universal.
24016 (alias_set_subset_of): Special case pointers; be ready for NULL
24018 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24020 (init_alias_set_entry): Break out from ...
24021 (record_alias_subset): ... here; propagate new fields;
24022 allocate children only when really needed.
24023 (get_alias_set): Do less generous pointer globbing.
24024 (dump_alias_stats_in_alias_c): Update statistics.
24026 2015-05-30 Alan Modra <amodra@gmail.com>
24028 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24029 correct block for use of r12.
24030 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24032 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24035 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24038 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24040 PR tree-optimization/66142
24041 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24042 virtual phis that feed themselves.
24044 2015-05-29 Richard Biener <rguenther@suse.de>
24046 PR tree-optimization/66314
24047 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24048 parameter that says which loop the new block belongs to.
24049 (ssa_create_duplicates): Blocks duplicated for the threaded
24050 path belong to the loop of the thread destination.
24052 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24054 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24055 to cleanup-saved-temps.
24056 * doc/sourcebuild.texi (Clean up generated test files): Expand
24058 (dg-keep-saved-temps): Document new proc.
24059 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24060 cleanup-saved-temps): Remove.
24062 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24064 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24065 gcc_AC_CHECK_DECLS.
24066 * configure: Regenerate.
24068 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24070 * config/nios2/linux.h (CPP_SPEC): Define.
24072 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24074 * config/microblaze/linux.h (CPP_SPEC): Define.
24076 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24078 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24079 -pthread is specified.
24081 2015-05-28 Richard Biener <rguenther@suse.de>
24083 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24084 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24085 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24086 after pattern recog.
24087 (vect_create_epilog_for_reduction): Properly handle reductions
24089 (vectorizable_reduction): Likewise.
24090 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24092 (vect_get_constant_vectors): Create the correct number of
24093 initial values for reductions.
24094 (vect_schedule_slp_instance): Handle reduction chains that are
24095 type changing properly.
24096 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24098 2015-05-28 Richard Biener <rguenther@suse.de>
24100 PR tree-optimization/66142
24101 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24102 values better in memcpy destination handling. Handle non-aliasing
24105 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24108 * config/darwin-c.c (version_components): New global enum.
24109 (parse_version, version_as_legacy_macro)
24110 (version_as_modern_macro, macosx_version_as_macro): New functions.
24111 (version_as_macro): Remove.
24112 (darwin_cpp_builtins): Use new function.
24114 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24116 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24117 with ATTRIBUTE_UNUSED.
24119 2015-05-28 Julian Brown <julian@codesourcery.com>
24123 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24124 sequence for !ACCEL_COMPILER.
24126 2015-05-28 Nick Clifton <nickc@redhat.com>
24128 * config/rx/rx.c (push_regs): New function. Extracts code from...
24129 (rx_expand_prologue): ... here. Use push_regs to push even small
24130 spans of registers.
24131 (pop_regs): New function.
24132 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24135 2015-05-28 Richard Biener <rguenther@suse.de>
24137 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24139 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24140 (vect_update_slp_costs_according_to_vf): Likewise.
24141 (vect_slp_analyze_operations): Update prototype.
24142 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24143 vect_update_slp_costs_according_to_vf, adjust.
24144 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24145 (vect_analyze_slp_cost_1): Likewise.
24146 (vect_analyze_slp_cost): Likewise. Properly deal with
24147 widening reduction ops. Commit body costs.
24148 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24149 cost for loops from here.
24150 (vect_slp_analyze_operations): But do it from here when
24151 the vectorization factor is known and stmts are analyzed.
24152 (vect_bb_vectorization_profitable_p): Simplify.
24153 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24154 (vect_update_slp_costs_according_to_vf): Remove.
24156 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24157 H.J. Lu <hongjiu.lu@intel.com>
24159 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24160 (BUILD_CFLAGS): Likewise.
24161 (BUILD_CXXFLAGS): Likewise.
24162 (LINKER): Add @NO_PIE_FLAG@.
24163 (BUILD_LDFLAGS): Likewise.
24164 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24165 --enable-default-pie.
24166 * common.opt (fPIE): Initialize to -1.
24168 (no-pie): New option.
24169 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24170 * configure.ac: Add --enable-default-pie.
24171 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
24172 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
24173 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
24174 * gcc.c (NO_PIE_SPEC): New.
24175 (PIE_SPEC): Likewise.
24176 (NO_FPIE1_SPEC): Likewise.
24177 (FPIE1_SPEC): Likewise.
24178 (NO_FPIE2_SPEC): Likewise.
24179 (FPIE2_SPEC): Likewise.
24180 (NO_FPIE2_SPEC): Likewise.
24181 (FPIE_SPEC): Likewise.
24182 (NO_FPIE_SPEC): Likewise.
24183 (NO_FPIC1_SPEC): Likewise.
24184 (FPIC1_SPEC): Likewise.
24185 (NO_FPIC2_SPEC): Likewise.
24186 (FPIC2_SPEC): Likewise.
24187 (NO_FPIC2_SPEC): Likewise.
24188 (FPIC_SPEC): Likewise.
24189 (NO_FPIC_SPEC): Likewise.
24190 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24191 (FPIE1_OR_FPIC1_SPEC): Likewise.
24192 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24193 (FPIE2_OR_FPIC2_SPEC): Likewise.
24194 (NO_FPIE_AND_FPIC_SPEC): Likewise.
24195 (FPIE_OR_FPIC_SPEC): Likewise.
24196 (LD_PIE_SPEC): Likewise.
24197 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
24198 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24199 * config/darwin.h (PIE_SPEC): Renamed to ...
24200 (DARWIN_PIE_SPEC): This.
24201 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24202 * config/darwin9.h (PIE_SPEC): Renamed to ...
24203 (DARWIN_PIE_SPEC): This.
24204 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24205 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24206 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24207 FPIE2_OR_FPIC2_SPEC.
24208 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24209 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24210 * config/sol2.h (ASM_PIC_SPEC): Likewise.
24211 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24212 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24213 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24214 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24215 * config/m32r/m32r.h (ASM_SPEC): Likewise.
24216 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24217 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24218 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24219 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24220 * config/sparc/linux.h (ASM_SPEC): Likewise.
24221 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24222 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24223 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24224 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24225 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24226 * config/sparc/sparc.h (ASM_SPEC): Likewise.
24227 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24228 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24229 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24230 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24231 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24232 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24233 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24234 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24235 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24236 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24237 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24238 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24239 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24240 * config/vax/linux.h (ASM_SPEC): Likewise.
24241 * doc/install.texi: Document --enable-default-pie.
24242 * doc/invoke.texi: Document -no-pie.
24243 * config.in: Regenerated.
24244 * configure: Likewise.
24246 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24248 PR rtl-optimization/66168
24249 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24250 can_move_invariant_reg.
24252 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
24255 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24256 REG_EQUAL note when doing insert.
24258 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24259 instead of "%d" for 'o' operand.
24261 2015-05-27 Nathan Sidwell <nathan@acm.org>
24264 * tree.c (build_pointer_type_for_mode): Canonical type does not
24265 inherit can_alias_all.
24266 (build_reference_type_for_mode): Likewise.
24268 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
24270 * expr.h (array_at_struct_end_p): Move to...
24271 (array_ref_element_size): Likewise.
24272 (component_ref_field_offset): Likewise.
24273 * tree.h (array_ref_element_size): ...here.
24274 (array_at_struct_end_p): Likewise.
24275 (component_ref_field_offset): Likewise.
24276 * expr.c (array_ref_element_size): Move to...
24277 (array_ref_low_bound): Likewise.
24278 (array_at_struct_end_p): Likewise.
24279 (array_ref_up_bound): Likewise.
24280 (component_ref_field_offset): Likewise.
24281 * tree.c (array_ref_element_size): ...here.
24282 (array_ref_low_bound): Likewise.
24283 (array_ref_up_bound): Likewise.
24284 (array_at_struct_end_p): Likewise.
24285 (component_ref_field_offset): Likewise.
24287 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24288 Szabolcs Nagy <szabolcs.nagy@arm.com>
24290 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24292 2015-05-27 Jason Merrill <jason@redhat.com>
24295 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24296 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24297 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24299 2015-05-22 Aditya Kumar <hiraditya@msn.com>
24301 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24304 * statistics.c (statistics_fini_pass): Print pass name.
24306 2015-05-27 Richard Biener <rguenther@suse.de>
24308 PR tree-optimization/66272
24310 2014-08-15 Richard Biener <rguenther@suse.de>
24312 PR tree-optimization/62031
24313 * tree-data-ref.c (dr_analyze_indices): Do not set
24314 DR_UNCONSTRAINED_BASE.
24315 (dr_may_alias_p): All indirect accesses have to go the
24316 formerly DR_UNCONSTRAINED_BASE path.
24317 * tree-data-ref.h (struct indices): Remove
24318 unconstrained_base member.
24319 (DR_UNCONSTRAINED_BASE): Remove.
24321 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
24323 * dwarf2out.c: Remove block_map.
24324 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24325 (gen_lexical_block_die): Same.
24326 (dwarf2out_function_decl): Remove block_map use.
24327 (dwarf2out_c_finalize): Same.
24328 * tree-core.h (struct tree_block): Add die field.
24329 * tree.h (BLOCK_DIE): New.
24331 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24334 * expr.c (memory_load_overlap): New function.
24335 (emit_push_insn): When pushing partial args to the stack would
24336 clobber the register part load the overlapping part into a pseudo
24337 and put it into the hard reg after pushing. Change return type
24338 to bool. Add bool argument.
24339 * expr.h (emit_push_insn): Change return type to bool.
24341 * calls.c (expand_call): Cancel sibcall optimization when encountering
24342 partial argument on targets with ARGS_GROW_DOWNWARD and
24343 !STACK_GROWS_DOWNWARD.
24344 (emit_library_call_value_1): Update callsite of emit_push_insn.
24345 (store_one_arg): Likewise.
24347 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24349 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24351 2015-05-27 Martin Liska <mliska@suse.cz>
24353 * Makefile.in: Add additional dependencies related to memory report
24355 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24356 * bitmap.c (struct bitmap_descriptor_d): Remove.
24357 (struct loc): Likewise.
24358 (struct bitmap_desc_hasher): Likewise.
24359 (bitmap_desc_hasher::hash): Likewise.
24360 (bitmap_desc_hasher::equal): Likewise.
24361 (get_bitmap_descriptor): Likewise.
24362 (bitmap_register): User new memory descriptor API.
24363 (register_overhead): Likewise.
24364 (bitmap_find_bit): Register nsearches and search_iter statistics.
24365 (struct bitmap_output_info): Remove.
24366 (print_statistics): Likewise.
24367 (dump_bitmap_statistics): Use new memory descriptor.
24368 * bitmap.h (struct bitmap_usage): New class.
24369 * genmatch.c: Extend header file inclusion.
24370 * genpreds.c: Likewise.
24371 * ggc-common.c (struct ggc_usage): New class.
24372 (struct ggc_loc_desc_hasher): Remove.
24373 (ggc_loc_desc_hasher::hash): Likewise.
24374 (ggc_loc_desc_hasher::equal): Likewise.
24375 (struct ggc_ptr_hash_entry): Likewise.
24376 (struct ptr_hash_hasher): Likewise.
24377 (ptr_hash_hasher::hash): Likewise.
24378 (ptr_hash_hasher::equal): Likewise.
24379 (make_loc_descriptor): Likewise.
24380 (ggc_prune_ptr): Likewise.
24381 (dump_ggc_loc_statistics): Use new memory descriptor.
24382 (ggc_record_overhead): Likewise.
24383 (ggc_free_overhead): Likewise.
24384 (final_cmp_statistic): Remove.
24385 (cmp_statistic): Likewise.
24386 (ggc_add_statistics): Liekwise.
24387 (ggc_prune_overhead_list): Likewise.
24388 * hash-map-traits.h: New file.
24389 * hash-map.h (struct default_hashmap_traits): Move the traits to a
24390 separate header file.
24391 * hash-set.h: Pass memory statistics info to ctor.
24392 * hash-table.c (void dump_hash_table_loc_statistics): New function.
24393 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24394 (hash_table::~hash_table): Register memory release operation.
24395 (hash_table::alloc_entries): Handle memory allocation operation.
24396 (hash_table::expand): Likewise.
24397 * inchash.c (iterative_hash_hashval_t): Move implementation to header
24399 (iterative_hash_host_wide_int): Likewise.
24400 * inchash.h (class hash): Likewise.
24401 * mem-stats-traits.h: New file.
24402 * mem-stats.h: New file.
24403 (mem_location): Add new class.
24404 (mem_usage): Likewise.
24405 (mem_alloc_description): Likewise.
24406 * sese.c: Add new header file inclusision.
24407 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24409 * tree-sra.c: Add new header file inclusision.
24410 * vec.c (struct vec_descriptor): Remove.
24411 (hash_descriptor): Likewise.
24412 (struct vec_usage): Likewise.
24413 (struct ptr_hash_entry): Likewise.
24414 (hash_ptr): Likewise.
24415 (eq_ptr): Likewise.
24416 (vec_prefix::register_overhead): Use new memory descriptor API.
24417 (vec_prefix::release_overhead): Likewise.
24418 (add_statistics): Remove.
24419 (dump_vec_loc_statistics): Use new memory descriptor API.
24420 * vec.h (struct vec_prefix): Likewise.
24421 (va_heap::reserve): Likewise.
24422 (va_heap::release): Likewise.
24423 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24425 2015-05-27 Richard Biener <rguenther@suse.de>
24427 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24428 earlier and remove ??? comment.
24429 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24430 and got called from loop analysis bail out. Always pass the SLP
24431 node to the vectorizable_* functions.
24432 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24433 the premature SLP check here.
24434 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24435 detected SLP stmts.
24436 (vect_detect_hybrid_slp_1): Likewise.
24438 2015-05-26 Jeff Law <law@redhat.com>
24440 * combine.c (find_split_point): Verify that the shift count is a
24441 constant when choosing (plus (ashift ...)) as a split point.
24443 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24444 No functional changes.
24446 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
24448 * ipa-polymorphic-call.c
24449 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24450 case when call target is already known.
24452 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
24455 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24456 take into account the case that operands[1] and operands[2]
24457 are the same register.
24459 2015-05-26 Michael Matz <matz@suse.de>
24461 PR middle-end/66251
24463 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24465 (vect_create_vectorized_demotion_stmts): Always set
24466 STMT_VINFO_VEC_STMT, also with SLP.
24467 (vectorizable_store): Handle strided group stores.
24469 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24472 * config/aarch64/aarch64.md
24473 (*adds_shift_imm_<mode>): New pattern.
24474 (*subs_shift_imm_<mode>): Likewise.
24475 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24476 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24477 (*add_uxt<mode>_shift2): Likewise.
24478 (*add_uxtsi_shift2_uxtw): Likewise.
24479 (*sub_uxt<mode>_shift2): Likewise.
24480 (*sub_uxtsi_shift2_uxtw): Likewise.
24482 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
24484 * config/rs6000/constraints.md (Y, U): Use match_test.
24486 2015-05-26 Christian Bruel <christian.bruel@st.com>
24489 * config/arm/arm.c (arm_option_check_internal)
24490 (arm_option_params_internal): Check opts->target_flags to set macros.
24491 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24492 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24493 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24494 (builtin_define): Replaced with def_or_undef_macro.
24495 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24496 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24497 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24498 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24499 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24500 (TARGET_ARM_FEATURE_LDREX_P)
24501 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24502 * config/arm/arm-c.c (def_or_undef_macro): New function.
24503 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24505 2015-05-26 Christian Bruel <christian.bruel@st.com>
24507 * c-common.h (builtin_define_with_int_value)
24508 (builtin_define_type_sizeof): Declare.
24509 * c-cppbuiltin.c (builtin_define_with_int_value)
24510 (builtin_define_type_sizeof): Externalize.
24511 (builtin_define_std): Cleanup declaration.
24512 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24513 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24514 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24515 (builtin_define, builtin_assert): New macros.
24517 2015-05-26 Richard Biener <rguenther@suse.de>
24519 PR tree-optimization/66142
24520 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24521 MEM_REFs for the same base address.
24523 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24526 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24528 2015-05-26 Jason Merrill <jason@redhat.com>
24530 * configure.ac: Set CXXFLAGS for ISL test.
24531 * configure: Regenerate.
24533 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
24534 strstr and basename.
24535 * configure: Regenerate.
24537 2015-05-26 Richard Biener <rguenther@suse.de>
24539 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24540 X % C -> X & (C - 1) for C being a power-of two to ...
24541 * match.pd: ... patterns.
24543 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
24545 * match.pd (swapped_tcc_comparison): New operator list.
24546 (-A CMP -B): New simplification.
24547 * fold-const.c (fold_comparison): Remove corresponding code.
24549 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24551 * caller-save.c (init_caller_save): Base temporary register numbers
24552 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24553 * cfgloopanal.c (init_set_costs): Likewise.
24554 * dojump.c (prefer_and_bit_test): Likewise.
24555 * expr.c (init_expr_target): Likewise.
24556 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24557 * lower-subreg.c (init_lower_subreg): Likewise.
24558 * postreload.c (reload_cse_regs_1): Likewise.
24560 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24562 * gensupport.h (compute_test_codes): Declare.
24563 * gensupport.c (compute_predicate_codes): Rename to...
24564 (compute_test_codes): ...this. Generalize error message.
24565 (process_define_predicate): Update accordingly.
24566 * genpreds.c (compute_maybe_allows): Delete.
24567 (add_constraint): Use compute_test_codes to determine whether
24568 something can accept a SUBREG, REG or MEM.
24570 2015-05-26 Torvald Riegel <triegel@redhat.com>
24572 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24573 'memory model' to align with C++11; fix description of memory orders;
24576 2015-05-26 Richard Biener <rguenther@suse.de>
24578 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24579 (vect_analyze_loop_operations): ... here. Remove slp parameter,
24580 detect whether we apply SLP. Remove call to
24581 vect_update_slp_costs_according_to_vf.
24582 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24583 vect_update_slp_costs_according_to_vf from here. Dispatch
24584 to vect_slp_analyze_operations to analyze SLP stmts.
24585 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24586 unused bb_vec_info parameter, adjust assert.
24587 (vect_slp_analyze_operations): Pass in the slp instance tree
24588 instead of bb_vec_info.
24589 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24590 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24592 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24594 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24595 Q_REGS. Expand comment.
24596 (REG_CLASS_NAMES): Ditto.
24597 (REG_CLASS_CONTENTS): Ditto.
24599 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
24602 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24603 when LEGACY_INT_REGNO_P is processed.
24605 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24607 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24609 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24611 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24612 register if not marked dead/unused, before return.
24614 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24617 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24618 is set; check for assembler name at LTO time.
24619 (type_in_anonymous_namespace): Remove hacks, check that all
24620 anonymous types are called "<anon>"
24621 (odr_type_p): Simplify; add check for "<anon>"
24622 (odr_subtypes_equivalent): Add odr_type_p check.
24623 * tree.c (need_assembler_name_p): Even anonymous namespace needs
24626 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24628 * ipa-utils.h (method_class_type): Remove.
24629 * cgraphunit.c (walk_polymorphic_call_targets): Use
24630 TYPE_METHOD_BASETYPE.
24631 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24632 on main variants only.
24633 (method_class_type): Remove.
24634 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24635 (build_type_inheritance_graph): Likewise.
24636 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24637 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24638 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24640 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24642 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24643 is_typedef_decl, typedef_variant_p): Constify.
24644 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24645 is_typedef_decl, typedef_variant_p): Constify.
24647 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24649 * defaults.h (gen_tablejump): New function.
24650 (HAVE_tablejump): Add default value.
24652 * stmt.c: Likewise.
24654 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24656 * defaults.h (gen_store_multiple): New function.
24657 (HAVE_store_multiple): Add default value.
24658 * expr.c (move_block_from_reg): Adjust.
24660 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24662 * defaults.h (gen_load_multiple): New function.
24663 (HAVE_load_multiple): Add default value.
24664 * expr.c (move_block_to_reg): Adjust.
24666 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24668 * defaults.h (gen_mem_signal_fence): New function.
24669 (HAVE_mem_signal_fence): Add default value.
24670 * optabs.c: Adjust.
24672 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24674 * defaults.h (gen_memory_barrier): New function.
24675 (HAVE_memory_barrier): Add default value.
24676 * optabs.c: Adjust.
24678 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24680 * defaults.h (gen_mem_thread_fence): New function.
24681 (HAVE_mem_thread_fence): Add default definition.
24682 * optabs.c: Adjust.
24684 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24686 * combine.c (find_split_point): Check the value of HAVE_lo_sum
24687 instead of if it is defined.
24688 (combine_simplify_rtx): Likewise.
24689 * lra-constraints.c (process_address_1): Likewise.
24690 * config/darwin.c: Adjust.
24691 * genconfig.c (main): Always define HAVE_lo_sum.
24693 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24695 * genmatch.c (parser::parse_operation): Reject expanding
24696 operator-list inside 'for'.
24698 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24700 * genmatch.c (parser::parse_for): Reject iterator if used as
24703 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24705 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24706 after end of id-list.
24708 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24710 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24711 we do not try to compute canonical type for type that does not need
24713 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24715 * tree.h (type_with_alias_set_p): New.
24717 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24719 * tree.c (gimple_canonical_types_compatible_p): Do not compare
24720 function attributes.
24721 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24723 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
24725 * Makefile.in (check_gcc_parallelize): Delete.
24726 (lang_checks_parallelized): Update comment.
24728 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
24730 PR rtl-optimization/66237
24731 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24732 location of an "as_a" cast.
24734 2015-05-22 Jeff Law <law@redhat.com>
24736 * config/pa/pa.md (non-canonical shift-add insns): Remove.
24737 (peepholes with non-canonical RTL sources): Remove.
24738 (peepholes for indexed stores of FP regs in integer modes): Match and
24739 generate canonical RTL.
24741 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24743 PR tree-optimization/63387
24744 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24745 ((x ord x) & (y ord y) -> (x ord y),
24746 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24747 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24748 vectors like scalars.
24750 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24752 * convert.c (convert_to_integer, convert_to_vector): Include the
24753 types in the error message.
24755 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24757 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24760 2015-05-22 Jeff Law <law@redhat.com>
24762 * config/pa/pa.md (integer_indexed_store splitters): Use
24763 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
24764 insns -- adjusting the constant 2nd operand accordingly.
24766 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24767 (plus (ashift X log2) Y) if it is a split point.
24769 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24770 out of hppa_legitimize_address to handle both forms of a multiply
24772 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24773 Always generate the ASHIFT variant as the result is not directly
24774 used in a MEM. Update comments and refactor slightly to improve
24777 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24780 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24781 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
24782 (aarch64_composite_type_p): Return false if given type and mode are
24783 for a short vector.
24785 2015-05-22 Richard Biener <rguenther@suse.de>
24787 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24789 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24790 patterns when determining whether SLP is pure.
24791 (vect_is_slp_reduction): Remove check for pattern stmts.
24792 (vect_is_simple_reduction_1): Remove dead code.
24793 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24794 (vect_get_and_check_slp_defs): Pass in the stmt number.
24795 Allow the first def in a reduction to be not a pattern stmt when
24796 the rest of the stmts def are patterns.
24797 (vect_build_slp_tree_1): Allow tcc_expression codes like
24798 SAD_EXPR and DOT_PROD_EXPR.
24799 (vect_build_slp_tree): Adjust.
24800 (vect_analyze_slp): Refactor and move BB vect error message ...
24801 (vect_slp_analyze_bb_1): ... here.
24803 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
24805 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24806 for CSWTCH temporary.
24808 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24810 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24811 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
24814 2015-05-22 Richard Biener <rguenther@suse.de>
24816 PR tree-optimization/66251
24817 * tree-vect-stmts.c (vectorizable_conversion): Properly
24818 set STMT_VINFO_VEC_STMT even for the SLP case.
24820 2015-05-22 Marek Polacek <polacek@redhat.com>
24822 * doc/extend.texi: Use @pxref instead of @xref.
24824 2015-05-22 hiraditya <hiraditya@msn.com>
24826 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24829 2015-05-22 Richard Biener <rguenther@suse.de>
24831 PR tree-optimization/65701
24832 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24833 Move peeling cost models into one place. Peel for alignment
24834 for single loads only if an aligned load is cheaper than
24837 2015-05-22 Marek Polacek <polacek@redhat.com>
24840 * doc/extend.texi (Enumerator Attributes): New section.
24841 Document syntax of enumerator attributes.
24843 2015-05-22 Richard Biener <rguenther@suse.de>
24845 * tree-vect-loop.c (get_reduction_op): New function.
24846 (vect_model_reduction_cost): Use it, add reduc_index parameter.
24847 Make ready for BB reductions.
24848 (vect_create_epilog_for_reduction): Use get_reduction_op.
24849 (vectorizable_reduction): Init reduc_index to a valid value.
24850 Adjust vect_model_reduction_cost call.
24851 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24852 operand for reduction defaults. Add SAD_EXPR support.
24853 Assert we have a neutral op for SLP reductions.
24854 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24855 walking pattern stmt ops only recurse to SSA names.
24857 2015-05-22 Richard Biener <rguenther@suse.de>
24859 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24860 assert with guard, remove check on detected reduction.
24861 (vect_recog_sad_pattern): Likewise.
24862 (vect_recog_widen_sum_pattern): Likewise.
24864 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24866 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24867 __always_inline__ attribute.
24868 (vaesdq_u8): Likewise.
24869 (vaesmcq_u8): Likewise.
24870 (vaesimcq_u8): Likewise.
24871 (vsha1cq_u32): Likewise.
24872 (vsha1mq_u32): Likewise.
24873 (vsha1pq_u32): Likewise.
24874 (vsha1h_u32): Likewise.
24875 (vsha1su0q_u32): Likewise.
24876 (vsha1su1q_u32): Likewise.
24877 (vsha256hq_u32): Likewise.
24878 (vsha256h2q_u32): Likewise.
24879 (vsha256su0q_u32): Likewise.
24880 (vsha256su1q_u32): Likewise.
24881 (vmull_p64): Likewise.
24882 (vmull_high_p64): Likewise.
24884 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24886 * final.c (final_scan_insn): Don't check HAVE_peephole with the
24888 * output.h: Likewise.
24889 * genconfig.c (main): Alwways define HAVE_peephole.
24890 * genpeep.c: Don't emit checks of HAVE_peephole.
24892 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24894 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24895 check HAVE_conditional_move with the preprocessor.
24897 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24899 * genconfig.c (main): Always define HAVE_conditional_move.
24900 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24901 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24904 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24906 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24907 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24908 and FRAME_POINTER_REGNUM with the preprocessor.
24910 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24912 * defaults.h: Add default for STACK_PUSH_CODE.
24913 * expr.c: Don't redefine STACK_PUSH_CODE.
24914 * recog.c: Likewise.
24916 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24918 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24919 sched-deps.c: Use if instead of preprocessor checks with
24920 STACK_GROWS_DOWNWARD.
24922 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24924 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24926 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24927 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24928 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24929 * doc/tm.texi: Regenerate.
24931 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
24934 * config/i386/constraints.md (Bg): New constraint for GOT memory
24936 * config/i386/i386.md (*call_got_x32): New pattern.
24937 (*call_value_got_x32): Likewise.
24938 * config/i386/predicates.md (GOT_memory_operand): New predicate.
24940 2015-05-21 Jakub Jelinek <jakub@redhat.com>
24942 PR tree-optimization/66233
24943 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24946 2015-05-21 Jeff Law <law@redhat.com>
24948 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24949 than MULT for shadd sequences.
24951 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
24953 * alias.c (alias_stats): New static var.
24954 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24955 (dump_alias_stats_in_alias_c): New function.
24956 * alias.h (dump_alias_stats_in_alias_c): Declare.
24957 * tree-ssa-alias.c (dump_alias_stats): Call it.
24959 2015-05-08 Michael Matz <matz@suse.de>
24961 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24963 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24964 (STMT_VINFO_STRIDED_P): ... this.
24965 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24966 (vect_verify_datarefs_alignment): Likewise.
24967 (vect_enhance_data_refs_alignment): Likewise.
24968 (vect_analyze_data_ref_access): Likewise.
24969 (vect_analyze_data_refs): Accept strided stores.
24970 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24971 (vect_model_load_cost): Adjust for macro rename.
24972 (vectorizable_mask_load_store): Likewise.
24973 (vectorizable_load): Likewise.
24974 (vectorizable_store): Open code strided stores.
24976 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24978 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24979 Document sqrt_insn.
24981 2015-05-21 Richard Biener <rguenther@suse.de>
24984 * match.pd: Guard pattern optimzing (int)(float)int
24985 conversions to apply only on GIMPLE.
24987 2015-05-21 Jeff Law <law@redhat.com>
24989 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24990 multiply-accumulate/shift-add insn generation.
24992 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24995 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24996 operands[1] are the same.
24998 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25000 PR middle-end/66221
25001 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25002 build_distinct_type_copy to copy bounds.
25004 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25006 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25007 Change to unsigned int.
25009 2015-05-20 Jeff Law <law@redhat.com>
25011 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25012 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25013 (pa_shadd_constant_p): Allow constants for shadd insns rather
25014 than valid scaling constants for memory addresses.
25015 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25016 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25017 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25018 (shift-add insns using ASHIFT): New patterns.
25020 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25022 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25024 (fix_up_fall_thru_edges): Likewise.
25025 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25026 from to rtx_insn to rtx_code_label where feasible.
25027 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25028 gen_move_insn (returned type changed to rtx_insn).
25029 * builtins.c (expand_errno_check): Fix arguments of
25030 do_compare_rtx_and_jump (now expects rtx_code_label).
25031 (expand_builtin_acc_on_device): Likewise.
25032 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25033 invert_jump (now exprects rtx_jump_insn).
25034 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25035 (construct_init_block): Use rtx_code_label.
25036 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25037 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25038 calling redirect_jump.
25039 (patch_jump_insn): Likewise.
25040 (redirect_branch_edge): Likewise.
25041 (force_nonfallthru_and_redirect): Likewise.
25042 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25044 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25045 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25046 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25047 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25048 to store the value retured by gen_label_rtx.
25049 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25051 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25052 (split_branches): Fix calls of redirect_jump.
25053 * dojump.c (jumpifnot): Promote argument type from rtx to
25055 (jumpifnot_1): Likewise.
25056 (jumpif): Likewise.
25057 (jumpif_1): Likewise.
25058 (do_jump_1): Likewise.
25059 (do_jump): Likewise. Use rtx_code_label when feasible.
25060 (do_jump_by_parts_greater_rtx): Likewise.
25061 (do_jump_by_parts_zero_rtx): Likewise.
25062 (do_jump_by_parts_equality_rtx): Likewise.
25063 (do_compare_rtx_and_jump): Likewise.
25064 * dojump.h: Update function prototypes.
25065 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25067 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25069 (emit_label_before): Likewise.
25070 (emit_jump_insn_after_noloc): Likewise.
25071 (emit_jump_insn_after_setloc): Likewise.
25072 (emit_jump_insn_after): Likewise
25073 (emit_jump_insn_before_setloc): Likewise.
25074 (emit_jump_insn_before): Likewise.
25075 (emit_label_before): Promote return type to rtx_code_label.
25076 (emit_label): Likewise.
25077 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25078 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25080 (emit_stack_restore): Likewise.
25081 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25082 (do_cmp_and_jump): Likewise.
25083 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25084 from rtx to rtx_code_label.
25085 (gen_move_insn_uncast): New function.
25086 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25087 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25088 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25089 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25090 invert_jump_1 and redirect_jump_1.
25091 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25092 do_compare_rtx_and_jump.
25093 (expand_addsub_overflow): Likewise.
25094 (expand_neg_overflow): Likewise.
25095 (expand_mul_overflow): Likewise.
25096 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25097 return value of gen_move_insn.
25098 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25099 * loop-doloop.c (add_test): Use rtx_code_label.
25100 (doloop_modify): Likewise.
25101 (doloop_optimize): Likewise.
25102 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25103 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25105 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25106 (split_reg): Likewise.
25107 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25109 * optabs.c (expand_binop_directly): Remove casts of values returned by
25111 (expand_unop_direct): Likewise.
25112 (expand_abs): Likewise.
25113 (maybe_emit_unop_insn): Likewise.
25114 (maybe_gen_insn): Promote return type to rtx_insn.
25115 * optabs.h: Update prototype of maybe_gen_insn.
25116 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25118 * recog.c (struct peep2_insn_data): Promote type of insn field to
25120 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25121 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25122 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25123 * recog.h (struct insn_gen_fn): Promote return types of function
25124 pointers and operator ().from rtx to rtx_insn.
25125 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25126 (fill_eager_delay_slots): Likewise.
25127 (relax_delay_slots): Likewise.
25128 (make_return_insns): Likewise.
25129 (dbr_schedule): Likewise.
25130 (optimize_skips): Likewise.
25131 (reorg_redirect_jump): Likewise.
25132 (fill_slots_from_thread): Likewise.
25133 * reorg.h: Update prototypes.
25134 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25135 rtx_jump_insn instead of check. Use it's jump_target method.
25136 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25137 (rtx_jump_insn::jump_target): Define new method.
25138 (rtx_jump_insn::set_jump_target): Define new method.
25139 * rtlanal.c (tablejump_p): Promote type of one local variable.
25140 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25141 (sched_analyze_insn): Likewise.
25142 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25143 (print_insn): Likewise.
25144 * stmt.c (label_rtx): Promote return type to rtx_insn.
25145 (force_label_rtx): Likewise.
25146 (jump_target_rtx): Define new function.
25147 (expand_label): Use it, get rid of one cast.
25148 (expand_naked_return): Promote rtx to rtx_code_label.
25149 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25150 (expand_case): Use rtx_code_label instread of rtx where feasible.
25151 (expand_sjlj_dispatch_table): Likewise.
25152 (emit_case_nodes): Likewise.
25153 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25154 * store-motion.c (insert_store): Make use of new return type of
25155 gen_move_insn and remove a cast.
25156 (replace_store_insn): Likewise.
25158 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25160 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25161 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25163 2015-05-20 Jeff Law <law@redhat.com>
25165 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25166 dispose of the jump thread path when the jump threading
25167 opportunity is cancelled.
25169 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
25171 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25172 when printing the caret character.
25174 2015-05-20 Marek Polacek <polacek@redhat.com>
25176 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25178 2015-05-20 Marek Polacek <polacek@redhat.com>
25180 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25181 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25182 * gimple-fold.c (canonicalize_bool): Likewise.
25183 (same_bool_result_p): Likewise.
25184 * tree-if-conv.c (parse_predicate): Likewise.
25186 2015-05-20 Marek Polacek <polacek@redhat.com>
25188 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25189 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25191 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25193 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25194 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25197 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
25199 * config/mips/mips.h (micromips_globals): Declare.
25201 2015-05-20 David Malcolm <dmalcolm@redhat.com>
25203 * timevar.def (TV_INITIALIZE_RTL): New.
25204 * toplev.c (initialize_rtl): Use an auto_timevar to account this
25205 function's time to TV_INITIALIZE_RTL.
25207 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25209 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25210 gimple_build_nop calls.
25211 (chkp_find_bounds_for_elem): Likewise.
25212 (chkp_get_zero_bounds): Likewise.
25213 (chkp_get_none_bounds): Likewise.
25214 (chkp_get_bounds_by_definition): Likewise.
25215 (chkp_generate_extern_var_bounds): Likewise.
25216 (chkp_get_bounds_for_decl_addr): Likewise.
25217 (chkp_get_bounds_for_string_cst): Likewise.
25219 2015-05-20 Bin Cheng <bin.cheng@arm.com>
25221 PR tree-optimization/65447
25222 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25223 (dump_use, dump_uses): Support to dump sub use.
25224 (record_use): New parameters to support sub use. Remove call to
25226 (record_sub_use, record_group_use): New functions.
25227 (compute_max_addr_offset, split_all_small_groups): New functions.
25228 (group_address_uses, rewrite_use_address): New functions.
25229 (strip_offset): New declaration.
25230 (find_interesting_uses_address): Call record_group_use.
25231 (add_candidate): New assertion.
25232 (infinite_cost_p): Move definition forward.
25233 (add_costs): Check INFTY cost and return immediately.
25234 (get_computation_cost_at): Clear setup cost and dependent bitmap
25236 (determine_use_iv_cost_address): Compute cost for sub uses.
25237 (rewrite_use_address_1): Rename from old rewrite_use_address.
25238 (free_loop_data): Free sub uses.
25239 (tree_ssa_iv_optimize_loop): Call group_address_uses.
25241 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25242 Jim Wilson <jim.wilson@linaro.org>
25244 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25245 new fields loadv and storev.
25246 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25247 Initialize loadv and storev.
25248 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25249 (cortexa53_extra_costs): Likewise.
25250 (cortexa57_extra_costs): Likewise.
25251 (xgene1_extra_costs): Likewise.
25252 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25255 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25257 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25259 (cortexa8_extra_costs): Likewise.
25260 (cortexa5_extra_costs): Likewise.
25261 (cortexa7_extra_costs): Likewise.
25262 (cortexa12_extra_costs): Likewise.
25263 (cortexa15_extra_costs): Likewise.
25264 (v7m_extra_costs): Likewise.
25266 2015-05-20 Jeff Law <law@redhat.com>
25268 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25269 instead of open-coded version. Also delete the jump thread created
25270 within this function.
25272 2015-05-20 Alan Modra <amodra@gmail.com>
25274 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25275 stack adjusting insn. Formatting.
25276 (rs6000_emit_prologue): Track stack adjusting insn, and use of
25277 r12. If possible, emit first -fsplit-stack arg pointer insn
25278 before stack adjust. Don't use r12 to save cr if split-stack.
25280 2015-05-20 Alan Modra <amodra@gmail.com>
25282 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25284 (rs6000_supports_split_stack): New function.
25285 * config/rs6000/rs6000.c (machine_function): Add
25286 split_stack_arg_pointer.
25287 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25288 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25289 rather than virtual_incoming_args_rtx.
25290 (rs6000_va_start): Likewise.
25291 (split_stack_arg_pointer_used_p): New function.
25292 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25293 (morestack_ref): New var.
25294 (gen_add3_const, rs6000_expand_split_stack_prologue,
25295 rs6000_internal_arg_pointer, rs6000_live_on_entry,
25296 rs6000_split_stack_space_check): New functions.
25297 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25298 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25299 (UNSPECV_SPLIT_STACK_RETURN): Define.
25300 (split_stack_prologue, load_split_stack_limit,
25301 load_split_stack_limit_di, load_split_stack_limit_si,
25302 split_stack_return, split_stack_space_check): New expands and insns.
25303 * config/rs6000/rs6000-protos.h
25304 (rs6000_expand_split_stack_prologue): Declare.
25305 (rs6000_split_stack_space_check): Declare.
25307 2015-05-20 Alan Modra <amodra@gmail.com>
25309 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25310 (direct_return): Test vrsave_size rather than vrsave_mask.
25311 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
25312 (rs6000_emit_epilogue): Likewise.
25314 2015-05-20 Alan Modra <amodra@gmail.com>
25316 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25317 when not saving registers.
25318 (debug_stack_info): Adjust to omit printing unused offsets,
25320 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25323 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25326 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25327 value_type to const char *.
25329 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
25331 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25332 to build a biarch toolchain again.
25334 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25336 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25337 or implicit declarations.
25338 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25340 (get_odr_type): Check type has linkage before adding bases.
25341 (register_odr_type): Check that type has linkage before adding it.
25342 (type_known_to_have_no_deriavations_p): Rename to ..
25343 (type_known_to_have_no_derivations_p): This one.
25344 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25345 (type_known_to_have_no_derivations_p): This one.
25346 * ipa-polymorphic-call.c
25347 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25350 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25352 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25353 (layout_type): Use RECORD_OR_UNION_TYPE_P.
25355 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25357 * config/s390/s390.c (s390_vector_bool_type_p): New function.
25358 (s390_invalid_binary_op): New function.
25359 (TARGET_INVALID_BINARY_OP): Define macro.
25361 2015-05-19 David Sherwood <david.sherwood@arm.com>
25363 * loop-invariant.c (create_new_invariant): Don't calculate address cost
25364 if mode is not a scalar integer.
25365 (get_inv_cost): Increase computational cost for unused invariants.
25367 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25369 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
25370 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
25371 * config/s390/s390-builtin-types.def: New file.
25372 * config/s390/s390-builtins.def: New file.
25373 * config/s390/s390-builtins.h: New file.
25374 * config/s390/s390-c.c: New file.
25375 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25376 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25377 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25378 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25380 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25382 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25383 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25384 variable definitions.
25385 (s390_const_operand_ok): New function.
25386 (s390_expand_builtin): Rewrite.
25387 (s390_init_builtins): New function.
25388 (s390_handle_vectorbool_attribute): New function.
25389 (s390_attribute_table): Add s390_vector_bool attribute.
25390 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25391 (s390_branch_condition_mask): Generate masks for new modes.
25392 (s390_expand_vec_compare_cc): New function.
25393 (s390_mangle_type): Add mangling for vector bool types.
25394 (enum s390_builtin): Remove.
25395 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25397 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25398 s390_cpu_cpp_builtins.
25399 (REGISTER_TARGET_PRAGMAS): New macro.
25400 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25401 (insn_cmp mode attribute): Add new CC modes.
25402 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25403 (lcbb): New pattern definition.
25404 * config/s390/s390intrin.h: Include vecintrin.h.
25405 * config/s390/t-s390: New file.
25406 * config/s390/vecintrin.h: New file.
25407 * config/s390/vector.md: Include vx-builtins.md.
25408 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25411 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25413 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25415 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25416 (s390_select_ccmode): Likewise.
25417 (s390_canonicalize_comparison): Swap operands if necessary.
25418 (s390_expand_vec_compare_scalar): Expand DFmode compare using
25419 single element vector instructions.
25420 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25421 (s390_branch_condition_mask): Generate CC masks for the new modes.
25422 * config/s390/s390.md (v0, vf, vd): New mode attributes.
25423 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25424 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25425 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25426 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25427 (*extend<DSF:mode><BFP:mode>2): New insn definition.
25428 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25429 (extend<DSF:mode><BFP:mode>2): Turn into expander.
25430 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25431 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25432 (sqrt<mode>2): Add vector instruction.
25434 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25436 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25438 * config/s390/predicates.md (const0_operand, constm1_operand)
25439 (constable_operand): Accept vector operands.
25440 * config/s390/s390-modes.def: Add supported vector modes.
25441 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25442 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25443 (s390_bytemask_vector_p, s390_expand_vec_strlen)
25444 (s390_expand_vec_compare, s390_expand_vcond)
25445 (s390_expand_vec_init): Add prototypes.
25446 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25447 (s390_vector_mode_supported_p): New function.
25448 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25449 (s390_contiguous_bitmask_vector_p): New function.
25450 (s390_bytemask_vector_p): New function.
25451 (s390_split_ok_p): Vector regs don't work either.
25452 (regclass_map): Add VEC_REGS.
25453 (s390_legitimate_constant_p): Handle vector constants.
25454 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25455 (legitimate_reload_vector_constant_p): New function.
25456 (s390_preferred_reload_class): Handle CONST_VECTOR.
25457 (s390_reload_symref_address): Likewise.
25458 (s390_secondary_reload): Vector memory instructions only support
25459 short displacements. Rename reload*_nonoffmem* to reload*_la*.
25460 (s390_emit_ccraw_jump): New function.
25461 (s390_expand_vec_strlen): New function.
25462 (s390_expand_vec_compare): New function.
25463 (s390_expand_vcond): New function.
25464 (s390_expand_vec_init): New function.
25465 (s390_dwarf_frame_reg_mode): New function.
25466 (print_operand): Handle addresses with 'O' and 'R' constraints.
25467 (NR_C_MODES, constant_modes): Add vector modes.
25468 (s390_output_pool_entry): Handle vector constants.
25469 (s390_hard_regno_mode_ok): Handle vector registers.
25470 (s390_class_max_nregs): Likewise.
25471 (s390_cannot_change_mode_class): New function.
25472 (s390_invalid_arg_for_unprototyped_fn): New function.
25473 (s390_function_arg_vector): New function.
25474 (s390_function_arg_float): Remove size variable.
25475 (s390_pass_by_reference): Handle vector arguments.
25476 (s390_function_arg_advance): Likewise.
25477 (s390_function_arg): Likewise.
25478 (s390_return_in_memory): Vector values are returned in a VR if
25480 (s390_function_and_libcall_value): Handle vector arguments.
25481 (s390_gimplify_va_arg): Likewise.
25482 (s390_call_saved_register_used): Consider the arguments named.
25483 (s390_conditional_register_usage): Disable v16-v31 for non-vec
25485 (s390_preferred_simd_mode): New function.
25486 (s390_support_vector_misalignment): New function.
25487 (s390_vector_alignment): New function.
25488 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25489 (TARGET_VECTOR_MODE_SUPPORTED_P)
25490 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25491 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25492 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25493 (TARGET_VECTOR_ALIGNMENT): Define target macro.
25494 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25495 (FIRST_PSEUDO_REGISTER): Increase value.
25496 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25497 (VECTOR_REG_P): Define macros.
25498 (FIXED_REGISTERS, CALL_USED_REGISTERS)
25499 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25500 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25501 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25502 Add vector registers.
25503 (CANNOT_CHANGE_MODE_CLASS): Call C function.
25504 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25505 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25507 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25508 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25509 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25510 (VR*_REGNUM): New constants.
25511 (ALL): New mode iterator.
25512 (INTALL): Remove mode iterator.
25514 (movti): Implement TImode moves for VRs.
25515 Disable TImode splitter for VR targets.
25516 Implement splitting TImode GPR<->VR moves.
25517 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25518 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25519 reload<mode>_la_in, reload<mode>_la_out.
25520 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25521 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25522 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25523 (mov<mode> SF SD): Prefer lder, lde for loading.
25524 Add lrl and strl instructions.
25525 Add vector instructions.
25526 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25527 Call s390_expand_vec_strlen on z13.
25528 (*cc_to_int): Change predicate to nonimmediate_operand.
25529 (addti3): Rename to *addti3. New expander.
25530 (subti3): Rename to *subti3. New expander.
25531 * config/s390/vector.md: New file.
25533 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25535 * common/config/s390/s390-common.c (processor_flags_table): Add
25537 * config.gcc: Add z13.
25538 * config/s390/s390-opts.h (enum processor_type): Add
25539 PROCESSOR_2964_Z13.
25540 * config/s390/s390.c (s390_adjust_priority): Check for
25541 PROCESSOR_2964_Z13.
25542 (s390_reorg): Likewise.
25543 (s390_sched_reorder): Likewise.
25544 (s390_sched_variable_issue): Likewise.
25545 (s390_loop_unroll_adjust): Likewise.
25546 (s390_option_override): Likewise. Default to -mvx when available.
25547 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25548 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25549 (TARGET_VX_ABI): Define macros.
25551 (TARGET_DEFAULT): Add MASK_OPT_VX.
25552 * config/s390/s390.md ("cpu" attribute): Add z13.
25553 ("cpu_facility" attribute): Add vec.
25554 * config/s390/s390.opt (processor_type): Add z13.
25555 (mvx): New options.
25556 * doc/invoke.texi: Add z13 option for -march.
25558 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25560 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25561 mode check to make sure that only scalar integer values are
25564 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25566 * tree.c (verify_type_variant): Fix #undef.
25567 (gimple_canonical_types_compatible_p): Move here from lto.c
25568 (verify_type): Verify TYPE_CANONICAL compatibility.
25569 * tree.h (gimple_canonical_types_compatible_p): Declare.
25571 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25573 PR middle-end/66199
25574 * tree.h (OMP_TEAMS_COMBINED): Define.
25575 * gimplify.c (enum gimplify_omp_var_data): Add
25576 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25577 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25578 (omp_notice_variable): Accept both ORT_TEAMS
25579 and ORT_COMBINED_TEAMS. Don't recurse if
25580 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25581 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25583 (omp_no_lastprivate): New function.
25584 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25585 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25586 notice_outer and set appropriate bits, otherwise make
25587 sure default(none) combined constructs won't complain.
25588 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25589 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25590 omp_no_lastprivate either remove the clause or turn it
25591 into OMP_CLAUSE_PRIVATE.
25592 (gimplify_omp_for): Fix up handling of implicit
25593 lastprivate or linear iterators.
25594 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25595 ORT_COMBINED_TEAMS.
25596 * omp-low.c (lower_omp_for_lastprivate): For combined
25597 for simd use fd.loop.n2 from the for rather than simd.
25599 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25601 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25602 instead of gen_rtx_raw_REG.
25603 (cris_expand_epilogue): Likewise.
25604 * config/microblaze/microblaze.c (microblaze_classify_address):
25606 * config/sparc/sparc.md: Likewise.
25608 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
25610 * config/alpha/alpha.c (alpha_legitimize_reload_address)
25611 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25612 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25613 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25614 Use CASE_CONST_SCALAR_INT.
25615 (print_operand) <case 'M'>: Use mode_width_operand to check the
25616 value of the constant.
25617 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25618 * config/alpha/predicates.md (input_operand): Use general_operand
25619 instead of match_code as operand check.
25620 (symbolic_operand): Use match_code with subexpression digits.
25621 * config/alpha/constraints.md (Q): Ditto.
25623 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25625 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25627 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25629 * config/s390/s390.c (s390_secondary_reload): Fix check for
25630 load/store relative.
25632 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25634 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
25635 alternative_mask to uint64_t.
25637 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25639 PR tree-optimization/66187
25640 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25641 Pass TYPE_SIGN to tree_int_cst_min_precision. If
25642 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25644 2015-05-19 David Malcolm <dmalcolm@redhat.com>
25646 * diagnostic.c (diagnostic_report_current_module): Strengthen
25647 local "new_map" from const line_map * to
25648 const line_map_ordinary *.
25649 * genmatch.c (error_cb): Likewise for local "map".
25650 (output_line_directive): Likewise for local "map".
25651 * input.c (expand_location_1): Likewise for local "map".
25652 Pass NULL rather than &map to
25653 linemap_unwind_to_first_non_reserved_loc, since the value is never
25654 read from there, and the value written back not read from here.
25655 (is_location_from_builtin_token): Strengthen local "map" from
25656 const line_map * to const line_map_ordinary *.
25657 (dump_location_info): Strengthen locals "map" from
25658 line_map *, one to const line_map_ordinary *, the other
25659 to const line_map_macro *.
25660 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25661 const line_map * to const line_map_macro *.
25662 (maybe_unwind_expanded_macro_loc): Add a call to
25663 linemap_check_macro when writing to the "map" field of the
25665 Introduce local const line_map_ordinary * "ord_map", using it in
25666 place of "map" in the part of the function where we know we have
25667 an ordinary map. Strengthen local "m" from const line_map * to
25668 const line_map_ordinary *.
25670 2015-05-19 Nick Clifton <nickc@redhat.com>
25673 * config/msp430/msp430.md (zero_extendhisi2): Add support for
25674 separate source and destination registers.
25676 2015-05-19 Richard Biener <rguenther@suse.de>
25678 PR tree-optimization/66165
25679 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25680 for no load permutation.
25682 PR tree-optimization/66185
25683 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25684 when building the SLP node from scalars.
25686 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25687 Tristan Gingold <gingold@adacore.com>
25689 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25690 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25691 (expand_stack_restore): Call record_new_stack_level.
25692 (expand_stack_save): Do not call do_pending_stack_adjust.
25693 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25694 * calls.c (expand_call): Call record_new_stack_level for alloca.
25695 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25696 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25697 (update_sjlj_context): New global function.
25698 * except.h (update_sjlj_context): Declare.
25699 * explow.c (record_new_stack_level): New global function.
25700 (allocate_dynamic_stack_space): Call record_new_stack_level.
25701 * explow.h (record_new_stack_level): Declare.
25702 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25703 * cfgrtl.c (duplicate_insn_chain): Likewise.
25705 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25707 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25708 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25709 STACK_GROWS_DOWNWARD as normal if.
25710 (expand_call): Likewise.
25712 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
25715 * config/sh/sh.md (*round_int_even): New insn_and_split and
25716 accompanying new unnamed split.
25718 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25720 * bitmap.c (bitmap_set_range): Handle count==1 specially.
25721 (bitmap_clear_range): Likewise.
25722 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25723 bitmap_set_range unconditionally.
25724 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25725 * df-scan.c (df_mark_reg): Likewise.
25726 * haifa-sched.c (setup_ref_regs): Likewise.
25727 * sched-rgn.c (update_live_1): Likewise.
25729 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25731 * regs.h (END_HARD_REGNO): Delete.
25732 (END_REGNO): Move to...
25734 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25735 * caller-save.c (mark_set_regs): Likewise.
25736 * combine.c (move_deaths, distribute_notes): Likewise.
25737 * cse.c (invalidate, invalidate_for_call): Likewise.
25738 * df-scan.c (df_ref_record): Likewise.
25739 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25740 (record_last_reg_set_info): Likewise.
25741 * reg-stack.c (convert_regs_exit): Likewise.
25742 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25743 * resource.c (update_live_status): Likewise.
25744 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25746 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25748 * rtl.h (reg_info): Add an nregs field.
25749 (REG_NREGS): Use it.
25750 (SET_REGNO_RAW): Delete.
25751 (set_regno_raw): New function.
25752 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25753 (END_REGNO): Redefine in terms of REG_NREGS.
25754 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25756 * emit-rtl.c (set_mode_and_regno): Likewise.
25757 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25758 instead of SET_REGNO_RAW.
25760 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25762 * rtl.h (PUT_MODE_RAW): New macro.
25763 (PUT_REG_NOTE_KIND): Use it.
25764 (set_mode_and_regno): Declare.
25765 (gen_raw_REG): Change regno to "unsigned int".
25766 (gen_rtx_REG): Change "unsigned" to "unsigned int".
25767 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25768 use set_mode_and_regno to change the mode of registers.
25769 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25770 * emit-rtl.c (set_mode_and_regno): New function.
25771 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
25772 * caller-save.c (reg_save_code): Use set_mode_and_regno.
25773 * expr.c (init_expr_target): Likewise.
25774 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25775 * postreload.c (reload_cse_simplify_operands): Likewise.
25777 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25779 * caller-save.c (init_caller_save): Use word_mode and
25780 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25781 * expr.c (init_expr_target): Likewise.
25782 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25783 * postreload.c (reload_cse_regs_1): Likewise.
25785 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25787 * rtl.def (REG): Change format to "r".
25788 * rtl.h (rtunion): Remove rt_reg.
25789 (reg_info): New structure.
25790 (rtx_def): Add reg field to main union.
25791 (X0REGATTR): Delete.
25792 (REG_CHECK): New macro.
25793 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25794 * rtl.c (rtx_format): Document "r".
25795 (rtx_code_size): Handle REG specially.
25796 * gengenrtl.c (special_format): Return true for formats
25798 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25799 Deal with REG_ATTRS after the field loop.
25800 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25801 * expmed.c (init_expmed): Call gen_raw_REG instead of
25803 * expr.c (init_expr_target): Likewise.
25804 * regcprop.c (maybe_mode_change): Likewise.
25805 * varasm.c (make_decl_rtl): Likewise.
25806 * final.c (leaf_renumber_regs_insn): Return early after
25808 * genemit.c (gen_exp): Handle 'r' fields.
25809 * genpeep.c (match_rtx): Likewise.
25810 * gensupport.c (subst_pattern_match): Likewise.
25811 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25812 (alter_constraints, subst_dup): Likewise.
25813 * read-rtl.c (read_rtx_code): Likewise.
25814 * print-rtl.c (print_rtx): Likewise.
25815 * genrecog.c (find_operand, find_matching_operand): Likewise.
25816 (validate_pattern, match_pattern_2): Likewise.
25817 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25818 (rtx_test::regno_field): New function.
25819 (operator ==, safe_to_hoist_p, transition_parameter_type)
25820 (parameter_type_string, print_parameter_value)
25821 (print_nonbool_test, print_test): Handle new enum values.
25822 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25823 * lra-constraints.c (operands_match_p): Likewise.
25825 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25827 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25828 Change type of new_regno to unsigned int.
25829 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25830 new_regno to unsigned int.
25831 (df_ref_change_reg_with_loc): Remove old_regno parameter.
25832 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
25833 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25834 (SET_REGNO_RAW): Add space after ",".
25836 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25838 * rtl.h (REG_NREGS): New macro
25839 * alias.c (record_set): Use it.
25840 * cfgcleanup.c (mark_effect): Likewise.
25841 * combine.c (likely_spilled_retval_1): Likewise.
25842 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25843 (move_deaths, distribute_notes): Likewise.
25844 * cselib.c (cselib_record_set): Likewise.
25845 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25846 * df-scan.c (df_mark_reg): Likewise.
25847 * dse.c (look_for_hardregs): Likewise.
25848 * dwarf2out.c (reg_loc_descriptor): Likewise.
25849 (multiple_reg_loc_descriptor): Likewise.
25850 * expr.c (write_complex_part, read_complex_part): Likewise.
25851 (emit_move_complex): Likewise.
25852 * haifa-sched.c (setup_ref_regs): Likewise.
25853 * ira-lives.c (mark_hard_reg_live): Likewise.
25854 * lra.c (lra_set_insn_recog_data): Likewise.
25855 * mode-switching.c (create_pre_exit): Likewise.
25856 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25857 (reload_combine_recognize_pattern): Likewise.
25858 (reload_combine_note_use, move2add_record_mode): Likewise.
25859 (reload_cse_move2add): Likewise.
25860 * reg-stack.c (subst_stack_regs_pat): Likewise.
25861 * regcprop.c (kill_value, copy_value): Likewise.
25862 (copyprop_hardreg_forward_1): Likewise.
25863 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25864 (build_def_use): Likewise.
25865 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25866 (deps_analyze_insn): Likewise.
25867 * sched-rgn.c (check_live_1, update_live_1): Likewise.
25868 * sel-sched.c (count_occurrences_equiv): Likewise.
25869 * valtrack.c (dead_debug_insert_temp): Likewise.
25871 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25873 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25874 * dse.c (note_add_store): Likewise.
25875 * ira-lives.c (mark_hard_reg_dead): Likewise.
25876 * loop-invariant.c (mark_reg_store): Likewise.
25877 (mark_reg_death): Likewise.
25878 * postreload.c (reload_combine): Likewise.
25879 (reload_combine_note_store): Likewise.
25880 (reload_combine_note_use): Likewise.
25881 * recog.c (peep2_reg_dead_p): Likewise.
25883 2015-05-19 Alan Modra <amodra@gmail.com>
25885 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25886 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25887 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25889 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25890 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
25891 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25892 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25894 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
25896 * config/mips/mips.md (JOIN_MODE): New mode iterator.
25897 (join2_load_Store<JOIN_MODE:mode>): New pattern.
25898 (join2_loadhi): Likewise.
25899 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25900 load-load and store-stores.
25901 * config/mips/mips.opt (mload-store-pairs): New option.
25902 (TARGET_LOAD_STORE_PAIRS): New macro.
25903 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25904 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25905 * config/mips/mips.c (mips_load_store_bonding_p): New function.
25907 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
25909 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25911 * dojump.c (do_compare_rtx_and_jump): Likewise.
25912 * expmed.c (emit_store_flag_1): Likewise.
25913 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25914 * final.c (sprint_ul): Use std::reverse for reversing a string.
25915 * fold-const.c (extract_muldiv_1): Use std::swap.
25916 * genmodes.c (emit_mode_int_n): Likewise.
25917 * ifcvt.c (dead_or_predicable): Likewise.
25918 * ira-build.c (ira_merge_live_ranges): Likewise.
25919 (swap_allocno_copy_ends_if_necessary): Likewise.
25920 * ira.c (ira_setup_alts): Likewise.
25921 * loop-iv.c (iv_analyze_expr): Likewise.
25922 (implies_p): Likewise.
25923 (canon_condition): Likewise.
25924 * lra-constraints.c (swap_operands): Likewise.
25925 * lra-lives.c (lra_merge_live_ranges): Likewise.
25926 * omega.c (swap): Remove.
25928 (omega_unprotect_1): Use std::swap.
25929 (omega_solve_geq): Likewise.
25930 * optabs.c (expand_binop_directly): Likewise.
25931 (expand_binop): Likewise.
25932 (emit_conditional_move): Likewise.
25933 (emit_conditional_add): Likewise.
25934 * postreload.c (reload_cse_simplify_operands): Likewise.
25935 * reg-stack.c (emit_swap_insn): Likewise.
25936 (swap_to_top): Likewise.
25937 (compare_for_stack_reg): Likewise.
25938 (subst_asm_stack_regs): Likewise.
25939 * reload.c (find_reloads): Likewise.
25940 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25941 * sel-sched.c (invoke_reorder_hooks): Likewise.
25942 (create_block_for_bookkeeping): Likewise.
25943 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25944 (lambda_matrix_right_hermite): Use std::swap.
25945 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25946 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25947 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25948 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25949 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25950 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25951 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25952 * tree-vrp.c (compare_ranges): Likewise.
25953 * var-tracking.c (add_with_sets): Likewise.
25954 (vt_find_locations): Likewise.
25956 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
25958 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25960 (FBSD_ENDFILE_SPEC): Likewise.
25961 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25962 config/freebsd-spec.h.
25963 (ENDFILE_SPEC): Likewise.
25965 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
25966 Richard Henderson <rth@redhat.com>
25969 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25970 Check for a memory location that is not a reference (using an AND)
25971 to an unaligned location here.
25972 * config/alpha/predicates.md (normal_memory_operand): Remove.
25974 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
25976 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25977 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25979 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
25981 * config/mips/mips.c (micromips_globals): New variable.
25982 (mips_set_compression_mode): Save and reinitialize target-dependent
25983 state for microMIPS.
25985 2015-05-18 Martin Liska <mliska@suse.cz>
25987 * dbgcnt.def: Add new counter.
25988 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25990 2015-05-18 Martin Liska <mliska@suse.cz>
25992 * dbgcnt.def: Sort counters.
25993 * opts.c (common_handle_option): Do not compile if
25994 -fdbg-cnt-list is enabled.
25996 2015-05-18 Tom de Vries <tom@codesourcery.com>
25998 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25999 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26000 address operator to va_list operand.
26001 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26003 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26005 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26006 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26007 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26009 2015-05-18 Tom de Vries <tom@codesourcery.com>
26011 * tree-ssa-tail-merge.c: Fix whitespace.
26013 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26015 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26016 cortex-a17, and cortex-a17.cortex-a7.
26018 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26021 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26023 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26026 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26027 QImode inner modes for TARGET_AVX512BW. Force mask operand
26028 to a register for AVX512F modes.
26030 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26032 * toplev.c (emit_debug_global_declarations): Do not output debug info
26033 when doing slim LTO objects.
26035 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26037 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26038 odr_types_equivalent_p): Declare.
26039 (odr_type_p): Use gcc_checking_assert.
26040 (type_in_anonymous_namespace_p) Declare.
26041 (type_with_linkage_p): Declare.
26042 * common.opt (Wlto-type-mismatch): New warning.
26043 * ipa-devirt.c (compound_type_base): New function.
26044 (odr_or_derived_type_p): New function.
26045 (odr_types_equivalent_p): New function.
26046 (add_type_duplicate): Simplify.
26047 (type_with_linkage_p): Add hack to prevent false positives on C types
26048 (type_in_anonymous_namespace_p): Likewise.
26049 * tree.c (need_assembler_name_p): Use type_with_linkage.
26050 * tree.h (type_in_anonymous_namespace_p): Remove.
26051 * doc/invoke.texi (-Wlto-type-mismatch): Document
26053 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26055 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26056 (verify_type): Verify STRING_FLAG.
26058 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26061 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26062 with accessor function.
26063 * tree-diagnostic.c (diagnostic_report_current_function): Use
26064 diagnostic_location function.
26065 (maybe_unwind_expanded_macro_loc): Likewise.
26066 (virt_loc_aware_diagnostic_finalizer): Likewise.
26067 (default_tree_printer): Replace locus pointer with accessor function.
26068 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26069 (diagnostic_set_info_translated): Initialize second location.
26070 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26071 (diagnostic_show_locus): Handle two locations. Call
26072 diagnostic_print_caret_line.
26073 (diagnostic_print_caret_line): New.
26074 (default_diagnostic_starter): Use diagnostic_location function.
26075 (diagnostic_report_diagnostic): Use diagnostic_location function.
26076 (verbatim): Do not set text.locus.
26077 * diagnostic.h (struct diagnostic_info): Remove location field.
26078 (struct diagnostic_context): Make caret_chars an array of two.
26079 (diagnostic_location): New inline.
26080 (diagnostic_expand_location): Handle two locations.
26081 (diagnostic_same_line): New inline.
26082 (diagnostic_print_caret_line): Declare.
26083 (CARET_LINE_MARGIN): New constant.
26084 * pretty-print.c (pp_printf): Do not set text.locus.
26085 (pp_verbatim): Do not set text.locus.
26086 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26087 (struct text_info): Replace locus pointer with locations
26088 array. Add accessor functions.
26090 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26091 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26094 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26095 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26096 large constants in register instead of splitting them.
26098 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26101 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26102 replacements in memory addresses.
26103 (get_unaligned_address): Ditto.
26105 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26107 * config/ft32/*: New files for FT32 port.
26108 * doc/install.texi: Add FT32 information.
26109 * doc/invoke.texi: Add FT32 information.
26110 * doc/md.texi: Add FT32 information.
26111 * doc/contrib.texi: Self added.
26113 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26115 PR tree-optimization/64454
26116 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26117 (-1 - A -> ~A): Remove unnecessary condition.
26119 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26121 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26122 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26123 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26125 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26127 * ipa-chkp.h (chkp_wrap_function): New.
26128 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26129 (chkp_wrap_function_name): New.
26130 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26131 to get wrapper name.
26132 * lto-cgraph.c: Include ipa-chkp.h.
26133 (input_cgraph_1): Avoid alias chain for wrappers.
26135 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26137 PR middle-end/66134
26138 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26139 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26141 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26143 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26144 (AARCH64_FL_SLOWMUL): Delete.
26145 (AARCH64_FL_CRC): Redefine to 1<<3.
26146 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26148 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26150 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26153 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26155 * config/alpha/alpha.md (extendqidi2): Use general_operand
26156 instead of some_operand for operand[1] predicate.
26157 (extendhidi2): Ditto.
26158 (cbranchdi4): Use general_operand instead of some_operand
26159 for operand[1] and operands[2] predicates.
26160 (cstoredi4): Ditto.
26161 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26162 (some_ni_operand): Ditto.
26164 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26166 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26167 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
26168 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26169 low part of the constant using alpha_emit_set_const_1.
26170 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26172 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
26174 * varasm.c (output_constant_pool_1): Pass down alignment from
26175 constant pool entry's descriptor to output_constant_pool_2.
26176 (output_object_block): Add comment prior to call to
26177 output_constant_pool_1.
26179 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
26181 PR rtl-optimization/65862
26182 * target.def (ira_change_pseudo_allocno_class): New hook.
26183 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26185 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26186 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26188 * ira-costs.c (find_costs_and_classes): Call the hook and change
26189 classes when it is necessary.
26190 * doc/tm.texi: Update.
26192 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
26194 * config/i386/i386.md (sibcall_memory): Check that register with
26195 callee address is not also used as one of the arguments, instead
26196 of checking that it is not live after the sibcall.
26197 (sibcall_pop_memory): Ditto.
26198 (sibcall_value_memory): Ditto.
26199 (sibcall_value_pop_memory): Ditto.
26201 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
26203 * generic-match-head.c (types_match): Handle non-types.
26204 * gimple-match-head.c (types_match): Likewise.
26205 * match.pd: Remove unnecessary TREE_TYPE for types_match.
26207 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
26209 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26210 (csneg3<mode>_insn): Enable expansion of pattern.
26212 2015-05-14 Nick Clifton <nickc@redhat.com>
26214 * config/rl78/rl78.c (rl78_select_section): Select the correct
26215 default section based upon the category of the decl.
26217 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26219 PR rtl-optimization/30967
26220 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26221 destination mode for the cost of scc patterns.
26223 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26225 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26226 using SWIM248 mode iterator.
26227 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26228 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
26229 for operand[2] constraint.
26230 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26232 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26234 PR middle-end/66133
26235 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26236 make sure it is never noreturn, even when the task body does not
26238 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26239 right before GIMPLE_OMP_RETURN.
26240 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26241 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
26242 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26244 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26246 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26247 * tree-ssa-math-opts.c: Include params.h
26248 (pow_synth_sqrt_info): New struct.
26249 (representable_as_half_series_p): New function.
26250 (get_fn_chain): Likewise.
26251 (print_nested_fn): Likewise.
26252 (dump_fractional_sqrt_sequence): Likewise.
26253 (dump_integer_part): Likewise.
26254 (expand_pow_as_sqrts): Likewise.
26255 (gimple_expand_builtin_pow): Use above to attempt to expand
26256 pow as series of square roots. Removed now unused variables.
26258 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26260 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26261 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26262 Remove *p0 and *p1 arguments. Rewrite function.
26263 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26264 (alpha_split_const_mov): Update calls to alpha_extract_integer and
26265 alpha_emit_set_long_const.
26266 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26267 (alpha_output_mi_thunk_osf): Ditto.
26268 * config/alpha/alpha.md (movti): Do not check operands[1]
26271 2015-05-13 Richard Biener <rguenther@suse.de>
26273 PR tree-optimization/66129
26274 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26276 (vect_schedule_slp_instance): Fix typo.
26278 2015-05-13 David Malcolm <dmalcolm@redhat.com>
26280 * common.opt (fdump-internal-locations): New option.
26281 * input.c: Include diagnostic-core.h.
26282 (get_end_location): New function.
26283 (write_digit): New function.
26284 (write_digit_row): New function.
26285 (dump_location_range): New function.
26286 (dump_labelled_location_range): New function.
26287 (dump_location_info): New function.
26288 * input.h (dump_location_info): New prototype.
26289 * toplev.c (compile_file): Handle flag_dump_locations.
26291 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
26293 * gimple-expr.h (is_gimple_constant): Reorder.
26294 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26296 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26298 * combine.c (simplify_set): When generating a CC set, if the
26299 source already is in the correct mode, do not wrap it in a
26300 compare. Simplify the rest of that code.
26302 2015-05-13 Richard Biener <rguenther@suse.de>
26304 PR tree-optimization/66123
26305 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26308 2015-05-13 Richard Biener <rguenther@suse.de>
26310 PR middle-end/66110
26311 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26313 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26315 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26317 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26318 * aclocal.m4: Regenerated with automake-1.11.6.
26320 2015-05-13 Tom de Vries <tom@codesourcery.com>
26322 PR tree-optimization/66010
26323 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26324 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26325 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
26326 and rval based on do_deref.
26328 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26331 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26332 link time constants into adress expressions and therefore set
26335 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26338 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26339 Use SWI248 iterator instead of SWI.
26340 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
26341 Use eq_attr "alternative" "0" instead of match_test in
26342 length_immediate attribute computation.
26343 (*mulvhi4, *mulvhi4_1): New define_insns.
26346 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26347 SIGNED to get precision of non-negative value.
26349 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26352 * function.c (diddle_return_value_1): Process bounds first.
26353 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26356 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26358 PR rtl-optimization/64616
26359 * loop-invariant.c (can_move_invariant_reg): New.
26360 (move_invariant_reg): Call above new function to decide whether
26361 instruction can just be moved, skipping creation of temporary
26364 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26366 PR target/pr66047.c
26367 * i386.c (ix86_function_sseregparm): Only return -1 if local function
26368 with implied regparm is called from -mno-sse function.
26369 (init_cumulative_args): Output error if ix86_function_sseregparm
26370 return -1 and SSE register would be needed.
26371 (function_arg_advance_32): Likewise.
26372 (function_arg_32): Likewise.
26373 * i386.h (ix86_args): Add decl field.
26375 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26378 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26379 inlines across optimization boundary.
26381 2015-05-12 Jason Merrill <jason@redhat.com>
26383 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26384 string literal and macro name.
26386 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
26388 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26389 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26390 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26392 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26394 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26395 (-Wmisleading-indentation): New option.
26396 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26398 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
26400 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26401 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26402 (alpha_extract_integer): Ditto.
26403 (alpha_legitimate_constant_p): Ditto.
26404 (alpha_split_tmode_pair): Ditto.
26405 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26406 (alpha_expand_mov): Ditto.
26407 (print_operand): Remove handling of 'H' modifier.
26408 <case 'm'>: Remove CONST_DOUBLE handling.
26409 (summarize_insn): Handle CONST_WIDE_INT.
26410 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26412 (movti): Handle CONST_WIDE_INT.
26413 * config/alpha/constraints.md ('H'): Remove constraint definition.
26414 ('G'): Do not match MODE_FLOAT class.
26415 * config/alpha/predicates.md (const0_operand): Also match
26417 (non_add_const_operand): Ditto.
26418 (non_zero_const_operand): Ditto.
26419 (some_operand): Ditto.
26420 (input_operand): Ditto. Handle CONST_WIDE_INT.
26421 (and_operand): Do not match const_double.
26422 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26424 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
26427 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26428 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26429 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26430 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26431 is_mm_seq_cst, is_mm_sync): New accessor functions.
26432 * builtins.c (expand_builtin_sync_operation,
26433 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26434 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26435 (get_memmodel, expand_builtin_atomic_compare_exchange,
26436 expand_builtin_atomic_load, expand_builtin_atomic_store,
26437 expand_builtin_atomic_clear): Use new accessor routines.
26438 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26439 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26440 (maybe_emit_sync_lock_test_and_set): Use new accessors and
26441 MEMMODEL_SYNC_ACQUIRE.
26442 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26443 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26444 expand_atomic_store): Use new accessors.
26445 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26446 * tsan.c (instrument_builtin_call): Update check for memory model beyond
26447 final enum to use MEMMODEL_LAST.
26448 * c-family/c-common.c: Use new accessor for memmodel_base.
26449 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26451 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26452 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26453 mem_thread_fence, *dmb): Likewise.
26454 * config/alpha/alpha.c (alpha_split_compare_and_swap,
26455 alpha_split_compare_and_swap_12): Likewise.
26456 * config/arm/arm.c (arm_expand_compare_and_swap,
26457 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26458 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26459 atomic_loaddi): Likewise.
26460 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26462 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26463 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26465 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26466 atomic_store<mode>, atomic_compare_and_swap<mode>,
26467 atomic_exchange<mode>): Use new accessors.
26468 * config/mips/mips.c (mips_process_sync_loop): Likewise.
26469 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26470 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26471 rs6000_post_atomic_barrier): Add new cases.
26472 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26473 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26474 (atomic_load<mode>): Add new cases and use new accessors.
26475 (store_quadpti): Add new cases.
26476 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26478 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26479 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26482 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26484 * ipa-devirt.c (type_with_linkage_p): New function.
26485 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26487 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26488 (can_be_name_hashed_p): Simplify.
26489 (hash_odr_name): Check that type has linkage before checking if it is
26491 (types_same_for_odr): Likewise.
26492 (odr_name_hasher::equal): Likewise.
26493 (odr_subtypes_equivalent_p): Likewise.
26494 (warn_types_mismatch): Likewise.
26495 (get_odr_type): Likewise.
26496 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26497 * ipa-utils.h (odr_type_p): Move offline.
26498 * tree.c (need_assembler_name_p): Fix handling of types
26500 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26502 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26504 * timevar.c (timevar_enable): Delete in favor of...
26505 (g_timer): New global.
26506 (struct timevar_def): Move to timevar.h inside class timer.
26507 (struct timevar_stack_def): Likewise.
26508 (timevars): Delete global in favor of field "m_timevars" within
26509 class timer in timevar.h
26510 (stack): Likewise, in favor of field "m_stack".
26511 (unused_stack_instances): Likewise, in favor of field
26512 "m_unused_stack_instances".
26513 (start_time): Likewise, in favor of field "m_start_time".
26514 (get_time): Eliminate check for timevar_enable.
26515 (timer::timer): New function, built from part of timevar_init.
26516 (timevar_init): Rewrite idempotency test from using
26517 "timevar_enable" bool to using dynamic allocation of "g_timer".
26518 Move rest of implementation into timer's constructor.
26519 (timevar_push_1): Rename to...
26520 (timer::push): ...this, adding "m_" prefixes to variables that
26521 are now fields of timer.
26522 (timevar_pop_1): Likewise, rename to...
26523 (timer::pop): ...this, and add "m_" prefixes.
26524 (timevar_start): Replace test for "timevar_enable" with one for
26525 "g_timer", and move bulk of implementation to...
26526 (timer::start): ...here, adding "m_" prefixes.
26527 (timevar_stop): Likewise, from here...
26528 (timer::stop): ...to here.
26529 (timevar_cond_start): Likewise, from here...
26530 (timer::cond_start): ...to here.
26531 (timevar_cond_stop): Likewise, from here...
26532 (timer::cond_stop): ...to here.
26533 (validate_phases): Rename to...
26534 (timer::validate_phases): ...this, and add "m_" prefixes. Make
26535 locals "total" and "tv" const.
26536 (timevar_print): Rename to...
26537 (timer::print): ...this, and add "m_" prefixes. Make locals
26538 "total" and "tv" const. Eliminate test for timevar_enable.
26539 * timevar.h (timevar_enable): Eliminate.
26540 (g_timer): New declaration.
26541 (timevar_push_1): Eliminate.
26542 (timevar_pop_1): Eliminate.
26543 (timevar_print): Eliminate.
26544 (class timer): New class.
26545 (timevar_push): Rewrite to use g_timer.
26546 (timevar_pop): Likewise.
26547 * toplev.c (toplev::~toplev): Likewise.
26549 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
26551 * arm-protos.h (arm_sched_autopref): Delete.
26552 (tune_params): Re-organize, use enums for flag values.
26553 (FUSE_OPS): New macro.
26554 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26555 (ARM_PREFETCH_BENEFICIAL): Likewise.
26556 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26557 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26558 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26559 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26560 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26561 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
26562 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26563 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26565 (arm_option_override, thumb2_reorg, arm_print_tune_info)
26566 (aarch_macro_fusion_pair_p): Update uses of current_tune.
26567 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26569 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
26571 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26574 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
26575 Sandra Loosemore <sandra@codesourcery.com>
26577 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26579 (REG_CLASS_NAMES): Add "IJMP_REGS".
26580 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26581 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26582 use new "c" register constraint.
26583 * config/nios2/constraint.md (c): New register constraint
26584 corresponding to IJMP_REGS.
26586 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26588 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26589 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26590 define_splits): Delete, revamp, transmogrify into ...
26591 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26592 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26593 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26596 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26598 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26599 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26601 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26603 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26604 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26605 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26606 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26607 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26608 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26609 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26610 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26611 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26612 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26613 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26614 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26615 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26616 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26617 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26618 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26619 and 30 corresponding splitters): Delete.
26621 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26623 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26626 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26628 * combine.c (recog_for_combine_1): New function, factored out
26629 from recog_for_combine.
26630 (change_zero_ext): New function.
26631 (recog_for_combine): If recog fails, try again with the pattern
26632 modified by change_zero_ext; if that still fails, restore the
26635 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26637 * combine.c (get_undo_marker): New function.
26638 (undo_to_marker): New function, largely factored out from ...
26639 (undo_all): ... this. Adjust.
26641 2015-05-12 Richard Biener <rguenther@suse.de>
26643 PR tree-optimization/66101
26644 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26645 fixup if we turn a loop exit edge to a fallthru edge.
26647 2015-05-12 Richard Biener <rguenther@suse.de>
26649 PR tree-optimization/37021
26650 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26651 (SLP_TREE_TWO_OPERATORS): New define.
26652 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26653 SLP_TREE_TWO_OPERATORS.
26654 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26656 (vect_build_slp_tree): Adjust.
26657 (vect_analyze_slp_cost_1): Likewise.
26658 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26659 emitting two vector stmts and mixing the results.
26661 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26663 * call.c (print_z_candidates): Remove dead code.
26665 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26667 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26668 and zEC12_simple_fp.
26669 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26672 2015-05-12 Tom de Vries <tom@codesourcery.com>
26674 PR tree-optimization/66010
26675 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26677 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26678 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
26679 va_lists are passed, and remove corresponding handling.
26680 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
26681 do_deref argument to ifn_va_arg.
26682 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26685 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26688 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26689 REG before taking its REGNO.
26691 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26693 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26694 rsp->sign_bit_copies and rsp->nonzero_bits into ...
26695 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
26696 present to get more accurate information about the number of sign bit
26697 copies and non zero bits.
26699 2015-05-12 Richard Biener <rguenther@suse.de>
26701 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26702 do not allow unrolling.
26704 2015-05-11 Richard Henderson <rth@redhat.com>
26706 * config/i386/i386-modes.def (CCP): New.
26707 * config/i386/i386.c (put_condition_code): Handle it.
26708 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26710 2015-05-11 Richard Henderson <rth@redhat.com>
26712 * target.def (md_asm_clobbers): Replace with...
26713 (md_asm_adjust): this.
26714 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26715 (TARGET_MD_ASM_ADJUST): New.
26716 * tm.texi: Rebuild.
26717 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26718 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26719 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26721 * cfgexpand.c (check_operand_nalternatives): Accept vector of
26722 constraints instead of lists of outputs and inputs.
26723 (expand_asm_stmt): Save and restore input_location around the
26724 body of the function. Move asm data into vectors instead of
26725 building tree lists. Generate cleanup sequences as needed,
26726 rather than waiting til the end. Use new md_asm_adjust hook.
26728 * config/vxworks.c: Include vec.h before target.h.
26729 * gimple.c: Likewise.
26730 * incpath.c: Likewise.
26731 * mode-switching.c: Likewise.
26733 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26734 (cris_md_asm_adjust): this.
26735 (TARGET_MD_ASM_CLOBBERS): Remove.
26736 (TARGET_MD_ASM_ADJUST): New.
26737 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26738 (ix86_md_asm_adjust): this.
26739 (TARGET_MD_ASM_CLOBBERS): Remove.
26740 (TARGET_MD_ASM_ADJUST): New.
26741 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26742 (mn10300_md_asm_adjust): this.
26743 (TARGET_MD_ASM_CLOBBERS): Remove.
26744 (TARGET_MD_ASM_ADJUST): New.
26745 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26746 (rs6000_md_asm_adjust): this.
26747 (TARGET_MD_ASM_CLOBBERS): Remove.
26748 (TARGET_MD_ASM_ADJUST): New.
26749 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26750 (visium_md_asm_adjust): this.
26751 (TARGET_MD_ASM_CLOBBERS): Remove.
26752 (TARGET_MD_ASM_ADJUST): New.
26754 2015-05-11 Richard Henderson <rth@redhat.com>
26756 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26757 if noutputs is zero.
26758 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26760 * cfgexpand.c (expand_asm_operands): Merge into...
26761 (expand_asm_stmt): ... here.
26763 * cfgexpand.c (expand_asm_operands): Don't call
26764 resolve_asm_operand_names.
26765 * stmt.c (resolve_asm_operand_names): Clarify block comment.
26767 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
26769 * dwarf2out.c (gen_member_die): Sanity check that we access
26770 TYPE_MAIN_VARIANT for TYPE_METHODS.
26771 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26772 checking TYPE_METHODS.
26773 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26775 (build_distinct_type_copy): Clear TYPE_METHODS.
26776 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26777 (verify_type): Allow TYPE_METHODS to be error_mark_node.
26778 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26780 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
26782 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26783 (emit_pattern_before_setloc): Likewise.
26785 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26787 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26788 for define_peephole2s.
26789 (get_peephole2_pattern): New function.
26790 (main): Use it. Call validate_pattern.
26792 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26794 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26795 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26796 (Last callee saved reg is different for AVR_TINY architecture)
26798 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26800 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26801 when looking for memory references.
26803 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26806 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26807 via function pointers.
26809 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26811 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26812 indirect call by forcing address into a pseudo with -fno-plt.
26813 * common.opt (flag_plt): New option.
26814 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26815 ([-fno-plt]): Document.
26817 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
26820 * config/rs6000/option-defaults.h: Add space between string literal
26823 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
26825 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26826 accross ARM targets.
26828 2015-05-11 Christian Bruel <christian.bruel@st.com>
26830 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26831 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26833 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26835 PR rtl-optimization/66076
26836 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26837 Don't grow the heap array if it is already big enough from a
26838 previous iteration.
26840 2015-05-11 Christian Bruel <christian.bruel@st.com>
26842 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26843 (is_called_in_ARM_mode): Remove.
26844 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26845 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26846 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26847 arm_declare_function_name.
26849 2015-05-11 Christian Bruel <christian.bruel@st.com>
26851 * config/arm/arm.c (arm_option_override): Reoganized and split into :
26852 (arm_option_params_internal); New function.
26853 (arm_option_check_internal): New function.
26854 (arm_option_override_internal): New function.
26855 (thumb_code, thumb1_code): Remove.
26856 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26857 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26858 (thumb_code, thumb1_code): Remove.
26859 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26861 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26863 * config/alpha/alpha.c (alpha_emit_set_const_1)
26864 (alpha_emit_set_long_const, alpha_extract_integer)
26865 (alpha_legitimate_constant_p, alpha_split_const_mov)
26866 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26867 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26868 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26870 * config/alpha/predicates.md (mode_mask_operand): Do not match
26872 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26873 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26874 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26875 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26876 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26878 2015-05-11 Jakub Jelinek <jakub@redhat.com>
26881 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26882 default_binds_local_p_2.
26883 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26884 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26886 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26888 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26890 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26892 Patch by Richard Biener
26893 * coverage.c (coverage_obj_init): Delay building of type variant
26894 until the type is finished.
26896 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26898 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26899 mismatch between C and C++ type; compoare correctly ARG_TYPES
26900 for non-prototypes and output correctly parameter index for METHOD_TYPE.
26901 (odr_types_equivalent_p): Fix wording of warning about attributes;
26902 it is OK to match prototype and non-prototype.
26904 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26906 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26907 TYPE_ARG_TYPES list.
26908 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26909 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26911 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26913 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26914 * tree.h (is_lang_specific): Constify.
26916 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
26918 PR tree-optimization/64454
26919 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26922 2015-05-08 Jason Merrill <jason@redhat.com>
26924 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26925 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26926 config/darwin.h, config/darwin9.h, config/elfos.h,
26927 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26928 config/microblaze/microblaze.h, config/mips/mips.h,
26929 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26930 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26931 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26932 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26933 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26934 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26935 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26936 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26937 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26938 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26939 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26940 between string literal and macro name.
26942 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26944 * jump.c: Change argument types to rtx_insn *.
26947 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26949 * lra-constraints.c: Change argument type to rtx_insn *.
26951 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26953 * df-problems.c: Change argument type to rtx_insn *.
26955 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26957 * combine.c: Change argument type to rtx_insn *.
26959 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26962 * rtlanal.c: Change argument type to rtx_insn *.
26964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26966 * sched-deps.c: Change argument types to rtx_insn *.
26967 * sched-int.h: Adjust.
26969 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26971 * dwarf2cfi.c: Change argument type to rtx_insn *.
26973 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26975 * ira.c (decrease_live_ranges_number): Changetype of local
26976 variable to rtx_insn *.
26977 * recog.c: Change argument types to rtx_insn *.
26980 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26982 * reorg.c: Change argument types to rtx_insn *.
26984 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26986 * ira-color.c: Change argument types to rtx_insn *.
26987 * lra-eliminations.c: Likewise.
26990 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26992 * gcse.c: Change argument types to rtx_insn *.
26994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26996 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26998 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27000 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27004 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27006 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27009 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27011 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27014 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27016 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27021 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27024 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27026 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27030 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27032 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27036 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27038 * except.c (can_nonlocal_goto): Change type of argument to
27042 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27044 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27047 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27049 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27050 * cfgrtl.c (can_delete_label_p): Adjust.
27053 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27055 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27057 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27059 * except.c (make_reg_eh_region_note): Change argument to
27061 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27062 * except.h: Adjust.
27064 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27066 * mode-switching.c (commit_mode_sets): Change type of local
27067 variable from rtx to rtx_insn *.
27069 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27071 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27072 Add ^ to grep command.
27073 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27074 arg to last gimple_simplify declaration. Add missing gimple_build
27075 declaration for built-in function case with four tree args.
27077 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27078 Szabolcs Nagy <szabolcs.nagy@arm.com>
27080 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27081 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27082 (GNU_USER_DYNAMIC_LINKERN32): Update.
27084 2015-05-08 Richard Biener <rguenther@suse.de>
27086 PR tree-optimization/66036
27087 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27088 Handle strided group loads.
27089 (vect_verify_datarefs_alignment): Likewise.
27090 (vect_enhance_data_refs_alignment): Likewise.
27091 (vect_analyze_group_access): Likewise.
27092 (vect_analyze_data_ref_access): Likewise.
27093 (vect_analyze_data_ref_accesses): Likewise.
27094 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27095 (vectorizable_load): Likewise.
27097 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27099 * config/rs6000/rs6000.md: Require operand inequality in one
27102 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27103 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27105 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27107 * config/rx/rx.md (movdi, movdf): Likewise.
27108 Likewise for define_peephole2s.
27110 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27112 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27113 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27114 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27115 vtst_u64): Rewrite using gcc vector extensions.
27117 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27119 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27120 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27122 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27124 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27126 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27128 * config/glibc-stdint.h (OPTION_MUSL): Define.
27129 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27130 Change the definition based on OPTION_MUSL for 64 bit targets.
27131 * config/linux.h (OPTION_MUSL): Redefine.
27132 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27133 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27134 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27136 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27137 Szabolcs Nagy <szabolcs.nagy@arm.com>
27139 * config.gcc (LIBC_MUSL): New tm_defines macro.
27140 * config/linux.h (OPTION_MUSL): Define.
27141 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27142 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27143 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27144 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27145 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27146 * config/linux.opt (mmusl): New option.
27147 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27148 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27149 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27150 * configure: Regenerate.
27152 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27153 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27156 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27157 * config/i386/knetbsd-gnu64.h: New file.
27159 2015-05-08 Marek Polacek <polacek@redhat.com>
27162 * doc/invoke.texi: Document -Woverride-init-side-effects.
27164 2015-05-07 Marek Polacek <polacek@redhat.com>
27167 * doc/invoke.texi: Document -Wshift-negative-value.
27169 2015-05-06 Aditya Kumar <hiraditya@msn.com>
27171 * gcov-tool.c (do_merge): Refactore to remove int ret.
27172 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27173 !type == FUNC to type != FUNC.
27174 * reload.h (struct target_reload): Changee to type of
27175 x_spill_indirect_levels from bool to unsigned char.
27177 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
27179 * rtl.h (always_void_p): New function.
27180 * gengenrtl.c (always_void_p): Likewise.
27181 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27182 with code foo are always VOIDmode.
27183 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27184 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27185 compare-elim.c, config/aarch64/aarch64.c,
27186 config/aarch64/aarch64.md, config/alpha/alpha.c,
27187 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27188 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27189 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27190 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27191 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27192 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27193 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27194 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27195 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27196 config/ia64/vect.md, config/iq2000/iq2000.c,
27197 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27198 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27199 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27200 config/mep/mep.c, config/microblaze/microblaze.c,
27201 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27202 config/mn10300/mn10300.c, config/msp430/msp430.c,
27203 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27204 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27205 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27206 config/rs6000/altivec.md, config/rs6000/rs6000.c,
27207 config/rs6000/rs6000.md, config/rs6000/vector.md,
27208 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27209 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27210 config/sh/sh.md, config/sh/sh_treg_combine.cc,
27211 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27212 config/spu/spu.md, config/stormy16/stormy16.c,
27213 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27214 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27215 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27216 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27217 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27218 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27219 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27220 var-tracking.c: Update calls accordingly.
27222 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27225 PR middle-end/54303
27226 * varasm.c (function_mergeable_rodata_prefix): New function.
27227 (mergeable_string_section): Use it.
27228 (mergeable_constant_section): Use it.
27230 2015-05-07 Jeff Law <law@redhat.com>
27233 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27234 simplifier to narrow arithmetic.
27235 * generic-match-head.c: (types_match, single_use): New functions.
27236 * gimple-match-head.c: (types_match, single_use): New functions.
27238 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27240 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27243 2015-05-07 Richard Biener <rguenther@suse.de>
27245 PR tree-optimization/66002
27246 * passes.def: Schedule another pass_merge_phi after ifcombine, right
27249 2015-05-07 Marek Polacek <polacek@redhat.com>
27250 Martin Uecker <uecker@eecs.berkeley.edu>
27252 * doc/invoke.texi: Document -fsanitize=bounds-strict.
27253 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27254 into SANITIZE_NONDEFAULT.
27255 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27257 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
27260 * config/alpha/alpha.c (alpha_override_options_after_change): New.
27261 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27262 (alpha_override_options): Move align_loops, align_jumps and
27263 align_functions handling into alpha_override_options_after_change.
27265 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
27266 Chris Jones <chrisj@nvidia.com>
27267 Joshua Conner <jconner@nvidia.com>
27269 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27270 linking of crtfastmath.o.
27271 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27273 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27275 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27276 (cstore<mode>4_unsigned_imm): New expander.
27277 (cstore<mode>4): Remove empty constraint strings. Use the new
27280 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
27283 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27286 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
27288 * config/aarch64/geniterators.sh: Use standard BRE in sed.
27290 2015-05-06 Alan Modra <amodra@gmail.com>
27293 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27294 (UNSPEC_NOP): Define.
27295 (reload_vsx_from_gpr<mode>): Add missing DONE.
27296 (reload_gpr_from_vsx<mode>): Likewise.
27297 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27298 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27300 2015-05-06 Christian Bruel <christian.bruel@st.com>
27303 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27304 align_jumps, align_functions into aarch64_override_options_after_change.
27306 2015-05-06 Richard Biener <rguenther@suse.de>
27308 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27309 vect_transform_slp_perm_load to check if we support a permutation
27310 for basic-block vectorization.
27312 2015-05-06 Nick Clifton <nickc@redhat.com>
27314 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27315 used, even if it is not being used as a frame pointer.
27317 2015-05-05 Jason Merrill <jason@redhat.com>
27319 * dwarf2out.c (gen_member_die): Don't emit anything for an
27320 anonymous class constructor.
27322 2015-05-05 David Malcolm <dmalcolm@redhat.com>
27324 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27325 that it reflects the block structure.
27326 (afdo_propagate_edge): Likewise.
27327 (afdo_calculate_branch_prob): Likewise.
27328 (afdo_annotate_cfg): Likewise.
27329 * cfgcleanup.c (equal_different_set_p): Likewise.
27330 (try_crossjump_to_edge): Likewise.
27331 * cgraph.c (cgraph_node::verify_node): Likewise.
27332 * cgraphunit.c (expand_all_functions): Likewise.
27333 * config/i386/i386.c (ix86_expand_copysign): Likewise.
27334 (exact_dependency_1): Likewise.
27335 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27336 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27337 * gensupport.c (process_define_subst): Likewise.
27338 * lto-wrapper.c (merge_and_complain): Likewise.
27339 * tree-if-conv.c (if_convertible_bb_p): Likewise.
27340 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27341 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27342 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27343 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27344 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27345 * tree-vect-stmts.c (vectorizable_shift): Likewise.
27346 * tree-vrp.c (vrp_finalize): Likewise.
27347 * tree.c (variably_modified_type_p): Likewise.
27349 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
27351 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27352 on darwin12 and later.
27353 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27354 file to pass -rdynamic on darwin12 and later.
27355 * config/darwin.opt (rdynamic): Add.
27357 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27359 * doc/extend.texi (C Extensions): Update menu for moved Variable
27360 Attributes and Type Attributes sections.
27362 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27365 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27366 if rep_8byte stringop strategy was specified for 32-bit target.
27368 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
27371 * config/i386/i386.md (vector convert to float spltiter): Check for
27372 xmm16+, when splitting scalar float conversion.
27373 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27375 2015-05-05 Nick Clifton <nickc@redhat.com>
27377 * config/msp430/msp430-opts.h (enum msp430_regions): New.
27378 * config/msp430/msp430.c (msp430_override_options): Complain if
27379 -mcode-region or -mdata-region is used on a non MSP430X.
27380 (msp430_section_attr): New function. Checks lower, upper and
27382 (msp430_attribute_table): Add lower, upper and either.
27383 (gen_prefix): New function. Generates a prefix for a section
27385 (msp430_select_section): New function - handles the choice of
27386 section for an object. Takes into account memory region
27387 attributes and options.
27388 (msp430_function_section): Use gen_prefix.
27389 (TARGET_SECTION_TYPE_FLAGS): Define.
27390 (msp430_section_type_flags): New function.
27391 (TARGET_ASM_UNIQUE_SECTION): Define.
27392 (msp430_unique_section): New function.
27393 (msp430_output_aligned_decl_common): New function.
27394 (msp430_do_not_relax_short_jumps): New function.
27395 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27397 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27398 * config/msp430/msp430-protos.h
27399 (msp430_do_not_relax_short_jumps): New prototype.
27400 (msp430_output_aligned_decl_common): New prototype.
27401 * config/msp430/msp430.md (length): New attribute.
27402 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27403 then use a long code sequence for short jumps.
27404 * config/msp430/msp430.opt (mcode-region): New.
27405 (mdata-region): New.
27406 * doc/invoke.texi: Document new options.
27407 * doc/extend.texi: Document new attributes.
27409 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27411 * config/aarch64-protos.h (struct cpu_branch_cost): New.
27412 (tune_params): Add field branch_costs.
27413 (aarch64_branch_cost): Declare.
27414 * config/aarch64.c (generic_branch_cost): New.
27415 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27416 (cortexa53_tunings): Likewise.
27417 (cortexa57_tunings): Likewise.
27418 (thunderx_tunings): Likewise.
27419 (xgene1_tunings): Likewise.
27420 (aarch64_branch_cost): Define.
27421 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27423 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27425 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27426 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27427 * config/i386/i386.md: Ditto.
27428 * config/i386/winnt.c: Ditto.
27430 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27432 * doc/extend.texi (__atomic Builtins): Move implementation details
27433 to the end of the description, rewrite opening paragraphs, state
27434 difference with __sync builtins, state C11/C++11 assumptions,
27435 weaken itemized descriptions, add explanation of memory model
27436 behaviour, expand description of compare-exchange, simplify text.
27438 2015-05-05 Renlin Li <renlin.li@arm.com>
27440 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27442 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
27444 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27445 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27446 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27447 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27448 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27449 * configure: Regenerate.
27450 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27451 * doc/install.texi (aarch64*-*-*): Document new
27452 --enable-fix-cortex-a53-843419 option.
27453 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27454 and -mno-fix-cortex-a53-843419 options.
27456 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27459 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27461 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
27463 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27464 fix overactive TYPE_MIN_VALUE check and add FIXME for type
27465 compatibility problems.
27467 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27469 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27471 (cbranchsi4_reg): New.
27472 * config/microblaze/microblaze.c
27473 (microblaze_expand_conditional_branch_reg): New.
27474 * config/microblaze/microblaze-protos.h
27475 (microblaze_expand_conditional_branch_reg): New prototype.
27477 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27479 * config/microblaze/microblaze.md (peephole2): New.
27481 2015-05-04 Jeff Law <law@redhat.com>
27484 2015-05-04 Jeff Law <law@redhat.com>
27486 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27487 simplifier to narrow arithmetic.
27488 * generic-match-head.c: (types_match, single_use): New functions.
27489 * gimple-match-head.c: (types_match, single_use): New functions.
27491 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27494 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27495 (split_branches): Likewise.
27497 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
27499 * common.opt (fdelete-null-pointer-checks): Init to -1.
27500 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27501 override flag_delete_null_pointer_checks default.
27502 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27503 behavior re address zero. Better document target-specific behavior.
27504 (-fisolate-errneous-paths-dereference): Mention relationship to
27505 -fdelete-null-pointer-checks.
27507 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27509 PR tree-optimization/65984
27510 * ubsan.c: Include tree-cfg.h.
27511 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27512 stmt_could_throw_p test, rename can_throw variable to ends_bb.
27514 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27516 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27517 to CONST_DOUBLE_P predicate.
27518 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27519 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27520 allow only operands that satisfy standard_sse_constant_p predicate.
27521 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27522 to CONST_DOUBLE_P predicate.
27524 2015-05-04 Jeff Law <law@redhat.com>
27526 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27527 simplifier to narrow arithmetic.
27528 * generic-match-head.c: (types_match, single_use): New functions.
27529 * gimple-match-head.c: (types_match, single_use): New functions.
27531 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
27533 * config/arm/arm.c: Restore bootstrap.
27535 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27537 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27538 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27539 as CONST_WIDE_INT, not CONST_DOUBLE.
27540 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27541 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27542 (ix86_find_base_term): Do not check for CONST_DOUBLE.
27543 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27544 (ix86_build_signbit_mask): Rewrite using wide ints.
27545 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27546 (ix86_rtx_costs): Handle CONST_WIDE_INT.
27547 (find_constant): Ditto.
27548 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27549 using gen_int_mode.
27550 * config/i386/predicates.md (x86_64_immediate_operand)
27551 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27552 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27553 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27554 (const0_operand): Also match const_wide_int.
27555 (constm1_operand): Ditto.
27556 (const1_operand): Ditto.
27558 2015-05-04 Richard Biener <rguenther@suse.de>
27560 PR tree-optimization/65965
27561 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27562 store groups at gaps.
27564 2015-05-04 Richard Biener <rguenther@suse.de>
27566 PR tree-optimization/65935
27567 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27568 then make sure to apply that swapping to the IL.
27570 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27572 * Makefile.in (PATCHLEVEL_c): New variable.
27573 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27574 expand the same way as if DEVPHASE_c was non-empty.
27576 2015-05-04 Kai Tietz <ktietz@redhat.com>
27579 * lto-wrapper.c (run_gcc): Open filename
27582 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
27584 * doc/extend.texi (Variable Attributes, Type Attributes): Move
27585 sections up in file, to immediately after the Function Attributes
27588 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
27590 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27592 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27594 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27595 (insert_partition_copy_on_edge): Adjust.
27596 (insert_rtx_to_part_on_edge): Likewise.
27597 (insert_part_to_rtx_on_edge): Likewise.
27599 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27601 * function.c (set_return_jump_label): Change type of argument to
27603 * function.h (set_return_jump_label): Adjust.
27605 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27607 * reload.h (struct reg_equivs_t): Change type of init to
27609 * ira.c (fix_reg_equiv_init): Adjust.
27610 * reload1.c (eliminate_regs_1): Likewise.
27611 (init_eliminable_invariants): Likewise.
27613 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27615 * cselib.c (fp_setter_insn): Take a rtx_insn *.
27616 * cselib.h (fp_setter_insn): Adjust.
27618 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27620 * recog.c (struct validate_replace_src_data): Change type of
27621 insn field to rtx_insn *.
27622 (validate_replace_src_group): Change type of argument to rtx_insn *.
27623 * recog.h (validate_replace_src_group): Adjust.
27625 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27627 * haifa-sched.c: Change the type of some variables to rtx_insn *.
27628 * sched-deps.c: Likewise.
27629 * sched-int.h: Likewise.
27630 * sched-rgn.c: Likewise.
27631 * sel-sched.c: Likewise.
27633 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27636 * config/i386/i386.c: Change the type of some arguments to
27638 * config/arm/arm.c: Likewise.
27640 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27642 * lra-constraints.c: Change type of some arguments to rtx_insn *.
27644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27646 * regcprop.c (kill_autoinc_value): Change type of argument to
27649 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27651 * genrecog.c (print_subroutine): Adjust.
27652 * recog.c (get_bool_attr_mask_uncached): Likewise.
27653 * recog.h (struct recog_data_d): Change the type of insn to
27656 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27658 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27660 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27662 * df-problems.c (df_set_note): Change type of argument to
27665 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27667 * builtins.c (expand_builtin_trap): Change type of local
27668 variable to rtx_insn *.
27669 (add_sched_insns_for_speculation): Likewise.
27670 (ix86_emit_save_regs): Likewise.
27671 (get_scratch_register_on_entry): Likewise.
27672 (ix86_emit_restore_reg_using_pop): Likewise.
27673 (ix86_emit_leave): Likewise.
27674 (ix86_emit_restore_regs_using_mov): Likewise.
27675 (ix86_expand_epilogue): Likewise.
27677 (rl78_alloc_physical_registers_umul): Likewise.
27678 * cselib.c (discard_useless_locs): Likewise.
27679 (cselib_invalidate_regno): Likewise.
27680 (cselib_invalidate_mem): Likewise.
27681 * function.c (expand_function_start): Likewise.
27682 (emit_use_return_register_into_block): Likewise.
27683 * gcse.c: Likewise.
27684 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27685 * ifcvt.c (noce_get_alt_condition): Likewise.
27686 * loop-doloop.c (doloop_condition_get): Likewise.
27687 * lra-constraints.c (inherit_in_ebb): Likewise.
27688 * modulo-sched.c (sms_schedule_by_order): Likewise.
27689 * recog.c (next_insn_tests_no_inequality): Likewise.
27690 * reorg.c (emit_delay_sequence): Likewise.
27691 (update_reg_dead_notes): Likewise.
27692 (fix_reg_dead_note): Likewise.
27693 (fill_slots_from_thread): Likewise.
27694 (delete_computation): Likewise.
27696 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
27698 * doc/extend.texi (Variable Attributes): Add menu and proper
27699 @nodes to subsections. Move Microsoft Windows attributes to
27700 their own subsection.
27701 (Type Attributes): Reorganize introduction to remove duplicate
27702 list of attributes. Add menu and proper @nodes to subsections.
27703 Alphabetize the main table of common attributes.
27705 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
27707 * match.pd: New simplification patterns.
27708 (x + (x & 1)) -> ((x + 1) & ~1)
27709 (x & ~(x & y)) -> ((x & ~y))
27710 (x | ~(x | y)) -> ((x | ~y))
27712 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27714 * target.def (attribute_table): Mention that struct attribute_spec
27715 is defined in tree-core.h rather than tree.h
27716 * doc/tm.texi: Regenerate.
27718 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
27720 * genrecog.c (test): Rename to rtx_test. Update rest of file
27723 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
27725 PR translation/65959
27726 * params.h (DEFPARAM): Rename msgid to nocmsgid.
27728 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27730 * config/aarch64/aarch64-protos.h (tune_params):
27731 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27732 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27733 Return value depending on target.
27734 (generic_tunings): Initialize new target settings.
27735 (cortexa53_tunings): Likewise.
27736 (cortexa57_tunings): Likewise.
27737 (thunderx_tunings): Likewise.
27738 (xgene1_tunings): Likewise.
27740 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27742 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27743 Make Cortex-A53 shift costs more accurate.
27745 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27750 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27752 * config/aarch64/aarch64.c (aarch64_rtx_costs):
27753 Calculate cost of op0 and op1 in PLUS and MINUS cases.
27755 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27757 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27758 Add cost of op0 in the compare-with-fpzero case.
27760 2015-04-30 David Malcolm <dmalcolm@redhat.com>
27762 * builtins.c (fold_builtin_1): Remove spurious second
27764 * cgraph.h (symtab_node::get_availability): Likewise.
27765 * opts.c (common_handle_option): Remove spurious second semicolon.
27766 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27767 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27769 2015-04-30 Caroline Tice <cmtice@google.com>
27771 PR gcov-profile/65929
27772 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27773 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27774 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27775 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27776 * doc/tm.texi: Regenerate.
27777 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
27778 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27779 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
27780 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27782 2015-04-30 Marek Polacek <polacek@redhat.com>
27784 * varasm.c (handle_cache_entry): Fix logic.
27786 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27788 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27789 (*extrsi5_insn_uxtw_alt): Likewise.
27790 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27791 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27794 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27796 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27799 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27801 * config/aarch64/aarch64.md
27802 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27803 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27804 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27805 appropriately. Handle alternative EON form.
27807 2015-04-30 Renlin Li <renlin.li@arm.com>
27809 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27810 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27812 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27815 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27816 -fstrict-aliasing boundaries.
27818 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27820 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27821 and [SU]MNEGL patterns.
27823 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27825 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27826 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27827 combined arithmetic-shift ops. Properly handle all shift and extend
27828 operations that can occur in combination with PLUS/MINUS.
27829 Rename maybe_fma to compound_p.
27830 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27831 arithmetic and shift operations.
27833 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27835 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27836 rather than arith_shift cost when costing ADD/MINUS of an
27839 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27842 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27845 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
27847 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27848 are for the same position.
27850 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
27852 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
27854 (vectorize_loops): Use it.
27856 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27858 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27859 for aggregate types.
27860 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27861 type to be non_ODR.
27862 * tree.c (need_assembler_name_p): Compute mangled name for
27863 non-fundamental types and integer types.
27865 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
27867 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27869 * expr.c (expand_expr_real_2): Likewise.
27871 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27873 * tree.c (build_common_builtin_nodes): Do not build
27874 __builtin_alloca_with_align as equivalent of library alloca.
27876 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27878 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27879 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27881 * tree.c: Include print-tree.h and ipa-utils.h
27882 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27883 (free_lang_data_in_cgraph): Call verify_type.
27884 (verify_type_variant): New function.
27885 (verify_type): New function.
27886 * tree.h (verify_type): Declare.
27888 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
27890 * config/mips/mips-cpus.def: (mips4): Change default processor
27891 from PROCESSOR_R8000 to PROCESSOR_R10000.
27893 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
27895 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27896 la/jalr instead of jal.
27898 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
27901 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27902 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27903 (setcc+movzbl peephole2): Check also clobbered reg.
27904 (setcc+andl peephole2): Ditto.
27906 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27909 * config/nvptx/mkoffload.c (target_ilp32): New variable.
27910 (main): Set it depending on "-foffload-abi=[...]".
27911 (compile_native, main): Use it to pass "-m32" or "-m64" to the
27914 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27917 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27918 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27919 Flip lane index back at assembly time for bigendian.
27921 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27923 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27924 * gimplify.c (gimplify_omp_workshare): Use it.
27926 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27928 * Makefile.in (build/genrecog.o): Depend on inchash.h.
27929 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27931 * genrecog.c: Rewrite most of the code except for the third page.
27933 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27935 * inchash.h, inchash.c: Include bconfig.h for build objects.
27936 * Makefile.in (build/inchash.o): New rule.
27938 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
27941 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27942 number in type attribute expression.
27944 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27946 * loop-iv.c (canon_condition): Generalize to all types of integer
27949 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
27951 * gimple-walk.c: Prune duplicate or unneeded includes.
27952 (walk_gimple_asm): Only call parse_input_constraint or
27953 parse_output_constraint if their findings are used.
27954 Honour parse_input_constraint and parse_output_constraint
27957 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27959 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27961 2015-04-29 Tom de Vries <tom@codesourcery.com>
27963 PR tree-optimization/65893
27964 * passes.def (pass_all_optimizations): Move pass_stdarg to after
27967 2015-04-29 Richard Biener <rguenther@suse.de>
27969 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27970 compute GROUP_SIZE for basic-block SLP.
27971 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27972 take into account gaps.
27973 (vect_get_mask_element): Properly reject references to previous
27975 (vect_transform_slp_perm_load): Likewise.
27977 2015-04-29 Christian Bruel <christian.bruel@st.com>
27980 * config/i386/i386.c (ix86_default_align): New function.
27981 (ix86_override_options_after_change): Call ix86_default_align.
27982 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27983 (ix86_override_options_after_change): New function.
27985 2015-04-28 Jeff Law <law@redhat.com>
27987 * tree-ssa-dom.c (record_equality); Fix comment typos.
27989 2015-04-28 Tom de Vries <tom@codesourcery.com>
27991 PR tree-optimization/65887
27992 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27994 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
27996 * doc/extend.texi (Declaring Attributes of Functions): Split into
27997 subsections by target. Alphabetize the table of common attributes.
27998 Rewrite some of the introductory text to reflect the new structure.
27999 Update some cross-references to point to the new subsections.
28000 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28001 duplicate copies in the discussion of function, label, and type
28004 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28007 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28009 2015-04-28 Jason Merrill <jason@redhat.com>
28012 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28013 (finalize_type_size): Respect TYPE_USER_ALIGN.
28014 (layout_type) [ARRAY_TYPE]: Likewise.
28016 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28018 * config/arm/arm.md (*arm_movt): Fix type attribute.
28019 (*cmpsi_shiftsi): Likewise.
28020 (*cmpsi_shiftsi_swp): Likewise.
28021 (*movsicc_insn): Likewise.
28022 (*cond_move): Likewise.
28023 (*if_plus_move): Likewise.
28024 (*if_move_plus): Likewise.
28025 (*if_arith_move): Likewise.
28026 (*if_move_arith): Likewise.
28027 (*if_shift_move): Likewise.
28028 (*if_move_shift): Likewise.
28029 (*arm_movtas_ze): Likewise.
28030 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28031 redundancy and type attribute.
28032 (*thumb2_movsi_insn): Fix type attribute.
28033 (*thumb2_addsi_short): Likewise.
28034 (thumb2_addsi3_compare0): Likewise.
28035 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28036 attributes accordingly.
28038 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28041 * function.c (pad_to_arg_alignment): Add parentheses.
28043 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28045 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28046 libgcc/config/frv/elf-lib.h.
28048 2015-04-28 Tom de Vries <tom@codesourcery.com>
28050 * tree-call-cdce.c: Fix example in header comment.
28052 2015-04-28 Richard Biener <rguenther@suse.de>
28054 PR tree-optimization/62283
28055 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28056 fails fatally and we are vectorizing a basic-block simply
28057 cause the child to be constructed piecewise.
28058 (vect_analyze_slp_cost_1): Adjust.
28059 (vect_detect_hybrid_slp_stmts): Likewise.
28060 (vect_bb_slp_scalar_cost): Likewise.
28061 (vect_get_constant_vectors): For piecewise constructed
28062 constants place them after the last def.
28063 (vect_get_slp_defs): Adjust.
28064 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28065 externals for basic-block vectorization.
28067 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28070 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28072 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28073 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28074 (AARCH64_TUNE_FMA_STEERING): Likewise.
28075 * config/aarch64/aarch64-cores.def: Set
28076 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28077 FMUL/FMADD instructions.
28078 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28079 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28080 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28081 * config/aarch64/cortex-a57-fma-steering.h: New file.
28082 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28084 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28086 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28088 2015-04-28 Richard Biener <rguenther@suse.de>
28090 PR tree-optimization/65851
28091 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28092 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28093 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28094 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28095 (ccp_visit_phi_node): Adjust.
28096 (evaluate_stmt): For simplifications to SSA names return its
28097 lattice value if that isn't VARYING. Return immediately when
28098 simplified to a constant.
28099 (visit_assignment): Adjust.
28100 (ccp_visit_stmt): Likewise.
28102 2015-04-28 Tom de Vries <tom@codesourcery.com>
28104 PR tree-optimization/65818
28105 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28108 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28110 * calls.c (save_fixed_argument_area): Don't check
28111 ARGS_GROW_DOWNWARD with the preprocessor.
28112 (restore_fixed_argument_area): Likewise.
28113 (mem_overlaps_already_clobbered_arg_p): Likewise.
28114 (check_sibcall_argument_overlap): Likewise.
28115 (expand_call): Likewise.
28116 (emit_library_call_value_1): Likewise.
28117 (store_one_arg): Likewise.
28118 * function.c (assign_parms): Likewise.
28119 (locate_and_pad_parm): Likewise.
28120 (pad_to_arg_alignment): Likewise.
28121 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28123 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28125 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28126 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28127 * calls.c (save_fixed_argument_area): Don't chekc if
28128 ARGS_GROW_DOWNWARD is defined.
28129 (restore_fixed_argument_area): Likewise.
28130 (mem_overlaps_already_clobbered_arg_p): Likewise.
28131 (check_sibcall_argument_overlap): Likewise.
28132 (expand_call): Likewise.
28133 (emit_library_call_value_1): Likewise.
28134 (store_one_arg): Likewise.
28135 * function.c (assign_parms): Likewise.
28136 (locate_and_pad_parm): Likewise.
28137 (pad_to_arg_alignment): Likewise.
28138 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28140 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28142 * defaults.h (gen_epilogue): New function.
28143 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28145 * cfgrtl.c (cfg_layout_finalize): Likewise.
28146 * df-scan.c: Likewise.
28147 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28148 (reposition_prologue_and_epilogue_notes): Likewise.
28149 * reorg.c (find_end_label): Likewise.
28150 * toplev.c: Likewise.
28152 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28154 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28155 * defaults.h (gen_simple_return): New function.
28156 (gen_simple_return): Likewise.
28157 (HAVE_return): Add default definition to false.
28158 (HAVE_simple_return): Likewise.
28159 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28160 HAVE_return and HAVE_simple_return are defined.
28161 * function.c (gen_return_pattern): Likewise.
28162 (convert_jumps_to_returns): Likewise.
28163 (thread_prologue_and_epilogue_insns): Likewise.
28164 * reorg.c (find_end_label): Likewise.
28165 (dbr_schedule): Likewise.
28166 * shrink-wrap.c: Likewise.
28167 * shrink-wrap.h: Likewise.
28169 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28171 * defaults.h (EPILOGUE_USES): Add default definition of false.
28172 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28173 * resource.c (init_resource_info): Likewise.
28175 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28177 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28179 * dwarf2out.c (field_byte_offset): REmove check if
28180 PCC_BITFIELD_TYPE_MATTERS is defined.
28181 * stor-layout.c (layout_decl): Likewise.
28182 (update_alignment_for_field): Likewise.
28183 (place_field): Likewise.
28185 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28187 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28189 * regrename.c (check_new_reg_p): Remove check if
28190 HARD_REGNO_RENAME_OK is defined.
28191 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28193 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28195 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28196 * cse.c (fold_rtx): Likewise.
28197 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28198 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28199 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28200 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28201 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28202 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28203 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28204 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28205 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28206 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28208 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28209 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28210 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28211 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28212 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28213 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28214 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28215 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28216 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28217 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28218 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28219 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28220 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28221 * doc/tm.texi: Regenerate.
28222 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28223 either true or false.
28225 2015-04-27 Jeff Law <law@redhat.com>
28227 PR tree-optimization/65217
28228 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28229 of them has a single use, make sure it is the LHS of the implied
28232 2015-04-28 Alan Modra <amodra@gmail.com>
28235 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28236 (offsettable_ok_by_alignment): Use minimum of decl and toc
28237 pointer alignment. Replace dead code with assertion.
28238 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
28239 case if size exceeds toc pointer alignment.
28240 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28241 (rs6000_emit_move): Likewise.
28242 * configure.ac: Add linker toc pointer alignment check.
28243 * configure: Regenerate.
28244 * config.in: Regenerate.
28246 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
28248 * config.gcc: Add h8300-*-linux.
28249 * config/h8300/linux.h: New.
28250 * config/h8300/t-linux: New.
28251 * config/h8300/h8300.c (h8300_option_override): Normal mode
28252 is not supported for h8300-*-linux.
28253 (h8300_file_start): Target priority change.
28254 (get_shift_alg): Likewise.
28255 (h8300_shift_need_scratch_p): Likewise.
28256 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28257 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28259 2015-04-27 Caroline Tice <cmtice@google.com>
28261 * final.c (final_scan_insn): Output cold_function_name as function
28263 * varasm.c (cold_function_name): Make global.
28264 (assemble_start_function): Re-set cold_function_name.
28265 (assemble_end_function): Output cold partition size.
28266 * varasm.h (cold_function_name): Declare global.
28268 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
28270 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28271 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28273 (*movxi_internal_avx512f): Ditto.
28274 (define_split): Check for xmm16+, when splitting scalar float_extend.
28275 (*extendsfdf2_mixed): Use "v" constraint.
28276 (define_split): Check for xmm16+, when splitting scalar float_truncate.
28277 (*truncdfsf_fast_sse): Use "v" constraint.
28278 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28279 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28280 (define_peephole2): Check for xmm16+, when converting scalar
28282 (define_peephole2): Check for xmm16+, when converting scalar
28284 (*fop_<mode>_comm_mixed): Use "v" constraint.
28285 (*fop_<mode>_comm_sse): Ditto.
28286 (*fop_<mode>_1_mixed): Ditto.
28287 (*sqrt<mode>2_sse): Ditto.
28288 (*ieee_s<ieee_maxmin><mode>3): Ditto.
28290 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28292 * combine.c (simplify_if_then_else): Use std::swap instead
28293 of manually swapping.
28294 (known_cond): Likewise.
28295 (simplify_comparison): Likewise.
28297 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
28300 * config/rs6000/htm.md: Remove all define_expands.
28301 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28302 UNSPECV_HTM_TABORTWCI): Remove.
28303 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28304 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28305 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28306 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28307 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28308 tabortwci_internal): Remove define_insns.
28309 (tabort<wd>c, tabort<wd>ci): New define_insns.
28310 (tabort): Use gpc_reg_operand.
28311 (tcheck): Remove operand.
28312 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28313 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28315 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28316 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
28317 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28318 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28319 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28320 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28321 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28322 (tcheck): Remove builtin argument.
28323 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28325 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
28326 tabortdc and tabortdci builtins when not in 64-bit mode.
28327 Modify code to handle the loss of the HTM define_expands.
28328 Emit code to copy the CR register to TARGET.
28329 (htm_init_builtins): Modify code to handle the loss of the HTM
28331 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28332 (RS6000_BTC_64BIT): Likewise.
28333 (RS6000_BTC_CR): New macro.
28334 * doc/extend.texi: Update documentation for htm builtins.
28336 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28338 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28339 of manually swapping.
28340 (simplify_associative_operation): Likewise.
28341 (simplify_binary_operation): Likewise.
28342 (simplify_plus_minus): Likewise.
28343 (simplify_relational_operation): Likewise.
28344 (simplify_ternary_operation): Likewise.
28346 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28348 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28349 (xs_hi_nonmemory_operand): Remove error.
28350 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28351 general_operand rather than xs_hi_general_operand.
28353 2015-04-27 Richard Biener <rguenther@suse.de>
28355 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28356 (record_equivalences_from_stmt): Valueize rhs.
28357 (record_equality): Canonicalize x and y order via
28358 tree_swap_operands_p. Do not swap operands for same loop depth.
28360 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
28364 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28365 Add hint how to use own spec file.
28367 2015-04-27 Jakub Jelinek <jakub@redhat.com>
28369 PR tree-optimization/65875
28370 * tree-vrp.c (update_value_range): If in is_new case setting
28371 old_vr to VR_VARYING, also set new_vr to it. Remove
28372 old_vr->type == VR_VARYING test.
28373 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28374 SSA_PROP_INTERESTING if update_value_range returned true,
28375 but new range is VR_VARYING.
28377 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
28379 * combine.c (sign_extend_short_imm): New.
28380 (set_nonzero_bits_and_sign_copies): Use above new function for sign
28381 extension of src short immediate.
28382 (reg_nonzero_bits_for_combine): Likewise for tem.
28384 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28386 * stor-layout.c (self_referential_component_ref_p): New predicate.
28387 (copy_self_referential_tree_r): Use it.
28388 (self_referential_size): Punt for simple operations directly involving
28389 self-referential component references.
28390 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28392 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28394 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28396 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28398 * vec.h (vec): Make splice arguments const. Update definitions
28401 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
28403 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28406 2015-04-26 Tom de Vries <tom@codesourcery.com>
28408 PR tree-optimization/65826
28409 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28411 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
28413 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28414 (*madd3<mode>): Ditto.
28415 (*msub4<mode>): Ditto.
28416 (*msub3<mode>): Ditto.
28417 (*nmadd4<mode>): Ditto.
28418 (*nmadd3<mode>): Ditto.
28419 (*nmadd4<mode>_fastmath): Ditto.
28420 (*nmadd3<mode>_fastmath): Ditto.
28421 (*nmsub4<mode>): Ditto.
28422 (*nmsub3<mode>): Ditto.
28423 (*nmsub4<mode>_fastmath): Ditto.
28424 (*nmsub3<mode>_fastmath): Ditto.
28426 2015-04-24 Jason Merrill <jason@redhat.com>
28429 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28430 down when building TYPE_CANONICAL.
28431 (build_pointer_type_for_mode): Likewise.
28433 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
28435 * genrecog.c (validate_pattern): Check matching constraint refers
28436 to a lower numbered operand.
28438 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28441 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28442 save to independent variables use the Save attribute. This will
28443 allow these options to be modified with the #pragma/attribute
28445 (-mallow-movmisalign): Likewise.
28446 (-mallow-df-permute): Likewise.
28447 (-msched-groups): Likewise.
28448 (-malways-hint): Likewise.
28449 (-malign-branch-targets): Likewise.
28450 (-mvectorize-builtins): Likewise.
28451 (-msave-toc-indirect): Likewise.
28453 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28454 can be set via the #pragma/attribute target support.
28455 (rs6000_opt_vars): Likewise.
28456 (rs6000_inner_target_options): If VSX was set, also set
28457 -mno-avoid-indexed-addresses.
28459 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28461 * config/arm/iterators.md (shiftable_ops): Rename to...
28462 (SHIFTABLE_OPS): ... This. Update use in comments.
28463 (ior_xor): Rename to...
28464 (IOR_XOR): ... This.
28465 (vqh_ops): Rename to...
28466 (VQH_OPS): ... This.
28467 (vqhs_ops): Rename to...
28468 (VQHS_OPS): ... This.
28469 (rshifts): Rename to...
28470 (RSHIFTS): ... This.
28471 (returns): Rename to...
28472 (RETURNS): ... This.
28473 * config/arm/arm.md: Update uses of the above.
28474 * config/arm/neon.md: Likewise.
28476 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28478 * config.host (case ${host}): Add aarch64*-*-linux case.
28479 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28480 fields to all the cores.
28481 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28482 Add MCPU_MTUNE_NATIVE_SPECS.
28483 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28484 field to all extensions.
28485 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28486 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28487 Adjust definition of AARCH64_OPT_EXTENSION.
28488 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28489 (MCPU_MTUNE_NATIVE_SPECS): Define.
28490 * config/aarch64/driver-aarch64.c: New file.
28491 * config/aarch64/x-arch64: New file.
28492 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28495 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28496 Wei Mi <wmi@google.com>
28498 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28499 * config/i386/i386.c (extract_base_offset_in_addr): New function.
28500 (ix86_operands_ok_for_move_multiple): Ditto.
28501 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28502 (movlpd/movhpd to movupd peephole2): Ditto.
28504 2015-04-24 Marek Polacek <polacek@redhat.com>
28507 * input.h (from_macro_expansion_at): Define.
28510 * doc/invoke.texi: Update description of -Wlogical-op.
28512 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28514 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28515 ternary operator in fprintf and harmonize spacing.
28517 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28519 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28520 Mark operand1 commutative.
28522 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28524 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28525 input operands in memory.
28526 (*vec_concatv2si_sse4_1): Ditto.
28527 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28528 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28530 (vec_extract_hi_v32hi): Ditto.
28531 (vec_extract_hi_v64hi): Ditto.
28532 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28534 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28535 Steven Bosscher <steven@gcc.gnu.org>
28537 PR rtl-optimization/34503
28538 * cprop.c (cprop_reg_p): New.
28539 (hash_scan_set): Use above function to check if register can be
28541 (find_avail_set): Return up to two sets, one whose source is a
28542 register and one whose source is a constant. Sets are returned in an
28543 array passed as parameter rather than as a return value.
28544 (cprop_insn): Use a do while loop rather than a goto. Try each of the
28545 sets returned by find_avail_set, starting with the one whose source is
28546 a constant. Use cprop_reg_p to check if register can be propagated.
28547 (do_local_cprop): Use cprop_reg_p to check if register can be
28549 (implicit_set_cond_p): Likewise.
28551 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28553 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28554 (sem_function::equals): IGNORED_NODES parameter is now unused;
28555 update call of equals_private.
28556 (sem_function::equals_private): Do not call equals_wpa; skip
28557 gimple body matching if there is no body.
28558 (sem_function::init): Add logic to hash tthunk info.
28559 (sem_function::parse): Also parse thunks.
28560 * ipa-icf.h (equals_private): Update declaration.
28562 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28564 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28565 asterisk from name so this can be generated directly.
28566 (*altivec_stvx_<mode>_internal): Likewise.
28567 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28568 that this is never called during or after reload/lra.
28569 (rs6000_frame_related): Remove split_reg
28570 argument and logic that references it.
28571 (emit_frame_save): Remove last parameter from call to
28572 rs6000_frame_related.
28573 (rs6000_emit_prologue): Remove last parameter from eight calls to
28574 rs6000_frame_related. Force generation of stvx instruction for
28575 Altivec register saves. Remove split_reg handling, which is no
28577 (rs6000_emit_epilogue): Force generation of lvx instruction for
28578 Altivec register restores.
28580 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28582 * config/rs6000/rs6000.opt (mcrypto): Change option description to
28583 match category changes in ISA 2.07B.
28585 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28587 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28589 (cmp_op, cmp_type): New code attributes.
28590 (NEON_VCMP, NEON_VACMP): New int iterators.
28591 (cmp_op_unsp): New int attribute.
28592 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28593 (neon_vceq<mode>): Delete.
28594 (neon_vc<cmp_op><mode>_insn): New pattern.
28595 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28596 (neon_vcgeu<mode>): Delete.
28597 (neon_vcle<mode>): Likewise.
28598 (neon_vclt<mode>: Likewise.
28599 (neon_vcage<mode>): Likewise.
28600 (neon_vcagt<mode>): Likewise.
28601 (neon_vca<cmp_op><mode>): New define_expand.
28602 (neon_vca<cmp_op><mode>_insn): New pattern.
28603 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28605 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28607 * tree.h (attribute_value_equal): Declare.
28608 * tree.c (attribute_value_equal): Export.
28610 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28612 * ipa-icf.c (sem_item::compare_attributes): New function.
28613 (sem_item::compare_referenced_symbol_properties): Compare variable
28615 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28616 (sem_function::param_used_p): New function.
28617 (sem_function::equals_wpa): Fix attribute comparsion; match
28618 parameter type codes; do not compare paremter flags when
28619 they are not used; compare edge flags; compare indirect calls.
28620 (sem_item::update_hash_by_addr_refs): Hash reference type.
28621 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28622 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28623 reference use type.
28624 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28625 * ipa-icf.h (compare_attributes, param_used_p): Declare.
28627 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28629 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28631 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28632 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28633 (sem_item::compare_referenced_symbol_properties): New.
28634 (sem_item::hash_referenced_symbol_properties): New.
28635 (sem_item::compare_cgraph_references): Rename to ...
28636 (sem_item::compare_symbol_references): ... this one; use
28637 compare_referenced_symbol_properties.
28638 (sem_function::equals_wpa): Do not compare
28639 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28640 DECL_IS_OPERATOR_NEW; compare pointer sizes.
28641 (sem_item::update_hash_by_addr_refs): Call
28642 hash_referenced_symbol_properties.
28643 (sem_item::update_hash_by_local_refs): Cleanup.
28644 (sem_function::merge): Do not mix up symbol properties.
28645 (sem_variable::equals_wpa): Use compare_symbol_references.
28646 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28647 (sem_item::hash_referenced_symbol_properties): New.
28648 (sem_item::compare_symbol_references): New.
28649 (sem_item::compare_cgraph_references): Remove.
28651 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
28654 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28655 Emit size of local.
28657 2015-04-23 Nick Clifton <nickc@redhat.com>
28659 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28660 ATTRIBUTE_UNUSED to x parameter.
28661 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28663 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28665 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28666 TARGET_CRYPTO to TARGET_P8_VECTOR>
28667 (crypto_vpermxor_<mode>): Likewise.
28668 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28669 (BU_CRYPTO_3A): Likewise.
28670 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28671 (BU_CRYPTO_OVERLOAD_3A): New #define.
28672 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28673 (VPMSUMH): Likewise.
28674 (VPMSUMW): Likewise.
28675 (VPMSUMD): Likewise.
28676 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28677 (VPERMXOR_V4SI): Likewise.
28678 (VPERMXOR_V8HI): Likewise.
28679 (VPERMXOR_V16QI): Likewise.
28680 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28681 BU_CRYPTO_OVERLOAD_2A.
28682 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28683 BU_CRYPTO_OVERLOAD_3A.
28684 * config/rs6000/rs6000.opt (mcrypto): Change description of
28687 2015-04-23 Richard Biener <rguenther@suse.de>
28689 * passes.def: Remove copy propagation passes run directly after CCP.
28690 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28692 (ccp_visit_phi_node): Rework to handle first executable edge
28695 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
28697 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28698 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28699 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28700 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28701 (thumb_legimitimize_reload_address): Remove.
28702 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28704 (thumb_legimitimize_reload_address): Remove.
28706 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28708 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28710 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28712 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28714 (store_multiple): Likewise.
28716 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28718 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28719 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28720 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28721 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28722 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28723 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28724 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28725 Specify issue_rate value.
28726 (arm_issue_rate): Look up issue rate from tuning structs. Remove
28727 large switch statement.
28728 (arm_marvell_pj4_tune): New struct.
28729 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28732 2015-04-23 Richard Biener <rguenther@suse.de>
28734 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28735 (vect_find_last_store_in_slp_instance): Rename to ...
28736 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28737 (vect_analyze_slp_cost_1): Use vector_load for constant defs
28738 and vec_construct for external defs when estimating prologue cost.
28739 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28740 Compute costs here only when vectorizing loops.
28741 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28742 have been determined.
28743 (vect_schedule_slp_instance): Simplify vectorized code placement
28744 and prepare for in-BB external defs.
28745 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28746 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28747 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28749 (vect_model_load_cost): Likewise.
28750 (vectorizable_store): Instead add it here.
28751 (vectorizable_load): Likewise.
28752 (vect_is_simple_use): Dump def type textually.
28754 2015-04-23 Richard Biener <rguenther@suse.de>
28756 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28757 * cfgloop.c (verify_loop_structure): Verify the root loop node.
28758 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28759 instead of get_eh_region_from_lp_number.
28760 * loop-init.c (fix_loop_structure): If we removed a loop, reset
28763 2015-04-23 Anton Blanchard <anton@samba.org>
28765 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28766 need for -mprofile-kernel to save LR to stack.
28768 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28770 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28772 (insn_is_swappable_p): Return 1 for a convert from double to
28773 single precision when all of its uses are splats of BE element
28776 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
28778 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28780 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28783 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
28784 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28785 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28787 (rs6000_builtin_mask_for_load): Return 0 for targets with
28788 efficient unaligned VSX accesses so that the vectorizer will use
28789 direct unaligned loads.
28790 (rs6000_builtin_support_vector_misalignment): Always return true
28791 for targets with efficient unaligned VSX accesses.
28792 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28793 stores on targets with efficient unaligned VSX accesses is almost
28794 always the same as the cost of an aligned load or store, so model
28796 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28797 unaligned vectors if we have efficient unaligned VSX accesses.
28798 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28799 undocumented option.
28801 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28804 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28806 * config.gcc (LIBC_MUSL): New tm_defines macro.
28807 * config/linux.h (OPTION_MUSL): Define.
28808 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28809 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28810 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28812 * config/linux.opt (mmusl): New option.
28813 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28814 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28816 * configure: Regenerate.
28818 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28820 * config.gcc (LIBC_MUSL): New tm_defines macro.
28821 * config/linux.h (OPTION_MUSL): Define.
28822 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28823 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28824 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28826 * config/linux.opt (mmusl): New option.
28827 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28828 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28830 * configure: Regenerate.
28832 2015-04-22 Yury Gribov <y.gribov@samsung.com>
28834 * doc/invoke.texi (-fsanitize-sections): Update description.
28835 * asan.c (set_sanitized_sections): Parse incoming arg.
28836 (section_sanitized_p): Support wildcards.
28838 2015-04-22 Tom de Vries <tom@codesourcery.com>
28840 PR tree-optimization/65823
28841 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28842 equality between ap_copy and ap.
28844 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28847 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28849 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28852 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28854 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28857 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28858 remove already contained t-files.
28860 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28862 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28863 Remove unneeded forward declarations.
28864 (suitable_for_tail_call_opt_p): Commentary typo fix.
28866 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28868 * varasm.c (emit_bss): Remove redundant guard.
28870 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28872 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28874 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28876 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28878 2015-04-22 Hale Wang <hale.wang@arm.com>
28879 Terry Guo <terry.guo@arm.com>
28881 PR rtl-optimization/64818
28882 * combine.c (can_combine_p): Don't combine user-specified
28883 register if it is in an asm input.
28885 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
28888 * passes.def (early_optimizations): Add pass_dse.
28890 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28892 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28893 * reorg.c (redundant_insn): Remove ifdef
28894 INSN_REFERENCES_ARE_DELAYED.
28895 * resource.c (mark_referenced_resources): Likewise.
28897 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28899 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28900 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28901 * resource.c (mark_set_resources): Likewise.
28903 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28905 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28906 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28907 (flow_find_head_matching_sequence): Likewise.
28908 (try_head_merge_bb): Likewise.
28909 * combine.c (can_combine_p): Likewise.
28910 (try_combine): Likewise.
28911 (distribute_notes): Likewise.
28912 * df-problems.c (can_move_insns_across): Likewise.
28913 * final.c (final): Likewise.
28914 * gcse.c (insert_insn_end_basic_block): Likewise.
28915 * ira.c (find_moveable_pseudos): Likewise.
28916 * reorg.c (try_merge_delay_insns): Likewise.
28917 (fill_simple_delay_slots): Likewise.
28918 (fill_slots_from_thread): Likewise.
28919 * sched-deps.c (sched_analyze_2): Likewise.
28921 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28923 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28924 PIC_OFFSET_TABLE_REGNUM.
28926 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28928 * alias.c (init_alias_target): Remove ifdef
28929 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28930 * df-scan.c (df_insn_refs_collect): Likewise.
28931 (df_get_regular_block_artificial_uses): Likewise.
28932 (df_get_eh_block_artificial_uses): Likewise.
28933 (df_get_entry_block_def_set): Likewise.
28934 (df_get_exit_block_use_set): Likewise.
28935 * emit-rtl.c (gen_rtx_REG): Likewise.
28936 * ira.c (ira_setup_eliminable_regset): Likewise.
28937 * reginfo.c (init_reg_sets_1): Likewise.
28938 * regrename.c (rename_chains): Likewise.
28939 * reload1.c (reload): Likewise.
28940 (eliminate_regs_in_insn): Likewise.
28941 * resource.c (mark_referenced_resources): Likewise.
28942 (init_resource_info): Likewise.
28944 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28946 * defaults.h (MASK_RETURN_ADDR): New definition.
28947 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28950 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28952 * defaults.h (RETURN_ADDR_OFFSET): New definition.
28953 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28954 RETURN_ADDR_OFFSET.
28955 (expand_builtin_frob_return_addr): Likewise.
28957 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28959 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28960 (try_redirect_by_replacing_jump): Likewise.
28961 (rtl_tidy_fallthru_edge): Likewise.
28962 * combine.c (insn_a_feeds_b): Likewise.
28963 (find_split_point): Likewise.
28964 (simplify_set): Likewise.
28965 * cprop.c (cprop_jump): Likewise.
28966 * cse.c (cse_extended_basic_block): Likewise.
28967 * df-problems.c (can_move_insns_across): Likewise.
28968 * function.c (emit_use_return_register_into_block): Likewise.
28969 * haifa-sched.c (sched_init): Likewise.
28970 * ira.c (find_moveable_pseudos): Likewise.
28971 * loop-invariant.c (find_invariant_insn): Likewise.
28972 * lra-constraints.c (curr_insn_transform): Likewise.
28973 * postreload.c (reload_combine_recognize_const_pattern):
28975 * reload.c (find_reloads): Likewise.
28976 * reorg.c (delete_scheduled_jump): Likewise.
28977 (steal_delay_list_from_target): Likewise.
28978 (steal_delay_list_from_fallthrough): Likewise.
28979 (redundant_insn): Likewise.
28980 (fill_simple_delay_slots): Likewise.
28981 (fill_slots_from_thread): Likewise.
28982 (delete_computation): Likewise.
28983 * sched-rgn.c (add_branch_dependences): Likewise.
28985 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28987 * genconfig.c (main): Always define HAVE_cc0.
28988 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28990 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28991 (flow_find_head_matching_sequence): Likewise.
28992 (try_head_merge_bb): Likewise.
28993 * cfgrtl.c (rtl_merge_blocks): Likewise.
28994 (try_redirect_by_replacing_jump): Likewise.
28995 (rtl_tidy_fallthru_edge): Likewise.
28996 * combine.c (do_SUBST_MODE): Likewise.
28997 (insn_a_feeds_b): Likewise.
28998 (combine_instructions): Likewise.
28999 (can_combine_p): Likewise.
29000 (try_combine): Likewise.
29001 (find_split_point): Likewise.
29003 (simplify_set): Likewise.
29004 (distribute_notes): Likewise.
29005 * cprop.c (cprop_jump): Likewise.
29006 * cse.c (cse_extended_basic_block): Likewise.
29007 * df-problems.c (can_move_insns_across): Likewise.
29008 * final.c (final): Likewise.
29009 (final_scan_insn): Likewise.
29010 * function.c (emit_use_return_register_into_block): Likewise.
29011 * gcse.c (insert_insn_end_basic_block): Likewise.
29012 * haifa-sched.c (sched_init): Likewise.
29013 * ira.c (find_moveable_pseudos): Likewise.
29014 * loop-invariant.c (find_invariant_insn): Likewise.
29015 * lra-constraints.c (curr_insn_transform): Likewise.
29016 * optabs.c (prepare_cmp_insn): Likewise.
29017 * postreload.c (reload_combine_recognize_const_pattern):
29019 * reload.c (find_reloads): Likewise.
29020 (find_reloads_address_1): Likewise.
29021 * reorg.c (delete_scheduled_jump): Likewise.
29022 (steal_delay_list_from_target): Likewise.
29023 (steal_delay_list_from_fallthrough): Likewise.
29024 (try_merge_delay_insns): Likewise.
29025 (redundant_insn): Likewise.
29026 (fill_simple_delay_slots): Likewise.
29027 (fill_slots_from_thread): Likewise.
29028 (delete_computation): Likewise.
29029 (relax_delay_slots): Likewise.
29030 * sched-deps.c (sched_analyze_2): Likewise.
29031 * sched-rgn.c (add_branch_dependences): Likewise.
29033 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29035 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29036 that is trivially ded on non cc0 targets.
29037 (simplify_set): Likewise.
29038 (mark_used_regs_combine): Likewise.
29039 * cse.c (new_basic_block): Likewise.
29040 (fold_rtx): Likewise.
29041 (cse_insn): Likewise.
29042 (cse_extended_basic_block): Likewise.
29043 (set_live_p): Likewise.
29044 * rtlanal.c (canonicalize_condition): Likewise.
29045 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29047 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29049 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29050 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29051 * final.c: Likewise.
29052 * jump.c: Likewise.
29053 * recog.c: Likewise.
29054 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29055 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29057 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29059 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29060 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29061 * builtins.c (expand_builtin): Remove check if
29062 EH_RETURN_DATA_REGNO is defined.
29063 * df-scan.c (df_bb_refs_collect): Likewise.
29064 (df_get_exit_block_use_set): Likewise.
29065 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29066 * ira-lives.c (process_bb_node_lives): Likewise.
29067 * lra-lives.c (process_bb_lives): Likewise.
29069 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29071 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29072 FIRST_PSEUDO_REG): New.
29073 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29074 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29075 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29076 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29077 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29078 (FIRST_INT_REG): New.
29079 (LAST_INT_REG): New.
29080 (FIRST_*_REG): Define using *_REG.
29081 (LAST_*_REG): Ditto.
29082 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29083 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29084 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29086 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29088 * expmed.c: (synth_mult): Only assume overlapping
29089 shift with previous steps in alg_sub_t_m2 case.
29091 2015-04-21 Richard Biener <rguenther@suse.de>
29093 PR tree-optimization/65650
29094 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29095 transitions involving copies.
29096 (set_lattice_value): Adjust for copy lattice state.
29097 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29098 if that doesn't dominate the merge point.
29099 (bit_value_unop): Adjust what we treat as varying mask.
29100 (bit_value_binop): Likewise.
29101 (bit_value_assume_aligned): Likewise.
29102 (evaluate_stmt): When we simplified to a SSA name record a copy
29103 instead of dropping to varying.
29104 (visit_assignment): Simplify.
29106 * gimple-match.h (gimple_simplify): Add another callback.
29107 * gimple-fold.c (fold_stmt_1): Adjust caller.
29108 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29109 for the 2nd callback.
29110 * gimple-match-head.c (gimple_simplify): Add a callback that is
29111 used to valueize the stmt operands and use it that way.
29113 2015-04-21 Richard Biener <rguenther@suse.de>
29115 PR tree-optimization/65788
29116 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29118 2015-04-21 Richard Biener <rguenther@suse.de>
29120 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29121 vec_construct cost by vec_stmt_cost.
29123 2015-04-21 Richard Biener <rguenther@suse.de>
29125 * cfghooks.h (create_basic_block): Replace with two overloads
29126 for RTL and GIMPLE.
29127 (split_block): Likewise.
29128 * cfghooks.c (split_block): Rename to ...
29129 (split_block_1): ... this.
29130 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29131 (split_block_after_labels): Call split_block_1.
29132 (create_basic_block): Rename to ...
29133 (create_basic_block_1): ... this.
29134 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29135 (create_empty_bb): Call create_basic_block_1.
29136 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29137 split_block_after_labels.
29138 * omp-low.c (expand_parallel_call): Likewise.
29139 (expand_omp_target): Likewise.
29140 (simd_clone_adjust): Likewise.
29141 * tree-chkp.c (chkp_get_entry_block): Likewise.
29142 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29143 create_basic_block overload.
29144 (cgraph_node::expand_thunk): Likewise.
29145 * tree-cfg.c (make_blocks): Likewise.
29146 (handle_abnormal_edges): Likewise.
29147 * tree-inline.c (copy_bb): Likewise.
29149 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29151 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29153 (*xor_one_cmplsidi3_ze): Likewise.
29155 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29157 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29158 use df_remove_problem rather than manually removing problems, leaving
29159 holes in df->problems_in_order[].
29161 2015-04-21 Tom de Vries <tom@codesourcery.com>
29163 PR tree-optimization/65802
29164 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29166 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29168 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29170 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29171 at '.'. Assert that there's enough space for everything.
29173 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29175 PR tree-optimization/64950
29177 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
29180 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29183 2015-04-20 Shiva Chen <shiva0217@gmail.com>
29185 PR rtl-optimization/64916
29186 * cfgcleanup.c (values_equal_p): New function.
29187 (can_replace_by): Use it.
29189 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
29192 * doc/invoke.texi ([-Wnarrowing]): Update.
29194 2015-04-20 Jeff Law <law@redhat.com>
29196 PR tree-optimization/65658
29197 * tree-ssa-threadupdate.c (redirection_block_p): Remove
29198 redundant test for GIMPLE_ASSIGN in last change.
29200 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
29202 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29203 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29204 (legitimize_tls_address): Ditto.
29205 (ix86_expand_move): Ditto.
29206 (ix86_expand_binary_operator): Remove reload_in_progress checks.
29207 (ix86_expand_unary_operator): Ditto.
29208 * config/i386/predicates.md (index_register_operand): Ditto.
29210 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
29212 * reorg.c (try_merge_delay_insns): Improve correctness checking
29213 for targets with multiple delay slots.
29215 2015-04-20 Jeff Law <law@redhat.com>
29217 PR tree-optimization/65658
29218 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29221 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29223 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29224 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29227 2015-04-20 Jakub Jelinek <jakub@redhat.com>
29230 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29232 2015-04-20 Richard Biener <rguenther@suse.de>
29234 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29235 * gimple-fold.c (gimple_build_valueize): New function.
29236 (gimple_build): Always use gimple_build_valueize as valueize hook.
29238 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29241 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29242 and overwrite variable parts if <= 1/2 the elements are variable.
29244 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
29246 PR rtl-optimization/65805
29247 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29248 Don't use difference of offset and previous offset if
29249 update_sp_offset is non-zero.
29250 (eliminate_regs_in_insn): Ditto.
29251 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29252 lra_eliminate_regs_1 call.
29253 * lra-constraints.c (get_equiv_with_elimination): Ditto.
29255 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
29257 * hash-table.h: Remove version of hash_table that stored value_type *.
29258 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29259 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29260 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29261 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29262 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29263 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29264 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29265 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29266 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29267 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29268 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29269 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29270 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29271 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29272 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29273 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29275 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29276 Jakub Jelinek <jakub@redhat.com>
29279 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29280 subsequent SH_NONE operand does not overwrite an existing *special
29282 (adjust_extract): Handle case where a vec_extract operation is
29283 wrapped in a PARALLEL.
29285 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29288 * config/i386/i386.c (ix86_binds_local_p): Define only if
29289 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29291 2015-04-17 Jeff Law <law@redhat.com>
29293 PR tree-optimization/47679
29294 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29295 * tree-ssa-scopedtables.c: New file.
29296 * tree-ssa-scopedtables.h: New file.
29297 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29298 (const_and_copies): Change name/type.
29299 (record_const_or_copy): Move into tree-ssa-scopedtables.c
29300 (record_const_or_copy_1): Similarly.
29301 (restore_vars_to_original_value): Similarly.
29302 (pass_dominator::execute): Create and destroy const_and_copies table.
29303 (thread_across_edge): Update passing of const_and_copies.
29304 (record_temporary_equivalence): Use method calls rather than
29305 manipulating const_and_copies directly.
29306 (record_equality, cprop_into_successor_phis): Similarly.
29307 (dom_opt_dom_walker::before_dom_children): Similarly.
29308 (dom_opt_dom_walker::after_dom_children): Similarly.
29309 (eliminate_redundant_computations): Similarly.
29310 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29311 (record_temporary_equivalence): Likewise.
29312 (invalidate_equivalences): Likewise.
29313 (record_temporary_equivalences_from_phis): Update due to type
29314 change of const_and_copies. Use method calls rather than
29315 manipulating the stack directly.
29316 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29317 (thread_through_normal_block, thread_across_edge): Likewise.
29318 (thread_across_edge): Likewise.
29319 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29320 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
29322 (identify_jump_threads): Update due to type change of equiv_stack.
29323 (finalize_jump_threads): Delete the equiv_stack when complete.
29325 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
29327 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29328 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29329 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29331 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
29334 * config.gcc: Exit with a comment when we do not have a major version
29335 number for the FreeBSD target.
29337 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29340 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29341 maybe_allows_mem bitfields.
29342 (maybe_allows_none_start, maybe_allows_none_end,
29343 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29344 maybe_allows_mem_end): New variables.
29345 (compute_maybe_allows): New function.
29346 (add_constraint): Use it to initialize maybe_allows_reg and
29347 maybe_allows_mem fields.
29348 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29349 is_address constraints such that those that allow neither mem nor
29350 reg come first, then those that only allow reg but not mem, then
29351 those that only allow mem but not reg, then the rest.
29352 (write_allows_reg_mem_function): New function.
29353 (write_tm_preds_h): Call it.
29354 * stmt.c (parse_output_constraint, parse_input_constraint): Use
29355 the generated insn_extra_constraint_allows_reg_mem function
29356 instead of always setting *allows_reg = true; *allows_mem = true;
29357 for unknown extra constraints.
29359 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29362 * output.h (default_binds_local_p_3): New.
29363 * varasm.c (default_binds_local_p_3): Make it public. Take an
29364 argument to indicate if common symbol may be local. If common
29365 symbol may be local, treat non-external variable as defined
29367 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29368 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29369 * config/i386/i386.c (ix86_binds_local_p): New.
29370 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29371 ix86_binds_local_p.
29373 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29376 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29377 trying mem_loc_descriptor on XEXP (rtl, 0).
29379 2015-04-17 Martin Liska <mliska@suse.cz>
29381 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29382 Release symbol_compare_collection.
29383 * ipa-reference.c: Add TODO that a vector should be released.
29385 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29388 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29389 to new AVR-LibC file layout (bug #44574).
29390 (*avrlibc_devicelib): Same.
29391 * config/avr/avr-mcus.def: Adjust comments.
29392 * config/avr/avr.opt (nodevicelib): Adjust help.
29394 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
29396 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29398 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
29401 * gimplify.c (gimplify_init_constructor): Always emit a
29402 side-effecting constructor.
29404 2015-04-17 Tom de Vries <tom@codesourcery.com>
29406 PR tree-optimization/64950
29407 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29408 in cfun->curr_properties.
29409 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29410 if we generate an IFN_VA_ARG.
29411 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29412 function if PROP_gimple_lva is not set in src function.
29414 2015-04-17 Tom de Vries <tom@codesourcery.com>
29415 Michael Matz <matz@suse.de>
29417 PR tree-optimization/64950
29418 * gimple-iterator.c (update_modified_stmts): Remove static.
29419 * gimple-iterator.h (update_modified_stmts): Declare.
29420 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29421 (gimplify_va_arg_internal): New function.
29422 (gimplify_va_arg_expr): Use IFN_VA_ARG.
29423 * gimplify.h (gimplify_va_arg_internal): Declare.
29424 * internal-fn.c (expand_VA_ARG): New unreachable function.
29425 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29426 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29427 (expand_ifn_va_arg): New function.
29428 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29429 (pass_stdarg::execute): Call expand_ifn_va_arg.
29430 (pass_data_lower_vaarg): New pass_data.
29431 (pass_lower_vaarg): New gimple_opt_pass.
29432 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29433 (make_pass_lower_vaarg): New function.
29434 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29435 properties_required field.
29436 * passes.def (all_passes): Add pass_lower_vaarg.
29437 * tree-pass.h (PROP_gimple_lva): Add define.
29438 (make_pass_lower_vaarg): Declare.
29440 2015-04-17 Tom de Vries <tom@codesourcery.com>
29442 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29443 * calls.c (call_expr_flags): Same.
29445 2015-04-17 Tom de Vries <tom@codesourcery.com>
29447 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29448 (pass_stdarg::execute): ... here.
29450 2015-04-17 Tom de Vries <tom@codesourcery.com>
29451 Michael Matz <matz@suse.de>
29453 * tree-cfg.c (make_blocks_1): Factor out of ...
29454 (make_blocks): ... here.
29455 (make_edges_bb): Factor out of ...
29456 (make_edges): ... here.
29457 (gimple_find_sub_bbs): New function.
29458 * tree-cfg.h (gimple_find_sub_bbs): Declare.
29460 2015-04-17 Tom de Vries <tom@codesourcery.com>
29462 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29464 2015-04-17 Yury Gribov <y.gribov@samsung.com>
29466 * asan.c (set_sanitized_sections): New function.
29467 (section_sanitized_p): Ditto.
29468 (asan_protect_global): Optionally sanitize user-defined
29470 * asan.h (set_sanitized_sections): Declare new function.
29471 * common.opt (fsanitize-sections): New option.
29472 * doc/invoke.texi (-fsanitize-sections): Document new option.
29473 * opts-global.c (handle_common_deferred_options): Handle new
29476 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29479 * dwarf2out.c (loc_list_from_tree): Return NULL
29480 for DEBUG_EXPR_DECL.
29482 2015-04-17 Christian Bruel <christian.bruel@st.com>
29484 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29487 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29489 * ira-color.c (setup_left_conflict_sizes_p): Do not process
29490 node itself when computing left conflict subnode size.
29492 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29494 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29495 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29496 *fop_<mode>_1_sse using enabled attribute. Use
29497 register_mixssei387nonimm_operand operand 1 predicate. Change
29498 alternative 3 constraints from "x" to "v".
29500 2015-04-16 Richard Biener <rguenther@suse.de>
29502 PR tree-optimization/65774
29503 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29504 bit-value tracking on.
29506 2015-04-16 Richard Biener <rguenther@suse.de>
29508 PR tree-optimization/64277
29509 * tree-vrp.c (check_array_ref): Fix anti-range handling,
29510 simplify upper bound handling.
29511 (search_for_addr_array): Simplify.
29512 (check_array_bounds): Handle ADDR_EXPRs here.
29513 (check_all_array_refs): Simplify.
29515 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29517 * config/i386/i386.c (print_reg): Rewrite function.
29519 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29521 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29522 Invert the condition.
29524 2015-04-16 Renlin Li <renlin.li@arm.com>
29526 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29527 simplifications for UNSIGNED_FLOAT.
29529 2015-04-16 Nick Clifton <nickc@redhat.com>
29531 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29533 (enum rl78_cpu_type): New.
29534 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29535 (umulhi3_shift_virt): Remove m constraint from operand 1.
29536 (umulqihi3_virt): Likewise.
29537 * config/rl78/rl78.c (rl78_option_override): Add code to process
29538 -mcpu and -mmul options.
29539 (rl78_alloc_physical_registers): Add code to handle divhi and
29540 divsi valloc attributes.
29541 (set_origin): Likewise.
29542 * config/rl78/rl78.h (RL78_MUL_G14): Define.
29543 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29544 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29546 (ASM_SPEC): Pass -mcpu on to assembler.
29547 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29548 (mulqi3_rl78): Likewise.
29549 (mulhi3_g13): Likewise.
29550 (mulhi3): Generate the G13 or G14 versions of the insn directly.
29551 (mulsi3): Likewise.
29552 (mulhi3_g14): Add clobbers of AX and BC.
29553 (mulsi3_g14): Likewise.
29554 (mulsi3_g13): Likewise.
29555 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29556 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29557 * config/rl78/rl78.opt (mmul): Initialise value to
29559 (mcpu): New option.
29560 (m13, m14, mrl78): New option aliases.
29561 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29562 (MULTILIB_DIRNAMES): Add g13 and g14.
29563 * doc/invoke.texi: Document -mcpu and -mmul options.
29565 2015-04-16 Richard Biener <rguenther@suse.de>
29567 * tree-ssa-ccp.c (likely_value): See if we have operands that
29568 are marked as never simulate again and return CONSTANT in this
29570 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29571 not have any operands that will be simulated again as
29572 not being simulated again.
29574 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
29576 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29577 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29578 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29580 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29582 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29583 *float<SWI48:mode><MODEF:mode>2_sse.
29584 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29586 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29589 2015-04-15 Tom de Vries <tom@codesourcery.com>
29592 * function.c (push_dummy_function): New function.
29593 (init_dummy_function_start): Use push_dummy_function.
29594 (pop_dummy_function): New function. Factored out of ...
29595 (expand_dummy_function_end): ... here.
29596 * function.h (push_dummy_function, pop_dummy_function): Declare.
29597 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29598 pop_dummy_function.
29599 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29601 2015-04-15 Jeff Law <law@redhat.com>
29603 PR tree-optimization/47679
29604 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29605 need for forward declaration in upcoming changes.
29606 (record_conditions, record_edge_info): Likewise.
29608 PR rtl-optimization/42522
29609 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29610 SIGN_EXTRACT as a whole object rather than simplifying
29613 2015-04-15 Jakub Jelinek <jakub@redhat.com>
29616 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29617 and GIMPLE_PREDICT use break instead of return true. For
29618 GIMPLE_EH_DISPATCH, compare dispatch region.
29620 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
29622 * doc/extend.texi (__sync Builtins): Simplify some text. Update
29623 details about the implementation. Make clear preference for
29624 __atomic builtins. Reduce possibility of future change.
29626 2015-04-15 Nick Clifton <nickc@redhat.com>
29628 * config/rx/rx.opt (mallow-string-insns): New option.
29629 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29630 builtin if string instructions are denied.
29631 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29632 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29634 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29635 * config/rx/rx.md (movstr): Enable pattern only if string
29636 instructions are allowed.
29637 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29638 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29639 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29640 (MULTILIB_DIRNAMES): Add no-strings.
29641 * doc/invoke.texi: Document -mno-allow-string-insns.
29643 2015-04-15 Alan Modra <amodra@gmail.com>
29647 PR middle-end/36043
29648 * calls.c (load_register_parameters): Don't load past end of
29649 mem unless suitably aligned.
29651 2015-04-15 Nick Clifton <nickc@redhat.com>
29653 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29654 decrement instruction as being frame related.
29655 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29657 If zero extending a function address enclose the operation in
29659 (rl78_preferred_reload_class): New function.
29660 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29661 * config/rl78/rl78.md: Remove useless constraints in expanders.
29662 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29663 (mulhi3_rl78): Likewise.
29664 (mulhi3_g13): Likewise.
29665 (mulsi3_rl78): Likewise.
29666 (es_addr): Move to before the multiply patterns.
29668 2015-04-15 Alan Modra <amodra@gmail.com>
29670 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29671 and sequence_stack. Add seq.
29672 (seq_stack): Delete.
29673 * function.c (prepare_function_start): Don't access x_last_insn.
29674 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29675 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29676 * emit_rtl.c (start_sequence, push_topmost_sequence,
29677 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29678 sequence accessors.
29679 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29680 remove_insn): Likewise. Simplify.
29681 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29682 and pop_topmost_sequence.
29683 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
29685 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29687 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
29690 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29693 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29695 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29696 (LEGACY_INT_REGNO_P): Ditto.
29697 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29698 (ANY_MASK_REG_P): Remove.
29699 (BND_REG_P): Rename from ANY_BND_REG_P.
29700 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29701 legacy integer registers. Do not handle MMX_REG_P in a special way.
29702 Merge 64byte and 32byte SSE handling.
29704 2015-04-14 Nick Clifton <nickc@redhat.com>
29706 * expr.c (expand_assignment): Force an address offset computation
29707 into a register before changing its mode.
29708 (expand_expr_real_1): Likewise.
29710 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
29712 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29713 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29714 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29715 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29716 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29717 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29718 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29719 and __aarch64_vget_lane_any.
29721 2015-04-14 Jakub Jelinek <jakub@redhat.com>
29723 PR rtl-optimization/65761
29724 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29725 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29727 2015-04-14 Richard Biener <rguenther@suse.de>
29729 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29730 (graphite_can_represent_scev): Use POINTER_TYPE_P.
29732 2015-04-14 Richard Biener <rguenther@suse.de>
29734 PR tree-optimization/65758
29735 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29737 (ccp_lattice_meet): Likewise.
29738 (bit_value_unop): Likewise.
29739 (bit_value_binop): Likewise.
29740 (bit_value_assume_aligned): Likewise.
29742 2015-04-14 Christian Bruel <christian.bruel@st.com>
29744 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29747 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
29749 PR tree-optimization/63387
29750 * match.pd ((x unord x) | (y unord y) -> (x unord y),
29751 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29753 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29755 * config/i386/predicates.md (any_QIreg_operand): Rename from
29756 q_regs_operand. Do not process subregs.
29757 (QIreg_operand): Use QI_REGNO_P predicate.
29758 (ext_QIreg_operand): Ditto.
29759 (ext_register_operand): Ditto.
29760 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29761 (AND splitters): Ditto.
29762 (AND with -65536 splitter): Add SWI48 mode for operand 0.
29763 (AND with -256 splitter): Use any_QIreg_operand predicate and
29764 SWI248 mode for operand 0.
29765 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29766 mode for operand 0.
29767 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29769 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
29771 * doc/plugins.texi: Rewrite first introductory paragraph.
29773 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29775 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29776 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29778 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29780 * ipa-profie.c (ipa_profile): Check number of parameters
29781 and possible polymorphic call targets before
29784 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
29786 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29787 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29789 2015-04-13 Richard Biener <rguenther@suse.de>
29791 PR tree-optimization/65204
29792 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29793 takens for bit-CCP.
29795 2015-04-13 Richard Biener <rguenther@suse.de>
29798 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29799 and cond_not_taken_branch_cost to 4 and 2.
29800 (bdver2_cost): Likewise.
29801 (bdver3_cost): Likewise.
29802 (bdver4_cost): Likewise.
29804 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29806 * hash-table.h (hash_table constructor): Add mem stats.
29807 (alloc_entries): Likewise.
29809 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29811 * ipa-cp.c (ipcp_driver): Relase prev_edge.
29812 * passes.c (execute_one_pass): Only add transform if pass has one.
29814 2015-04-12 Joseph Myers <joseph@codesourcery.com>
29816 * config/i386/i386.c (ix86_option_override_internal): Don't set
29817 -fprefetch-loop-arrays if optimizing for size.
29819 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29820 Gerald Pfeifer <gerald@pfeifer.com>
29822 * doc/contrib.texi (Contributors): Add Martin Jambor and
29825 2015-04-12 Jakub Jelinek <jakub@redhat.com>
29827 * BASE-VER: Set to 6.0.0.
29829 PR tree-optimization/65747
29830 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29831 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29833 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29835 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29836 sentence. Improve grammar.
29838 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29840 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29842 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29845 * ipa-inline-transform.c (speculation_removed): Remove static var.
29846 (check_speculations): New function.
29847 (clone_inlined_nodes): Do not check spculations.
29848 (inline_call): Call check_speculations.
29849 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29850 consider non-invariants.
29852 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29853 Martin Liska <mliska@suse.cz>
29856 * ipa-icf.c (sem_item::compare_cgraph_references): function and
29857 variable can not match.
29858 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29859 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29861 2015-04-11 Jakub Jelinek <jakub@redhat.com>
29863 PR tree-optimization/65735
29864 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29865 Remove visited_phis argument, add visited_bbs, avoid recursing into the
29866 same bb rather than just into the same phi node.
29867 (thread_through_normal_block): Adjust caller.
29869 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29871 * doc/contrib.texi (Contributors): Add Ira Rosen.
29873 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
29875 * gcov.c (find_source): Fix miswording in error message.
29876 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29877 (ix86_expand_sse_comi_round): Fix typo in error message.
29879 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29881 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29883 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
29885 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29887 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29890 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29891 Print bad_spills_num and insn_pseudos_num.
29893 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29896 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29897 when creating +1 values for SImode.
29899 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29902 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29905 2015-04-10 Jakub Jelinek <jakub@redhat.com>
29906 Iain Sandoe <iain@codesourcery.com>
29909 * configure: Regenerate.
29911 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29914 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29916 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
29918 * doc/contrib.texi (Contributors): Add John Marino.
29920 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29922 PR tree-optimization/65709
29923 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29924 TREE_TYPE (TREE_TYPE (t)).
29926 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
29929 * lra-int.h (lra_bad_spill_regno_start): New.
29930 * lra.c (lra_bad_spill_regno_start): New.
29931 (lra): Set up lra_bad_spill_regno_start. Set up
29932 lra_constraint_new_regno_start unconditionally.
29933 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29936 2015-04-09 Marek Polacek <polacek@redhat.com>
29937 Jakub Jelinek <jakub@redhat.com>
29939 PR middle-end/65554
29940 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29941 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29944 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
29946 PR rtl-optimization/65693
29947 * combine.c (is_parallel_of_n_reg_sets): Move outside of
29950 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
29953 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29954 device specs file if "device-specs%s" didn't resolve to a path.
29956 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29959 * config/i386/i386.c (fixup_modeless_constant): New.
29960 (ix86_expand_args_builtin): Fixup modeless constant operand.
29961 (ix86_expand_round_builtin): Ditto.
29962 (ix86_expand_special_args_builtin): Ditto.
29963 (ix86_expand_builtin): Ditto.
29965 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29968 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29969 any pow2 integer in between 2 and 0x80000000U inclusive.
29971 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
29973 PR rtl-optimization/65693
29974 * combine.c (is_parallel_of_n_reg_sets): Change first argument
29975 from an rtx_insn * to an rtx.
29976 (try_combine): Adjust both callers. Use it once more.
29978 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29980 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29981 (chkp_make_static_const_bounds): Search existing
29982 symbol by assembler name. Use make_decl_one_only.
29983 (chkp_get_zero_bounds_var): Remove node search which
29984 is now performed in chkp_make_static_const_bounds.
29985 (chkp_get_none_bounds_var): Likewise.
29987 2015-04-08 Michael Witten <mfwitten@gmail.com>
29989 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29992 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29994 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29996 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29998 * doc/extend.texi (__sync Builtins): Fix grammar.
30000 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30002 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30004 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30006 * varasm.c (emit_local): Move definition of align.
30008 2015-04-08 Julian Brown <julian@codesourcery.com>
30010 * config/nvptx/mkoffload.c (process): Support variable mapping.
30012 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30014 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30016 (alpha_write_one_linkage): Correct typo.
30018 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30020 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30022 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30024 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30026 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30028 * tree-chkp.h (chkp_insert_retbnd_call): New.
30029 * tree-chkp.c (chkp_insert_retbnd_call): New.
30030 * ipa-split.c (insert_bndret_call_after): Remove.
30031 (split_function): Use chkp_insert_retbnd_call.
30032 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30033 bounds for instrumented functions.
30035 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30038 * calls.c (initialize_argument_information): When producing tail
30039 call also turn SSA_NAMES passed by references to original PARM_DECLs
30041 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30044 * lra-remat.c (do_remat): Process input and non-input insn
30045 registers separately.
30047 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30050 * valtrack.c (debug_lowpart_subreg): New function.
30051 (dead_debug_insert_temp): Use it.
30053 PR middle-end/65680
30054 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30055 into signed HOST_WIDE_INT the same as negative bit_offset.
30057 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30059 * ipa-comdats.c (ipa_comdats): Visit all thunks
30060 to set proper comdat group.
30062 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30065 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30066 on constants for NEON VSTRUCT modes.
30068 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30069 Iain Sandoe <iain@codesourcery.com>
30072 * configure: Regenerate.
30074 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30077 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30078 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30079 that LFD is used to load double constants instead of LFS. Add
30080 defaults for all costs structures. Add comments for missing
30081 initialization fields.
30082 (size32_cost): Likewise.
30083 (size64_cost): Likewise.
30084 (rs64a_cost): Likewise.
30085 (mpccore_cost): Likewise.
30086 (ppc403_cost): Likewise.
30087 (ppc405_cost): Likewise.
30088 (ppc440_cost): Likewise.
30089 (ppc476_cost): Likewise.
30090 (ppc601_cost): Likewise.
30091 (ppc603_cost): Likewise.
30092 (ppc604_cost): Likewise.
30093 (ppc604e_cost): Likewise.
30094 (ppc620_cost): Likewise.
30095 (ppc630_cost): Likewise.
30096 (ppccell_cost): Likewise.
30097 (ppc750_cost): Likewise.
30098 (ppc7450_cost): Likewise.
30099 (ppc8540_cost): Likewise.
30100 (ppce300c2c3_cost): Likewise.
30101 (ppce500mc_cost): Likewise.
30102 (ppce500mc64_cost): Likewise.
30103 (ppce5500_cost): Likewise.
30104 (ppce6500_cost): Likewise.
30105 (titan_cost): Likewise.
30106 (power4_cost): Likewise.
30107 (power6_cost): Likewise.
30108 (power7_cost): Likewise.
30109 (power8_cost): Likewise.
30110 (ppca2_cost): Likewise.
30111 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30113 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30114 instead of XXLOR to copy SFmode to clear out dirty bits created
30115 when SFmode denormals are generated.
30116 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30117 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30119 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30121 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30122 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30123 * config/aarch64/aarch64-tune.md: Regenerate.
30125 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30127 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30128 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30129 * config/arm/arm-cores.def (exynos-m1): New core.
30130 * config/arm/arm-tune.md: Regenerate.
30131 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30132 * config/arm/bpabi.h: Likewise.
30134 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30136 * ipa-cp (set_single_call_flag): Remove too
30137 restrictive assert.
30139 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30141 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30142 GOMP_offload_unregister from the destructor.
30144 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30146 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30147 flags for instrumentation thunk.
30148 (chkp_produce_thunks): Likewise.
30150 2015-04-05 Martin Liska <mliska@suse.cz>
30153 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30154 has computed data structure.
30155 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30157 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30159 * invoke.texi (inline-unit-growth): Increase growth to 20%
30160 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30162 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30165 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
30167 (lra_rematerialization_iter): New.
30168 * lra.c (lra): Initialize lra_rematerialization_iter.
30169 Stop updating lra_constraint_new_regno_start after switching of
30170 inheritance and rematerialization.
30171 * lra-remat.c (lra_rematerialization_iter): New.
30172 (lra_remat): Add printing pass iteration. Do rematerialization
30173 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30175 2015-04-04 Richard Biener <rguenther@suse.de>
30177 PR tree-optimization/64909
30178 PR tree-optimization/65660
30179 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30180 to take a cost vector for scalar iteration cost.
30181 (vect_get_single_scalar_iteration_cost): Likewise.
30182 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30183 Compute the scalar iteration cost into a cost vector.
30184 (vect_get_known_peeling_cost): Use the scalar cost vector to
30185 account for the cost of the peeled iterations.
30186 (vect_estimate_min_profitable_iters): Likewise.
30187 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30190 2015-04-04 Alan Modra <amodra@gmail.com>
30194 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30195 0.0 constant unless TARGET_VSX.
30196 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30199 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30202 * ipa-inline-transform.c (inline_call): Skip sanity check to work
30205 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30208 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30209 speculative indirect edges to avoid ordering issue.
30211 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30214 * ipa-inline.c (edge_badness): Add combined size to the denominator.
30216 2015-04-03 Jakub Jelinek <jakub@redhat.com>
30218 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30219 TYPE_ARTIFICIAL on the .omp_data* types.
30221 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30223 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30224 instrumentation thunks.
30226 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30228 * config/i386/i386.c (ix86_expand_call): Avoid nested
30229 PARALLEL in returned call value.
30231 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30233 * lto-cgraph.c (input_cgraph_1): Always link instrumented
30234 assembler name with original one.
30236 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30238 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30240 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30242 Revert parts of r216820.
30243 * config/i386/i386.md (movqi_internal): Correct type calculation
30244 for alternatives 3 and 5.
30246 2015-04-02 Jakub Jelinek <jakub@redhat.com>
30248 PR preprocessor/61977
30249 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30250 predefine __vector/__bool/__pixel macros nor context sensitive
30251 macros for CLK_ASM.
30252 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30254 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
30256 * config/pa/pa.c (pa_output_move_double): Directly handle register
30257 indexed memory operand. Simplify handling of scaled register indexed
30260 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30263 * config/i386/linux-common.h (MPX_SPEC): New.
30264 (CHKP_SPEC): Add MPX_SPEC.
30265 * doc/invoke.texi (-fcheck-pointer-boudns): Document
30266 possible issues with '-z bndplt' support in linker.
30268 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30270 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30271 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30272 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30273 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30274 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30276 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
30278 * config/i386/sync.md (UNSPEC_MOVA): Remove.
30279 (atomic_load<mode>): Change operand 0 predicate to
30280 nonimmediate_operand and fix up the destination when needed.
30282 (atomic_loaddi_fpu): Use UNSPEC_LDA.
30283 (atomic_store<mode>): Change operand 1 predicate to
30284 nonimmendate_operand and move the source to register when needed.
30286 (atomic_store<mode>_1): Use UNSPEC_STA.
30287 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30288 Fix moves from memory operand. Use UNSPEC_STA.
30290 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30292 * expmed.c (strict_volatile_bitfield_p): Check that the access will
30293 not cross a MODESIZE boundary.
30294 (store_bit_field, extract_bit_field): Added assertions in the
30295 strict volatile bitfields code path.
30297 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
30300 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30301 Increase args array size by one to avoid buffer overflow.
30303 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30305 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30307 * ipa-inline.c (edge_badness): Add wrapper penalty.
30308 (sum_callers): Move up.
30309 (inline_small_functions): Set single_caller.
30310 * ipa-inline.h (inline_summary): Add single_caller.
30311 * ipa-split.c (split_function): Set split_part.
30312 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30313 * cgraph.h (cgraph_node): Add split_part.
30315 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
30318 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30319 Do not split operands 0 and operands 2 to halfmode.
30320 (atomic_compare_and_swap<mode>): Update for
30321 atomic_compare_and_swap<dwi>_doubleword changes.
30323 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30325 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30326 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30327 no caching is done.
30329 2015-03-31 Martin Liska <mliska@suse.cz>
30332 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30333 has already filled up function summary.
30334 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30336 2015-03-31 Richard Biener <rguenther@suse.de>
30338 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30341 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
30343 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30345 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30346 (s390_asm_output_function_label): Adapt to new signature of
30347 s390_function_num_hotpatch_hw
30348 Optimise the code generating assembler output.
30349 Add comments to assembler file.
30351 2015-03-31 Richard Biener <rguenther@suse.de>
30353 PR middle-end/65626
30354 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30355 of the noreturn call so it is last and cleanup_control_flow_bb
30356 can do the CFG part.
30358 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
30361 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30362 same_comdat_group for external symbols.
30363 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30364 infinite same_comdat_group traversal loop.
30366 2015-03-31 Jakub Jelinek <jakub@redhat.com>
30369 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30370 automatically to $headers.
30372 2015-03-30 Jakub Jelinek <jakub@redhat.com>
30375 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30376 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30378 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30380 * ipa-prop.c (param_type_may_change_p): Likewise.
30381 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30382 (remove_unused_scope_block_p): Add in_ctor_dtor_block
30383 argument. Before inlining, preserve
30384 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30385 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
30387 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30389 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30392 * ipa-inline.c (edge_badness): Base denominator on callee's
30395 2015-03-27 Martin Jambor <mjambor@suse.cz>
30398 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30399 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30400 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30401 node_calling_single_call.
30402 * ipa-cp.c (count_callers): New function.
30403 (set_single_call_flag): Likewise.
30404 (initialize_node_lattices): Count callers and set single_flag_call if
30406 (incorporate_penalties): New function.
30407 (good_cloning_opportunity_p): Use it, dump new flags.
30408 (propagate_constants_topo): Set node_within_scc flag if appropriate.
30409 * doc/invoke.texi (ipa-cp-recursion-penalty,
30410 ipa-cp-single-call-pentalty): Document.
30412 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30415 * symtab.c (symtab_node::get_partitioning_class): Register vars
30417 * varpool.c (symbol_table::output_variables) Do not assemble unefined
30418 decls for non-symbols.
30420 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
30423 * output.h (default_binds_local_p_2): New.
30424 * varasm.c (default_binds_local_p_2): Renamed to ...
30425 (default_binds_local_p_3): This. Don't return true on protected
30426 data symbol if protected data may be external.
30427 (default_binds_local_p): Use default_binds_local_p_3.
30428 (default_binds_local_p_1): Likewise.
30429 (default_binds_local_p_2): New.
30430 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30431 default_binds_local_p_2 if TARGET_MACHO is undefined.
30433 2015-03-27 Jakub Jelinek <jakub@redhat.com>
30436 * config/i386/i386.c (legitimize_pic_address): If base
30437 is SYMBOL_REF or LABEL_REF using %rip addressing, force
30438 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30440 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30443 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30446 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30449 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30450 of optimized out indirect call.
30451 (redirect_to_unreachable): Always build symbol table node for
30452 BUILT_IN_UNREACHABLE
30454 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
30457 * ira-costs.c (record_reg_classes): Process all constraint string
30460 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
30462 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30466 * config/c6x/constraints.md (S3): New constraint.
30467 * config/c6x/c6x.md (real_jump): Use it.
30469 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30471 PR middle-end/65595
30472 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30473 do redirection if the call is not optimized out.
30475 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
30478 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30479 (fchkp-check-incomplete-type): Add LTO.
30480 (fchkp-zero-input-bounds-for-main): Likewise.
30481 (fchkp-first-field-has-own-bounds): Likewise.
30482 (fchkp-narrow-bounds): Likewise.
30483 (fchkp-narrow-to-innermost-array): Likewise.
30484 (fchkp-use-static-bounds): Likewise.
30485 (fchkp-use-static-const-bounds): Likewise.
30486 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30488 2015-03-27 Marek Polacek <polacek@redhat.com>
30490 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30492 2015-03-27 Marek Polacek <polacek@redhat.com>
30495 * ubsan.c (ubsan_create_edge): New function.
30496 (instrument_bool_enum_load): Call it.
30497 (instrument_nonnull_arg): Likewise.
30498 (instrument_nonnull_return): Likewise.
30499 (instrument_object_size): Likewise.
30501 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30503 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30506 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30509 * lto-streamer.h (class lto_location_cache): New.
30510 (struct data_in): Add location_cache.
30511 (lto_input_location): Update prototype.
30512 (stream_input_location_now): New.
30513 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30514 pointer to location.
30515 (stream_input_location): Update.
30516 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30517 (warn_odr): Apply location cache before warning.
30518 (lto_input_location): Update prototype.
30519 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30520 Use stream_input_location_now.
30521 * lto-streamer-in.c (lto_location_cache::current_cache): New static
30523 (lto_location_cache::cmp_loc): New function.
30524 (lto_location_cache::apply_location_cache): New function.
30525 (lto_location_cache::accept_location_cache): New function.
30526 (lto_location_cache::revert_location_cache): New function.
30527 (lto_location_cache::input_location): New function.
30528 (lto_input_location): Do location caching.
30529 (stream_input_location_now): New function.
30530 (input_eh_region, input_struct_function_base): Use
30531 stream_input_location_now.
30532 (lto_data_in_create): use new.
30533 (lto_data_in_delete): Use delete.
30534 * tree-streamer-in.c (unpack_ts_block_value_fields,
30535 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30536 lto_input_ts_exp_tree_pointers): Update for cached location api.
30538 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30541 * passes.def: Add pass_nothrow.
30542 * ipa-pure-const.c: (pass_data_nothrow): New.
30543 (pass_nothrow): New.
30544 (pass_nothrow::execute): New.
30545 (make_pass_nothrow): New.
30546 * tree-pass.h (make_pass_nothrow): Declare.
30548 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30550 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30551 edge to change by speculation resolution or redirection.
30552 (edge_set_predicate): Likewise.
30553 (inline_summary_t::duplicate): Likewise.
30554 (remap_edge_summaries): Likewise.
30556 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30558 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30560 (can_inline_edge_p): Relax option matching for always inline functions.
30562 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
30565 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30566 Check operand 4 and operand 0 for equality.
30567 (avx512f_vextract<shuffletype>32x4_1_maskm):
30568 Check operand 6 and operand 0 for equality.
30569 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30571 (vec_extract_hi_<mode>_maskm): Ditto.
30573 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30575 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30576 dead calls back to live.
30577 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30579 (cgraph_node::verify_node): ... here; verify only callee edges,
30581 * cif-code.def (CILK_SPAWN): New code.
30583 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30585 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30586 (edge_set_predicate): Use it to mark unreachable edges.
30587 (inline_summary_t::duplicate): Remove unnecesary code.
30588 (remap_edge_summaries): Likewise.
30589 (dump_inline_summary): Report contains_cilk_spawn.
30590 (compute_inline_parameters): Compute contains_cilk_spawn.
30591 (inline_read_section, inline_write_summary): Stream
30592 contains_cilk_spawn.
30593 * ipa-inline.c (can_inline_edge_p): Do not touch
30594 DECL_STRUCT_FUNCTION that may not be available;
30595 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30596 remove check for callee_fun->can_throw_non_call_exceptions and
30597 replace it by optimization attribute check; check for flag_exceptions.
30598 * ipa-inline-transform.c (inline_call): Maintain
30599 DECL_FUNCTION_PERSONALITY
30600 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30602 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30604 PR tree-optimization/65551
30605 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30606 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30608 2015-03-26 Richard Biener <rguenther@suse.de>
30610 PR middle-end/65555
30611 * tree-cfg.c (verify_gimple_call): Do not require a call to
30612 have no LHS if it wasn't recognized as control altering yet.
30614 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30616 PR tree-optimization/64715
30617 * passes.def: Add another instance of pass_object_sizes before ccp1.
30618 * tree-object-size.c (pass_object_sizes::execute): In
30619 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30620 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30621 __bos result and the computed constant. Remove redundant
30622 checks, obsoleted by gimple_call_builtin_p test.
30624 * var-tracking.c (variable_tracking_main_1): Don't track
30625 variables for targetm.no_register_allocation targets.
30627 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
30629 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30630 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30632 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30635 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30636 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
30637 0.0 is correctly setup.
30638 (extenddftf2_internal): Likewise.
30640 2015-03-25 Sebastian Pop <s.pop@samsung.com>
30642 PR tree-optimization/65177
30643 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30645 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
30646 edges not adjacent on the path to the original code.
30648 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
30651 * doc/install.texi (Building a native compiler): Document new
30652 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
30653 configuration assumes that the host supports the linker plugin.
30655 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
30658 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30659 chain for generated call.
30661 2015-03-25 Richard Biener <rguenther@suse.de>
30663 * passes.c (pass_manager::execute_early_local_passes): Guard
30664 execution of pass_chkp_instrumentation_passes with
30665 flag_check_pointer_bounds.
30666 (pass_chkp_instrumentation_passes::gate): Likewise.
30668 2015-03-25 Martin Liska <mliska@suse.cz>
30670 PR tree-optimization/65538
30671 * symbol-summary.h (function_summary::~function_summary):
30672 Relese memory for allocated summaries.
30673 (function_summary::release): New function.
30675 2015-03-25 Jakub Jelinek <jakub@redhat.com>
30678 * lto-streamer-out.c (DFS::worklist): New struct.
30679 (DFS::worklist_vec): New data member.
30680 (DFS::next_dfs_num): Remove.
30681 (DFS::DFS): Rewritten using worklist instead of recursion,
30682 using most of code from DFS::DFS_write_tree.
30683 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30684 pass it to DFS_write_tree calls.
30685 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30686 quick initial checks push it into worklist_vec and return.
30688 2015-03-25 Richard Biener <rguenther@suse.de>
30690 PR middle-end/65519
30691 * genmatch.c (expr::gen_transform): Re-write to avoid
30692 using gimple_build.
30694 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30696 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30698 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30700 * config/arm/arm.opt (print_tune_info): New option.
30701 * config/arm/arm.c (arm_print_tune_info): New function.
30702 (arm_file_start): Call arm_print_tune_info.
30703 * config/arm/arm-protos.h (struct tune_params): Add comment.
30704 * doc/invoke.texi (@item -mprint-tune-info): New item.
30705 (-mtune): mention it in ARM Option Summary.
30707 2015-03-25 DJ Delorie <dj@redhat.com>
30709 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30712 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
30713 Martin Liska <mliska@suse.cz>
30715 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30716 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30717 (sem_item::add_type): New function.
30718 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30719 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30720 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30721 (sem_function::equals_wpa): Fix typo.
30722 * ipa-icf.h (sem_item::add_type): New function.
30723 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30726 2015-03-24 Jakub Jelinek <jakub@redhat.com>
30728 PR tree-optimization/65533
30729 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30730 with swapped operands, call vect_free_slp_tree on
30731 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30734 2015-03-24 Richard Biener <rguenther@suse.de>
30736 PR middle-end/65517
30737 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30738 for fixup if necessary.
30740 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
30742 * doc/extend.texi (Function Attributes): Add @cindex entries
30743 for all attributes and regularize their format. Delete text
30744 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
30745 information about "eightbit_data", "tiny_data", and "model"
30746 variable attributes to the Variable Attributes section. Fix
30747 some obvious typos and copy-editing issues.
30748 (Variable Attributes, Type Attributes): Likewise add/fix
30749 @cindex entries for all attributes.
30751 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30754 * tree-chkp.c (chkp_build_returned_bound): Ignore
30755 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30757 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
30760 * config/sh/predicates.md (simple_mem_operand,
30761 displacement_mem_operand): Add test for reg.
30762 (short_displacement_mem_operand): Test for displacement_mem_operand
30763 before invoking sh_disp_addr_displacement.
30764 * config/sh/constraints.md (Sdd, Sra): Simplify.
30765 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30766 Remove redundant displacement_mem_operand tests.
30768 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
30771 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30772 the same -mmcu=MCU more than once.
30774 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30777 * ipa-devirt.c: Remove duplicate demangle.h include.
30780 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30782 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30783 REG_POINTER on *destptr after adjusting it for prologue size.
30786 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30787 ultimate_alias_target ()->order ints instead of
30788 ultimate_alias_target () pointers.
30790 2015-03-23 Richard Biener <rguenther@suse.de>
30792 PR tree-optimization/65518
30793 * tree-vect-stmts.c (vectorizable_load): Reject single-element
30794 interleaving cases we generate absymal code for.
30796 2015-03-23 Richard Biener <rguenther@suse.de>
30798 PR tree-optimization/65494
30799 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30801 (vect_analyze_slp_instance): But do that here, always and once.
30803 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30805 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30806 adding T or multiplying by T+1 and subracting T.
30808 2015-03-22 Jeff Law <law@redhat.com>
30810 PR rtl-optimization/64317
30811 * Makefile.in (OBJS): Add gcse-common.c
30812 * gcse.c: Include gcse-common.h
30813 (struct modify_pair_s): Move structure definition to gcse-common.h
30814 (compute_transp): Move function to gcse-common.c.
30815 (canon_list_insert): Similarly.
30816 (record_last_mem_set_info): Break out some code and put it into
30817 gcse-common.c. Call into the new common code.
30818 (compute_local_properties): Pass additional arguments to compute_transp.
30819 * postreload-gcse.c: Include gcse-common.h and df.h
30820 (modify_mem_list_set, blocks_with_calls): New variables.
30821 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30822 (get_bb_avail_insn): Pass in the expression index too.
30823 (alloc_mem): Allocate memory for the new bitmaps and lists.
30824 (free_mem): Free memory for the new bitmaps and lists.
30825 (insert_expr_in_table): Record a bitmap index for each entry we
30827 (record_last_mem_set_info): Call into common code in gcse-common.c.
30828 (get_bb_avail_insn): If no available insn was found in the requested
30829 BB. If BB has a single predecessor, see if the expression is
30830 transparent in BB and available in that single predecessor.
30831 (compute_expr_transp): New wrapper for compute_transp.
30832 (eliminate_partially_redundant_load): Pass expression's bitmap_index
30833 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
30834 (gcse_after_reload_main): If there are elements in the hash table,
30835 then compute transparency for all the elements in the hash table.
30836 * gcse-common.h: New file.
30837 * gcse-common.c: New file.
30839 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
30841 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30843 (System Headers): Likewise.
30845 (Traditional macros): Likewise.
30846 (Invocation): Likewise.
30847 (Option Index): Likewise.
30848 * doc/cppopts.texi (-M): Likewise.
30849 (-finput-charset): Likewise.
30850 (--help): Likewise.
30851 * doc.invoke.texi (AVR Options): Likewise.
30852 (V850 Options): Likewise.
30854 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
30857 * ipa-devirt.c: Include demangle.h
30858 (odr_type_d): Add field rtti_broken.
30859 (odr_subtypes_equivalent_p): Do not require name to match.
30860 (compare_virtual_tables): Fix typo; if type already has ODR violation,
30861 bypass the tests; be ready for function referneces in vtables that are
30862 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30863 (warn_odr): Give up for nameless types.
30864 (warn_types_mismatch): Report mismatch in mangled names;
30865 report mismatch in anonymous namespaces; look into component types to
30866 give useful error; report when mismatch is dragged in from other ODR
30868 (odr_types_equivalent_p): Match types for being polymorphic; avoid
30869 duplicated diagnostics.
30870 (add_type_duplicate): Reorder checks so more informative ones come
30871 first; fix typo; do not output "the extra base is defined here" when
30873 (BINFO_N_BASE_BINFOS): Relax sanity check.
30875 2015-03-22 Martin Liska <mliska@suse.cz>
30876 Jakub Jelinek <jakub@redhat.com>
30878 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30879 masks that can potentially include a builtin.
30880 (ix86_add_new_builtins): Introduce fast filter for isa values
30881 that cannot trigger builtin inclusion.
30883 2015-03-22 Martin Liska <mliska@suse.cz>
30885 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30886 (sem_item::update_hash_by_local_refs): Likewise.
30887 (sem_variable::get_hash): Empty line is fixed.
30888 (sem_item_optimizer::execute): Include adding of hash references.
30889 (sem_item_optimizer::update_hash_by_addr_refs): New function.
30890 (sem_item_optimizer::build_hash_based_classes): Use local hash.
30891 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30892 (sem_item::update_hash_by_local_refs): Likewise.
30894 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30897 * ipa-comdats.c (enqueue_references): Walk through thunks.
30898 (ipa_comdats): Likewise.
30899 (set_comdat_group_1): New function.
30901 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30904 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30907 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
30908 Gerald Pfeifer <gerald@pfeifer.com>
30910 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30912 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
30913 Sandra Loosemore <sandra@codesourcery.com>
30915 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30916 function parameter declaration.
30917 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30918 Update arguments to nios2_adjust_call_address().
30919 (sibcall_internal): Rename from *sibcall.
30920 (sibcall_value_internal): Rename from *sibcall_value.
30921 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30922 (nios2_large_got_address): Add target temp reg parameter.
30923 (nios2_got_address): Adjust call to nios2_large_got_address, add
30924 force_reg around it.
30925 (nios2_load_pic_address): Add target temp reg parameter, replace call
30926 to nios2_got_address with corresponding code.
30927 (nios2_legitimize_constant_address): Update call to
30928 nios2_load_pic_address.
30929 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30930 to use temp reg for PIC loading purposes.
30931 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30932 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30933 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30935 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30937 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30938 usage of "the @option{...}".
30939 (-Wopenmp-simd): Likewise.
30940 (-fsanitize-recover): Likewise.
30941 (-fsanitize-undefined-trap-on-error): Likewise.
30943 (tracer-dynamic-coverage-feedback): Likewise.
30944 (reorder-block-duplicate-feedback): Likewise.
30945 (loop-unroll-jam-size): Likewise.
30948 (-mabs=legacy): Likewise.
30949 (-mupper-regs-df): Likewise.
30950 (-mupper-regs-sf): Likewise.
30951 (-mpointers-to-nested-functions): Likewise.
30953 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30955 * doc/extend.texi (Cilk Plus Builtins): Add markup.
30957 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30959 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30960 additional index entries and cross-references.
30961 (-fchkp-check-incomplete-type): Likewise.
30962 (-fchkp-first-field-has-own-bounds): Likewise.
30963 (-fchkp-narrow-to-innermost-array): Likewise.
30964 (-fchkp-use-fast-string-functions): Likewise.
30965 (-fchkp-use-nochk-string-functions): Likewise.
30966 (-fchkp-use-static-const-bounds): Likewise.
30967 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30968 (-fchkp-instrument-marked-only): Likewise.
30969 (-fchkp-use-wrappers): Likewise.
30970 (-static-libmpx): Likewise.
30971 (-static-libmpxwrappers): Likewise.
30972 * doc/extend.texi (bnd_legacy): Likewise.
30973 (bnd_instrument): Likewise.
30974 (bnd_variable_size): Likewise.
30975 (Pointer Bounds Checker builtins): Likewise.
30977 2015-03-21 Tom de Vries <tom@codesourcery.com>
30979 PR tree-optimization/65458
30980 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30981 * cgraph.h (cgraph_node): Add parallelized_function field.
30982 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30983 (input_overwrite_node): Read parallelized_function field.
30984 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30985 parallelized_function on cgraph_node for child_fn.
30986 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30987 Remove include of gt-tree-parloops.h.
30988 (parallelized_functions): Remove static variable.
30989 (parallelized_function_p): Rewrite using parallelized_function field of
30991 (create_loop_fn): Remove adding to parallelized_functions.
30992 * Makefile.in (GTFILES): Remove tree-parloops.c
30994 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
30996 PR rtl-optimization/64366
30997 * lra.c (lra_update_insn_regno_info): Consider regs in
30998 CALL_INSN_FUNCTION_USAGE memory.
31000 2015-03-20 Richard Biener <rguenther@suse.de>
31002 PR middle-end/64715
31003 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31004 for type comparison and gcc_checking_assert.
31005 (chrec_fold_plus_poly_poly): Likewise.
31006 (chrec_fold_multiply_poly_poly): Likewise.
31007 (chrec_convert_1): Likewise.
31008 * gimplify.c (gimplify_expr): Remove premature folding of
31009 &X + CST to &MEM[&X, CST].
31011 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31013 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31015 (ipa_inline): Recompute inline_failed codes.
31016 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31017 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31020 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31022 PR rtl-optimization/60851
31023 * recog.c (constrain_operands): Accept a pseudo register before reload
31024 for LRA enabled targets.
31026 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31029 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31030 -ffast-math handling that kept non-0 constants live in the RTL
31031 until reload. Remove logic testing the number of instructions it
31032 took to create a constant in a GPR that was never used, due to a
31033 test for soft-float earlier.
31034 (memory_fp_constant): Delete, no longer used.
31036 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31037 alternatives for loading non-0 constants into GPRs for hard
31038 floating point that is no longer needed due to changes in
31039 easy_fp_constant. Add support for loading 0.0 into GPRs.
31040 (mov<mode>_hardfloat32): Likewise.
31041 (mov<mode>_hardfloat64): Likewise.
31042 (mov<mode>_64bit_dm): Likewise.
31043 (movtd_64bit_nodm): Likewise.
31044 (pre-reload move FP constant define_split): Delete define_split,
31045 since it is no longer used.
31046 (extenddftf2_internal): Remove GHF constraints that are not valid
31049 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31051 PR rtl-optimization/63491
31052 * lra-constraints.c (check_and_process_move): Use src instead of
31053 sreg. Remove some dead code.
31055 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31058 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31059 (sem_variable::merge): Likewise.
31061 2015-03-19 Martin Liska <mliska@suse.cz>
31064 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31065 all fields of cgraph_thunk_info.
31067 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31069 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31070 clone instrumented thunks.
31072 2015-03-19 Richard Biener <rguenther@suse.de>
31075 2015-03-10 Richard Biener <rguenther@suse.de>
31077 PR middle-end/63155
31078 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31079 * tree-ssa-coalesce.c: Include timevar.h.
31080 (attempt_coalesce): Handle graph being NULL.
31081 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31082 Split out abnormal coalescing to ...
31083 (perform_abnormal_coalescing): ... this function.
31084 (coalesce_ssa_name): Perform abnormal coalescing without computing
31086 (verify_ssa_coalescing_worker): New function.
31087 (verify_ssa_coalescing): Likewise.
31089 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31090 Jakub Jelinek <jakub@redhat.com>
31093 * tsan.c (instrument_gimple): Clear tail call flag on
31096 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31099 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31100 call in the return bb.
31101 (find_split_points): Add RETURN_BB argument, don't call
31103 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31104 if true append TSAN_FUNC_EXIT internal call after the call to
31105 the split off function.
31106 (execute_split_functions): Call find_return_bb here.
31107 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31108 Adjust find_split_points and split_function calls.
31110 2015-03-18 DJ Delorie <dj@redhat.com>
31112 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31113 (iorqi3_virt): Likewise.
31115 2015-03-18 Tom de Vries <tom@codesourcery.com>
31117 * tree-parloops.c (parallelize_loops): Make static.
31118 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31120 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31122 PR middle-end/64491
31124 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31126 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31127 condition would be removed due to undefined behaviour.
31129 2015-03-18 Martin Liska <mliska@suse.cz>
31132 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31133 xstrdup_for_dump wrapper.
31134 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31136 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31137 with xstrdup_for_dump.
31138 (sem_variable::equals): Likewise.
31139 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31141 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31142 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31143 symtab_node::asm_name with xstrdup_for_dump.
31144 (congruence_class::dump): Use symtab_node::name instead of
31146 * ipa-icf.h (symtab_node::name): Remove.
31147 (symtab_node::asm_name): Likewise.
31149 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31151 PR tree-optimization/65450
31152 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31154 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31155 it instead of duplicate_ssa_name_ptr_info.
31158 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31160 2015-03-18 Richard Biener <rguenther@suse.de>
31162 * tree-data-ref.h (struct access_matrix): Remove.
31163 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31164 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31165 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31166 (am_vector_index_for_loop): Likewise.
31167 (struct data_reference): Remove access_matrix member.
31168 (DR_ACCESS_MATRIX): Remove.
31169 (lambda_vector_new): Add comment.
31170 (lambda_matrix_new): Use XOBNEWVEC.
31172 2015-03-18 Richard Biener <rguenther@suse.de>
31174 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31175 (pass_ch::execute): Cleanup the CFG only if we did sth.
31176 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31178 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31180 * expmed.c (synth_mult): Use std::swap instead of manually
31181 swapping algorithms.
31183 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31186 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31188 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
31191 * config/avr/avr.opt (-nodevicelib): New option.
31192 * doc/invoke.texi (AVR Options): Document it.
31193 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31194 libgcc.a, libc.a, libm.a.
31195 * config/avr/specs.h: Same.
31196 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31197 which don't (directly) depend on the device. Print more help.
31198 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31199 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31200 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31202 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31203 for specs file name.
31204 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31205 * config/avr/avr-mcus.def: Adjust initializers and comments.
31207 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
31209 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31210 DECL_ONE_ONLY to check if decl is one only.
31211 * ipa-split.c (consider_split): Limit splitt of one only functions.
31213 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31215 PR tree-optimization/65427
31216 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31218 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31220 2015-03-16 Marek Polacek <polacek@redhat.com>
31222 * cgraph.h (add_new_static_var): Remove declaration.
31223 * varpool.c (add_new_static_var): Remove function.
31225 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31227 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31228 instead of vec<tree> * with vec_alloc and release for args.
31231 PR middle-end/65431
31232 * omp-low.c (delete_omp_context): Only splay_tree_delete
31233 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31234 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
31236 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
31239 * cfgexpand.c (align_base): New function.
31240 (alloc_stack_frame_space): Call it.
31241 (expand_stack_vars): Align prev_frame to be sure
31242 data->asan_vec elements aligned properly.
31244 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
31246 PR middle-end/65409
31247 * expr.c (store_field): Do not do a direct block copy if the source is
31248 a PARALLEL with BLKmode.
31250 2015-03-16 Tom de Vries <tom@codesourcery.com>
31252 PR middle-end/65414
31254 2015-03-12 Tom de Vries <tom@codesourcery.com>
31256 PR rtl-optimization/64895
31257 * lra-lives.c (check_pseudos_live_through_calls): Use
31258 actual_call_used_reg_set instead of call_used_reg_set, if available.
31260 2015-03-16 Alan Modra <amodra@gmail.com>
31263 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31264 Modify Z->r bswapdi splitter to use dest in place of scratch.
31265 In r->Z and Z->r bswapdi splitter rename word_high, word_low
31266 to word1, word2 and rearrange logic to suit.
31267 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31268 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
31269 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31270 Add one '?' on r->r. Modify Z->r splitter to avoid need for
31273 2015-03-14 Jakub Jelinek <jakub@redhat.com>
31275 PR tree-optimization/65369
31276 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31277 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31278 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31280 PR tree-optimization/65418
31281 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31282 are casts in the first PLUS_EXPR operand, ensure tbias and
31283 *totallowp are in the inner type.
31285 PR rtl-optimization/65401
31286 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31287 argument. If true, adjust_address_nv of x with big-endian
31288 correction for the mode widening to GET_MODE (y).
31289 (make_field_assignment): Don't do MEM mode widening here.
31290 Use MEM_P instead of GET_CODE == MEM.
31292 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
31294 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31295 the external decls.
31297 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31300 * config/arm/arm.c (arm_gen_constant, AND case): Use
31301 ARM_SIGN_EXTEND when constructing AND mask.
31303 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31305 * graph.c (print_graph_cfg): Make function names visible and append
31306 parenthesis to it. Also make groups of basic blocks belonging to the
31307 same function visible.
31309 2015-03-12 Richard Biener <rguenther@suse.de>
31311 PR middle-end/44563
31312 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31313 to avoid quadratic behavior with inline expansion splitting blocks.
31314 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31315 with the successor if the predecessor will be merged with it.
31316 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31317 entry block with its successor.
31319 2015-03-13 Richard Biener <rguenther@suse.de>
31321 PR middle-end/44563
31322 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31323 (cleanup_tree_cfg_1): Do not call it.
31324 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31325 (fixup_noreturn_call): Mark the stmt as control altering.
31326 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31328 (pass_data_fixup_cfg): Produce a dump file.
31329 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31330 (need_noreturn_fixup): New global.
31331 (pass_dominator::execute): Fixup queued noreturn calls.
31332 (optimize_stmt): Queue calls that became noreturn for fixup.
31333 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31334 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31335 (el_to_fixup): New global.
31336 (eliminate_dom_walker::before_dom_childre): Queue calls that
31337 became noreturn for fixup.
31338 (eliminate): Fixup queued noreturn calls.
31339 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31340 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31341 (substitute_and_fold_dom_walker::before_dom_children): Queue
31342 alls that became noreturn for fixup.
31343 (substitute_and_fold): Fixup queued noreturn calls.
31345 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
31347 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31348 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31349 are building; for methods check ODR type of class they belong to if
31350 they may lead to a polymorphic call.
31351 (sem_function::compare_polymorphic_p): Be bit smarter about testing
31352 when function may lead to a polymorphic call.
31353 (sem_function::compare_type_list): Remove.
31354 (sem_variable::equals): Update use of compatible_types_p.
31355 (sem_variable::parse_tree_refs): Remove.
31356 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31358 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31360 (func_checker::compatible_polymorphic_types_p): Break out from ...
31361 (unc_checker::compatible_types_p): ... here.
31362 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31364 (unc_checker::compatible_types_p): Update.
31365 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31368 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31370 PR rtl-optimization/65235
31371 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31372 When first element of vec_concat is const_int, calculate its size
31373 using second element.
31375 2015-03-12 Richard Biener <rguenther@suse.de>
31377 PR middle-end/65270
31378 * fold-const.c (operand_equal_p): Fix ordering of resetting
31379 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31381 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31383 * config/s390/s390.c (s390_reorg): Move code to output nops after label
31385 (s390_asm_output_function_label): Likewise.
31386 * config/s390/s390.c (s390_asm_output_function_label):
31387 Fix function label alignment with -mhtopatch.
31388 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31389 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31390 ("nop_2_byte"): New define_insn.
31391 ("nop_4_byte"): Likewise.
31392 ("nop_6_byte"): Likewise.
31393 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31394 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31396 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31399 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31402 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31405 * toplev.c (process_options): Restrict Pointer Bounds Checker
31406 usage with Address Sanitizer.
31408 2015-03-12 Richard Biener <rguenther@suse.de>
31410 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31412 * omp-low.c (expand_omp_taskreg): Split block before removing
31414 (expand_omp_target): Likewise.
31415 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31416 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31417 stmt to split_block.
31419 2015-03-12 Tom de Vries <tom@codesourcery.com>
31421 PR rtl-optimization/64895
31422 * lra-lives.c (check_pseudos_live_through_calls): Use
31423 actual_call_used_reg_set instead of call_used_reg_set, if available.
31425 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31427 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31428 (cgraph_node::remove): Likewise.
31429 (cgraph_node::get_untransformed_body): Likewise.
31430 * varpool.c (varpool_node::remove): Likewise.
31431 (varpool_node::get_constructor): Add sanity check.
31433 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
31435 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31437 (-fabi-compat-version): Likewise.
31438 (-ffriend-injection): Likewise.
31439 (-Wdeclaration-after-statement): Likewise.
31440 (-fomit-frame-pointer): Likewise.
31441 (-ftree-coalesce-inlined-vars): Likewise.
31442 (-fvisibility=): Likewise.
31443 * doc/extend.texi (Typeof): Likewise.
31444 (Zero Length): Likewise.
31445 (Escaped Newlines): Likewise.
31446 (Compound Literals): Likewise.
31447 (Function Attributes): Likewise.
31448 (Label Attributes): Likewise.
31449 (Type Attributes): Likewise.
31450 (Function Names): Likewise.
31451 (Other Builtins): Likewise.
31452 (Function Specific Option Pragmas): Likewise.
31453 (C++ Interface): Likewise.
31455 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
31457 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31459 2015-03-11 Marek Polacek <polacek@redhat.com>
31461 PR tree-optimization/65388
31462 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31464 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31467 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31468 * configure: Regenerate.
31469 * config.in: Regenerate.
31470 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31471 [-mn-flash]: Document it.
31472 [__AVR_ARCH__]: Document avrtiny.
31474 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31475 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31476 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31478 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31480 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31482 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31485 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31486 allow reloads of PLUS in floating point/VSX registers.
31488 2015-03-11 Junmo Park <junmoz.park@samsung.com>
31490 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31491 crypto_sha256_fast.
31492 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31494 2015-03-11 Richard Biener <rguenther@suse.de>
31496 PR tree-optimization/65310
31497 * tree-sra.c (build_ref_for_offset): Also preserve larger
31500 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
31502 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31504 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31507 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31509 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31511 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31513 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31514 (sem_function::equals_wpa): ... here.
31516 2015-03-10 Marek Polacek <polacek@redhat.com>
31517 Jakub Jelinek <jakub@redhat.com>
31520 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31521 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
31524 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31527 * config/rs6000/t-linux: For powerpc64* target set
31528 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31530 2015-03-10 Richard Biener <rguenther@suse.de>
31532 PR middle-end/44563
31533 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31534 for redirect_all_calls.
31536 2015-03-10 Marek Polacek <polacek@redhat.com>
31538 * gdbinit.in (pcfun): Define and document.
31540 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
31542 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31543 of libgomp-plugin.h.
31544 (find_target_compiler): Support a case when the path to gcc is
31545 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31546 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31547 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31549 (main): Use GCC_INSTALL_NAME as target_driver_name.
31550 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31552 (mkoffload.o): Remove obsolete include path and defines.
31553 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31555 2015-03-10 Richard Biener <rguenther@suse.de>
31557 PR middle-end/63155
31558 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31559 * tree-ssa-coalesce.c: Include timevar.h.
31560 (attempt_coalesce): Handle graph being NULL.
31561 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31562 Split out abnormal coalescing to ...
31563 (perform_abnormal_coalescing): ... this function.
31564 (coalesce_ssa_name): Perform abnormal coalescing without computing
31566 (verify_ssa_coalescing_worker): New function.
31567 (verify_ssa_coalescing): Likewise.
31569 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31572 * config.gcc (extra_options) [avr]: Remove.
31573 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31574 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31575 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31577 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31578 (-mmcu=): Add Var and MissingArgError properties.
31580 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31581 * config/avr/t-multilib: Regenerate.
31582 * config/avr/specs.h: New file.
31583 * config/avr/driver-avr.c: New file.
31584 * config/avr/genopt.sh: Remove file.
31585 * config/avr/avr-tables.opt: Remove file.
31586 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31587 * config/avr/avr-c.c: Same.
31588 * avr-arch.h: Same.
31589 (avr_current_device): Remove proto.
31590 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31591 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31592 (EXTRA_SPEC_FUNCTIONS): Define.
31593 (avr_devicespecs_file): New specs function proto.
31594 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31595 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31596 (avr_current_device): Remove definition and usage.
31597 (avr_set_core_architecture): New static function.
31598 (avr_option_override): Use it.
31599 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31600 (mcu_name): New static array.
31601 (comparator, avr_archs_str, avr_mcus_str): New static functions.
31602 (avr_inform_devices, avr_inform_core_architectures): New functions.
31603 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31604 (avrlibc.h) [WITH_AVRLIBC]: Include.
31605 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31606 (print_mcu): Rewrite from scratch.
31607 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31608 Forward to avr-specific specs defined in device-specs file.
31609 * config/avr/t-avr (driver-avr.o): New rule.
31610 (avr-devices.o): Depend on avr-arch.h.
31611 (avr-mcus): No more depend on avr-tables.opt.
31612 (avr-tables.opt): Remove rule.
31613 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31615 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31617 * c-family/c.opt (fchkp-use-wrappers): New.
31618 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31619 (chkp_wrap_function): New.
31620 (chkp_build_instrumented_fndecl): Support wrapped
31622 * doc/invoke.texi (-fcheck-pointer-bounds): New.
31623 (-fchkp-check-incomplete-type): New.
31624 (-fchkp-first-field-has-own-bounds): New.
31625 (-fchkp-narrow-bounds): New.
31626 (-fchkp-narrow-to-innermost-array): New.
31627 (-fchkp-optimize): New.
31628 (-fchkp-use-fast-string-functions): New.
31629 (-fchkp-use-nochk-string-functions): New.
31630 (-fchkp-use-static-bounds): New.
31631 (-fchkp-use-static-const-bounds): New.
31632 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31633 (-fchkp-check-read): New.
31634 (-fchkp-check-write): New.
31635 (-fchkp-store-bounds): New.
31636 (-fchkp-instrument-calls): New.
31637 (-fchkp-instrument-marked-only): New.
31638 (-fchkp-use-wrappers): New.
31639 (-static-libmpx): New.
31640 (-static-libmpxwrappers): New.
31642 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31644 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31645 (CHKP_SPEC): Add wrappers library.
31646 * c-family/c.opt (static-libmpxwrappers): New.
31648 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31650 * config/i386/linux-common.h (LIBMPX_LIBS): New.
31651 (LIBMPX_SPEC): New.
31653 * gcc.c (CHKP_SPEC): New.
31654 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31655 * c-family/c.opt (static-libmpx): New.
31657 2015-03-10 Richard Biener <rguenther@suse.de>
31659 PR middle-end/44563
31660 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31662 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31663 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31664 (cgraph_add_edge_to_call_site_hash): Likewise.
31665 (cgraph_node::get_edge): Likewise.
31666 (cgraph_edge::set_call_stmt): Likewise.
31667 (cgraph_edge::remove_caller): Likewise.
31669 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
31671 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31672 (callee_saved_gpr_regs_size): ... this.
31673 (callee_saved_regs_first_regno): Rename to ...
31674 (callee_saved_first_gpr_regno): ... this.
31675 (callee_saved_regs_last_regno) Rename to ...
31676 (callee_saved_last_gpr_regno): ... this.
31677 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31679 (nds32_initial_elimination_offset): Likewise.
31680 (nds32_expand_prologue): Likewise.
31681 (nds32_expand_epilogue): Likewise.
31682 (nds32_expand_prologue_v3push): Likewise.
31683 (nds32_expand_epilogue_v3pop): Likewise.
31684 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31685 Adjust renamed variables.
31686 (nds32_output_stack_pop): Likewise.
31688 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
31690 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31693 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31695 PR rtl-optimization/65321
31696 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31698 * var-tracking.c (use_narrower_mode): Likewise.
31700 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31702 PR tree-optimization/65355
31703 * varasm.c (notice_global_symbol): Do not produce RTL.
31704 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31706 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31707 check for section anchors.
31709 2015-03-10 Alan Modra <amodra@gmail.com>
31712 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31713 to be single-arch by default. Set cpu_is_64bit for powerpc64
31714 given --with-cpu=native.
31715 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31716 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31718 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31719 rs6000_isa_flags rather than TARGET_64BIT.
31721 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
31722 Kaz Kojima <kkojima@gcc.gnu.org>
31724 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31726 2015-03-09 Jakub Jelinek <jakub@redhat.com>
31729 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31730 on a TREE_BINFO, instead use BINFO_TYPE.
31732 2015-03-09 Richard Biener <rguenther@suse.de>
31734 PR middle-end/65270
31735 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31736 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31737 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
31738 of that. When comparing dereferences compare alignment.
31739 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31741 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31743 * ipa-inline-analysis.c (check_callers): Check
31744 node->can_remove_if_no_direct_calls_and_refs_p.
31745 (growth_likely_positive): Reorganize to call
31746 can_remove_if_no_direct_calls_p later.
31747 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31748 will_be_removed_from_program_if_no_direct_calls_p): Add
31749 will_inline parameter.
31750 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31751 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31752 Handle inliner case correctly.
31754 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
31756 PR tree-optimization/63743
31757 * cfgexpand.c (reorder_operands): Also reorder if only second operand
31758 had its definition forwarded by TER.
31760 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31763 * ipa-utils.h (types_odr_comparable): Add strict argument.
31764 * ipa-devirt.c: Fix whitespace;
31765 (odr_hasher): Remove.
31766 (odr_name_hasher, odr_vtable_hasher): New hashers.
31767 (can_be_name_hashed_p): New predicate.
31768 (hash_type_name): remove.
31769 (hash_odr_name): New.
31770 (odr_name_hasher::hash): new.
31771 (can_be_vtable_hashed_p): New.
31772 (hash_odr_vtable): New.
31773 (odr_vtable_hasher::hash): New.
31774 (types_same_for_odr): Add strict parameter.
31775 (types_odr_comparable): Likewise.
31776 (odr_name_hasher::equal): New.
31777 (odr_vtable_hasher::equal): New.
31778 (odr_name_hasher::remove): New.
31779 (odr_hash_type): Change to hash_table<odr_name_hasher>.
31780 (odr_vtable_hash_type): New.
31781 (odr_vtable_hash): New.
31782 (odr_subtypes_equivalent_p): Do strict comparsion.
31783 (add_type_duplicate): Merge type names; cleanup; avoid type
31785 (register_odr_type): Initialize vtable hash.
31786 (build_type_inheritance_graph): Likewise
31787 (get_odr_type): Reorg to use two hashes.
31788 (dump_possible_polymorphic_call_targets): Move sanity check after debug
31790 (ipa_devirt): Dump type_inheritance_graph.
31791 (types_same_for_odr): Add strict mode.
31793 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31796 * cgraph.h (symtab_node): Add definition_alignment,
31797 can_increase_alignment_p and increase_alignment.
31798 * symtab.c (symtab_node::can_increase_alignment_p,
31799 increase_alignment_1, symtab_node::increase_alignment,
31800 symtab_node::definition_alignment): New.
31801 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31802 can_increase_alignment_p.
31803 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31804 * tree-vect-stmts.c (ensure_base_align): Likewise.
31805 * varasm.c (function_section_1): Use definition_alignment.
31806 (assemble_start_function): Likewise.
31807 (emit_local): likewise.
31808 (build_constant_desc): Likewsie.
31809 (output_constant_def_contents): Likewise.
31810 (place_block_symbol): Likewise.
31811 (output_object_block): Likewise.
31813 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31816 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31817 when outputting debug.
31819 2015-03-07 Marek Polacek <polacek@redhat.com>
31820 Martin Uecker <uecker@eecs.berkeley.edu>
31823 * doc/invoke.texi: Update description of -fsanitize=bounds.
31825 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
31827 * tree-ssa-phiopt.c (neg_replacement): Remove.
31828 (tree_ssa_phiopt_worker): Remove negate optimization.
31830 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31833 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31835 2015-03-06 Richard Biener <rguenther@suse.de>
31837 PR middle-end/64928
31838 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31839 and liveout_obstack members.
31840 (calculate_live_on_exit): Remove.
31841 (calculate_live_ranges): Change declaration.
31842 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31843 (new_tree_live_info): Adjust.
31844 (calculate_live_ranges): Delete livein when not wanted.
31845 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31846 Deal with partly deleted live info.
31847 (loe_visit_block): Remove temporary bitmap by using
31848 bitmap_ior_and_compl_into.
31849 (live_worklist): Adjust accordingly.
31850 (calculate_live_on_exit): Make static.
31851 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31852 we do not need livein.
31854 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
31856 * real.c (real_from_string): Fix typo in assertion.
31858 2015-03-06 Alex Velenko <alex.velenko@arm.com>
31860 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31863 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31865 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31867 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
31870 * lra-assigns.c (find_hard_regno_for): Rename to
31871 find_hard_regno_for_1. Add a new parameter.
31872 (find_hard_regno_for): New function using find_hard_regno_for_1.
31874 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
31876 PR rtl-optimization/65067
31877 * expmed.c (store_bit_field, extract_bit_field): Reworked the
31878 strict volatile bitfield handling.
31880 2015-03-05 Martin Liska <mliska@suse.cz>
31883 * ipa-icf.c (sem_variable::equals): Compare variables types.
31885 2015-03-05 Richard Henderson <rth@redhat.com>
31888 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31889 correctly check weak symbol binding.
31891 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
31893 PR middle-end/65315
31894 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31897 2015-03-05 Martin Liska <mliska@suse.cz>
31899 * ipa-inline.c (inline_small_functions): Set default value to
31900 prevent warning during bootstrap.
31901 * tree.h: Add pragma guard that ignores false positives during
31904 2015-03-05 Richard Biener <rguenther@suse.de>
31906 PR tree-optimization/65310
31907 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31908 Properly preserve alignment of the base of the access.
31910 2015-03-05 Richard Biener <rguenther@suse.de>
31913 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31914 Compare dependence info.
31916 2015-03-05 Richard Biener <rguenther@suse.de>
31918 PR middle-end/65233
31919 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31921 (walk_ssa_copies): Revert last chage. Instead do not walk
31922 SSA names registered for SSA update.
31924 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31927 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31928 vtable references for their containing type.
31929 (sem_function::equals_wpa): Compare TYPE_RESTRICT
31930 and type attributes.
31932 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
31934 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31935 before negating it.
31936 * stor-layout.c (finalize_record_size): Revert latest change.
31938 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
31940 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31942 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31944 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31945 for correct comdat handling.
31946 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31948 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31949 (used_from_object_file_p_worker): Remove.
31950 (cgraph_node::only_called_directly_or_alised): Add
31951 used_from_object_file_p.
31952 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31953 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31954 can_remove_if_no_direct_calls_and_refs_p.
31956 2015-03-04 Nick Clifton <nickc@redhat.com>
31958 * config/rl78/rl78.h (enum reg_class): Remove real registers from
31959 General register class.
31960 * config/rl78/rl78-real.md: Replace general register constraints
31961 with real+virtual register constraints.
31963 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31965 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31966 from checking for -mhtm option.
31968 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31970 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31971 (struct ipa_sra_check_caller_data): Add has_thunk field.
31972 (ipa_sra_check_caller): Check for thunk.
31973 (ipa_sra_preliminary_function_checks): Give up on function with
31975 (ipa_early_sra): Use call_for_symbol_and_aliases.
31977 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31980 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31981 called for __stack_chk_guard symbol.
31983 2015-03-03 DJ Delorie <dj@redhat.com>
31985 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31987 (*addhi3_real): Likewise.
31988 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31989 pattern to match incrementing memory.
31990 * config/rl78/predicates.md (rl78_1_2_operand): New.
31991 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31992 it's the same and only mem.
31993 (rl78_alloc_physical_registers_op2): If there's effectively only
31994 one MEM, transcode it into HL.
31995 (rl78_far_p): Reject addresses that aren't legitimate.
31997 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31999 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32002 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32004 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32006 Implement call0 ABI for xtensa
32007 * config/xtensa/constraints.md ("a" constraint): Include stack
32008 pointer in case of call0 ABI.
32009 ("q" constraint): Make empty in case of call0 ABI.
32010 ("D" constraint): Include stack pointer in case of call0 ABI.
32011 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32012 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32014 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32016 (xtensa_regno_to_class): Make it a local variable in the
32017 function xtensa_regno_to_class.
32018 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32019 macro, function prototype and implementation.
32020 (reg_nonleaf_alloc_order): Make it a local variable in the
32021 function order_regs_for_local_alloc.
32022 (xtensa_conditional_register_usage): New function.
32023 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32024 (xtensa_valid_move): Allow direct moves to stack pointer
32025 register in call0 ABI.
32026 (xtensa_setup_frame_addresses): Only spill register windows in
32028 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32029 call0 ABI respectively.
32030 (xtensa_function_arg_1): Only mark a7 register for copying in
32032 (xtensa_call_save_reg): New function.
32033 (compute_frame_size): Add space for callee saved register
32034 storage to the frame size in call0 ABI.
32035 (xtensa_expand_prologue): Generate code to set up stack frame
32036 and save callee-saved registers in call0 ABI.
32037 (xtensa_expand_epilogue): New function.
32038 (xtensa_set_return_address): New function.
32039 (xtensa_return_addr): Calculate return address in call0 ABI.
32040 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32041 emit copying code in windowed ABI.
32042 (order_regs_for_local_alloc): Add preferred register allocation
32043 order for non-leaf function in call0 ABI.
32044 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32045 (xtensa_asm_trampoline_template): Add trampoline generation for
32047 (xtensa_trampoline_init): Add trampoline initialization for
32049 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32051 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32052 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32053 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32054 ABI call-used registers.
32055 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32056 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32058 (REG_CLASS_CONTENTS): Include all registers into the preferred
32059 reload registers set, adjust the set in the
32060 xtensa_conditional_register_usage.
32061 (xtensa_regno_to_class): Drop variable declaration.
32062 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32064 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32066 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32067 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32068 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32069 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32070 location in call0 ABI.
32071 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32072 stack adjustment size when handling exception.
32073 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32074 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32076 ("return" pattern): Generate ret.n/ret in call0 ABI.
32077 ("epilogue" pattern): Expand epilogue.
32078 ("nonlocal_goto" pattern): Use default in call0 ABI.
32079 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32080 emit eh_set_a0_* depending on ABI.
32081 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32082 ("eh_set_a0_call0", "blockage"): New patterns.
32084 2015-03-03 Martin Liska <mliska@suse.cz>
32087 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32089 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32092 * config/rs6000/rs6000-tables.opt: Regenerate table.
32094 2015-03-03 Renlin Li <renlin.li@arm.com>
32096 * doc/md.texi (@item ^): Change ? into ^.
32098 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32100 * doc/tm.texi: Regenerated.
32102 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32104 * builtins.c (expand_builtin_return_addr): Add
32105 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32106 surrounding #ifdef.
32107 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32109 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32111 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32113 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32116 2015-03-03 Martin Jambor <mjambor@suse.cz>
32117 Eric Botcazou <ebotcazou@adacore.com>
32119 * tree-sra.c (ipa_sra_check_caller_data): New type.
32120 (has_caller_p): Removed.
32121 (ipa_sra_check_caller): New function.
32122 (ipa_sra_preliminary_function_checks): Use it.
32124 2015-03-03 Martin Liska <mliska@suse.cz>
32126 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32127 instead of if branch.
32129 2015-03-03 Martin Liska <mliska@suse.cz>
32132 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32134 2015-03-23 Jeff Law <law@redhat.com>
32136 PR tree-optimization/65241
32137 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32138 hash table if INSERT is true.
32140 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32143 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32145 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32148 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32149 (avr_pass_data_recompute_notes): New static variable.
32150 (avr_pass_recompute_notes): New class.
32151 (avr_register_passes): New static function.
32152 (avr_option_override): Call it.
32154 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32156 Fix various problems with specs file generation.
32159 * config.gcc (extra_gcc_objs) [avr]: Remove.
32160 * config/avr/driver-avr.c: Remove file.
32161 * config/avr/t-avr (driver-avr.o): Remove rule.
32162 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32163 INCLUDES to build. Depend on TM_H.
32164 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32165 build warnings. Fix non-matching types and non-existing %-codes.
32167 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32168 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32169 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32170 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32171 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32172 (LIBGCC_SPEC): Remove definitions.
32174 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32176 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32177 to create a register in testing mode.
32179 2015-03-03 Martin Liska <mliska@suse.cz>
32180 Jan Hubicka <hubicka@ucw.cz>
32183 * cgraph.c (cgraph_node::has_thunk_p): New function.
32184 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32185 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32186 (sem_function::merge): Assert is changed.
32188 2015-03-03 Martin Liska <mliska@suse.cz>
32189 Martin Jambor <mjambor@suse.cz>
32192 * ipa-icf.c (sem_item_optimizer::execute): Change function
32193 return value to boolean.
32194 (sem_item_optimizer::merge_classes): Likewise.
32195 (ipa_icf_driver): Return TODO_remove_functions in case there's
32196 a merge operation processed.
32197 * ipa-icf.h: Change function return value to boolean.
32199 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32202 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32203 processor type for 64-bit little endian PowerPC.
32205 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32206 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
32207 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
32208 printing built-in mask so it does not pass NULL pointers.
32210 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32213 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
32216 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32217 !ISA_HAS_FP_CONDMOVE.
32219 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
32221 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32224 2015-03-02 Ulrich Drepper <drepper@gmail.com>
32226 * doc/invoke.texi (Options for Code Generation Conventions):
32227 Fix URL of DSO paper.
32229 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32232 * ipa-inline.c (check_callers): Looks for recursion.
32233 (inline_to_all_callers): Give up on uninlinable or recursive edges.
32234 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32235 summary of inline clones.
32236 (do_estimate_growth_1): Fix recursion check.
32238 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32241 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32244 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32245 Aldy Hernandez <aldyh@redhat.com>
32248 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32249 when checking TYPE_BINFO.
32251 2015-03-02 Richard Biener <rguenther@suse.de>
32254 * ipa-icf-gimple.c: Include builtins.h.
32255 (func_checker::compare_memory_operand): Compare base alignment.
32257 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32260 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32261 passed by reference.
32263 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32266 * tree-chkp.c (chkp_check_lower): Don't check against
32267 zero bounds for already instrumented functions.
32268 (chkp_check_upper): Likewise.
32269 (chkp_fini): Clean pass local data to avoid wrong reusage.
32271 2015-02-28 Martin Liska <mliska@suse.cz>
32272 Jan Hubicka <hubicka@ucw.cz>
32274 * ipa-icf.c (sem_variable::equals): Improve debug output;
32275 get variable constructor.
32276 (sem_variable::parse): Do not filter out too early; give up on
32277 volatile and register vars.
32278 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32280 * ipa-icf.h (sem_variable::init): Do not set ctor.
32281 (sem_variable::ctor): Remove.
32283 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
32285 PR middle-end/65233
32286 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32288 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32290 * ipa-icf.c: Include stor-layout.h
32291 (sem_function::compare_cgraph_references): Rename to ...
32292 (sem_item::compare_cgraph_references): ... this one.
32293 (sem_variable::equals_wpa): New function
32294 (sem_variable::equals): Do not check stuff already verified by
32296 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32297 * ipa-icf.h (sem_item): Add compare_cgraph_references.
32298 (sem_function): Remove compare_cgraph_references.
32299 (sem_variable): Turns equals_wpa into non-inline.
32301 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32303 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32304 (sem_item::add_expr): New function.
32305 (sem_function::hash_stmt): Handle operands of most statements.
32306 (sem_variable::get_hash): Hash the actual constructor.
32307 * ipa-icf.h (sem_item): Add add_expr.
32308 (sem_function): Update prototype of hash_stmt
32310 2015-02-28 Martin Liska <mliska@suse.cz>
32311 Jan Hubicka <hubicka@ucw.cz>
32314 * ipa-icf-gimple.c (func_checker::compare_function_decl):
32316 (func_checker::compare_variable_decl): Skip symtab vars.
32317 (func_checker::compare_cst_or_decl): Update.
32318 * ipa-icf.c (sem_function::parse): Do not consider aliases.
32319 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32320 use correct symtab predicates.
32321 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32322 (sem_variable::parse): Update comment.
32323 (sem_item_optimizer::build_graph): Consider ultimate aliases
32326 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32328 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32331 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32333 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32334 (sem_variable::merge) Likewise.
32336 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32338 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32339 target; also match flag_ipa_devirt.
32341 2015-03-01 Martin Liska <mliska@suse.cz>
32342 Jan Hubicka <hubicka@ucw.cz>
32344 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32345 Validate variable alignment.
32346 * ipa-icf.c (sem_function::equals_private): Be more precise
32347 about non-common function attributes.
32348 (sem_variable::equals): Likewise.
32350 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32353 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32354 across COMDAT group boundary.
32356 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32359 * ipa-icf.c (clear_decl_rtl): New function.
32360 (sem_function::merge): Clear RTL before forming alias.
32361 (sem_variable::merge): Clear RTL before forming alias.
32363 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32366 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32368 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
32370 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32373 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32375 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32376 a typo in the description.
32378 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32381 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32382 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32383 * lra-constraints.c: Include "params.h".
32384 (EBB_PROBABILITY_CUTOFF): Use
32385 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32386 (lra_inheritance): Use '<' instead of '<=' for
32387 EBB_PROBABILITY_CUTOFF.
32388 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32391 2015-02-27 Martin Liska <mliska@suse.cz>
32393 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32394 vector length condition.
32396 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
32398 * doc/extend.texi (x86 transactional memory intrinsics):
32399 Reorganize discussion of _xbegin. Clarify that the return
32400 value is a bit mask. Expand example and move to end of section.
32402 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32403 Aldy Hernandez <aldyh@redhat.com>
32405 PR rtl-optimization/65220
32406 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32408 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32411 * lra-remat.c (update_scratch_ops): New.
32412 (do_remat): Call it.
32413 * lra.c (lra_register_new_scratch_op): New. Take code from ...
32414 (remove_scratches): ... here.
32415 * lra-int.h (lra_register_new_scratch_op): New prototype.
32417 2015-02-27 Marek Polacek <polacek@redhat.com>
32420 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32421 -Wformat-signedness anymore.
32423 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32425 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32427 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32429 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32431 * config/s390/s390.c (enum s390_builtin):
32432 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32433 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32434 (s390_init_builtins): Generate new builtin functions.
32435 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32436 (s390_sfpc, s390_efpc): New pattern definitions.
32438 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32440 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32441 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32442 (s390_builtin_decls): New array.
32443 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32444 (s390_builtin_decl): New function.
32445 (TARGET_BUILTIN_DECL): Define macro.
32447 2015-02-27 Richard Biener <rguenther@suse.de>
32449 PR middle-end/63175
32450 * builtins.c (get_object_alignment_2): Make sure to re-apply
32451 the ANDed mask after recursing to its operand gets us a new
32452 misalignment bit position.
32454 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
32455 Martin Liska <mliska@suse.cz>
32458 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32459 Use address_matters_p.
32460 (redirect_all_callers, set_addressable): New functions.
32461 (sem_function::merge): Reorganize and fix merging issues.
32462 (sem_variable::merge): Likewise.
32463 (sem_variable::compare_sections): Remove.
32464 * common.opt (fmerge-all-constants, fmerge-constants): Remove
32466 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32468 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32470 (address_matters_1): New function.
32471 (symtab_node::address_matters_p): New function.
32472 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32473 check for merged flag.
32474 * cgraph.h (address_matters_p): Declare.
32475 (symtab_node::address_taken_from_non_vtable_p): Remove.
32476 (symtab_node::address_can_be_compared_p): New method.
32477 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32478 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32480 (comdat_can_be_unshared_p_1) Use address_matters_p.
32481 (update_vtable_references): Fix formating.
32482 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32483 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32484 * cgraphclones.c: Preserve merged and icf_merged flags.
32486 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
32488 * doc/extend.texi (Function Attributes): Fix spelling and typos.
32489 (Label Attributes): Likewise.
32490 (Cilk Plus Builtins): Likewise.
32491 (ARC SIMD Built-in Functions): Likewise.
32492 (ARM C Language Extensions (ACLE)): Likewise.
32493 (PowerPC Built-in Functions): Likewise.
32494 (PowerPC Hardware Transactional Memory Built-in Functions):
32497 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32499 PR tree-optimization/65216
32500 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32501 new stmt and new SSA_NAME for lhs whenever the arguments have
32502 changed and weren't just swapped. Fix comment typo.
32504 PR tree-optimization/65215
32505 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32506 for PDP endian targets.
32507 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32508 Fix up formatting issues.
32509 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
32510 size is smaller than the original, adjust MEM_REF offset by the
32511 difference of sizes. Use is_gimple_mem_ref_addr instead of
32512 is_gimple_min_invariant test to avoid adding address temporaries.
32514 2015-02-26 Martin Liska <mliska@suse.cz>
32515 Jan Hubicka <hubicka@ucw.cz>
32518 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32519 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32520 (sem_item_optimizer::process_cong_reduction): Include division by
32521 sensitive references.
32522 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32523 * ipa-ref.c (ipa_ref::address_matters_p): New function.
32524 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32526 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
32529 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32531 * config/avr/avr.c: Same.
32532 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32533 Refuse any constant address not in 0..0xbf.
32534 * config/avr/avr.md (*mov<mode>, *movsf): Remove
32535 tiny_valid_direct_memory_access_range from insn conditions.
32536 (mov<mode>): Don't special-case expansion of avrtiny addresses.
32538 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32541 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32542 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32543 * config/sh/predicates.md (const_logical_operand): New predicate.
32544 * config/sh/sh.md: Add new peephole2 patterns.
32546 2015-02-26 Marek Polacek <polacek@redhat.com>
32549 * ipa-inline.c (early_inliner): Recompute inline parameters.
32551 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32554 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32555 instructions with TImode operands are included in the analysis.
32557 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32559 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32560 of an EDGE_FSM_THREAD.
32562 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
32564 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32566 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
32569 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32571 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32573 PR tree-optimization/65048
32574 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32575 (thread_through_all_blocks): Call valid_jump_thread_path.
32576 Remove invalid FSM jump-thread paths.
32578 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32580 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32581 (ipa_write_optimization_summaries): Likewise.
32582 * tree-streamer.h: Include data-streamer.h.
32583 (streamer_mode_table): Declare extern variable.
32584 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32585 * lto-streamer-out.c (lto_output_init_mode_table,
32586 lto_write_mode_table): New functions.
32587 (produce_asm_for_decls): Call lto_write_mode_table when streaming
32589 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32590 (lto_create_simple_input_block): Add mode_table argument to the
32591 lto_input_block constructors.
32592 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32594 * data-streamer-in.c (string_for_index): Likewise.
32595 * ipa-inline-analysis.c (inline_read_section): Likewise.
32596 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32597 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32598 * lto-streamer-in.c (lto_read_body_or_constructor,
32599 lto_input_toplevel_asms): Likewise.
32600 (lto_input_mode_table): New function.
32601 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32602 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32603 Use bp_pack_machine_mode.
32604 * real.h (struct real_format): Add name field.
32605 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32606 (class lto_input_block): Add mode_table member.
32607 (lto_input_block::lto_input_block): Add mode_table_ argument,
32608 initialize mode_table.
32609 (struct lto_file_decl_data): Add mode_table field.
32610 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32611 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32612 unpack_ts_decl_common_value_fields,
32613 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32614 * tree-streamer.c (streamer_mode_table): New variable.
32615 * real.c (ieee_single_format, mips_single_format,
32616 motorola_single_format, spu_single_format, ieee_double_format,
32617 mips_double_format, motorola_double_format,
32618 ieee_extended_motorola_format, ieee_extended_intel_96_format,
32619 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32620 ibm_extended_format, mips_extended_format, ieee_quad_format,
32621 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32622 decimal_single_format, decimal_double_format, decimal_quad_format,
32623 ieee_half_format, arm_half_format, real_internal_format): Add name
32625 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32627 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
32630 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32631 reordering for selective scheduling.
32633 2015-02-26 Terry Guo <terry.guo@arm.com>
32635 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32636 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32637 (arm_arch_no_volatile_ce): Declare new global variable.
32638 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32639 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32640 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32641 (TARGET_NO_VOLATILE_CE): New macro.
32642 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32643 volatile memory access in IT block
32645 2015-02-25 Kai Tietz <ktietz@redhat.com>
32647 PR tree-optimization/61917
32648 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32649 that reduc_def_stmt is null.
32651 2015-02-25 Martin Liska <mliska@suse.cz>
32653 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32654 hard register variables.
32656 2015-02-25 Kai Tietz <ktietz@redhat.com>
32659 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32660 (symtab::noninterposable_alias): Likewise.
32662 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
32665 * config/i386/i386.c (ix86_function_arg_regno_p): Support
32667 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32669 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
32672 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32673 as split condition; force split via '#' in output pattern.
32675 2015-02-25 Richard Biener <rguenther@suse.de>
32676 Kai Tietz <ktietz@redhat.com>
32678 PR tree-optimization/61917
32679 * tree-vect-loop.c (vectorizable_reduction): Allow
32680 vect_internal_def without reduction to exit graceful.
32682 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32685 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32686 only with NONDEBUG_INSN_P.
32688 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32690 Use variadic macros with avr-log.c.
32692 * config/avr/avr-protos.h (avr_vdump): New prototype.
32693 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32694 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32695 * config/avr/avr-log.c: Adjust comments.
32696 (avr_vdump): New function.
32697 (avr_vadump): Pass caller as 2nd argument instead of format string.
32698 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32699 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32701 2015-02-25 Jakub Jelinek <jakub@redhat.com>
32704 * target.def (target_option_stream_in): New target hook.
32705 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32706 targetm.target_option.post_stream_in if non-NULL.
32707 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32708 * doc/tm.texi: Updated.
32709 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32711 (TARGET_OPTION_POST_STREAM_IN): Redefine.
32713 2015-02-24 Jeff Law <law@redhat.com>
32716 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32717 of operand 0 and operand 2.
32718 (zero_cost_loop_end, loop_end): Similarly.
32720 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
32722 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32725 2015-02-24 DJ Delorie <dj@redhat.com>
32727 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32728 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32729 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32730 instead of hardcoding SImode.
32732 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
32734 * omp-low.c (create_omp_child_function): Tag entrypoint
32735 functions with a special attribute.
32737 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32740 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32742 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
32744 PR rtl-optimization/65123
32745 * lra-remat.c (operand_to_remat): Check hard regs in insn
32748 2015-02-24 Nick Clifton <nickc@redhat.com>
32750 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32753 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
32756 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32757 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32758 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32759 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32760 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32761 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32762 (BUILT_IN_GOACC_PARALLEL): Specify as
32763 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32764 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32765 * builtin-types.def
32766 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32767 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32768 Remove function types.
32769 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32770 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32771 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32772 New function types.
32774 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
32776 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32778 2015-02-24 Jakub Jelinek <jakub@redhat.com>
32780 PR tree-optimization/65170
32781 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32782 if val[1] < 0, clear also val[2] and return 3.
32784 2015-02-24 Alan Modra <amodra@gmail.com>
32787 * config/rs6000/rs6000.c (get_memref_parts): Only return true
32788 when *base is a reg. Handle nested plus addresses. Simplify
32791 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
32793 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32794 use natural alignment when optimizing for size.
32796 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
32799 * config/sh/sh.md (movsicc_true+3): Remove peephole.
32800 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32801 * config/sh/sh.c (replace_n_hard_rtx): Remove.
32803 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
32806 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32807 too big for a wide_int. Implement missing wrapping operation.
32809 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
32812 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32813 instead of const_int 4294901760.
32815 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
32817 * config/avr/t-avr: Fix typo in comment.
32819 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
32821 * doc/rtl.texi (fma): Clarify documentation.
32823 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
32826 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32827 over input_location.
32829 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32831 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32832 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32833 restrict alignments to absolute_biggest_alignment.
32834 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32836 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32837 * doc/tm.texi: Regenerate.
32838 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32840 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
32843 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32845 2015-02-20 Richard Biener <rguenther@suse.de>
32847 PR tree-optimization/65136
32848 * tree-ssa-propagate.c: Include cfgloop.h.
32849 (replace_phi_args_in): Avoid replacing loop latch edge PHI
32850 arguments with constants.
32852 2015-02-20 Jakub Jelinek <jakub@redhat.com>
32853 Martin Liska <mliska@suse.cz>
32856 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32857 don't try to create_thunk if stdarg_p. If
32858 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32859 redirect_callers if possible.
32860 (sem_item_optimizer::execute): Call unregister_hooks here...
32861 (ipa_icf_driver): ... instead of here.
32863 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32865 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32866 Mark operand 0 as earlyclobber in 2nd alternative.
32867 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32868 Write negated shift amount into QI lowpart operand 0 and use it
32870 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32872 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32874 * cgraph.h (clone_function_name_1): Declare.
32875 * cgraphclones.c (clone_function_name_1): New function.
32876 (clone_function_name): Use it.
32877 * lto-partition.c: Include "stringpool.h".
32878 (must_not_rename, maybe_rewrite_identifier)
32879 (validize_symbol_for_target): New static functions.
32880 (privatize_symbol_name): Use must_not_rename.
32881 (promote_symbol): Call validize_symbol_for_target.
32882 (lto_promote_cross_file_statics): Likewise.
32883 (lto_promote_statics_nonwpa): Likewise.
32885 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
32888 * config/avr/avr.md (pushhi_insn): New insn.
32889 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32891 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32892 Jakub Jelinek <jakub@redhat.com>
32894 * tree-streamer.c (preload_common_nodes): Don't preload
32895 TI_VA_LIST* for offloading.
32896 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32899 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
32901 * config/pa/pa.c (pa_emit_move_sequence): Always force
32902 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
32905 * config/pa/pa.c (pa_reloc_rw_mask): New function.
32906 (TARGET_ASM_RELOC_RW_MASK): Define.
32907 (pa_cannot_force_const_mem): Revert previous change.
32909 2015-02-19 Martin Jambor <mjmabor@suse.cz>
32910 Jan Hubicka <hubicka@ucw.cz>
32913 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32914 across jump functions.
32916 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
32918 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32920 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
32922 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32924 2015-02-19 Richard Henderson <rth@redhat.com>
32926 PR middle-end/65074
32927 * varasm.c (default_binds_local_p_2): Don't test node->definition;
32928 test DECL_EXTERNAL independent of symtab_node.
32930 2015-02-19 Jakub Jelinek <jakub@redhat.com>
32933 * varpool.c (varpool_node::get_constructor): Return early
32934 if this->lto_file_data is NULL.
32936 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32938 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32939 (rank_for_schedule_debug): Update.
32940 (ready_sort): Make static. Move sorting logic to ...
32941 (ready_sort_debug, ready_sort_real): New static functions.
32942 (schedule_block): Sort both debug insns and real insns in preparation
32943 for ready list trimming. Improve debug output.
32944 * sched-int.h (ready_sort): Remove global declaration.
32946 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
32948 * ipa-icf.c (sem_function::equals_private): Adjust.
32949 (sem_function::bb_dict_test): Take a vec<int> * instead of
32951 * ipa-icf.h (bb_dict_test): Likewise.
32953 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32955 PR gcov-profile/64634
32956 * tree-eh.c (frob_into_branch_around): Fix up typos
32957 in function comment.
32958 (lower_catch): Put eh_seq resulting from EH lowering of
32959 the cleanup sequence after the cleanup rather than before it.
32961 2015-02-18 Tom de Vries <tom@codesourcery.com>
32963 * common.opt (fstdarg-opt): New option.
32964 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32965 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32966 (@item -fstdarg-opt): New item.
32968 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
32971 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32972 for common symbols.
32974 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32976 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32978 (ALL_HOST_OBJS): Add mkoffload.o.
32979 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32981 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
32983 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32984 (compare_virtual_tables): Be smarter about skipping typeinfos;
32985 do sane output on virtual table table mismatch.
32986 (warn_odr): Be ready for forward declarations of enums;
32987 output sane info on base mismatch and virtual table mismatch.
32988 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32989 when only one type is polymorphic.
32990 (get_odr_type): Fix hashtable corruption.
32991 (dump_odr_type): Dump mangled names.
32993 2015-02-18 Richard Biener <rguenther@suse.de>
32995 PR tree-optimization/65063
32996 * tree-predcom.c (determine_unroll_factor): Return 1 if we
32997 have replaced looparound PHIs.
32999 2015-02-18 Martin Liska <mliska@suse.cz>
33001 * lto-streamer.c (lto_streamer_init): Encapsulate
33002 streamer_check_handled_ts_structures with checking macro.
33004 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33007 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33008 section if !implicit_section.
33009 (cgraph_node::create_version_clone_with_body): Likewise.
33010 * trans-mem.c (ipa_tm_create_version): Likewise.
33012 2015-02-18 Richard Biener <rguenther@suse.de>
33014 PR tree-optimization/62217
33015 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33018 2015-02-18 Marek Polacek <polacek@redhat.com>
33021 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33022 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33023 is in range [-16K, -1]. Don't issue run-time error if
33024 (ptr > ptr + offset).
33026 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33028 * doc/install.texi (nvptx-*-none): New section.
33029 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33030 * config/nvptx/nvptx.opt: Update.
33032 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33033 (access_check): New functions, copied from
33034 config/i386/intelmic-mkoffload.c.
33035 (main): For non-installed testing, look in all COMPILER_PATHs for
33038 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33040 2015-02-18 Andrew Pinski <apinski@cavium.com>
33041 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33043 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33044 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33046 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33048 * ipa-visibility.c (function_and_variable_visibility): Only
33049 check locality if node is not already local.
33050 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33051 call_for_symbol_and_aliases instead of
33052 call_for_symbol_thunks_and_aliases.
33053 (ipa_inline): Likewise.
33054 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33055 first walk aliases.
33056 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33057 call_for_symbol_and_aliases.
33058 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33059 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33060 (ipa_propagate_frequency): Update.
33061 (ipa_profile): Add opt_for_fn gueards.
33063 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33065 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33066 * doc/invoke.texi (SH options): Document it.
33067 * config/sh/sh.c (sh_insn_length_adjustment): Check
33068 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33070 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33072 * common.opt (fipa-cp-alignment): New.
33073 * ipa-cp.c (ipcp_store_alignment_results): Check
33074 flag_ipa_cp_alignment.
33075 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33077 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33078 * doc/invoke.texi: Document -fipa-cp-alignment.
33080 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33083 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33084 to nil. Adjust comments.
33086 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33088 * ipa-visibility.c (function_and_variable_visibility): Only
33089 check locality if node is not already local.
33090 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33091 call_for_symbol_and_aliases instead of
33092 call_for_symbol_thunks_and_aliases.
33093 (ipa_inline): Likewise.
33094 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33095 first walk aliases.
33096 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33097 call_for_symbol_and_aliases.
33098 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33099 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33100 (ipa_propagate_frequency): Update.
33101 (ipa_profile): Add opt_for_fn guards.
33103 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33105 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33106 skipping of "strange" tokens.
33108 2015-02-17 Jeff Law <law@redhat.com>
33110 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33113 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33115 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33116 as forcing a HARD_DEP between instructions, thereby
33117 disallowing rewriting to break dependencies.
33119 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33121 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33122 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33123 variables in boundary that have no inlitalizer encoded and are
33125 * varasm.c (default_binds_local_p_2): External definitions do not
33126 count as definitions here.
33128 2015-02-16 Jeff Law <law@redhat.com>
33130 PR tree-optimization/64823
33131 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33133 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33134 threading through blocks with PHIs, but no statements.
33135 (thread_through_normal_block): Distinguish between blocks where
33136 we did not process all the statements and blocks with no statements.
33138 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33139 James Greenhalgh <james.greenhalgh@arm.com>
33142 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33143 section if not linkonce. Fix up formatting.
33144 (cgraph_node::create_version_clone_with_body): Copy section.
33145 * trans-mem.c (ipa_tm_create_version): Likewise.
33147 2015-02-16 Richard Biener <rguenther@suse.de>
33149 PR tree-optimization/65077
33150 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33151 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33152 (find_func_aliases): Allow float values to carry pointers again.
33154 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33156 * doc/install.texi (Specific): Reorder targets list to put
33157 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33160 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33161 David Edelsohn <dje.gcc@gmail.com>
33164 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33165 mapping class to external variable or function reference.
33166 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33169 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
33172 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33173 ASM_WEAKEN_DECL if defined.
33175 2015-02-16 Richard Biener <rguenther@suse.de>
33178 * varasm.c (default_file_start): For LTO produced units
33179 emit <artificial> as file directive.
33181 2015-02-16 Richard Biener <rguenther@suse.de>
33183 PR tree-optimization/63593
33184 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33185 stmts and releasing SSA names until...
33186 (execute_pred_commoning): ... after processing all chains.
33188 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33191 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33192 external functions.
33194 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
33196 * doc/bugreport.texi: Adjust section titles throughout the file
33197 to use "Title Case".
33198 * doc/extend.texi: Likewise.
33199 * doc/gcov.texi: Likewise.
33200 * doc/implement-c.texi: Likewise.
33201 * doc/implement-cxx.texi: Likewise.
33202 * doc/invoke.texi: Likewise.
33203 * doc/objc.texi: Likewise.
33204 * doc/standards.texi: Likewise.
33205 * doc/trouble.texi: Likewise.
33207 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
33209 * cgraph.h (symtab_node::has_aliases_p): Simplify.
33210 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33211 * tree.c (lookup_binfo_at_offset): Make static.
33212 (get_binfo_at_offset): Do not shadow offset; add explanatory
33215 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
33217 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33218 for all floading point loads and stores except those using a register
33220 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33223 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33225 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33226 (do_estimate_growth_1): Record if any uninlinable edge was seen.
33227 (estimate_growth): Handle uninlinable edges correctly.
33228 (check_callers): New.
33229 (growth_likely_positive): Handle aliases correctly.
33231 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33233 * ipa-chkp.c: Use iterate_direct_aliases.
33234 * symtab.c (resolution_used_from_other_file_p): Move inline.
33235 (symtab_node::create_reference): Fix formating.
33236 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33237 (symtab_node::iterate_reference): Move inline.
33238 (symtab_node::iterate_referring): Move inline.
33239 (symtab_node::iterate_direct_aliases): Move inline.
33240 (symtab_node::used_from_object_file_p_worker): Inline into ...
33241 (symtab_node::used_from_object_file_p): ... this one; move inline.
33242 (symtab_node::call_for_symbol_and_aliases): Move inline;
33243 use iterate_direct_aliases.
33244 (symtab_node::call_for_symbol_and_aliases_1): New method.
33245 (cgraph_node::call_for_symbol_and_aliases): Move inline;
33246 use iterate_direct_aliases.
33247 (cgraph_node::call_for_symbol_and_aliases_1): New method.
33248 (varpool_node::call_for_node_and_aliases): Rename to ...
33249 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33250 use iterate_direct_aliases.
33251 (varpool_node::call_for_symbol_and_aliases_1): New method.
33252 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33253 (ipa_discover_readonly_nonaddressable_var): Update.
33254 * ipa-devirt.c: Fix formating.
33255 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33257 (cgraph_node::call_for_symbol_and_aliases): Move inline.
33258 (cgraph_node::call_for_symbol_and_aliases_1): New function..
33259 * cgraph.h (used_from_object_file_p_worker): Remove.
33260 (resolution_used_from_other_file_p): Move inline.
33261 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33262 (symtab_node::iterate_reference): Move inline.
33263 (symtab_node::iterate_referring): Move inline.
33264 (symtab_node::iterate_direct_aliases): Move inline.
33265 (symtab_node::used_from_object_file_p_worker): Inline into ...
33266 (symtab_node::used_from_object_file_p): Move inline.
33267 * tree-emutls.c (ipa_lower_emutls): Update.
33268 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33269 (varpool_node::call_for_node_and_aliases): Remove.
33271 2015-02-14 Jakub Jelinek <jakub@redhat.com>
33273 PR tree-optimization/62209
33274 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33275 op == range->exp, insert seq and gimplified code after labels
33276 instead of after the phi.
33278 2015-02-13 Jeff Law <law@redhat.com>
33281 Revert my change for tree-optimization/64823.
33283 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33285 PR tree-optimization/65053
33286 * tree-ssa-phiopt.c (value_replacement): When moving assign before
33287 cond, either reset VR on lhs or set it to phi result VR.
33289 2015-02-13 Jeff Law <law@redhat.com>
33291 PR tree-optimization/64823
33292 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33293 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33294 threading through blocks with PHIs, but no statements.
33295 (thread_through_normal_block): Distinguish between blocks where
33296 we did not process all the statements and blocks with no statements.
33298 PR rtl-optimization/47477
33299 * match.pd (convert (plus/minus (convert @0) (convert @1): New
33300 simplifier to narrow arithmetic.
33302 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
33305 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33306 polymorphic call info when type is not known to be preserved.
33308 2015-02-13 Maritn Jambor <mjambor@suse.cz>
33311 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33312 (inline_call): Use it.
33314 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
33316 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33317 GOMP_DEVICE_NVIDIA_PTX.
33319 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33322 * stmt.c (emit_case_nodes): Use void_type_node instead of
33323 NULL_TREE as LABEL_DECL type.
33325 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
33327 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33329 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33330 symbolic references to data to be forced to constant memory on the
33333 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
33335 PR tree-optimization/65002
33336 * tree-cfg.c (pass_data_fixup_cfg): Don't update
33338 * tree-sra.c (some_callers_have_no_vuse_p): New.
33339 (ipa_early_sra): Reject functions whose callers
33340 assume function is read only.
33342 2015-02-13 Richard Biener <rguenther@suse.de>
33345 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33346 for LTO produced CUs.
33348 2015-02-13 Bin Cheng <bin.cheng@arm.com>
33350 PR tree-optimization/64705
33351 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33352 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33353 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33354 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33355 expand_simple_operations.
33357 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
33358 Richard Henderson <rth@redhat.com>
33361 * cgraphunit.c (cgraph_node::finalize_function): Set definition
33362 before notice_global_symbol.
33363 (varpool_node::finalize_decl): Likewise.
33364 * varasm.c (default_binds_local_p_2): Rename from
33365 default_binds_local_p_1, add weak_dominate argument. Use direct
33366 returns instead of assigning to local variable. Unify varpool and
33367 cgraph paths via symtab_node. Reject undef weak variables before
33368 testing visibility. Reorder tests for simplicity.
33369 (default_binds_local_p): Use default_binds_local_p_2.
33370 (default_binds_local_p_1): Likewise.
33371 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33373 (default_elf_asm_output_external): Emit visibility when specified.
33375 2015-02-13 Alan Modra <amodra@gmail.com>
33377 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33378 code setting up r11 for out-of-line fp restore.
33380 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
33382 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33383 (muser-mode): Likewise.
33385 2015-02-13 Alan Modra <amodra@gmail.com>
33387 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33388 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33390 2015-02-12 David Howells <dhowells@redhat.com>
33392 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33394 * tree-ssa-uninit.c (dump_predicates): Likewise.
33395 * opts.c (print_filtered_help): Likewise.
33397 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33399 * dwarf2out.c (output_die): Use "%s", name instead of name to
33400 avoid -Wformat-security warning.
33402 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33403 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33404 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33405 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33407 2015-02-12 Jason Merrill <jason@redhat.com>
33409 * common.opt (-flifetime-dse): New.
33411 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33414 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33416 PR tree-optimization/65014
33417 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33418 use original second operand of arg0 or arg1 instead of
33419 that adjusted by STRIP_NOPS.
33421 2015-02-11 Jeff Law <law@redhat.com>
33424 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33425 that needs to be queued, just queue it for a single cycle.
33427 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
33429 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33430 bodies of thunks; comment on why.
33431 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33432 symbols are extern.
33434 2015-02-11 Richard Henderson <rth@redhat.com>
33437 * tree-eh.c (mark_reachable_handlers): Mark source and destination
33438 regions of __builtin_eh_copy_values.
33440 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33442 PR middle-end/65003
33443 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33444 ultimate alias is MEM with SYMBOL_REF satisfying
33445 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
33446 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33448 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
33450 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33451 "diagnostic-core.h".
33452 (main): Initialize progname, and call diagnostic_initialize.
33454 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33455 instead of __OPENMP_TARGET__.
33457 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33458 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33459 hard-coding PTX_ID.
33461 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
33463 * doc/sourcebuild.texi (pie_enabled): Document.
33465 2015-02-11 Martin Liska <mliska@suse.cz>
33468 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33469 a return value for call to a function that is noreturn.
33471 2015-02-11 Richard Biener <rguenther@suse.de>
33474 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33477 2015-02-11 Andrew Pinski <apinski@cavium.com>
33480 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33481 Change the first argument type to size_type_node and add another
33483 (aarch64_simd_expand_builtin): Handle the new argument to
33484 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33485 print an out when the first two arguments are not
33486 nonzero integer constants.
33487 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33488 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33490 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33493 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33494 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33495 (ix86_set_current_function): Rewritten.
33496 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33497 when creating builtin fndecls.
33499 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33502 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33504 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33505 have no comdat group.
33506 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33507 (lto_output_varpool_node): Always output alias info.
33508 (output_refs): Output refs of boundary aliases, too.
33509 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33510 (output_symtab): Output call eges in thunks in boundary.
33511 (get_alias_symbol): Remove.
33512 (input_node, input_varpool_node): Do not special case weakrefs.
33513 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33514 alias and thunks targets in the boundary; do not take removed symbols
33515 from their comdat groups.
33516 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33517 (cgraph_node::global_info): Remove.
33518 (cgraph_node::rtl_info): Look through aliases and thunks.
33519 * cgrpah.h (global_info): Remove.
33520 (non_local_p): Remove.
33522 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33523 Sandra Loosemore <sandra@codesourcery.com>
33525 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33526 to inline asm. List dialects in proper order.
33528 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33529 Sandra Loosemore <sandra@codesourcery.com>
33531 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33533 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33535 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33536 modified) reference to Solaris.
33538 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
33540 * doc/extend.texi (Extended Asm): Fix typos.
33542 2015-02-10 Jakub Jelinek <jakub@redhat.com>
33545 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33547 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
33550 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33551 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33552 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33553 * config/sh/constraints.md (Ara, Add): New constraints.
33554 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33556 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33557 atomic_mem_operand_0. Don't use force_reg on the memory address.
33558 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33559 Sra constraint. Convert to insn_and_split. Add workaround for
33561 (atomic_compare_and_swap<mode>_hard): Copy to
33562 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
33563 Use atomic_mem_operand_0 predicate.
33564 (atomic_compare_and_swap<mode>_soft_gusa,
33565 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33566 AraAdd constraints.
33567 (atomic_compare_and_swap<mode>_soft_tcb,
33568 atomic_compare_and_swap<mode>_soft_imask,
33569 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33570 atomic_mem_operand_0 predicate and SraSdd constraints.
33571 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33573 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33574 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
33575 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33576 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
33577 force_reg on the memory address.
33578 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33579 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33580 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33581 atomic_mem_operand_1 predicate and Sra constraint.
33582 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33583 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33584 Use atomic_mem_operand_1 predicate.
33585 (atomic_<fetchop_name><mode>_hard): Copy to
33586 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33587 Use atomic_mem_operand_1 predicate.
33588 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33589 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33590 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
33591 insn_and_split. Use atomic_mem_operand_1 predicate.
33592 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33593 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
33594 Use atomic_mem_operand_1 predicate.
33595 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33596 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33597 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33598 in generated insn with original mem operand before emitting the insn.
33599 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33600 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33601 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33602 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33603 Use atomic_mem_operand_1 predicate and AraAdd constraints.
33604 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33605 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33606 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33607 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33608 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33609 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33610 atomic_not_fetch<mode>_soft_tcb,
33611 atomic_<fetchop_name>_fetch<mode>_soft_imask,
33612 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33613 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33614 Use atomic_mem_operand_1 predicate and SraSdd constraints.
33616 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
33618 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33619 and 3 earlyclobber operands.
33621 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33623 * common.opt (fstack-reuse): Mark as optimization.
33625 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33628 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33630 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
33632 PR tree-optimization/64326
33633 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33635 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
33637 PR gcov-profile/61889
33638 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33640 2015-02-10 Richard Biener <rguenther@suse.de>
33642 PR tree-optimization/64995
33643 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33644 value we use is final.
33645 (visit_reference_op_store): Always valueize op.
33646 (visit_use): Properly valueize vuses.
33648 2015-02-10 Richard Biener <rguenther@suse.de>
33650 PR tree-optimization/64909
33651 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33652 pass a scalar-stmt count estimate to the cost model.
33653 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33655 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
33657 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33658 enabled by default together with var-tracking.
33660 2015-02-10 Nick Clifton <nickc@redhat.com>
33662 * config/rl78/rl78.c: Remove DIV attribute code accidentally
33663 included in previous rl78 commit.
33665 2015-02-10 Richard Biener <rguenther@suse.de>
33667 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33668 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33669 return the bitpack.
33671 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33673 PR gcov-profile/61889
33674 * config.in: regenerate.
33675 * configure.in: Likewise.
33676 * configure.ac: Check for ftw.h.
33677 * gcov-tool.c: Check for ftw.h before using nftw.
33679 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33682 * ipa-visibility.c (update_visibility_by_resolution_info): Only
33683 assert when not in lto mode.
33685 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33687 * ira-color.c (setup_left_conflict_sizes_p): Simplify
33688 initialization/assignment of conflict_size.
33690 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
33693 * ipa-cp.c (gather_caller_stats): Skip thunks.
33694 (propagate_constants_topo): Skip aliases.
33696 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
33699 * config/sh/sh.c (sh_option_override): Don't change
33700 -freorder-blocks-and-partition to -freorder-blocks even when
33701 unwinding is enabled.
33702 (sh_can_follow_jump): Return false if the followee jump is
33703 a crossing jump when -freorder-blocks-and-partition is specified.
33704 * config/sh/sh.md (*jump_compact_crossing): New insn.
33706 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
33707 Kaz Kojima <kkojima@gcc.gnu.org>
33710 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33711 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33712 (sh_can_redirect_branch): Rename to ...
33713 (sh_can_follow_jump): ... this. Constify argument types.
33714 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33715 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33716 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33717 * doc/tm.texi: Regenerate.
33719 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33722 * builtins.c (expand_builtin): Call targetm.expand_builtin
33723 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33725 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33728 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33730 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33733 * ipa-icf.c (set_local): New function.
33734 (sem_function::merge): Use it.
33736 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33738 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33739 (add_type_duplicate): Fix comparison of BINFOs.
33741 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33743 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33744 on getting VOID pointer.
33746 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33749 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33752 2015-02-09 Richard Biener <rguenther@suse.de>
33754 * genmatch.c (replace_id): Copy expr_type.
33756 2015-02-09 Richard Biener <rguenther@suse.de>
33758 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33759 (streamer_write_tree_bitfields): Declare.
33760 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33761 properly unpack padding.
33762 (unpack_value_fields): Inline ...
33763 (streamer_read_tree_bitfields): ... here.
33764 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33765 and properly add padding bits.
33766 (streamer_pack_tree_bitfields): Fold into ...
33767 (streamer_write_tree_bitfields): ... this new function,
33768 exposing the bitpack object.
33769 * lto-streamer-out.c (lto_write_tree_1): Call
33770 streamer_write_tree_bitfields.
33772 2015-02-09 Richard Biener <rguenther@suse.de>
33774 PR tree-optimization/54000
33775 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33776 (struct ivopts_data): Add loop_loc member.
33777 (tree_ssa_iv_optimize_loop): Dump loop location.
33778 (create_new_ivs): Likewise, also dump number of IVs generated.
33780 2015-02-09 Martin Liska <mliska@suse.cz>
33782 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33783 just if not yet registered.
33784 (ipa_icf_generate_summary): Register callgraph hooks.
33786 2015-02-08 Andrew Pinski <apinski@cavium.com>
33788 * config/aarch64/aarch64.c (gty_dummy): Delete.
33790 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33793 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33794 (cgraph_node::local_p): Remove thunk related FIXME.
33796 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33799 * i386.c (ix86_function_regparm): Look through aliases to see if callee
33800 is local and optimized.
33801 (ix86_function_sseregparm): Likewise; also use target's SSE math
33802 settings; error out instead of silently generating wrong code
33804 (init_cumulative_args): Look through aliases.
33806 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33809 * ipa-split.c (execute_split_functions): Split if function has aliases.
33811 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33814 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33815 aliases before trying to expand it.
33816 (cgraph_node::expand_thunk): Fix formating.
33818 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
33820 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33821 (Using Assembly Language with C): Expand introduction.
33822 (Basic Asm): Copy-edit. Add more information about uses of
33824 (Extended Asm): Copy-edit. Document new escape syntax and
33826 (Global Reg Vars): Copy-edit.
33827 (Local Reg Vars): Likewise.
33829 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
33833 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33834 (DBX_CONTIN_CHAR): Define.
33836 2015-02-06 Sebastian Pop <s.pop@samsung.com>
33837 Brian Rzycki <b.rzycki@samsung.com>
33839 PR tree-optimization/64878
33840 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33841 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33842 Stop recursion at loop phi nodes after having visited a loop phi node.
33844 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33846 * toplev.c (process_options): Change flag_ipa_ra before creating
33847 optimization_{default,current}_node.
33850 * cgraphunit.c (cgraph_node::expand_thunk): If
33851 restype is not is_gimple_reg_type nor the thunk_fndecl
33852 returns aggregate_value_p, set restmp to a temporary variable
33853 instead of resdecl.
33855 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
33857 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33859 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33862 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33863 add a general secondary reload handler for SDmode, unless we have
33864 both read/write support for SDmode.
33866 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33868 PR middle-end/64937
33869 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33870 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33871 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33872 1 before, push it to abstract_vec.
33873 (dwarf2out_abstract_function): Adjust caller. Don't call
33874 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33875 DECL_ABSTRACT_P flags for all abstract_vec elts.
33877 2015-02-06 Renlin Li <renlin.li@arm.com>
33879 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33881 * tree-ssa.c (execute_update_addresses_taken): Likewise.
33883 2015-02-06 Jeff Law <law@redhat.com>
33886 * config/h8300/h8300.c (push): New argument "in_prologue".
33887 Pass "in_prologue" along to "F".
33888 (h8300_push_pop): Corresponding changes.
33889 (h8300_expand_prologue): Likewise.
33890 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
33892 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33894 PR rtl-optimization/64957
33896 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33897 IOR rather than for AND.
33899 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
33902 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33903 of shift-add and (add + shift) operations. Rename local variable.
33905 2015-02-05 Jeff Law <law@redhat.com>
33908 * config/h8300/constraints.md (U): Correctly dectect
33909 "eightbit_data" memory addresses.
33910 * config/h8300/h8300.c (eightbit_constant_address_p): Also
33911 handle (const (plus (symbol_ref (x)))) where x is declared
33912 as an 8-bit data memory address.
33913 * config/h8300/h8300.md (call, call_value): Correctly detect
33914 "funcvec" functions.
33917 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33918 24 to 28 bits for the H8/300.
33920 2015-02-06 Alan Modra <amodra@gmail.com>
33923 * config/rs6000/rs6000.c (chain_already_loaded): New function.
33924 (rs6000_call_aix): Use it.
33926 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
33928 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33931 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
33933 * config/h8300/constraints.md ("U" constraint): Use strict
33934 variant of REG_OK_FOR_BASE_P after reload has started.
33936 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
33938 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33939 define to zero if !TARGET_NEON.
33940 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33942 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33943 Trevor Saunders <tsaunders@mozilla.com>
33946 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33948 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33951 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33952 when removing varpool nodes.
33954 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33957 * varpool.c (varpool_node::remove): Fix order of variables.
33959 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33962 * ipa-inline.c (inline_small_functions): Fix ordering issue between
33963 speculation resolution and key updates.
33965 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33967 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33968 about not letting any speculative edges unupdated.
33970 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33973 * gcov-io.c (gcov_var): Export.
33975 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33977 PR middle-end/64922
33978 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33979 edges that become speculative.
33981 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33983 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33984 or DW_LANG_Fortran08.
33985 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33987 (gen_compile_unit_die): Handle "GNU Fortran2003" and
33988 "GNU Fortran2008" language strings.
33989 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33990 * langhooks.h (lang_GNU_Fortran): New prototype.
33991 * langhooks.c (lang_GNU_Fortran): New function.
33992 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33995 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33997 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33998 (RTX_OK_FOR_OLO10_P): Likewise.
34000 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34002 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34004 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34006 PR middle-end/64922
34007 * gimple.c: Include gimple-ssa.h.
34008 (maybe_remove_unused_call_args): New function.
34009 * gimple.h (maybe_remove_unused_call_args): Declare.
34010 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34011 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34012 * gimple-fold.c (gimple_fold_call): Likewise.
34014 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34016 PR rtl-optimization/64905
34017 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34018 pointer alignment if it isn't needed.
34020 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34022 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34023 cortex-a72.cortex-a53.
34024 * config/aarch64/aarch64-tune.md: Regenerate.
34025 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34027 2015-02-04 Nick Clifton <nickc@redhat.com>
34029 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34032 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34034 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34035 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34036 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34038 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34039 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34040 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34041 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34042 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34043 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34044 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34045 * tree-core.h (enum built_in_function): In between
34046 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34047 for builtins that use DEF_BUILTIN_CHKP macro.
34049 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34052 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34053 operands for tcc_comparison exprs. Fix typos.
34056 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34057 of two XORs that have an intervening AND or IOR.
34060 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34061 simplification of XOR of AND to not allocate new rtx before
34062 committing to a simplification.
34064 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34066 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34067 manual swaps in all peepholes.
34069 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34071 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34072 of manual swapping implementation.
34073 (aarch64_expand_vec_perm_const_1): Likewise.
34075 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34077 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34078 (generic_addrcost_table): Remove NAMED_PARAM.
34079 (cortexa57_addrcost_table): Likewise.
34080 (xgene1_addrcost_table): Likewise.
34081 (generic_regmove_table): Likewise.
34082 (cortexa53_regmove_table): Likewise.
34083 (xgene1_regmove_table): Likewise.
34084 (generic_vector_table): Likewise.
34085 (cortexa57_vector_table): Likewise.
34086 (xgene1_vector_table): Likewise.
34087 (generic_tunings): Likewise.
34088 (cortexa53_tunings): Likewise.
34089 (cortexa57_tunings): Likewise.
34090 (xgene1_tunings): Likewise.
34092 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34094 * config/arm/arm-cores.def: Add cortex-a72 and
34095 cortex-a72.cortex-a53.
34096 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34097 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34098 * config/arm/arm-tune.md: Regenerate.
34099 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34100 "cortex-a72.cortex-a53".
34101 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34103 2015-02-04 Nick Clifton <nickc@redhat.com>
34106 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34108 (nonimmediate_di_operand): Likewise.
34110 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34111 prefixes of known F5 using MSP430 MCUs.
34113 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34115 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34116 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34117 instead of __builtin_sqrt.
34119 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34121 * varasm.c (do_assemble_alias): Follow transparent alias
34123 (default_assemble_visibility): Follow transparent alias
34124 chain for decl name.
34126 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34128 PR middle-end/62103
34129 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34130 to compute size of referenced value in the constant case.
34132 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34134 PR rtl-optimization/64756
34135 * cse.c (invalidate_dest): New function.
34136 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34137 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34138 invalidate and do not record it.
34140 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34143 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34144 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34145 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34146 atomic_nand<mode>_soft_tcb): New insns.
34147 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34148 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34149 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34150 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34151 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34152 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34153 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34154 atomic_not<mode>_hard if operands[0] is unused.
34155 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34156 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34157 if operands[0] is unused.
34158 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34159 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34160 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34161 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34163 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34164 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34165 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34166 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34167 if operands[0] is unused.
34168 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
34169 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34170 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
34171 atomic_nand_fetchsi_hard if operands[0] is unused.
34172 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
34173 atomic_nand<mode>_hard if operands[0] is unused.
34174 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
34175 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34176 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
34177 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34178 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
34179 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34180 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34181 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34182 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
34183 atomic_not<mode>_hard if operands[0] is unused.
34184 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34185 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34187 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34188 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34189 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
34190 atomic_nand<mode>_hard if operands[0] is unused.
34191 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34192 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34194 2015-02-03 David Malcolm <dmalcolm@redhat.com>
34197 * Makefile.in (GCC_OBJS): Add gcc-main.o.
34198 * gcc-main.c: New file, containing "main" taken from gcc.c.
34199 * gcc.c (do_self_spec): Free decoded_options.
34200 (class driver): Move declaration to gcc.h.
34201 (main): Move declaration and implementation to new file
34203 (driver_get_configure_time_options): New function.
34204 * gcc.h (class driver): Move this declaration here, from
34206 (driver_get_configure_time_options): New declaration.
34208 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
34210 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34211 cross-module inlining.
34212 * cgraph.h (cgraph_node): Add flag merged.
34213 * ipa-icf.c (sem_function::merge): Maintain it.
34215 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
34217 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34218 instead of OBJECT_P.
34220 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
34223 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34224 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34225 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34226 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34228 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34231 * combine.c (reg_n_sets_max): New variable.
34232 (can_change_dest_mode, reg_nonzero_bits_for_combine,
34233 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34234 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34235 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34236 (rest_of_handle_combine): Initialize reg_n_sets_max.
34238 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
34240 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34241 if some always_inline was inlined, apply changes before inlining
34244 2015-02-02 David Malcolm <dmalcolm@redhat.com>
34247 * config/arm/arm.c (arm_option_override): Set
34248 arm_selected_arch/cpu/tune to NULL on entry.
34250 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
34251 Andrew Pinski <pinskia@gcc.gnu.org>
34252 Jakub Jelinek <jakub@gcc.gnu.org>
34255 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34256 integer typing for small model. Use IN_RANGE.
34258 2015-02-02 Richard Biener <rguenther@suse.de>
34260 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34261 * tree-vrp.c (vrp_valueize_1): Likewise.
34263 2015-02-02 Alan Modra <amodra@gmail.com>
34265 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34266 than mem for toc_restore.
34267 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34268 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34269 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34271 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
34274 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34275 explicit default options.
34277 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
34280 * ipa-utils.c (ipa_merge_profiles): Add release argument.
34281 * ipa-icf.c (sem_function::merge): Do not release body when merging.
34282 * ipa-utils.h (ipa_merge_profiles): Update prototype.
34284 2015-02-01 Jakub Jelinek <jakub@redhat.com>
34287 * cfgexpand.c (deep_ter_debug_map): New variable.
34288 (avoid_deep_ter_for_debug): New function.
34289 (expand_debug_expr): If TERed SSA_NAME is in
34290 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34291 instead of trying to expand SSA_NAME's def stmt.
34292 (expand_debug_locations): When expanding debug bind
34293 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34294 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34296 (pass_expand::execute): Call avoid_deep_ter_for_debug on
34297 all debug bind stmts. Delete deep_ter_debug_map after
34298 expand_debug_location if non-NULL and clear it.
34300 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
34303 * config/sh/sync.md (atomic_fetch_notsi_hard,
34304 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34305 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34306 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34307 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34308 atomic_not_fetch<mode>_soft_imask): New insns.
34310 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34312 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34313 (rank_for_schedule_debug): Split from ...
34314 (rank_for_schedule): ... this.
34315 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34316 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34318 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34320 * doc/md.texi (Machine Constraints): Alphabetize table by target.
34321 * doc/extend.texi (x86 Variable Attributes): Move section to
34322 correct alphabetization after renaming.
34323 (x86 Type Attributes): Likewise.
34324 (Target Builtins): Re-alphabetize menu.
34325 (x86 Built-in Functions): Move section to correct alphabetization
34327 (x86 transactional memory intrinsics): Likewise.
34328 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34329 and x86 Windows Options in table and menu.
34330 (x86 Options): Move section to correct alphabetization after
34332 (x86 Windows Options): Likewise.
34334 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34336 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34337 preferred names of the architecture and its 32- and 64-bit
34339 * doc/invoke.texi: Likewise.
34340 * doc/md.texi: Likewise.
34342 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34345 * config/i386/predicates.md (address_no_seg_operand): Reject
34346 non-CONST_INT_P operands in invalid mode.
34348 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34350 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34351 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
34352 * config/i386/predicates.md (address_no_seg_operand): Call
34353 address_operand with VOIDmode.
34354 (vsib_address_operand): Ditto.
34355 (address_mpx_no_base_operand): Ditto.
34356 (address_mpx_no_index_operand): Ditto.
34358 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34361 * lra-constraints.c (original_subreg_reg_mode): New.
34362 (simplify_operand_subreg): Try to simplify subreg of const. Use
34363 original_subreg_reg_mode for it.
34364 (swap_operands): Update original_subreg_reg_mode.
34365 (curr_insn_transform): Set up original_subreg_reg_mode.
34367 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34370 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34372 (process_alt_operands): Use it.
34373 (curr_insn_transform): Check the optional reload pseudo class is
34376 2015-01-30 Joseph Myers <joseph@codesourcery.com>
34378 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34379 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34381 * toplev.h (init_asm_output): Update comment on use of
34382 UNKNOWN_LOCATION with fatal_error.
34383 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34384 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34385 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34386 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34387 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34388 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34389 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34390 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34391 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34392 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34393 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34394 fatal_error changed to pass input_location as first argument.
34396 2015-01-30 Martin Liska <mliska@suse.cz>
34398 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34399 in #pragma GCC diagnostic guards.
34401 2015-01-30 Richard Biener <rguenther@suse.de>
34403 PR tree-optimization/64829
34404 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34405 not add a widening conversion pattern but hand off extra
34406 widenings to callers.
34407 (vect_recog_widen_mult_pattern): Handle extra widening produced
34408 by vect_handle_widen_op_by_const.
34409 (vect_recog_widen_shift_pattern): Likewise.
34410 (vect_pattern_recog_1): Remove excess vertical space in dumping.
34411 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34412 (vect_init_vector_1): Likewise.
34413 (vect_get_vec_def_for_operand): Likewise.
34414 (vect_finish_stmt_generation): Likewise.
34415 (vectorizable_load): Likewise.
34416 (vect_analyze_stmt): Likewise.
34417 (vect_is_simple_use): Likewise.
34419 2015-01-29 Jeff Law <law@redhat.com>
34421 * combine.c (try_combine): Fix typo in comment.
34423 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
34426 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34427 (rs6000_stack_info): Add assert.
34428 (rs6000_output_savres_externs): New function, split off from...
34429 (rs6000_output_function_prologue): ... here. Do not call it for
34432 2015-01-29 Jeff Law <law@redhat.com>
34435 * combine.c (try_combine): If I0 is a memory load and I3 a store
34436 to a related address, increase the "goodness" of doing a 4-insn
34437 combination with I0-I3.
34438 (make_field_assignment): Handle SUBREGs in the ior+and case.
34440 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
34442 PR tree-optimization/64746
34443 * tree-if-conv.c (mask_exists): New function.
34444 (predicate_mem_writes): Save created mask with given size for further
34446 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34447 (ifcvt_repair_bool_pattern): Collect all statements that are root
34448 of bool pattern and use iterative algorithm to remove multiple uses
34449 of predicates, display number of required iterations.
34451 2015-01-29 Richard Biener <rguenther@suse.de>
34453 PR tree-optimization/64853
34454 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34455 stmt will get simulated again.
34456 * tree-ssa-ccp.c (valueize_op_1): Likewise.
34458 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34460 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34461 return_in_pc. Remove redundant assignments.
34462 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34463 (arm_expand_epilogue): Don't compare boolean with true in if condition.
34465 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
34467 * config/i386/i386.c (ix86_mode_after): Make static.
34469 2015-01-29 Richard Biener <rguenther@suse.de>
34471 PR tree-optimization/64844
34472 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34473 dump cost model analysis.
34474 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34475 Do not register adjusted load/store costs here.
34477 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34478 Uros Bizjak <ubizjak@gmail.com>
34480 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34481 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34482 using x86_use_pseudo_pic_reg.
34483 * config/i386/i386.c (ix86_conditional_register_usage): Remove
34484 support for fixed PIC register.
34485 (ix86_use_pseudo_pic_reg): Not static any more.
34487 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34489 PR middle-end/64805
34490 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34491 to avoid error in cgraph node verification.
34493 2015-01-29 Marek Polacek <polacek@redhat.com>
34495 * doc/standards.texi: Reflect that the default for C is gnu11.
34497 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
34500 * reorg.c (switch_text_sections_between_p): New function.
34501 (relax_delay_slots): Call it when testing if the jump insn
34502 is removable. Use targetm.can_follow_jump when testing if
34503 the conditional branch can follow an unconditional jump.
34505 2015-01-27 Caroline Tice <cmtice@google.com>
34507 Committing VTV Cywin/Ming patch for Patrick Wollgast
34508 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34509 if -fvtable-verify=preinit/std is used.
34510 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34511 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34512 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34513 if -fvtable-verify=preinit/std is used.
34514 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34515 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34516 if -fvtable-verify=preinit/std is used.
34517 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34518 * config/i386/mingw32.h (LIB_SPEC): Likewise.
34519 * varasm.c (assemble_variable): Add code to properly set the comdat
34520 section and name for the .vtable_map_vars section in case the
34521 target is PE or COFF.
34523 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34526 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34527 make sane BB profile.
34528 (cgraph_node::expand_thunk): Make sane BB profile.
34529 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34530 * cgraph.h (init_lowered_empty_function): Update prototype.
34531 * config/i386/i386.c (make_resolver_func): Update call.
34532 * predict.c (gate): Disable branch prediction pass if
34533 profile is already there.
34535 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34537 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34538 * opth-gen.awk: Likewise.
34539 * common.opt: Mark flag_fp_contract_mode as Optimization.
34541 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
34543 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34544 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34546 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
34549 * config/sh/predicates.md (atomic_arith_operand,
34550 atomic_logical_operand): Remove.
34551 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34552 (atomic_arith_operand_0): New predicate.
34553 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34554 Use atomic_arith_operand_0 for input values.
34555 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34556 atomic_compare_and_swap<mode>_soft_gusa,
34557 atomic_compare_and_swap<mode>_soft_tcb,
34558 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34559 arith_reg_operand instead of register_operand.
34560 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
34561 atomic_arith_operand_0 for newval input.
34562 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34563 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34564 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34565 arith_reg_operand instead of register_operand.
34566 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34567 fetchop_predicate_1, fetchop_constraint_1_llcs,
34568 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34569 fetchop_constraint_1_imask): New code iterator attributes.
34570 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34571 register_operand. Use fetchop_predicate_1.
34572 (atomic_fetch_<fetchop_name>si_hard,
34573 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34574 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34575 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34576 and arith_reg_operand instead of register_operand. Use
34577 fetchop_predicate_1, fetchop_constraint_1_gusa.
34578 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34579 and arith_reg_operand instead of register_operand. Use
34580 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
34582 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34583 and arith_reg_operand instead of register_operand. Use
34584 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
34586 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34587 register_operand. Use atomic_logical_operand_1.
34588 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34589 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34590 arith_reg_operand instead of register_operand.
34591 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34592 Use arith_reg_dest and arith_reg_operand instead of register_operand.
34593 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
34594 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34595 register_operand. Use fetchop_predicate_1.
34596 (atomic_<fetchop_name>_fetchsi_hard,
34597 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34598 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34599 fetchop_constraint_1_llcs.
34600 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34601 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34602 fetchop_constraint_1_gusa.
34603 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34604 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34605 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
34606 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34607 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34608 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
34609 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34610 register_operand. Use atomic_logical_operand_1.
34611 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34612 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34613 arith_reg_operand instead of register_operand.
34614 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34615 arith_reg_operand instead of register_operand. Use logical_operand
34616 and K08. Adjust asm sequence to allow R0 usage.
34617 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34618 arith_reg_operand instead of register_operand. Use logical_operand
34621 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34624 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34625 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34626 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34627 only get_full_len HOST_WIDE_INTs from get_val () array rather than
34628 all bits in *val_wide.
34630 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
34632 * varpool.c (tls_model_names): Fix names.
34633 (varpool_node::dump): Dump tls- prefix for tls models.
34635 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
34636 Bernd Schmidt <bernds@codesourcery.com>
34637 Nathan Sidwell <nathan@codesourcery.com>
34639 * config/nvptx/mkoffload.c: New file.
34640 * config/nvptx/t-nvptx: Add build rules for it.
34641 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34642 (extra_programs): Add mkoffload.
34643 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34645 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34647 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
34649 PR middle-end/64809
34650 * cfgexpand.c (reorder_operands): Skip debug gimples.
34652 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
34654 PR tree-optimization/64277
34655 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34656 range info when possible to refine estimation.
34658 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34660 PR tree-optimization/64718
34661 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34662 be a 16bit unsigned integer when n->range is 16.
34663 (bswap_replace): Convert src to that type if necessary for all bswap
34664 sizes. Fix rotation right notation in nearby comment. Use bswap_type
34665 set in pass_optimize_bswap::execute ().
34667 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
34669 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34670 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34671 integer and floating point variants.
34672 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34674 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
34676 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34677 for all vector modes.
34679 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34682 * doc/sourcebuild.texi (comdat_group): Document.
34684 2015-01-28 Terry Guo <terry.guo@arm.com>
34686 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34688 2015-01-27 David Malcolm <dmalcolm@redhat.com>
34690 * toplev.c (print_version): Add param "show_global_state", and
34691 only print GGC and plugin information if it is true.
34692 (init_asm_output): Pass in "true" for the new param when calling
34694 (process_options): Likewise.
34695 (toplev::main): Likewise.
34696 * toplev.h (print_version): Add new param to decl.
34698 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34702 * tree.c (lookup_binfo_at_offset): New function.
34703 (get_binfo_at_offset): Use it.
34705 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34708 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34709 on vtable being vtable.
34711 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
34713 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34714 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34715 -mhotpatch= option.
34716 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34717 -mno-hotpatch options. Change syntax of -mhotpatch= option.
34718 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34720 (s390_hotpatch_trampoline_halfwords_max): Renamed.
34721 (s390_hotpatch_hw_max): New name.
34722 (s390_hotpatch_trampoline_halfwords): Renamed.
34723 (s390_hotpatch_hw_before_label): New name.
34724 (get_hotpatch_attribute): Removed.
34725 (s390_hotpatch_hw_after_label): New name.
34726 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34728 (s390_attribute_table): Ditto.
34729 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34730 (s390_function_num_hotpatch_hw): New name.
34731 Remove special handling of inline functions and hotpatching.
34732 Return number of nops before and after the function label.
34733 (s390_can_inline_p): Removed.
34734 (s390_asm_output_function_label): Emit a configurable number of nops
34735 after the function label.
34736 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34737 (TARGET_CAN_INLINE_P) Removed.
34738 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34740 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34741 Jiong Wang <jiong.wang@arm.com>
34743 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34745 (cb<optab><mode>1): Likewise.
34746 * config/aarch64/iterators.md (bcond): New define_code_attr.
34748 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34750 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34753 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34755 * config/s390/s390.c (s390_register_move_cost): Increase costs for
34758 2015-01-27 Richard Biener <rguenther@suse.de>
34760 * tree-vrp.c (update_value_range): Intersect the range with
34761 old recorded SSA name range information.
34763 2015-01-27 Nick Clifton <nickc@redhat.com>
34765 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34766 BC, DE and HL registers directly, not via AX.
34767 When decrementing the stack pointer by a large amount, transfer SP
34768 into AX and perform the subtraction there.
34769 (rl78_expand_epilogue): Perform the inverse of the above
34772 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34774 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34776 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34777 Yury Gribov <y.gribov@samsung.com>
34780 * ubsan.c (ubsan_source_location): Refactor code.
34781 (ubsan_type_descriptor): Update type size. Refactor code.
34783 2015-01-27 Richard Biener <rguenther@suse.de>
34785 PR tree-optimization/56273
34786 PR tree-optimization/59124
34787 PR tree-optimization/64277
34788 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34789 from the first VRP pass.
34791 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34794 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34795 handle the first argument in the same loop as all the other arguments.
34797 PR rtl-optimization/61058
34798 * jump.c (cleanup_barriers): Update basic block boundaries
34799 if BLOCK_FOR_INSN is non-NULL on PREV.
34801 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
34803 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34804 bounds narrowing, already instrumented calls and calls to
34805 not instrumentable functions.
34807 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34809 PR tree-optimization/64807
34810 * wide-int.cc (wi::divmod_internal): Clear
34811 b_dividend[dividend_blocks_needed].
34813 2015-01-26 DJ Delorie <dj@redhat.com>
34815 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34816 volatile memory references.
34818 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
34821 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34823 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34824 shifts if it already fits into K08.
34826 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34829 * ipa-inline.c (inline_small_functions): Print "unknown" even
34830 if edge->call_stmt is non-NULL, but has builtins or unknown
34833 PR middle-end/64421
34834 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34835 with asterisk, skip the first character.
34837 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34840 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34843 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
34846 * config/i386/i386.md (*movdi_internal): Also check operand 0
34847 to determine TYPE_LEA operand.
34848 (*movsi_internal): Ditto.
34850 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34852 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34853 OPTION_MASK_QUAD_MEMORY_ATOMIC.
34855 2015-01-26 Renlin Li <renlin.li@arm.com>
34857 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34859 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34862 2015-01-26 Richard Biener <rguenther@suse.de>
34864 PR middle-end/64764
34865 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34866 combining two BIT_AND_EXPR predicates.
34868 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34871 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34873 2015-01-26 Terry Guo <terry.guo@arm.com>
34875 * config/arm/arm.c (arm_file_start): Update the assignment of
34876 Tag_ABI_HardFP_use.
34878 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
34880 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34882 config/arm/arm.md: Include the new Cortex-A57 model.
34883 (generic_sched): Don't use generic_sched when tuning for
34886 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
34887 Uros Bizjak <ubizjak@gmail.com>
34889 * config/i386/i386.c (get_builtin_code_for_version): Add
34890 support for BMI and BMI2 multiversion functions.
34892 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34894 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34895 (extract_bit_field): Likewise.
34896 (extract_low_bits): Likewise.
34897 (expand_mult): Likewise.
34898 (expand_mult_highpart_adjust): Likewise.
34900 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
34902 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34903 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34904 * config/i386/i386.c (processor_model): Add
34905 M_INTEL_COREI7_BROADWELL.
34906 (arch_names_table): Add "broadwell".
34908 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
34917 * config/sh/sh-protos.h
34918 (sh_extending_set_of_reg::can_use_as_unextended_reg,
34919 sh_extending_set_of_reg::use_as_unextended_reg,
34920 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34921 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34922 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34923 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34924 (sh_treg_insns): New class.
34925 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34926 (scope_counter): New class.
34927 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34928 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34929 sh_extending_set_of_reg::can_use_as_unextended_reg,
34930 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34931 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34932 sh_split_treg_set_expr): New functions.
34933 (addsubcosts): Handle treg_set_expr.
34934 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34935 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34936 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34937 (sh_insn_operands_modified_between_p): Make non-static.
34938 * config/sh/predicates.md (zero_extend_movu_operand): Allow
34939 simple_mem_operand in addition to displacement_mem_operand.
34940 (zero_extend_operand): Don't allow zero_extend_movu_operand.
34941 (treg_set_expr, treg_set_expr_not_const01,
34942 arith_reg_or_treg_set_expr): New predicates.
34943 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34944 arith_or_int_operand instead of logical_operand. Convert to
34945 insn_and_split. Try to optimize constant operand in splitter.
34946 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
34947 (*tstqi_t_zero): Delete.
34948 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34949 (tstsi_t_and_not): Delete.
34950 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34951 Convert to insn_and_split.
34952 (unnamed split, tstsi_t_zero_extract_xor,
34953 tstsi_t_zero_extract_subreg_xor_little,
34954 tstsi_t_zero_extract_subreg_xor_big): Delete.
34955 (*tstsi_t_shift_mask): New insn_and_split.
34956 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34957 to recombine with surrounding insns when splitting.
34958 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34959 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34960 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34961 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34962 (*cbranch_div0s: Delete.
34963 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34964 Try to recombine with surrounding insns when splitting. Add operand
34966 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34967 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34968 *addc_r_r_msb, *addc_2r_msb): Delete.
34969 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
34971 (*addc_negreg_t): New insn_and_split.
34972 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34973 Try to recombine with surrounding insns when splitting.
34974 Add operand order variants.
34975 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34976 insn_and_split patterns.
34977 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
34978 surrounding insns when splitting.
34979 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34980 (*rotcl): Likewise. Add zero_extract variant.
34981 (*ashrsi2_31): New insn_and_split.
34982 (*negc): Convert to insn_and_split. Use treg_set_expr.
34983 (*zero_extend<mode>si2_disp_mem): Update comment.
34984 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34986 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
34987 with surrounding insns when splitting.
34988 (any_treg_expr_to_reg): New insn_and_split.
34989 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34990 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34991 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34992 *zero_extract_2): New single bit zero extract patterns.
34993 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34994 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34995 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34996 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34998 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34999 register_operand for set source.
35001 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35003 * i386.opt (prefetch_sse): New targetsave.
35004 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35005 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35006 ix86_cost/ix86_tune_cost.
35008 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35010 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35011 Support the JIT by using 0 as the language type.
35013 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35016 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35017 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35018 (mark_regno_live, process_bb_lives): Pass new parameter value to
35019 make_hard_regno_born.
35021 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35023 PR rtl-optimization/63637
35024 PR rtl-optimization/60663
35025 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35026 if elt->cost is MAX_COST for ASM_OPERANDS.
35027 (find_sets_in_insn): Fix up comment typo.
35028 (cse_insn): Don't set src_volatile for all non-volatile
35029 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35030 or with "memory" clobber. Set elt->cost to MAX_COST
35031 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35032 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35034 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35036 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35039 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35041 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35042 libgcc/config/i386/elf-lib.h.
35044 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35047 * gcc.c (print_configuration): Don't print a blank line at the end
35049 (run_attempt): ... but here unstead.
35051 PR middle-end/64734
35052 * omp-low.c (scan_sharing_clauses): Don't ignore
35053 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35054 on target data/update constructs.
35056 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35059 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35060 (DEBUG_RELOAD): Removed define.
35061 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35062 (m32c_function_arg): Added a type cast.
35063 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35064 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35065 * config/m32c/bitops.md (andqi3_16): Likewise.
35066 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35067 (push_a01_l): Likewise.
35069 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35072 * main.c (main): Construct toplev instances with init_signals=true.
35073 * toplev.c (general_init): Add param "init_signals", and use it to
35074 conditionalize the calls to signal and host_hooks.extra_signals.
35075 (toplev::toplev): Add param "init_signals".
35076 (toplev::main): When invoking general_init, pass m_init_signals
35077 to control whether signal-handlers are installed.
35078 * toplev.h (toplev::toplev): Add param "init_signals".
35079 (toplev::m_init_signals): New field.
35081 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35084 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35085 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35086 latter may be affected by the former (e.g. on i686).
35088 2015-01-23 Martin Liska <mliska@suse.cz>
35090 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35091 false positive during profiledbootstrap.
35093 2015-01-23 Tom de Vries <tom@codesourcery.com>
35096 * lto-opts.c (lto_write_options): Output non-explicit conservative
35098 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35099 (append_compiler_options): Pass -fopenacc through.
35101 2015-01-23 Tom de Vries <tom@codesourcery.com>
35104 * lto-opts.c (lto_write_options): Output non-explicit conservative
35106 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35107 (append_compiler_options): Pass -fopenmp through.
35109 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35112 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35115 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35116 * diagnostic.def (DK_ICE_NOBT): New kind.
35117 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35118 like DK_ICE, but never print backtrace.
35119 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35120 (internal_error_no_backtrace): New function.
35121 * gcc.c (execute): Use internal_error_no_backtrace instead of
35124 2015-01-22 Jeff Law <law@redhat.com>
35127 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35128 improve code density for small immediate to memory case.
35129 (insv): Better handle bitfield assignments when the field is
35130 being set to all ones.
35131 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35134 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35135 Jakub Jelinek <jakub@redhat.com>
35137 PR middle-end/64729
35138 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35139 for !TARGET_LIBC_PROVIDES_SSP version and
35140 -fstack-protector-{all,strong,explicit} otherwise.
35141 * config/freebsd.h (LINK_SSP_SPEC): Handle
35142 -fstack-protector-{strong,explicit}.
35144 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35145 H.J. Lu <hongjiu.lu@intel.com>
35148 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35151 2015-01-22 Wei Mi <wmi@google.com>
35153 PR rtl-optimization/64557
35154 * dse.c (record_store): Call get_addr for mem_addr.
35155 (check_mem_read_rtx): Likewise.
35157 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35159 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35161 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35163 * toplev.c (init_local_tick): Process the failure when read
35164 fails for random_seed.
35166 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35167 'pretty_name' to avoid memory overflow.
35169 2015-01-22 Richard Biener <rguenther@suse.de>
35171 PR middle-end/64728
35172 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35173 abnormal coalescing on undefined SSA names.
35175 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
35179 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35181 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35183 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
35185 PR middle-end/63325
35186 * fold-const.c (fold_checksum_tree): Don't include value of
35187 expr->decl_with_vis.symtab_node in the checksum.
35189 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35191 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35193 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
35196 * gcc.c (insert_comments): New function.
35197 (try_generate_repro): Call it.
35198 (append_text): Removed.
35200 2015-01-22 Richard Biener <rguenther@suse.de>
35202 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35203 with IL incompatible options. Properly honor user optimize
35206 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
35208 PR rtl-optimization/64682
35209 * combine.c (distribute_notes): When moving a death note for
35210 a register that is set in the new I2, make sure to put it
35211 before that new I2.
35213 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
35215 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35216 not TARGET_DEFAULT.
35218 2015-01-21 Jakub Jelinek <jakub@redhat.com>
35221 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35222 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35223 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35226 * doc/invoke.texi (-fsanitize=vptr): Document.
35228 PR rtl-optimization/62078
35229 * dse.c: Include cfgcleanup.h.
35230 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35231 anything call purge_all_dead_edges and cleanup_cfg at the end
35234 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
35236 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35239 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35241 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35244 2015-01-21 David Sherwood <david.sherwood@arm.com>
35245 Tejas Belagod <Tejas.Belagod@arm.com>
35247 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35248 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35249 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35252 2015-01-21 David Sherwood <david.sherwood@arm.com>
35253 Tejas Belagod <Tejas.Belagod@arm.com>
35255 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35256 (aarch64_reverse_mask): New decls.
35257 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35258 (insn_count): New mode_attr.
35259 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35260 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35261 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35262 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35263 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35264 (aarch64_simd_st4): New patterns.
35265 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35266 (aarch64_reverse_mask): New functions.
35268 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35270 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35272 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35273 addressing modes for BE.
35274 (aarch64_print_operand): Add 'R' specifier.
35275 (aarch64_simd_disambiguate_copy): Delete.
35276 (aarch64_simd_emit_reg_reg_move): New function.
35277 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35278 in define_splits for structural moves.
35279 (mov<mode>): Use less restrictive predicates.
35280 (*aarch64_mov<mode>): Simplify and only allow for LE.
35281 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35283 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35285 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35287 2015-01-21 Richard Henderson <rth@redhat.com>
35290 * ccmp.c (used_in_cond_stmt_p): Remove.
35291 (expand_ccmp_expr): Don't use it.
35293 2015-01-21 Nick Clifton <nickc@redhat.com>
35295 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35298 2015-01-21 Richard Biener <rguenther@suse.de>
35300 PR middle-end/64313
35301 * tree-core.h (builtin_info, builtin_info_type): Turn from
35302 an object with two arrays into an array of an object with
35303 decl and two flags, implicit_p and declared_p.
35304 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35305 set_builtin_decl, set_builtin_decl_implicit_p,
35306 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35307 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35308 * builtins.c (builtin_info): Adjust.
35309 * gimplify.c (gimplify_addr_expr): References to builtins
35310 that have been declared by the user makes them eligible for
35311 use by the compiler. Call set_builtin_decl_implicit_p on them.
35313 2015-01-20 Jeff Law <law@redhat.com>
35316 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35317 allow pc-relative addresses in operand predicates or constraints.
35319 2015-01-21 Bin Cheng <bin.cheng@arm.com>
35321 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35322 neon on aarch32 processors for stringops.
35324 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35327 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35329 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35332 * ipa-inline.c: Include lto-streamer.h
35333 (report_inline_failed_reason): Output source file differences and
35334 flags on optimization/target node mismatch.
35335 (can_inline_edge_p): Consider caller to be the outer inline function;
35336 be less restrictive about matching opimize and optimize_size attributes.
35337 (inline_account_function_p): Break out from ...
35338 (inline_small_functions): ... here.
35339 * ipa-inline-transform.c (clone_inlined_nodes): Use
35340 inline_account_function_p.
35341 (inline_call): Use optimize attribution; use inline_account_function_p.
35342 (inline_transform): Use opt_for_fn.
35343 * ipa-inline.h (inline_account_function_p): Declare.
35345 2015-01-20 Jakub Jelinek <jakub@redhat.com>
35348 * dwarf2out.c (decl_piece_node): Don't put bitsize into
35349 mode if bitsize <= 0.
35350 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35351 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35352 sizes and positions.
35354 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
35356 * config/nios2/nios2.c (nios2_asm_file_end): Implement
35357 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35359 (TARGET_ASM_FILE_END): Define.
35361 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35363 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35364 (struct tune_params): Use the enum.
35365 * arm.c (arm_*_tune): Update.
35366 (arm_option_override): Update.
35368 2015-01-20 Richard Biener <rguenther@suse.de>
35371 * ipa-reference.c (add_static_var): Inline ...
35372 (analyze_function): ... here after splitting out from ...
35373 (is_proper_for_analysis): ... this.
35375 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
35378 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35379 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35380 replace the conditional with it's true branch.
35381 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35382 (arm_lra_p): Remove.
35384 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
35386 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35388 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35390 * config/tilegx/mul-tables.c: Move symtab.h include after
35391 coretypes.h include.
35392 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35393 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35394 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35395 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35396 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35398 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
35402 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35404 PR rtl-optimization/64081
35405 * loop-iv.c (def_pred_latch_p): New function.
35406 (latch_dominating_def): Allow specific cases with non-single
35408 (iv_get_reaching_def): Likewise.
35409 (check_complex_exit_p): New function.
35410 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35411 with exits not executing on any iteration.
35413 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35416 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35417 to set branch cost.
35419 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35422 * i386.c (gate): Check flag_expensive_optimizations and
35424 (ix86_option_override_internal): Drop optimize_size condition
35425 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35426 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35427 MASK_PREFER_AVX128.
35428 (ix86_avx256_split_vector_move_misalign,
35429 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35430 * sse.md (all uses of TARGET_PREFER_AVX128): Add
35431 optimize_insn_for_speed_p check.
35433 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
35435 * config/mips/mips.h (FP_ASM_SPEC): New define.
35436 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35439 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
35442 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35443 nullptr for insn when reaching the first insn.
35444 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35445 (sh_insn_operands_modified_between_p): Add nullptr check.
35446 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35447 sign extending mem load if the insn contains any UNSPEC or
35450 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35452 * params.def (inline-unit-growth): Drop to 15%.
35453 * invoke.texi (inline-unit-growth): Document change.
35455 2015-01-19 Martin Liska <mliska@suse.cz>
35458 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35459 function for second argument of OBJ_TYPE_REF.
35461 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35464 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35465 whether function is an alias.
35467 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35469 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35472 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
35474 PR rtl-optimization/64671
35475 * lra-remat.c (operand_to_remat): Don't consider jump and call
35478 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
35481 * config/rs6000/default64.h: Include rs6000-cpus.def.
35482 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35483 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35484 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35486 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35488 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35489 pseudo-op to specify assembler dialect.
35491 2015-01-19 Martin Liska <mliska@suse.cz>
35494 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35495 Handle safe potentially removed nodes during filtering.
35497 2015-01-19 Martin Liska <mliska@suse.cz>
35499 * doc/extend.texi (no_icf): Add new attribute description.
35500 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35501 where the pass attempts to merge a function with no_icf attribute.
35503 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35506 * doc/md.texi (ARM Options): Document register constraints.
35508 2015-01-19 Jiong Wang <jiong.wang@arm.com>
35509 Andrew Pinski <apinski@cavium.com>
35512 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35513 (ashl<mode>3): Don't expand if operands[2] is not constant.
35515 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35518 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35519 Match xor-and-xor RTL pattern.
35521 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35523 PR rtl-optimization/64081
35524 * loop-iv.c (def_pred_latch_p): New function.
35525 (latch_dominating_def): Allow specific cases with non-single
35527 (iv_get_reaching_def): Likewise.
35528 (check_complex_exit_p): New function.
35529 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35530 with exits not executing on any iteration.
35532 2015-01-19 Jakub Jelinek <jakub@redhat.com>
35534 * common.opt (fgraphite): Fix a typo.
35536 2015-01-19 Felix Yang <felix.yang@huawei.com>
35538 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35540 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35541 uminp, smax_nanp, smin_nanp): New builtins.
35542 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35543 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35544 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35545 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35546 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35547 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35548 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35549 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35550 vpminnms_f32): Rewrite using builtin functions.
35552 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
35555 * omp-low.c (offload_symbol_decl): Remove variable.
35556 (get_offload_symbol_decl): Remove function.
35557 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35558 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35559 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35560 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35561 BUILT_IN_GOACC_UPDATE don't pass it at all.
35563 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35565 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35568 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35570 * ipa-chkp.c (chkp_produce_thunks): Add early param
35571 to split thunks production into two passes. Keep
35572 'always_inline' function bodies after the first pass.
35573 (pass_data_ipa_chkp_early_produce_thunks): New.
35574 (pass_ipa_chkp_early_produce_thunks): New.
35575 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35576 chkp_produce_thunks signature.
35577 (make_pass_ipa_chkp_early_produce_thunks): New.
35578 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35579 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35580 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35582 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35584 * cgraph.c (cgraph_node::dump): Dump profile flags.
35586 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
35589 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35590 reg appear first in the parallel.
35592 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35594 * ipa-reference.c (set_reference_optimization_summary,
35595 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35597 (ignore_module_statics): New static var.
35598 (propagate_bits): If ipa-reference is disabled, do not look into local
35600 (analyze_function): Disable analysis when ipa_reference is disabled.
35601 (generate_summary): Do not dump when reference is disabled;
35602 collect vars accessed from functions with ipa-reference disabled.
35603 (get_read_write_all_from_node): When ipa-reference is disabled, use the
35605 (gate): Enable for LTO.
35606 (ignore_edge_p): New function.
35607 (propagate): Skip functions w/o ipa-reference analysis.
35608 * optc-save-gen.awk: Handle optimize_debug correctly.
35609 * opth-gen.awk: Likewise.
35610 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35611 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35612 fira-share-save-slots, fira-share-spill-slots,
35613 fmodulo-sched-allow-regmoves, fpartial-inlining,
35614 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35615 ftracer, ftree-parallelize-loops, fassociative-math,
35616 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35618 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35619 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35621 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35624 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35627 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35629 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35631 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
35633 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35634 Remove duplicate option listings.
35636 2015-01-18 Felix Yang <felix.yang@huawei.com>
35638 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35639 (autofdo_source_profile::get_callsite_total_count,
35640 function_instance::get_function_instance_by_decl,
35641 string_table::get_index, string_table::get_index_by_decl,
35642 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35643 Fix comment typos. Reformatting and minor code rearrangement.
35645 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35647 * config/rs6000/rs6000.md (probe_stack): Delete.
35648 (probe_stack_address): New.
35650 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35652 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35653 to test for 32-bit ABIs, not !TARGET_POWERPC64.
35655 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35657 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35658 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
35659 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
35661 (rs6000_libcall_value): Use the new function.
35663 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
35665 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35667 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
35669 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35670 implement a more precise life analysis for it during backward scan.
35672 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
35674 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35676 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
35678 PR rtl-optimization/52773
35679 * calls.c (emit_library_call_value): When pushing arguments use
35680 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35681 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
35682 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35684 2015-01-17 Jeff Law <law@redhat.com>
35686 PR rtl-optimization/32790
35687 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35688 not ZERO_EXTEND in SET_DESTs.
35690 2015-01-17 Alan Modra <amodra@gmail.com>
35692 * cprop.c (do_local_cprop): Revert last change.
35694 2015-01-16 DJ Delorie <dj@redhat.com>
35695 Nick Clifton <nickc@redhat.com>
35697 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35698 (addhi3_real): Likewise. Fix [HL+0] syntax.
35699 (subqi3_real): Likewise.
35700 (subhi3_real): Likewise.
35701 (cbranchqi4_real): Likewise. Allow saddr,#imm.
35702 (cbranchhi4_real): Likewise.
35703 (cbranchhi4_real_inverted): Likewise.
35704 (cbranchsi4_real_lt): Likewise.
35705 (cbranchsi4_real_ge): Likewise.
35706 (cbranchsi4_real_ge): Likewise.
35707 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35708 (sub<mode>3_virt): Likewise.
35709 (cbranchqi4_virt): Likewise.
35710 (cbranchhi4_virt): Likewise.
35711 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35712 always use '[reg+imm]' even when imm is zero.
35713 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35714 (rl78_general_operand): New.
35715 (rl78_nonimmediate_operand): New.
35716 (rl78_nonfar_operand): Use them.
35717 (rl78_nonfar_nonimm_operand): Likewise.
35718 (rl78_stack_based_mem): Fix.
35719 * config/rl78/constraints.md (Ibqi): New.
35724 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35725 (iorqi3): Likewise.
35726 (xorqi3): Likewise.
35727 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35729 * config/rl78/constrains (Qs8): New constraint.
35730 * config/rl78/rl78.c (rl78_flags_already_set): New function.
35731 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35732 * config/rl78/rl78-real.md (update_Z): New attribute.
35733 Update patterns to set it.
35734 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35735 shorter compare and branch sequence can be used.
35736 (cbranchhi4_real): Likewise.
35737 (cbranchhi4_real_inverted): Likewise.
35739 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35740 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35742 * config/rl78/rl78.c (rl78_get_name_encoding): New.
35743 (rl78_option_override): Allow -mes0 only if C.
35744 (characterize_address): Support subregs of symbol_refs.
35745 (rl78_addr_space_address_mode): Move. Add __near.
35746 (rl78_far_p): Likewise.
35747 (rl78_addr_space_pointer_mode): Likewise.
35748 (rl78_as_legitimate_address): Likewise.
35749 (rl78_addr_space_subset_p): Likewise.
35750 (rl78_addr_space_convert): Likewise.
35751 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35752 symbols with -mes0.
35753 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
35755 (rl78_alloc_physical_registers_op1): Change logic to prefer
35756 symbol[BC] addressing.
35757 (frodata_section): New.
35758 (rl78_asm_init_sections): Initialize it.
35759 (rl78_select_section): Put __far readonly symbols in .frodata.
35760 (rl78_make_type_far): New.
35761 (rl78_insert_attributes): Force all readonly symbols to be
35763 (rl78_asm_out_integer): New.
35764 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35765 * config/rl78/rl78.opt (-mes0): New.
35767 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35768 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35769 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35770 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35771 (rl78_saddr_p): New.
35772 (rl78_output_aligned_common): New.
35773 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35774 (rl78_handle_saddr_attribute): New.
35775 (rl78_handle_naked_attribute): New.
35776 (rl78_attribute_table): Add saddr.
35777 (rl78_print_operand_1): Don't print '!' on saddr operands.
35778 (rl78_print_operand_1): Strip encodings.
35780 (rl78_strip_name_encoding): New.
35781 (rl78_attrlist_to_encoding): New.
35782 (rl78_encode_section_info): New.
35783 (rl78_asm_init_sections): New.
35784 (rl78_select_section): New.
35785 (rl78_output_labelref): New.
35786 (rl78_output_aligned_common): New.
35787 (rl78_asm_out_integer): New.
35788 (rl78_asm_ctor_dtor): New.
35789 (rl78_asm_constructor): New.
35790 (rl78_asm_destructor): New.
35792 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35793 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35794 (transcode_memory_rtx): Update.
35795 (rl78_expand_epilogue): Use A_REG instead of 0.
35797 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35799 * config/arm/arm-protos.h (struct tune_params): New field
35800 sched_autopref_queue_depth.
35801 * config/arm/arm.c (sched-int.h): Include header.
35802 (arm_first_cycle_multipass_dfa_lookahead_guard,)
35803 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35804 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35805 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35806 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35807 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35808 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35809 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35810 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
35811 * config/arm/t-arm (arm.o): Update.
35812 * haifa-sched.c (update_insn_after_change): Update.
35813 (rank_for_schedule): Use auto-prefetcher model, if requested.
35814 (autopref_multipass_init): New static function.
35815 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35816 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35817 variable for debug dumps.
35818 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35819 (autopref_multipass_dfa_lookahead_guard): New global function that
35820 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35821 (init_h_i_d): Update.
35822 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35823 * sched-int.h (enum autopref_multipass_data_status): New const enum.
35824 (autopref_multipass_data_): Structure for auto-prefetcher data.
35825 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35826 (struct _haifa_insn_data:autopref_multipass_data): New field.
35827 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35828 (autopref_multipass_dfa_lookahead_guard): Declare.
35830 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35832 * rtlanal.c (get_base_term): Handle SCRATCH.
35834 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35836 * config/aarch64/aarch64.c
35837 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35838 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35840 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35841 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35843 2015-01-17 Alan Modra <amodra@gmail.com>
35845 * cprop.c (do_local_cprop): Disallow replacement of fixed
35848 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35851 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35854 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
35856 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35857 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35859 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35861 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35862 * config/arm/thumb1.md: ... Here.
35864 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35866 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35867 TImode for TARGET_32BIT.
35869 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35871 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35872 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35874 (rs6000_abi_word_mode): New function.
35876 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35878 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35879 instead of UNITS_PER_WORD to describe the size of stack slots.
35881 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35883 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35884 as rs6000_promote_function_mode. Move comment to there.
35885 (rs6000_promote_function_mode): New function.
35887 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35889 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35890 -mpowerpc64 is active.
35892 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35894 PR middle-end/64353
35895 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35898 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35900 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35901 introduced in revision 219724.
35903 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35904 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35907 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35908 destination is not a GP reg.
35909 (*movdi_aarch64): Likewise.
35911 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
35914 * config/rs6000/default64.h: Revert ISA change.
35916 2015-01-16 Richard Biener <rguenther@suse.de>
35918 PR middle-end/64614
35919 * tree-ssa-uninit.c: Include tree-cfg.h.
35920 (MAX_SWITCH_CASES): New define.
35921 (convert_control_dep_chain_into_preds): Handle switch statements.
35922 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35923 (normalize_one_pred_1): Do not split bit-manipulations.
35926 2015-01-16 Richard Biener <rguenther@suse.de>
35928 PR tree-optimization/64568
35929 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35930 complex load rewriting for TARGET_MEM_REFs.
35932 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
35934 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35936 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
35939 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35941 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35942 (aarch64_lra_p): Remove.
35944 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35947 * ipa-chkp.h (chkp_instrumentable_p): New.
35948 * ipa-chkp.c: Include tree-inline.h.
35949 (chkp_instrumentable_p): New.
35950 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35951 Fix processing of not instrumentable functions.
35952 (chkp_versioning): Use chkp_instrumentable_p. Warn about
35953 not instrumentable functions.
35954 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35955 chkp_instrumentable_p.
35956 * tree-inline.h (copy_forbidden): New.
35957 * tree-inline.c (copy_forbidden): Not static anymore.
35959 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35961 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35964 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35966 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35967 type OP_OUT to OP_INOUT.
35969 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35971 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35972 (high x) y) to y if x and y have the same base.
35974 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35976 * config/arm/cortex-a57.md: New.
35977 * config/aarch64/aarch64.md: Include it.
35978 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35979 * config/aarch64/aarch64-tune.md: Regenerate.
35981 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
35984 * ccmp.c (expand_ccmp_next): New function.
35985 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35986 and compare insn sequence.
35987 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35988 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35989 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35990 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35991 (*ccmp_ior): Changed to ccmp_ior<mode>.
35992 (cmp<mode>): New pattern.
35993 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35995 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35997 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
35999 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36000 _mm256_bsrli_epi128): New.
36001 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36003 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36005 * expmed.c (store_bit_field_using_insv): Improve warning message.
36006 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36008 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36010 PR rtl-optimization/64011
36011 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36012 there is partial overflow.
36014 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36016 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36018 (nds32_expand_epilogue_v3pop): Likewise.
36019 * config/nds32/nds32.md (sibcall): Define this for sibling call
36021 (sibcall_register): Likewise.
36022 (sibcall_immediate): Likewise.
36023 (sibcall_value): Likewise.
36024 (sibcall_value_register): Likewise.
36025 (sibcall_value_immediate): Likewise.
36026 (sibcall_epilogue): Likewise.
36027 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36028 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36029 (nds32_expand_epilogue_v3pop): Likewise.
36031 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36033 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36034 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36035 (return_internal): New.
36036 (return): Define this named pattern.
36037 (simple_return): Define this named pattern.
36038 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36039 pattern instead of unspec_volatile_func_return.
36040 (nds32_expand_epilogue_v3pop): Likewise.
36041 (nds32_can_use_return_insn): New function.
36043 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36045 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36046 * config/nds32/nds32.md (pop25return): New.
36047 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36048 pop25return pattern.
36050 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36052 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36053 -mforbid-fp-as-gp, and -mex9 options.
36055 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36057 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36058 remove -mgp-direct option.
36060 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36062 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36063 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36065 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36067 * ipa-inline.c (inline_small_functions): Work around hints
36070 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36073 * doc/invoke.texi (Option Summary): Document new Nios II
36075 (Nios II Options): Likewise.
36076 * config/nios2/nios2.opt: Add -mgpopt= option support.
36077 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36078 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36079 * config/nios2/nios2.c (nios2_option_override): Adjust
36080 -mgpopt defaulting.
36081 (nios2_in_small_data_p): Return true for explicit small data
36082 sections even with -G0.
36083 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36086 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36089 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36091 (inline_call): Fix removal of aliases.
36093 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36095 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36096 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36097 * opts.c (common_handle_option): Add -fsanitize=vptr.
36098 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36099 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36100 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36101 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36102 (ubsan_expand_vptr_ifn): New prototype.
36103 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36104 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36105 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36106 expand_LOOP_VECTORIZED): Make argument nameless, remove
36108 (expand_UBSAN_VPTR): New function.
36109 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36111 (UBSAN_VPTR): New internal function.
36112 * sanopt.c (tree_map_traits): Renamed to ...
36113 (sanopt_tree_map_traits): ... this.
36114 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36115 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36116 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36117 (maybe_optimize_ubsan_vptr_ifn): New function.
36118 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36119 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36121 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36122 internal calls like pure functions for aliasing, even when they
36123 have other side-effects that prevent making them ECF_PURE.
36124 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36125 (ubsan_expand_vptr_ifn): New function.
36127 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36129 PR rtl-optimization/64110
36130 * stmt.c (parse_output_constraint): Process '^' and '$'.
36131 (parse_input_constraint): Ditto.
36132 * lra-constraints.c (process_alt_operands): Process the new
36134 * ira-costs.c (record_reg_classes): Process the new constraint
36136 * genoutput.c (indep_constraints): Add '^' and '$'.
36137 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36138 * doc/md.texi: Add description of the new constraints.
36140 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36141 Bernd Schmidt <bernds@codesourcery.com>
36142 Cesar Philippidis <cesar@codesourcery.com>
36143 James Norris <jnorris@codesourcery.com>
36144 Tom de Vries <tom@codesourcery.com>
36145 Ilmir Usmanov <i.usmanov@samsung.com>
36146 Dmitry Bocharnikov <dmitry.b@samsung.com>
36147 Evgeny Gavrin <e.gavrin@samsung.com>
36148 Jakub Jelinek <jakub@redhat.com>
36150 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36151 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36152 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36153 New function types.
36154 * builtins.c: Include "gomp-constants.h".
36155 (expand_builtin_acc_on_device): New function.
36156 (expand_builtin, is_inexpensive_builtin): Handle
36157 BUILT_IN_ACC_ON_DEVICE.
36158 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36160 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36162 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36163 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36164 i386/intelmic-offload.h.
36165 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36166 to libgomp and its dependencies.
36167 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36168 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36169 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36170 * config/ia64/hpux.h (LIB_SPEC): Likewise.
36171 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36172 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36173 * doc/generic.texi: Update for OpenACC changes.
36174 * doc/gimple.texi: Likewise.
36175 * doc/invoke.texi: Likewise.
36176 * doc/sourcebuild.texi: Likewise.
36177 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36178 GF_OMP_FOR_KIND_OACC_LOOP.
36179 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36180 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36181 GF_OMP_TARGET_KIND_OACC_UPDATE,
36182 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36184 * gimple.c: Update comments for OpenACC changes.
36185 * gimple.def: Likewise.
36186 * gimple.h: Likewise.
36187 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36188 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36189 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36190 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36191 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36193 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36194 * gimplify.c: Include "gomp-constants.h".
36195 Update comments for OpenACC changes.
36196 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36197 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36198 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36199 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36200 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36201 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36202 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36203 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36204 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36206 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36207 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36208 OMP_CLAUSE_SET_MAP_KIND.
36209 (gimplify_oacc_cache): New function.
36210 (gimplify_omp_for): Handle OACC_LOOP.
36211 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36213 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36214 OACC_EXIT_DATA, OACC_UPDATE.
36215 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36216 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36217 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36218 (gimplify_body): Consider flag_openacc next to flag_openmp.
36219 * lto-streamer-out.c: Include "gomp-constants.h".
36220 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36221 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36222 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36223 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36224 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36225 (BUILT_IN_ACC_ON_DEVICE): New builtins.
36226 * omp-low.c: Include "gomp-constants.h".
36227 Update comments for OpenACC changes.
36228 (struct omp_context): Add reduction_map, gwv_below, gwv_this
36230 (extract_omp_for_data, use_pointer_for_field, install_var_field)
36231 (new_omp_context, delete_omp_context, scan_sharing_clauses)
36232 (create_omp_child_function, scan_omp_for, scan_omp_target)
36233 (check_omp_nesting_restrictions, lower_reduction_clauses)
36234 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36235 Update for OpenACC changes.
36236 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36237 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36238 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36239 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36240 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36241 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
36243 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36244 Handle GF_OMP_FOR_KIND_OACC_LOOP.
36245 (expand_omp_target, lower_omp_target): Handle
36246 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36247 GF_OMP_TARGET_KIND_OACC_UPDATE,
36248 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36249 GF_OMP_TARGET_KIND_OACC_DATA.
36250 (pass_expand_omp::execute, execute_lower_omp)
36251 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36253 (offload_symbol_decl): New variable.
36254 (oacc_get_reduction_array_id, oacc_max_threads)
36255 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36256 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36257 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36258 (oacc_gimple_assign, oacc_initialize_reduction_data)
36259 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36261 (is_targetreg_ctx): Remove function.
36262 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36263 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36264 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36265 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36266 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36267 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36268 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36269 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36270 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36271 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36272 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36273 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36274 * tree-core.h: Update comments for OpenACC changes.
36275 (enum omp_clause_map_kind): Remove.
36276 (struct tree_omp_clause): Change type of map_kind member from enum
36277 omp_clause_map_kind to unsigned char.
36278 * tree-inline.c: Update comments for OpenACC changes.
36279 * tree-nested.c: Likewise. Include "gomp-constants.h".
36280 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36281 (convert_tramp_reference_stmt, convert_gimple_call): Update for
36282 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36283 OMP_CLAUSE_SET_MAP_KIND.
36284 * tree-pretty-print.c: Include "gomp-constants.h".
36285 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36286 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36287 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36288 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36289 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36290 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
36291 instead of OMP_CLAUSE_MAP_*.
36292 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36293 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36294 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36295 * tree-streamer-in.c: Include "gomp-constants.h".
36296 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36297 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
36298 * tree-streamer-out.c: Include "gomp-constants.h".
36299 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36301 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36302 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36303 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36304 * tree.c (omp_clause_num_ops): Update accordingly.
36305 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36307 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36308 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36309 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36310 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36311 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36312 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36313 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36314 (OMP_CLAUSE_SET_MAP_KIND): New macro.
36315 * varpool.c (varpool_node::get_create): Consider flag_openacc next
36317 * config/i386/intelmic-offload.h: New file.
36318 * config/nvptx/offload.h: Likewise.
36320 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36322 * explow.h: Remove duplicate contents.
36323 * dojump.h: Likewise.
36325 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
36327 * arm.c (arm_xgene_tune): Add default initializer for instruction
36330 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36334 * ipa.c (symbol_table::remove_unreachable_nodes):
36335 Do not put abstract origins into boundary.
36337 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
36339 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36340 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36342 2015-01-15 Steve Ellcey <sellcey@mips.com>
36344 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36345 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36346 builtins.def, and chkp-builtins.def.
36348 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
36350 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36353 2015-01-15 Richard Biener <rguenther@suse.de>
36355 PR tree-optimization/61743
36356 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36357 information on PHIs for some simple cases.
36359 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36361 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36363 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36364 * config/arm/arm-cores.def (xgene1): New entry.
36365 * config/arm/arm-tables.opt: Regenerate.
36366 * config/arm/arm-tune.md: Regenerate.
36367 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36369 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36371 * tree-if-conv.c: Include hash-map.h.
36372 (aggressive_if_conv): New variable.
36373 (fold_build_cond_expr): Add simplification of non-zero condition.
36374 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36375 destination block is not always executed.
36376 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36377 than two predecessors if AGGRESSIVE_IF_CONV is true.
36378 (if_convertible_stmt_p): Fix commentary.
36379 (all_preds_critical_p): New function.
36380 (has_pred_critical_p): New function.
36381 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36382 BB can have more than two predecessors and all incoming edges can be
36384 (predicate_bbs): Skip predication for loop exit block, use build2_loc
36385 to compute predicate for true edge.
36386 (find_phi_replacement_condition): Delete this function.
36387 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36388 Allow interchange PHI arguments if EXTENDED is false.
36389 Change check that block containing reduction statement candidate
36390 is predecessor of phi-block since phi may have more than two arguments.
36391 (phi_args_hash_traits): New helper structure.
36392 (struct phi_args_hash_traits): New type.
36393 (phi_args_hash_traits::hash): New function.
36394 (phi_args_hash_traits::equal_keys): New function.
36395 (gen_phi_arg_condition): New function.
36396 (predicate_scalar_phi): Add handling of phi nodes with more than two
36397 arguments, delete COND and TRUE_BB arguments, insert body of
36398 find_phi_replacement_condition to predicate ordinary phi nodes.
36399 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36400 delete call of find_phi_replacement_condition and invoke
36401 predicate_scalar_phi with two arguments.
36402 (insert_gimplified_predicates): Add assert that non-predicated block
36403 don't have statements to insert.
36404 (ifcvt_split_critical_edges): New function.
36405 (ifcvt_split_def_stmt): Likewise.
36406 (ifcvt_walk_pattern_tree): Likewise.
36407 (stmt_is_root_of_bool_pattern): Likewise.
36408 (ifcvt_repair_bool_pattern): Likewise.
36409 (ifcvt_local_dce): Likewise.
36410 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36411 is copy of inner or outer loop force_vectorize field, invoke
36412 ifcvt_split_critical_edges, ifcvt_local_dce and
36413 ifcvt_repair_bool_pattern for aggressive if-conversion.
36415 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
36417 * config/aarch64/aarch64.md: Include xgene1.md.
36418 * config/aarch64/xgene1.md: New file.
36420 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36422 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36423 xgene1 (APM XGene-1) core definition.
36424 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36425 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36426 * doc/invoke.texi: Document -mcpu=xgene1.
36428 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36430 * dojump.h: New header file.
36431 * explow.h: Likewise.
36432 * expr.h: Remove includes.
36433 Move expmed.c prototypes to expmed.h.
36434 Move dojump.c prototypes to dojump.h.
36435 Move alias.c prototypes to alias.h.
36436 Move explow.c prototypes to explow.h.
36437 Move calls.c prototypes to calls.h.
36438 Move emit-rtl.c prototypes to emit-rtl.h.
36439 Move varasm.c prototypes to varasm.h.
36440 Move stmt.c prototypes to stmt.h.
36441 (saved_pending_stack_adjust): Move to dojump.h.
36442 (adjust_address): Move to explow.h.
36443 (adjust_address_nv): Move to emit-rtl.h.
36444 (adjust_bitfield_address): Likewise.
36445 (adjust_bitfield_address_size): Likewise.
36446 (adjust_bitfield_address_nv): Likewise.
36447 (adjust_automodify_address_nv): Likewise.
36448 * explow.c (expr_size): Move to expr.c.
36449 (int_expr_size): Likewise.
36450 (tree_expr_size): Likewise.
36451 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36452 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36453 * genemit.c (main): Generate includes statistics.h, real.h,
36454 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36456 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36457 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36458 explow.h, emit-rtl.h, stmt.h.
36459 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36460 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36461 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36462 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36463 emit-rtl.h, varasm.h, stmt.h.
36464 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36465 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36466 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36467 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36468 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36469 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36470 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36471 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36472 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36473 tm.h tree.h varasm.h vec.h wide-int.h.
36474 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36475 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36476 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36477 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36478 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36479 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36480 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36481 * loop-iv.c: Likewise.
36482 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36483 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36484 statistics.h stmt.h tree.h varasm.h wide-int.h.
36485 * lra-constraints.c: Likewise.
36486 * lra-eliminations.c: Likewise.
36487 * lra-lives.c: Likewise.
36488 * lra-remat.c: Likewise.
36489 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36490 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36491 statistics.h stmt.h tree.h varasm.h wide-int.h.
36492 * hw-doloop.c: Likewise.
36493 * ira-color.c: Likewise.
36494 * ira-emit.c: Likewise.
36495 * loop-doloop.c: Likewise.
36496 * loop-invariant.c: Likewise.
36497 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36498 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36499 statistics.h stmt.h tree.h varasm.h wide-int.h.
36500 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36501 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36502 statistics.h stmt.h tree.h varasm.h wide-int.h.
36503 * combine-stack-adj.c: Likewise.
36506 * ifcvt.c: Likewise.
36507 * ira-costs.c: Likewise.
36508 * jump.c: Likewise.
36509 * lra-coalesce.c: Likewise.
36510 * lra-spills.c: Likewise.
36511 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36512 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36513 stmt.h varasm.h wide-int.h.
36514 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36515 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36517 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36518 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36519 statistics.h stmt.h varasm.h wide-int.h.
36520 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36521 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36522 varasm.h wide-int.h.
36523 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36524 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36525 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36526 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36527 statistics.h stmt.h.
36528 * config/tilepro/tilepro.c: Likewise.
36529 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36530 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36531 * config/pdp11/pdp11.c: Likewise.
36532 * config/xtensa/xtensa.c: Likewise.
36533 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36534 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36536 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36537 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36538 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36539 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36540 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36541 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36542 * rtl-chkp.c: Likewise.
36543 * tree-chkp-opt.c: Likewise.
36544 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36545 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36546 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36547 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36548 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36549 statistics.h stmt.h.
36550 * tree-vect-data-refs.c: Likewise.
36551 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36552 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36553 rtl.h statistics.h stmt.h varasm.h.
36554 * internal-fn.c: Likewise.
36555 * ipa-icf-gimple.c: Likewise.
36556 * lto-section-out.c: Likewise.
36557 * tree-data-ref.c: Likewise.
36558 * tree-nested.c: Likewise.
36559 * tree-outof-ssa.c: Likewise.
36560 * tree-predcom.c: Likewise.
36561 * tree-pretty-print.c: Likewise.
36562 * tree-scalar-evolution.c: Likewise.
36563 * tree-ssa-strlen.c: Likewise.
36564 * tree-vect-loop.c: Likewise.
36565 * tree-vect-patterns.c: Likewise.
36566 * tree-vect-slp.c: Likewise.
36567 * tree-vect-stmts.c: Likewise.
36568 * tsan.c: Likewise.
36569 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36570 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36572 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36573 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36574 statistics.h stmt.h varasm.h.
36575 * loop-unroll.c: Likewise.
36576 * ubsan.c: Likewise.
36577 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36578 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36580 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36581 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36582 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36583 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36584 statistics.h stmt.h.
36585 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36586 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36587 statistics.h stmt.h varasm.h.
36588 * gimple-match-head.c: Likewise.
36589 * lto-cgraph.c: Likewise.
36590 * lto-section-in.c: Likewise.
36591 * lto-streamer-in.c: Likewise.
36592 * lto-streamer-out.c: Likewise.
36593 * tree-affine.c: Likewise.
36594 * tree-cfg.c: Likewise.
36595 * tree-cfgcleanup.c: Likewise.
36596 * tree-if-conv.c: Likewise.
36597 * tree-into-ssa.c: Likewise.
36598 * tree-ssa-alias.c: Likewise.
36599 * tree-ssa-copyrename.c: Likewise.
36600 * tree-ssa-dse.c: Likewise.
36601 * tree-ssa-forwprop.c: Likewise.
36602 * tree-ssa-live.c: Likewise.
36603 * tree-ssa-math-opts.c: Likewise.
36604 * tree-ssa-pre.c: Likewise.
36605 * tree-ssa-sccvn.c: Likewise.
36606 * tree-tailcall.c: Likewise.
36607 * tree-vect-generic.c: Likewise.
36608 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36609 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36610 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36611 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36612 * varasm.c: Likewise.
36613 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36614 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36616 * init-regs.c: Likewise.
36618 * omp-low.c: Likewise.
36619 * stack-ptr-mod.c: Likewise.
36620 * tree-ssa-reassoc.c: Likewise.
36621 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36622 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36624 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36625 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36626 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36627 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36628 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36629 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36630 * tree-ssa-phiopt.c: Likewise.
36631 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36632 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36633 * config/fr30/fr30.c: Likewise.
36634 * config/frv/frv.c: Likewise.
36635 * expr.c: Likewise.
36636 * final.c: Likewise.
36637 * optabs.c: Likewise.
36638 * passes.c: Likewise.
36639 * simplify-rtx.c: Likewise.
36640 * stmt.c: Likewise.
36641 * toplev.c: Likewise.
36642 * var-tracking.c: Likewise.
36643 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36644 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36645 * lower-subreg.c: Likewise.
36646 * postreload-gcse.c: Likewise.
36648 * reginfo.c: Likewise.
36649 * store-motion.c: Likewise.
36650 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36651 fixed-value.h hashtab.h real.h stmt.h varasm.h.
36652 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36653 fixed-value.h hashtab.h statistics.h stmt.h.
36654 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36655 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36656 * except.c: Likewise.
36657 * explow.c: Likewise.
36658 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36659 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36661 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36662 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36663 * tree-ssa-structalias.c: Likewise.
36664 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36665 fixed-value.h insn-config.h real.h statistics.h.
36666 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36667 fixed-value.h insn-config.h real.h statistics.h stmt.h.
36668 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36669 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36670 * cfgbuild.c: Likewise.
36671 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36672 fixed-value.h real.h rtl.h statistics.h stmt.h.
36673 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36674 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36675 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36676 fixed-value.h real.h statistics.h stmt.h.
36677 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36678 fixed-value.h real.h statistics.h stmt.h varasm.h.
36679 * cprop.c: Likewise.
36680 * modulo-sched.c: Likewise.
36681 * postreload.c: Likewise.
36682 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36683 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36684 statistics.h stmt.h varasm.h.
36685 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36686 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36687 rtl.h statistics.h stmt.h varasm.h.
36688 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36689 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36691 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36692 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36694 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36695 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36697 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36698 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36699 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36700 function.h real.h statistics.h stmt.h varasm.h.
36701 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36702 insn-config.h real.h statistics.h stmt.h.
36703 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36704 statistics.h stmt.h.
36705 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36706 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36707 statistics.h stmt.h varasm.h.
36708 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36709 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36710 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36711 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36712 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36713 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36714 statistics.h stmt.h varasm.h.
36715 * ipa-polymorphic-call.c: Likewise.
36716 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36717 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36718 statistics.h stmt.h.
36719 * config/c6x/c6x.c: Likewise.
36720 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36721 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36722 statistics.h stmt.h varasm.h.
36723 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36724 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36726 * ipa-split.c: Likewise.
36727 * tree-eh.c: Likewise.
36728 * tree-ssa-dce.c: Likewise.
36729 * tree-ssa-loop-niter.c: Likewise.
36730 * tree-vrp.c: Likewise.
36731 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36732 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36734 * config/nds32/nds32-fp-as-gp.c: Likewise.
36735 * config/nds32/nds32-intrinsic.c: Likewise.
36736 * config/nds32/nds32-isr.c: Likewise.
36737 * config/nds32/nds32-md-auxiliary.c: Likewise.
36738 * config/nds32/nds32-memory-manipulation.c: Likewise.
36739 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36740 * config/nds32/nds32-predicates.c: Likewise.
36741 * config/nds32/nds32.c: Likewise.
36742 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36743 fixed-value.h hashtab.h real.h statistics.h.
36744 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36745 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36746 * config/arm/arm.c: Likewise.
36747 * config/avr/avr.c: Likewise.
36748 * config/bfin/bfin.c: Likewise.
36749 * config/h8300/h8300.c: Likewise.
36750 * config/i386/i386.c: Likewise.
36751 * config/ia64/ia64.c: Likewise.
36752 * config/iq2000/iq2000.c: Likewise.
36753 * config/m32c/m32c.c: Likewise.
36754 * config/m32r/m32r.c: Likewise.
36755 * config/m68k/m68k.c: Likewise.
36756 * config/mcore/mcore.c: Likewise.
36757 * config/mep/mep.c: Likewise.
36758 * config/mips/mips.c: Likewise.
36759 * config/mn10300/mn10300.c: Likewise.
36760 * config/moxie/moxie.c: Likewise.
36761 * config/pa/pa.c: Likewise.
36762 * config/rl78/rl78.c: Likewise.
36763 * config/rx/rx.c: Likewise.
36764 * config/s390/s390.c: Likewise.
36765 * config/sh/sh.c: Likewise.
36766 * config/sparc/sparc.c: Likewise.
36767 * config/spu/spu.c: Likewise.
36768 * config/stormy16/stormy16.c: Likewise.
36769 * config/v850/v850.c: Likewise.
36770 * config/vax/vax.c: Likewise.
36771 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36772 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36773 * config/msp430/msp430.c: Likewise.
36774 * predict.c: Likewise.
36775 * value-prof.c: Likewise.
36776 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36777 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36778 * config/microblaze/microblaze.c: Likewise.
36779 * config/nios2/nios2.c: Likewise.
36780 * config/rs6000/rs6000.c: Likewise.
36781 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36782 insn-config.h real.h rtl.h statistics.h stmt.h.
36783 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36784 insn-config.h real.h statistics.h stmt.h.
36785 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36786 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36787 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36788 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36789 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36790 fixed-value.h real.h statistics.h stmt.h.
36791 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36792 fixed-value.h statistics.h stmt.h.
36793 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36796 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36798 * gengtype.c (create_user_defined_type): Workaround
36799 -Wmaybe-uninitialized false positives.
36800 * cse.c (fold_rtx): Likewise.
36801 * loop-invariant.c (gain_for_invariant): Likewise.
36803 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
36805 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36806 set the memory attributes in all cases but clear MEM_EXPR if need be.
36808 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36810 PR tree-optimization/64434
36811 * cfgexpand.c (reorder_operands): New function.
36812 (expand_gimple_basic_block): Insert call of reorder_operands if
36815 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
36817 * config/mips/micromips.md (*swp): Remove explicit parallel.
36818 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36819 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36820 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36821 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36822 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36823 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36824 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36825 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36826 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36827 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36828 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36829 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36830 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36831 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36832 (mips_wrdsp): Likewise.
36833 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36835 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36836 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36837 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36838 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36839 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36840 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36841 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36842 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36843 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36845 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36847 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36848 (mips_print_operand): Support 'y' to print exact log2 in decimal
36850 * config/mips/mips.h (ISA_HAS_LSA): New define.
36851 (ISA_HAS_DLSA): Likewise.
36852 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36853 * config/mips/predicates.md (const_immlsa_operand): New predicate.
36855 2015-01-15 Martin Liska <mliska@suse.cz>
36858 * optc-save-gen.awk: Add support for array types.
36860 2015-01-15 Richard Biener <rguenther@suse.de>
36862 PR middle-end/64365
36863 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36864 for MEM_REF access functions with the same base can never partially
36867 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
36869 * common.opt: New option -fstack-protector-explicit.
36870 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36871 (stack_protect_decl_phase): Handle stack_protect attribute for
36872 explicit stack protection requests.
36873 (expand_used_vars): Similarly.
36874 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36875 * doc/extend.texi: Add documentation for "stack_protect" attribute.
36876 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36878 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
36881 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36883 (sh_extending_set_of_reg): New struct.
36884 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36885 sh_remove_reg_dead_or_unused_notes): New Declarations.
36886 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36887 sh_find_extending_set_of_reg, sh_split_tst_subregs,
36888 sh_extending_set_of_reg::use_as_extended_reg): New functions.
36889 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36890 convert to insn_and_split and use new function sh_split_tst_subregs.
36892 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
36894 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36896 (Optimization Options): Move -fuse-ld documentation to...
36897 (Link Options): ...here.
36899 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36901 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36903 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36904 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36905 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36906 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36907 instead of ZR for the memory operand of LL/SC.
36908 (compare_and_swap_12, sync_add<mode>): Likewise.
36909 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36910 (sync_new_<optab>_12, sync_nand_12): Likewise.
36911 (sync_old_nand_12, sync_new_nand_12): Likewise.
36912 (sync_sub<mode>, sync_old_add<mode>): Likewise.
36913 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36914 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36915 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36916 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36917 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36918 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36919 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36920 * doc/md.texi (ZC): Update description.
36922 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36924 * builtins.c (expand_builtin_atomic_exchange): Remove error when
36925 memory model is CONSUME.
36926 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36927 expand_builtin_atomic_store): Change invalid memory model errors to
36929 (expand_builtin_atomic_clear): Change invalid model errors to warnings
36930 and issue warning for CONSUME.
36932 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
36934 * lto-cgraph: Update function comments for
36935 lto_symtab_encoder_encode_*.
36937 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36939 * Makefile.in (site.exp): Do not set ENABLE_LTO.
36941 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36943 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36944 * lto-cgraph.c (select_what_to_stream): Remove argument, use
36945 lto_stream_offload_p instead.
36946 * lto-streamer.h (select_what_to_stream): Remove argument.
36947 * passes.c (ipa_write_summaries): Likewise.
36948 * tree-pass.h (ipa_write_summaries): Likewise.
36950 2015-01-14 Richard Biener <rguenther@suse.de>
36952 PR tree-optimization/59354
36953 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36954 groups larger than the slp group size as having gaps.
36956 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36958 PR middle-end/59448
36959 * builtins.c (get_memmodel): Promote consume to acquire always.
36961 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36964 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36967 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36970 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36972 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36973 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36974 AVX512VBMI, as it implies AVX512BW.
36976 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36979 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36980 (vec_unpacks_hi_v16sf): Ditto.
36982 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36984 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36987 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36989 * doc/invoke.texi (mapcs): Mention deprecation.
36990 (mapcs-frame): Likewise.
36992 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
36995 * config/arm/arm.c (callee_saved_reg_p): Define.
36996 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36997 register is callee saved instead of !call_used_regs[reg].
36998 (thumb1_compute_save_reg_mask): Likewise.
37000 2015-01-14 Hale Wang <hale.wang@arm.com>
37002 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37005 2015-01-14 Richard Biener <rguenther@suse.de>
37008 * tree-inline.c (insert_debug_decl_map): Check destination
37009 function MAY_HAVE_DEBUG_STMTS.
37010 (insert_init_debug_bind): Likewise.
37011 (insert_init_stmt): Remove redundant check.
37012 (remap_gimple_stmt): Drop debug stmts if the destination
37013 function has var-tracking assignments disabled.
37015 2015-01-14 Martin Liska <mliska@suse.cz>
37017 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37018 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37020 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37023 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37024 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37026 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37028 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37029 level from an ARCH; do not inject the default.
37030 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37031 MIPS_ISA_LEVEL_SPEC.
37032 (MIPS_ISA_NAN2008_SPEC): Update comment.
37033 (BASE_DRIVER_SELF_SPECS): Likewise.
37034 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37035 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37036 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37037 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37038 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37040 2015-01-14 Richard Biener <rguenther@suse.de>
37042 PR tree-optimization/64493
37043 PR tree-optimization/64495
37044 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37045 assign the proper vectorized PHI to the inner loop exit PHIs.
37047 2015-01-14 Joey Ye <joey.ye@arm.com>
37049 * config/arm/arm.c (arm_compute_save_reg_mask):
37050 Do not save lr in case of tail call.
37051 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37053 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37055 * tree-vrp.c (check_array_ref): Emit more warnings
37056 for warn_array_bounds >= 2.
37057 * common.opt: New option -Warray-bounds=.
37058 * doc/invoke.texi: Document -Warray-bounds=.
37060 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37062 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37063 (mforbid-fp-as-gp): Remove.
37065 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37066 (nds32_symbol_load_store_p): Remove.
37067 (nds32_fp_as_gp_check_available): Clean up implementation.
37068 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37070 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37071 fp-as-gp and ex9 cases.
37073 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37075 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37076 for bintuils bug 14342.
37077 (init_ic_make_global_vars): Likewise.
37078 (gimple_init_edge_profiler): Likewise.
37079 (gimple_gen_ic_func_profiler): Likewise.
37081 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37083 * ipa-inline.c (inline_small_functions): Swap the operands in
37086 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37089 * ipa-inline-analysis.c (node_growth_cache): Remove.
37090 (initialize_growth_caches): Do not initialize it.
37091 (free_growth_caches): Do not free it.
37092 (do_estimate_growth): Rename to ...
37093 (estimate_growth): ... this one; drop growth cache code.
37094 (growth_likely_positive): Always go the heuristics way.
37095 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37096 (reset_edge_caches): Do not reset node growth.
37097 (heap_edge_removal_hook): Do not maintain cache.
37098 (inline_small_functions): Likewise; strenghten sanity check.
37099 (ipa_inline): Do not maintain caches.
37100 * ipa-inline.h (node_growth_cache): Remove.
37101 (do_estimate_growth): Remove to ...
37102 (estimate_growth): this one; remove inline version.
37103 (reset_node_growth_cache): Remove.
37105 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37108 * ipa-inline.c (inline_small_functions): Update callee keys after
37109 resolving speculation
37110 (inline_small_functions): Always check monotonicity of the queue.
37112 2015-01-13 Marek Polacek <polacek@redhat.com>
37114 PR middle-end/64391
37115 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37117 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37119 PR rtl-optimization/64286
37120 * ree.c (combine_reaching_defs): Move part of comment earlier,
37121 remove !SCALAR_INT_MODE_P check.
37122 (add_removable_extension): Don't add vector mode
37123 extensions if all uses of the source register aren't the same
37126 2015-01-13 Renlin Li <renlin.li@arm.com>
37128 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37129 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37131 2015-01-13 Martin Liska <mliska@suse.cz>
37133 * ipa-icf.c (sem_function::equals_private): Call new functions
37134 cl_target_option_print_diff and cl_optimization_print_diff.
37135 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37136 (cl_optimization_print_diff): Likewise.
37137 * opth-gen.awk: Likewise.
37139 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37141 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37142 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37143 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37144 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37145 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37146 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37148 2015-01-13 Andrew Pinski <apinski@cavium.com>
37150 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37151 instead of src mode.
37153 2015-01-13 Richard Biener <rguenther@suse.de>
37156 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37159 2015-01-13 Andrew Pinski <apinski@cavium.com>
37161 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37163 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37165 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37167 PR middle-end/63974
37168 * cfgexpand.c (expand_computed_goto): Don't call
37169 convert_memory_address here.
37171 2015-01-13 Richard Biener <rguenther@suse.de>
37173 PR tree-optimization/64406
37174 * tree-loop-distibution.c (pass_loop_distribution::execute):
37175 Reset the SCEV hashtable if we distributed anything.
37177 2015-01-13 Richard Biener <rguenther@suse.de>
37179 PR tree-optimization/64404
37180 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37181 SLP types for CSEd loads.
37183 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37185 PR tree-optimization/64436
37186 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37187 merge of two symbolic numbers for a bitwise OR to ...
37188 (perform_symbolic_merge): This. Also fix computation of the range and
37189 end of the symbolic number corresponding to the result of a bitwise OR.
37191 2015-01-13 Richard Biener <rguenther@suse.de>
37193 PR tree-optimization/64568
37194 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37195 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37197 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37199 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37200 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37202 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37204 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37205 target-specific symbol_ref flag.
37206 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37207 resides in rodata section.
37208 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37209 (nds32_encode_section_info): New function.
37211 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37213 * config/nds32/nds32.md (call): Use pseudo instruction bal which
37214 clobbers TA_REGNUM if large code model is specified.
37215 (call_register): Likewise.
37216 (call_immediate): Likewise.
37217 (call_value): Likewise.
37218 (call_value_register): Likewise.
37219 (call_value_immediate): Likewise.
37221 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37223 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37224 (TARGET_CMODEL_MEDIUM): New macro.
37225 (TARGET_CMODEL_LARGE): New macro.
37226 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37227 code model setting in assembly code.
37229 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37231 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37232 Remove MASK_GP_DIRECT flag.
37233 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37234 one of the multilib default options.
37235 * config/nds32/nds32.opt (mgp-direct): Remove.
37236 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37237 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
37239 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37241 * config/nds32/nds32.opt (mcmodel): Add new option.
37242 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37243 to describe code model.
37245 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
37248 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37250 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
37252 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37253 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37254 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37255 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37256 __builtin_sh_set_fpscr.
37258 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37260 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37261 after a funtion name just to indicate it is a function.
37262 ([-fsanitize-undefined-trap-on-error]): Likewise.
37263 ([-fdbg-cnt=]): Likewise.
37264 ([-mmemcpy]): Likewise.
37265 ([-mflush-func]): Likewise.
37266 ([-msynci]): Likewise.
37268 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37270 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37273 2015-01-12 Jakub Jelinek <jakub@redhat.com>
37275 PR tree-optimization/64563
37276 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37277 instead of != VR_VARYING.
37280 * config/i386/i386.c (ix86_expand_prologue): Add
37281 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37283 PR tree-optimization/64454
37284 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37285 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37286 for signed or [0, op1 - 1] for unsigned modulo.
37287 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37288 even if op1 does not satisfy integer_pow2p.
37291 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37293 2015-01-12 Jeff Law <law@redhat.com>
37296 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37297 (trunchiqi2, truncsihi2): Similarly.
37299 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37300 rather than calling F.
37302 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
37304 * tsan.c (instrument_expr): Use force_gimple_operand.
37305 Use may_be_nonaddressable_p instead of is_gimple_addressable.
37307 2015-01-12 Richard Biener <rguenther@suse.de>
37309 PR tree-optimization/64530
37310 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37313 2015-01-12 Richard Biener <rguenther@suse.de>
37315 PR middle-end/64357
37316 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37319 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37321 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37322 Cortex-A17 tuning parameters.
37323 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37325 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37327 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37328 * config/arm/arm.c (arm_macro_fusion_p): New function.
37329 (arm_macro_fusion_pair_p): Likewise.
37330 (TARGET_SCHED_MACRO_FUSION_P): Define.
37331 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37332 (ARM_FUSE_NOTHING): Likewise.
37333 (ARM_FUSE_MOVW_MOVT): Likewise.
37334 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37335 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37336 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37337 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37338 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37339 arm_cortex_a5_tune): Specify fuseable_ops value.
37341 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
37344 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37345 test for PIE with copy reloc.
37346 * configure: Regenerated.
37348 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37350 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37352 (arm_tls_descseq_addr): Likewise.
37353 (arm_gen_movmemqi): Likewise.
37354 (arm_expand_epilogue_apcs_frame): Likewise.
37355 (arm_expand_epilogue): Likewise.
37356 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
37359 2015-01-12 Martin Liska <mliska@suse.cz>
37362 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37363 volatility for correct operands.
37365 2015-01-12 Martin Liska <mliska@suse.cz>
37367 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37368 indication that a function is not leaf.
37369 (sem_function::compare_polymorphic_p): Likewise.
37371 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37373 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37374 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37375 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37376 fold-const.h, tree-check.h.
37378 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37382 * ipa-inline.c (compute_uninlined_call_time,
37383 compute_inlined_call_time): Use counts for extra precision when
37385 (big_speedup_p): Fix formating.
37386 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37387 (relative_time_benefit): Remove.
37388 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37389 merge guessed and read profile paths.
37390 (inline_small_functions): Count only !optimize_size functions into
37391 initial size; be more lax about sanity check when profile is used;
37392 be sure to update inlined function profile when profile is read.
37394 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37397 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37398 cost when edge becomes direct.
37399 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37400 is resolved or when introducing new speculation.
37402 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
37406 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37407 '||' to fix typo issue.
37409 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37410 accept and return NULL.
37412 2015-01-12 Martin Liska <mliska@suse.cz>
37414 * cgraph.c (cgraph_edge::remove_callee): Move function to header
37415 file for being inlined.
37416 (cgraph_set_edge_callee): Delete.
37417 (cgraph_edge::redirect_callee): Move function to header file
37419 (cgraph_edge::make_direct): Use new function.
37420 (cgraph_edge::dump_edge_flags): New function created from
37421 static dump_edge_flags function.
37422 (cgraph_node::dump): Use new function.
37423 (cgraph_edge::verify_count_and_frequency): New function created
37424 from verify_edge_count_and_frequency.
37425 (cgraph_edge::verify_corresponds_to_fndecl): New function created
37426 from verify_edge_corresponds_to_fndecl.
37427 (verify_edge_corresponds_to_fndecl): Delete.
37428 (cgraph_node::verify_node): Use new function.
37429 * cgraph.h (cgraph_edge::set_callee): New function.
37430 (cgraph_edge::dump_edge_flags): Likewise.
37431 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37433 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
37435 * ipa-utils.c (estimate_function_body_sizes): Do not
37436 free node params when called late with early=true.
37438 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
37440 * doc/md.texi (Instruction Patterns): Rewrite text for
37442 (Example): Likewise.
37444 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
37446 * doc/invoke.texi (Option Summary): Break long lines.
37447 [(-fdiagnostics-color)]: Put long literal in @smallexample
37449 [(-fsanitize-recover)]: Likewise.
37450 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37451 [(-ffast-math)]: Likewise.
37452 [(--param max-inline-insns-recursive)]: Likewise.
37453 [(--param max-inline-recursive-depth)]: Likewise.
37454 [(-mno-text-section-literals)]: Likewise.
37456 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
37458 * doc/install.texi: Update for libgomp being renamed from "GNU
37459 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37461 * doc/sourcebuild.texi: Likewise.
37463 2015-01-10 Anthony Green <green@moxielogic.com>
37465 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37466 mul.x availability for moxiebox configuration.
37468 2015-01-09 Anthony Green <green@moxielogic.com>
37470 * config/moxie/moxie.md: Tabify assembly output.
37472 2015-01-09 Anthony Green <green@moxielogic.com>
37474 * config/moxie/moxie.md (CC_REG): Correct register definition.
37476 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
37478 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37479 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
37482 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37484 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37486 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
37487 Jakub Jelinek <jakub@redhat.com>
37489 PR middle-end/64412
37490 * lto-streamer.h (lto_stream_offload_p): New declaration.
37491 * lto-streamer.c (lto_stream_offload_p): New variable.
37492 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37493 at the same time as section_name_prefix.
37494 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37495 if lto_stream_offload_p.
37496 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37497 stream TREE_TARGET_OPTION if lto_stream_offload_p.
37498 (write_ts_function_decl_tree_pointers): Don't
37499 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37500 * tree-streamer-in.c (unpack_value_fields): Don't stream
37501 TREE_TARGET_OPTION in if ACCEL_COMPILER.
37502 (lto_input_ts_function_decl_tree_pointers): Don't stream
37503 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37504 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37505 instead of section_name_prefix string comparisons.
37507 2015-01-09 Jakub Jelinek <jakub@redhat.com>
37509 PR rtl-optimization/64536
37510 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37513 2015-01-09 Michael Collison <michael.collison@linaro.org>
37515 PR tree-optimization/64322
37516 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37517 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37519 2015-01-09 Tom de Vries <tom@codesourcery.com>
37521 PR rtl-optimization/64539
37522 * regcprop.c (kill_clobbered_values): Factor out of ...
37523 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
37524 instead of note_stores with kill_clobbered_value.
37526 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37528 * ginclude/unwind-arm-common.h: Revert previous commit.
37530 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37532 * config.gcc (arm*-*-freebsd*): New configuration.
37533 * config/arm/freebsd.h: New file.
37534 * config.host: Add extra components for arm*-*-freebsd*.
37535 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37536 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37538 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37540 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37542 * config/rs6000/t-rtems: Add e6500 multilibs.
37544 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37546 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37549 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37551 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37552 MULTILIB_EXCEPTIONS.
37554 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37556 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37557 MULTILIB_EXCEPTIONS.
37559 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37561 * config/arm/t-rtems-eabi: Rename to...
37562 * config/arm/t-rtems: ...this.
37563 * config/arm/rtems-eabi.h: Rename to...
37564 * config/arm/rtems.h: ...this.
37565 * config.gcc (arm*-*-rtems*): Reflect changes above.
37567 2015-01-09 Richard Biener <rguenther@suse.de>
37569 PR tree-optimization/64410
37570 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37572 (execute_update_addresses_taken): Deal with that.
37573 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37574 loads/stores for complex variables.
37576 2015-01-09 Martin Liska <mliska@suse.cz>
37578 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37580 (func_checker::compare_memory_operand): New function.
37581 (func_checker::compare_operand): Split case to newly
37583 (func_checker::compare_cst_or_decl): New function.
37584 (func_checker::compare_gimple_call): Identify
37586 (func_checker::compare_gimple_assign): Likewise.
37587 * ipa-icf-gimple.h: New function.
37589 2015-01-09 Martin Liska <mliska@suse.cz>
37592 * sreal.c (sreal::dump): Change unsigned format to signed for
37594 (sreal::to_double): Replace exp2 with scalbln.
37596 2015-01-09 Martin Liska <mliska@suse.cz>
37598 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37599 * ipa-icf.c (sem_function::equals_private): Add support for target and
37600 (sem_item_optimizer::merge_classes): Remove redundant function
37601 optimization flags comparison.
37602 * tree.h (target_opts_for_fn): New function.
37604 2015-01-09 Tom de Vries <tom@codesourcery.com>
37606 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37608 2015-01-09 Kito Cheng <kito@0xlab.org>
37610 PR rtl-optimization/64348
37611 * lra-constraints.c (split_reg): Fix caller-save store/restore
37612 instruction generation.
37614 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
37616 PR gcov-profile/61790
37617 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37618 long long. Fallback to int64_t if host doesn't have long long and
37619 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
37621 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37623 PR tree-optimization/63989
37624 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37625 from 1000 to 10000.
37626 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37627 (get_stridx): If we don't have a record for certain SSA_NAME,
37628 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37629 constant offset, call get_stridx_plus_constant.
37630 (get_stridx_plus_constant): New function.
37631 (zero_length_string): Don't use get_stridx here.
37634 PR middle-end/64388
37635 * dse.c (struct insn_info): Mention frame_read set also
37636 before reload for tail calls on some targets.
37637 (scan_insn): Revert 2014-12-22 change. Set frame_read
37638 also before reload for tail calls if
37639 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
37640 instead of add_non_frame_wild_read for non-const/memset
37641 tail calls after reload.
37643 2015-01-08 Jason Merrill <jason@redhat.com>
37645 * ubsan.c (do_ubsan_in_current_function): New.
37646 (pass_ubsan::gate): Use it.
37647 * ubsan.h: Declare it.
37648 * convert.c (convert_to_integer): Use it.
37650 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37653 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37654 compare_code when it is unconditionally overwritten afterwards.
37655 Use ix86_reverse_condition instead of reverse_condition. Don't
37656 change code if *reverse_condition* returned UNKNOWN and don't
37657 swap ct/cf and negate diff in that case.
37659 2015-01-08 Mike Stump <mikestump@comcast.net>
37661 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37662 (pass_tsan_O0::gate): Likewise.
37663 * extend.texi (Function Attributes): Add no_sanitize_thread
37666 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
37668 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37669 for registering builtins.
37670 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37671 add -fopenmp to the argv_obstack used when invoking
37672 compile_for_target.
37674 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37675 add "-m32" or "-m64" to argv_obstack.
37676 (generate_host_descr_file): Likewise, when invoking host_compiler.
37677 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37680 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37682 * config/sh/sh-mem.cc: Use constant as second operand when emitting
37685 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37688 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37689 constant load if constant operand fits into I08.
37691 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37694 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37695 and TREE_THIS_VOLATILE for MEM_REFs.
37696 (build5_stat): Fix up initialization of TREE_READONLY and
37697 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37699 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
37702 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37703 of r for the second alternative of the destination operand.
37705 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
37708 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37710 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37712 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37714 ([-fivar-visibility], [-fvisibility]): Likewise.
37716 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37718 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37719 the file where @code, @command, etc is more appropriate.
37721 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
37723 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37724 of -mrecip= documentation.
37726 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37729 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37730 correct reload handler if -m32 -mpowerpc64 is used.
37732 2015-01-06 Tom de Vries <tom@codesourcery.com>
37734 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37736 2015-01-08 Christian Bruel <christian.bruel@st.com>
37739 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37741 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
37743 PR tree-optimization/63259
37744 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37745 if optab exists for 16bit byteswap.
37747 2015-01-06 Jakub Jelinek <jakub@redhat.com>
37749 * opts.c (common_handle_option): Add support for
37750 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37751 * doc/invoke.texi: Document -fno-sanitize=all,
37752 -f{,no-}sanitize-recover=all. Document that
37753 -fsanitize=float-cast-overflow is not enabled
37754 by -fsanitize=undefined. Fix up documentation
37755 of -f{,no-}sanitize-recover.
37757 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
37759 * config.gcc: Add Visium support.
37760 * configure.ac: Likewise.
37761 * configure: Regenerate.
37762 * doc/extend.texi (interrupt attribute): Add Visium.
37763 * doc/invoke.texi: Document Visium options.
37764 * doc/install.texi: Document Visium target.
37765 * doc/md.texi: Document Visium constraints.
37766 * common/config/visium: New directory.
37767 * config/visium: Likewise.
37769 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37771 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37772 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37774 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37776 * combine.c (combine_validate_cost): Do not count the cost of a
37777 split I2 twice. Do not display it twice in the dump, either.
37779 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37781 Revert parts of r219199.
37782 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37784 ([-Wtraditional]): Restore markup on <limits.h>.
37786 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
37789 * doc/invoke.texi: Document -Wsuggest-override.
37791 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
37793 PR rtl-optimization/64287
37794 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37795 (process_options): Disable flag_ipa_ra if profiling.
37797 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
37799 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37801 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
37803 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37804 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37805 put under #if TARGET_LOOPS guard.
37807 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
37809 * config/i386/i386.c (output_387_binary_op): Use std::swap.
37811 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
37813 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37814 * rtl.h (refers_to_regno_p): Add overload.
37816 * bt-load.c: Likewise.
37817 * combine.c: Likewise.
37818 * df-scan.c: Likewise.
37819 * sched-deps.c: Likewise.
37820 * config/s390/s390.c: Likewise.
37821 * config/m32r/m32r.c: Likewise.
37822 * config/rs6000/spe.md: Likewise.
37823 * config/rs6000/rs6000.c: Likewise.
37824 * config/pa/pa.c: Likewise.
37825 * config/stormy16/stormy16.c: Likewise.
37826 * config/cris/cris.c: Likewise.
37827 * config/arc/arc.md: Likewise.
37828 * config/arc/arc.c: Likewise.
37829 * config/sh/sh.md: Likewise.
37830 * config/sh/sh.c: Likewise.
37831 * config/frv/frv.c: Likewise.
37833 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37836 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37837 call as cleanup of the whole body.
37838 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37839 * tsan.c (replace_func_exit): New function.
37840 (instrument_func_exit): Moved earlier.
37841 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37842 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37844 (tsan_pass): Don't call instrument_func_exit.
37845 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37846 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37850 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37851 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37852 it to libubsan handler instead of EXPR. Fold comparisons earlier,
37853 if the result is integer_zerop, return NULL_TREE.
37854 * convert.c (convert_to_integer): Pass expr as ARG.
37856 PR tree-optimization/64465
37857 * tree-inline.c (redirect_all_calls): During inlining
37858 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37859 changed the stmt to a non-throwing call.
37861 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37863 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37864 etc markup throughout the file.
37866 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37868 Enable experimental TSAN support for Ada.
37869 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37871 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37873 PR tree-optimization/64494
37874 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37875 clear SSA_NAME_ANTI_RANGE_P flag.
37877 2015-01-05 Marek Polacek <polacek@redhat.com>
37879 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37881 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37883 Update copyright years.
37885 * gcc.c (process_command): Update copyright notice dates.
37886 * gcov-dump.c: Ditto.
37888 * doc/cpp.texi: Bump @copying's copyright year.
37889 * doc/cppinternals.texi: Ditto.
37890 * doc/gcc.texi: Ditto.
37891 * doc/gccint.texi: Ditto.
37892 * doc/gcov.texi: Ditto.
37893 * doc/install.texi: Ditto.
37894 * doc/invoke.texi: Ditto.
37896 * auto-profile.c, auto-profile.h: Fix up Copyright line.
37898 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
37900 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37902 ([-fvtable-verify], [-fvtv-debug]): Likewise.
37903 ([-Wabi]): Likewise.
37904 ([-fmessage-length]): Likewise.
37905 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37906 ([-Wno-discarded-qualifiers]): Likewise.
37907 ([-Wnodiscarded-array-qualifiers]): Likewise.
37908 ([-Wno-virtual-move-assign]): Likewise.
37909 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37910 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37911 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37912 ([-fsanitize-undefined-trap-on-error]): Likewise.
37913 ([-floop-interchange]): Likewise.
37914 ([-ftree-coalesce-inlined-vars]): Likewise.
37915 ([-fvect-cost-model]): Likewise.
37916 ([-flto]): Likewise.
37917 ([--param]): Likewise.
37918 (Spec Files): Likewise.
37919 ([-mstrict-align]): Likewise.
37920 ([-mfix-cortex-a53-835769]): Likewise.
37921 ([-march], [-mtune]): Likewise.
37922 ([-mpic-register]): Likewise.
37923 ([-munaligned-access]): Likewise.
37924 ([-msp8]): Likewise.
37925 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37926 (AVR Built-in Macros): Likewise.
37927 ([-mpreferred-stack-boundary]): Likewise.
37928 ([-mtune-crtl]): Likewise.
37929 ([-mashf]): Likewise.
37930 ([-mmcu=]): Likewise.
37931 ([-minrt]): Likewise.
37932 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37933 ([-mupper-regs]): Likewise.
37934 ([-matomic-model]): Likewise.
37935 ([-mdiv]): Likewise.
37936 ([-mzdcbranch]): Likewise.
37937 ([-mdisable-callt]): Likewise.
37938 ([-msoft-float]): Likewise.
37939 ([-m8byte-align]): Likewise.
37940 ([-fstack-reuse]): Likewise.
37942 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37944 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37945 Fix markup, light copy-editing.
37946 ([-fauto-profile]): Rewrite to fix formatting and content
37949 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37951 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37952 Copy-edit description.
37953 ([-fisolate-erroneous-paths-attribute]): Likewise.
37954 * common.opt (fisolate-erroneous-paths-dereference):
37955 Copy-edit description.
37956 (fisolate-erroneous-paths-attribute): Likewise.
37958 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37960 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37963 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37965 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37966 ([-fvtv-debug]): Likewise.
37967 ([-Wc++-compat]): Likewise.
37968 ([-Wc++11-compat]): Likewise.
37969 ([-Wc++14-compat]): Likewise.
37970 ([-Wno-sized-deallocation]): Likewise.
37971 ([-femit-class-debug-always]): Likewise.
37972 ([-femit-struct-debug-detailed]): Likewise.
37973 ([-fno-keep-inline-dllexport]): Likewise.
37974 ([-fira-algorithm]): Likewise.
37975 ([-fira-region]): Likewise.
37976 ([-flra-remat]): Likewise.
37977 ([-fipa-ra]): Likewise.
37978 ([-fhoist-adjacent-loads]): Likewise.
37979 ([-fisolate-erroneous-paths-dereference]): Likewise.
37980 ([-fisolate-erroneous-paths-attribute]): Likewise.
37981 ([-ftree-switch-conversion]): Likewise.
37982 ([-ftree-tail-merge]): Likewise.
37983 ([-ftree-loop-if-convert]): Likewise.
37984 ([-ftree-loop-if-convert-stores]): Likewise.
37985 ([-ftree-loop-distribution]): Likewise.
37986 ([-ftree-loop-distribute-patterns]): Likewise.
37987 ([-flto-compression-level]): Likewise.
37988 ([-flto-report]): Likewise.
37989 ([-flto-report-wpa]): Likewise.
37990 ([-fuse-linker-plugin]): Likewise.
37991 ([-mfix-cortex-a53-835769]): Likewise.
37992 ([-mno-fix-cortex-a53-835769]): Likewise.
37993 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37994 explicit listing; add a note to the discussion indicating they
37995 exist. Reorder table to group similar options. Add missing
37996 @opindex entries. Add @need commands throughout the table to
37997 allow it to be split across multiple pages.
37998 ([-m8bit-idiv]): Fix @opindex.
37999 ([-mavx256-split-unaligned-load]): Likewise.
38000 ([-mavx256-split-unaligned-store]): Likewise.
38001 ([-mstack-protector-guard]): Likewise.
38002 ([-mcpu=]): Likewise.
38003 ([-mcpu]): Likewise.
38004 ([-mpointer-size=]): Likewise.
38006 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38008 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38009 instead of `m' constraint. Likewise for unnamed movb comparison
38010 patterns using reg_before_reload_operand predicate.
38011 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38012 predicate to reject register index and LO_SUM DLT memory forms
38015 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38017 * doc/invoke.texi (Option Summary): Fix spelling of
38018 -fdevirtualize-at-ltrans.
38019 ([-fdevirtualize]): Fix markup.
38020 ([-fdevirtualize-speculatively]): Fix typo.
38021 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38022 implementor-speaky.
38023 * common.opt (fdevirtualize-at-ltrans): Likewise.
38024 * ipa-devirt.c: Fix typos in comments throughout the file.
38025 (ipa_devirt): Fix typos in format strings for dump output.
38027 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38029 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38030 discussion of defaults, light copy-editing.
38032 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38034 * tsan.c (instrument_expr): corrected previous checkin.
38036 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38038 Instrument bit field and unaligned accesses for TSAN.
38039 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38040 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38041 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38042 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38043 unaligned memory regions.
38045 2015-01-01 Anthony Green <green@moxielogic.com>
38047 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38048 Restrict move source register offsets to 16 bits.
38050 Copyright (C) 2015 Free Software Foundation, Inc.
38052 Copying and distribution of this file, with or without modification,
38053 are permitted in any medium without royalty provided the copyright
38054 notice and this notice are preserved.