Insert new exit block only when needed in transform_to_exit_first_loop_alt
[official-gcc.git] / gcc / ChangeLog
blob8d6833017f5fcb08fb21c0217a52c77fe09901fe
1 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4         block only when needed.
6 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
8         * config/alpha/alpha-protos.h (print_operand): Remove.
9         (print_operand_address): Remove.
10         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
11         (PRINT_OPERAND_ADDRESS): Remove.
12         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
13         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
14         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
15         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
16         (print_operand_address): Rename to...
17         (alpha_print_operand_address): ...this and make static.
18         (print_operand): Rename to...
19         (alpha_print_operand): ...this and make static.
20         (alpha_print_operand_punct_valid_p): New static function.
22 2015-11-11  Richard Biener  <rguenther@suse.de>
24         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
25         Declare.
26         (vect_analyze_data_refs_alignment): Make loop vect specific.
27         (vect_verify_datarefs_alignment): Likewise.
28         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
29         Add missing continue.
30         (vect_compute_data_ref_alignment): Export.
31         (vect_compute_data_refs_alignment): Merge into...
32         (vect_analyze_data_refs_alignment): ... this.
33         (verify_data_ref_alignment): Split out from ...
34         (vect_verify_datarefs_alignment): ... here.
35         (vect_slp_analyze_and_verify_node_alignment): New function.
36         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
37         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
38         misplaced checks on alignment.
39         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
40         alignment analysis after SLP discovery and do it per instance.
41         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
42         bother to re-try using different vector sizes.
44 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
45             Cesar Philippidis  <cesar@codesourcery.com>
47         * gcc/gimplify.c (enum  omp_region_type): Add ORT_ACC,
48         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
49         (gimple_add_tmp_var): Add ORT_ACC checks.
50         (gimplify_var_or_parm_decl): Likewise.
51         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
52         mask.
53         (omp_add_variable): Look in outer contexts for openacc and allow
54         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
55         checks.
56         (omp_notice_variable, omp_is_private, omp_check_private): Add
57         ORT_ACC checks.
58         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
59         Permit private openacc reductions.
60         (gimplify_oacc_cache): Specify ORT_ACC.
61         (gimplify_omp_workshare): Adjust OpenACC region types.
62         (gimplify_omp_target_update): Likewise.
63         * gcc/omp-low.c (scan_sharing_clauses): Remove Openacc
64         firstprivate sorry.
65         (lower-rec_input_clauses): Don't handle openacc firstprivate
66         references here.
67         (lower_omp_target): Emit initializers for openacc firstprivate vars.
69 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
71         PR target/67265
72         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
73         frame pointer for stack checking if non-call exceptions aren't used.
74         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
76 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
78         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
79         [LA]SHIFTRT.
81 2015-11-11  Martin Liska  <mliska@suse.cz>
82             Richard Biener  <rguenther@suse.de>
84         PR rtl-optimization/68287
85         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
86         number of elements.
88 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
90         * config/mips/mips.c (mips_breakable_sequence_p): New function.
91         (mips_break_sequence): New function.
92         (mips_reorg_process_insns): Use them. Use compact branches in selected
93         situations.
95 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
97         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
99 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
100             Jim Wilson  <wilson@gcc.gnu.org>
102         PR target/67305
103         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
104         be true and eliminable registers mentioned.
106 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
108         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
109         options.
110         * config/arc/arc-opts.h: Add ARCv2 CPUs.
111         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
112         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
113         situation, and store instructions with large offsets.
114         (arc_secondary_reload_conv): New function.
115         (arc_init): Add ARCv2 options.
116         (arc_conditional_register_usage): Select the proper register usage
117         for ARCv2 processors.
118         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
119         architecture.
120         (arc_compute_function_type): Likewise.
121         (arc_print_operand): Handle new ARCv2 punctuation characters.
122         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
123         bytes.
124         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
125         function.
126         (arc_reorg, arc_hazard): Use it.
127         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
128         __EM__.
129         (ASM_SPEC): Add ARCv2 options.
130         (TARGET_NORM): ARC HS has norm instructions by default.
131         (TARGET_OPTFPE): Use optimized floating point emulation for ARC
132         HS.
133         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
134         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
135         Define.
136         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
137         Likewise.
138         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
139         (TARGET_LP_WR_INTERLOCK): Likewise.
140         * config/arc/arc.md
141         (commutative_binary_mult_comparison_result_used, movsicc_insn)
142         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
143         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
144         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
145         Use it for ARCv2.
146         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
147         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
148         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
149         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
150         (extzvsi): New pattern.
151         * config/arc/arc.opt: New ARCv2 options.
152         * config/arc/arcEM.md: New file.
153         * config/arc/arcHS.md: Likewise.
154         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
155         values.
156         (Cm2): A signed 9-bit integer constant constraint.
157         (C62): An unsigned 6-bit integer constant constraint.
158         (C16): A signed 16-bit integer constant constraint.
159         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
160         (short_const_int_operand): New predicate.
161         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
162         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
163         -mcode-density and -mdiv-rem.
165 2015-11-11  Julia Koval  <julia.koval@intel.com>
167         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
169 2015-11-11  Julia Koval  <julia.koval@intel.com>
171         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
173 2015-11-11  Martin Liska  <mliska@suse.cz>
175         * gimple-ssa-strength-reduction.c (create_phi_basis):
176         Use auto_vec.
177         * passes.c (release_dump_file_name): New function.
178         (pass_init_dump_file): Used from this function.
179         (pass_fini_dump_file): Likewise.
180         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
181         * var-tracking.c (vt_initialize): Use pool_allocator.
183 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
184             Jiong Wang      <jiong.wang@arm.com>
186         PR tree-optimization/68234
187         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
188         node which estimiated to be VR_VARYING initially.
190 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
192         * regname.c (scan_rtx_reg): Check the matching number of consecutive
193         registers when tying chains.
194         (build_def_use): Move terminated_this_insn earlier in the function.
196 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
198         * configure.ac: Use = with test and not ==.
199         * configure: Regenerated.
201 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
203         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
204         machine asserts.  Update defines for 64 bit.
206 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
208         PR target/63870
209         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
210         lane number.
211         (neon_vst1_lane<mode>): Likewise.
212         (neon_vld2_lane<mode>): Likewise.
213         (neon_vst2_lane<mode>): Likewise.
214         (neon_vld3_lane<mode>): Likewise.
215         (neon_vst3_lane<mode>): Likewise.
216         (neon_vld4_lane<mode>): Likewise.
217         (neon_vst4_lane<mode>): Likewise.
219 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
221         PR target/63870
222         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
223         qualifier_struct_load_store_lane_index.
224         (arm_storestruct_lane_qualifiers) Likewise.
225         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
226         big-endian.
227         (neon_vst1_lane<mode>) Likewise.
228         (neon_vld2_lane<mode>) Likewise.
229         (neon_vst2_lane<mode>) Likewise.
230         (neon_vld3_lane<mode>) Likewise.
231         (neon_vst3_lane<mode>) Likewise.
232         (neon_vld4_lane<mode>) Likewise.
233         (neon_vst4_lane<mode>) Likewise.
235 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
237         PR target/63870
238         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
239         qualifier_struct_load_store_lane_index.
240         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
241         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
242         argument qualifiers.
243         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
244         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
246 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
248         * config/nvptx/nvptx.opt (moptimize): New flag.
249         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
250         default.
251         (nvptx_optimize_inner): New.
252         (nvptx_process_pars): Call it when optimizing.
253         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
255 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
257         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
258         Remove redundant code.
260 2015-11-10  Jeff Law  <law@redhat.com>
262         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
263         call to output_address.
264         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
265         Add unnamed machine_mode argument.
267 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
269         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
270         default to 64-bit.
272 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
274         * config/i386/i386.md (*movabs<mode>_1): Add explicit
275         size directives for -masm=intel.
276         (*movabs<mode>_2): Ditto.
278 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
280         * config/i386/i386.c (ix86_print_operand): Remove dead code that
281         tried to avoid (%rip) for call operands.
283 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
285         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
286         argument.  Do not use RIP relative addressing when no_rip is set.
287         (ix86_print_operand): Update call to ix86_print_operand_address_as.
288         (ix86_print_operand_address): Ditto.
289         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
290         absolute movabs operand 0.  Add square braces for -masm=intel.
291         (*movabs<mode>_2): Ditto for operand 1.
293 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
295         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
296         combine_vcvtf2i pattern.
298 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
300         * config/arm/arm.c (neon_valid_immediate): Remove integer
301         CONST_DOUBLE handling.  It should never occur.
303 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
305         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
306         (ATOMIC_LDOP): Likewise.
307         (atomic_ldop): Likewise.
308         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
309         (ATOMIC_LDOP): Likewise.
310         (atomic_ldop): Likewise.
312 2015-11-10  Martin Liska  <mliska@suse.cz>
314         * alloc-pool.h (allocate_raw): New function.
315         (operator new (size_t, object_allocator<T> &a)): Use the
316         function instead of object_allocator::allocate).
318 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
320         * config/i386/sse.md (HALFMASKMODE): New attribute.
321         (DOUBLEMASKMODE): New attribute.
322         (vec_pack_trunc_qi): New.
323         (vec_pack_trunc_<mode>): New.
324         (vec_unpacks_lo_hi): New.
325         (vec_unpacks_lo_si): New.
326         (vec_unpacks_lo_di): New.
327         (vec_unpacks_hi_hi): New.
328         (vec_unpacks_hi_<mode>): New.
330 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
332         * optabs.c (expand_binop_directly): Allow scalar mode for
333         vec_pack_trunc_optab.
334         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
335         boolean vector producers from pattern sequence when computing VF.
336         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
337         vect_recog_mask_conversion_pattern.
338         (search_type_for_mask): Choose the smallest
339         type if different size types are mixed.
340         (build_mask_conversion): New.
341         (vect_recog_mask_conversion_pattern): New.
342         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
343         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
344         load with pattern.
345         (vectorizable_conversion): Support boolean vectors.
346         (free_stmt_vec_info): Allow patterns for statements with no lhs.
347         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
349 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
351         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
352         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
353         Cast mask to FP mode if required.
354         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
355         (vcond_mask_<mode><avx512fmaskmodelower>): New.
356         (vcond_mask_<mode><sseintvecmodelower>): New.
357         (vcond_mask_<mode><sseintvecmodelower>): New.
358         (vcond_mask_v2div2di): New.
359         (vcond_mask_<mode><sseintvecmodelower>): New.
360         (vcond_mask_<mode><sseintvecmodelower>): New.
362 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
364         * optabs-query.h (get_vcond_mask_icode): New.
365         * optabs-tree.c (expand_vec_cond_expr_p): Use
366         get_vcond_mask_icode for VEC_COND_EXPR with mask.
367         * optabs.c (expand_vec_cond_mask_expr): New.
368         (expand_vec_cond_expr): Use get_vcond_mask_icode
369         when possible.
370         * optabs.def (vcond_mask_optab): New.
371         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
372         generate redundant comparison for COND_EXPR.
373         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
374         as a condition.
375         (vectorizable_condition): Likewise.
376         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
377         cond_exp with no embedded comparison.
378         (vect_build_slp_tree_1): Likewise.
380 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
382         * config/i386/sse.md (maskload<mode>): Rename to ...
383         (maskload<mode><sseintvecmodelower>): ... this.
384         (maskstore<mode>): Rename to ...
385         (maskstore<mode><sseintvecmodelower>): ... this.
386         (maskload<mode><avx512fmaskmodelower>): New.
387         (maskstore<mode><avx512fmaskmodelower>): New.
389 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
391         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
392         (expand_MASK_STORE): Adjust to maskstore optab changes.
393         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
394          Adjust to maskload, maskstore optab changes.
395         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
396         * optabs.def (maskload_optab): Transform into convert optab.
397         (maskstore_optab): Likewise.
398         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
399         can_vec_mask_load_store_p signature change.
400         (predicate_mem_writes): Use boolean mask.
401         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
402         can_vec_mask_load_store_p signature change.  Allow invariant masks.
403         (vectorizable_operation): Ignore type precision for boolean vectors.
405 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
407         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
408         (const_vector_mask_from_tree): New.
409         (const_vector_from_tree): Use const_vector_mask_from_tree
410         for boolean vectors.
411         * optabs-query.h (get_vec_cmp_icode): New.
412         * optabs-tree.c (expand_vec_cmp_expr_p): New.
413         * optabs-tree.h (expand_vec_cmp_expr_p): New.
414         * optabs.c (vector_compare_rtx): Add OPNO arg.
415         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
416         (expand_vec_cmp_expr): New.
417         * optabs.def (vec_cmp_optab): New.
418         (vec_cmpu_optab): New.
419         * optabs.h (expand_vec_cmp_expr): New.
420         * tree-vect-generic.c (expand_vector_comparison): Add vector
421         comparison optabs check.
422         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
423         operations for VF.  Add mask type computation.
424         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
425         (vectorizable_comparison): New.
426         (vect_analyze_stmt): Add vectorizable_comparison.
427         (vect_transform_stmt): Likewise.
428         (vect_init_vector): Support boolean vector invariants.
429         (vect_get_vec_def_for_operand): Add VECTYPE arg.
430         (vectorizable_condition): Directly provide vectype for invariants
431         used in comparison.
432         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
433         (enum vect_var_kind): Add vect_mask_var.
434         (enum stmt_vec_info_type): Add comparison_vec_info_type.
435         (vectorizable_comparison): New.
436         (vect_get_vec_def_for_operand): Add VECTYPE arg.
437         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
438         (vect_create_destination_var): Likewise.
439         * tree-vect-patterns.c (check_bool_pattern): Check fails
440         if we can vectorize comparison directly.
441         (search_type_for_mask): New.
442         (vect_recog_bool_pattern): Support cases when bool pattern
443         check fails.
444         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
445         comparison statements.
446         (vect_get_constant_vectors): Support boolean vector
447         constants.
448         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
449         (ix86_expand_int_vec_cmp): New.
450         (ix86_expand_fp_vec_cmp): New.
451         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
452         op_true and op_false.
453         (ix86_int_cmp_code_to_pcmp_immediate): New.
454         (ix86_fp_cmp_code_to_pcmp_immediate): New.
455         (ix86_cmp_code_to_pcmp_immediate): New.
456         (ix86_expand_mask_vec_cmp): New.
457         (ix86_expand_fp_vec_cmp): New.
458         (ix86_expand_int_sse_cmp): New.
459         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
460         (ix86_expand_int_vec_cmp): New.
461         (ix86_get_mask_mode): New.
462         (TARGET_VECTORIZE_GET_MASK_MODE): New.
463         * config/i386/sse.md (avx512fmaskmodelower): New.
464         (vec_cmp<mode><avx512fmaskmodelower>): New.
465         (vec_cmp<mode><sseintvecmodelower>): New.
466         (vec_cmpv2div2di): New.
467         (vec_cmpu<mode><avx512fmaskmodelower>): New.
468         (vec_cmpu<mode><sseintvecmodelower>): New.
469         (vec_cmpuv2div2di): New.
471 2015-11-10  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/68240
474         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
475         properly.
476         (visit_phi): For PHIs with just a single executable edge
477         take its value directly.
478         (expressions_equal_p): Handle VN_TOP properly.
480 2015-11-10  Richard Biener  <rguenther@suse.de>
482         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
483         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
484         conservatively.
486 2015-11-10  Richard Biener  <rguenther@suse.de>
488         PR tree-optimization/56118
489         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
490         cost favor vectorized version.
492 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
494         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
495         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
496         (neg_not_op): New code attribute.
498 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
500         * ifcvt.c (noce_try_inverse_constants): New function.
501         (noce_process_if_block): Call it.
502         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
503         * optabs.def (negcc_optab, notcc_optab): Declare.
504         * optabs.c (emit_conditional_neg_or_complement): New function.
505         * doc/tm.texi (Standard Names): Document negcc, notcc names.
507 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
509         PR rtl-optimization/68236
510         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
511         if insn_queue doesn't exist.
512         (haifa_sched_finish): Reset insn_queue to NULL.
514 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
516         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
517         (build_def_use): Initialize terminated_this_insn.
518         (find_best_rename_reg): Pick and check register from the tied chain.
519         (regrename_do_replace): Mark head as renamed.
520         (struct du_head *terminated_this_insn). New static variable.
521         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
522         * regrename.h (struct du_head): Add tied_chain, renamed members.
524 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
526         PR bootstrap/68256
527         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
528         Return false.
530 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
532         PR target/57845
533         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
534         not promote the mode for aggregate types.
536 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
538         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
539         * omp-low.c (build_oacc_routine_dims): New.
541 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
543         * config/rs6000/constraints.md (wF constraint): New constraints
544         for power9/toc fusion.
545         (wG constraint): Likewise.
547         * config/rs6000/predicates.md (u6bit_cint_operand): New
548         predicate, recognize 0..63.
549         (upper16_cint_operand): New predicate for power9 and toc fusion.
550         (fpr_reg_operand): Likewise.
551         (toc_fusion_or_p9_reg_operand): Likewise.
552         (toc_fusion_mem_raw): Likewise.
553         (toc_fusion_mem_wrapped): Likewise.
554         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
555         address range.
556         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
557         instead.
558         (fusion_addis_mem_combo_load): Add support for power9 fusion of
559         floating point loads, floating point stores, and gpr stores.
560         (fusion_addis_mem_combo_store): Likewise.
561         (fusion_offsettable_mem_operand): Likewise.
563         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
564         declarations.
565         (emit_fusion_load_store): Likewise.
566         (fusion_p9_p): Likewise.
567         (expand_fusion_p9_load): Likewise.
568         (expand_fusion_p9_store): Likewise.
569         (emit_fusion_p9_load): Likewise.
570         (emit_fusion_p9_store): Likewise.
571         (fusion_wrap_memory_address): Likewise.
573         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
574         elements for power9 fusion.
575         (rs6000_debug_print_mode): Rework debug information to print more
576         information about fusion.
577         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
578         support.
579         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
580         offsettable memory address.
581         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
582         (emit_fusion_gpr_load): Move most of the code from
583         emit_fusion_gpr_load into emit_fusion-addis that handles both
584         power8 and power9 fusion.
585         (emit_fusion_addis): Likewise.
586         (emit_fusion_load_store): Likewise.
587         (fusion_wrap_memory_address): Add support for TOC fusion.
588         (fusion_split_address): Likewise.
589         (fusion_p9_p): Add support for power9 fusion.
590         (expand_fusion_p9_load): Likewise.
591         (expand_fusion_p9_store): Likewise.
592         (emit_fusion_p9_load): Likewise.
593         (emit_fusion_p9_store): Likewise.
595         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
596         new instructions in ISA 3.0.
597         (TARGET_CTZ): Likewise.
598         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
599         (TARGET_TOC_FUSION_FP): Likewise.
601         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
602         fusion unspecs.
603         (UNSPEC_FUSION_ADDIS): Likewise.
604         (QHSI mode iterator): New iterator for power9 fusion.
605         (GPR_FUSION): Likewise.
606         (FPR_FUSION): Likewise.
607         (mod<mode>3): Add support for ISA 3.0
608         modulus instructions.
609         (umod<mode>3): Likewise.
610         (divmod peephole): Likewise.
611         (udivmod peephole): Likewise.
612         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
613         instructions.
614         (ctz<mode>2_h): Likewise.
615         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
616         (ashdi3_extswsli_dot): Likewise.
617         (ashdi3_extswsli_dot2): Likewise.
618         (power9 fusion splitter): New power9/toc fusion support.
619         (toc_fusionload_<mode>): Likewise.
620         (toc_fusionload_di): Likewise.
621         (fusion_gpr_load_<mode>): Update predicate function.
622         (power9 fusion peephole2s): New power9/toc fusion support.
623         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
624         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
625         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
626         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
627         (fusion_p9_<mode>_constant): Likewise.
629 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
631         * optabs.c (prepare_libcall_arg): New function.
632         (expand_fixed_convert): Add call to prepare_libcall_arg.
634 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
636         * sched-int.h (dump_rgn_dependencies_dot): Declare
637         * sched-rgn.c (dump_rgn_dependencies_dot): New function
638         * print-rtl.h (print_insn): Add prototype
640         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
641         * common.opt (-fsched-verbose): Set default value to 1.
642         * invoke.texi (-fsched-verbose): Update the option's description.
644 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
646         * config/visium/visium.h (PRINT_OPERAND): Delete.
647         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
648         (PRINT_OPERAND_ADDRESS): Likewise.
649         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
650         to...
651         (visium_print_operand_punct_valid_p): ...this.  New function.
652         (TARGET_PRINT_OPERAND): Define to...
653         (print_operand): Rename to...
654         (visium_print_operand): ...this.
655         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
656         (visium_output_address): Rename to...
657         (visium_print_operand_address): ...this.
658         (print_operand_address): Delete.
660 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
662         PR middle-end/68259
663         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
664         Check that the type of the first operand is an aggregate type.
666 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
668         * omp-low.c: Fix some OpenACC comment typos.
669         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
670         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
671         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
673 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
675         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
677 2015-11-09  Jeff Law  <law@redhat.com>
679         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
680         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
681         Fix comment typo.
683 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
684             Peter Bergner  <bergner@vnet.ibm.com>
686         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
687         ISA 3.0 (power9).
688         (-mpower9-vector): Likewise.
689         (-mpower9-dform): Likewise.
690         (-mpower9-minmax): Likewise.
691         (-mtoc-fusion): Likewise.
692         (-mmodulo): Likewise.
693         (-mfloat128-hardware): Likewise.
695         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
696         mask for ISA 3.0 (power9).
697         (POWERPC_MASKS): Add new ISA 3.0 switches.
698         (power9 cpu): Add power9 cpu.
700         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
701         power9.
702         (ASM_CPU_SPEC): Likewise.
703         (EXTRA_SPECS): Likewise.
705         * config/rs6000/rs6000-opts.h (enum processor_type): Add
706         PROCESSOR_POWER9.
708         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
709         power9.
710         (rs6000_debug_reg_global): Add support for power9 fusion.
711         (rs6000_setup_reg_addr_masks): Cache mode size.
712         (rs6000_option_override_internal): Until real power9 tuning is
713         added, use -mtune=power8 for -mcpu=power9.
714         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
715         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
716         of Altivec registers.
717         (rs6000_option_override_internal): Add support for ISA 3.0
718         switches.
719         (rs6000_loop_align): Add support for power9 cpu.
720         (rs6000_file_start): Likewise.
721         (rs6000_adjust_cost): Likewise.
722         (rs6000_issue_rate): Likewise.
723         (insn_must_be_first_in_group): Likewise.
724         (insn_must_be_last_in_group): Likewise.
725         (force_new_group): Likewise.
726         (rs6000_register_move_cost): Likewise.
727         (rs6000_opt_masks): Likewise.
729         * config/rs6000/rs6000.md (cpu attribute): Add power9.
730         * config/rs6000/rs6000-tables.opt: Regenerate.
732         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
733         _ARCH_PWR9 if power9 support is available.
735         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
736         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
738         * configure.ac: Determine if the assembler supports the ISA 3.0
739         instructions.
740         * config.in (HAVE_AS_POWER9): Likewise.
741         * configure: Regenerate.
743         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
744         switches.
746 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
748         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
749         Remove integer CONST_DOUBLE handling.  It should never occur.
751 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
753         PR target/68129
754         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
755         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
756         Delete VOIDmode case.  Assert that mode is not VOIDmode.
757         * config/aarch64/predicates.md (const0_operand): Remove const_double
758         match.
760 2015-11-09  Martin Liska  <mliska@suse.cz>
762         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
763         body_info release function.
764         * ipa-prop.c (ipa_release_body_info): New function.
765         (ipa_analyze_node): Call the function.
766         (ipa_node_params::~ipa_node_params): Release known_csts.
767         * ipa-prop.h (ipa_release_body_info): Declare.
769 2015-11-09  Martin Liska  <mliska@suse.cz>
771         * gcc.c (record_temp_file): Release name string.
772         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
773         of vec.
774         * lra-lives.c (free_live_range_list): Utilize
775         lra_live_range_pool for allocation and deallocation.
776         (create_live_range): Likewise.
777         (copy_live_range): Likewise.
778         (lra_merge_live_ranges): Likewise.
779         (remove_some_program_points_and_update_live_ranges): Likewise.
780         (lra_create_live_ranges_1): Release point_freq_vec that can
781         be not freed from previous iteration of the function.
782         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
783         vec.
784         * tree-sra.c (sra_deinitialize): Release all vectors in
785         base_access_vec.
786         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
787         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
788         Release edge_info for a removed edge.
789         (thread_through_all_blocks): Free region vector.
790         * tree-ssa.h (free_dom_edge_info): Declare function extern.
792 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
794         * optabs.c (expand_vec_cond_expr): Always get sign from type.
795         * tree.c (wide_int_to_tree): Support negative values for boolean.
796         (build_nonstandard_boolean_type): Use signed type for booleans.
798 2015-11-09  Richard Biener  <rguenther@suse.de>
800         PR tree-optimization/68248
801         * tree-vect-generic.c (expand_vector_operations_1): Handle
802         scalar rhs2.
804 2015-11-09  Richard Biener  <rguenther@suse.de>
806         PR tree-optimization/56118
807         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
808         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
809         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
810         function.
811         (vect_slp_analyze_data_ref_dependences): Instead of computing
812         all dependences of the region DRs just analyze the code motions
813         SLP vectorization will perform.  Remove SLP instances that
814         cannot have their store/load motions applied.
815         (vect_analyze_data_refs): Allow DRs without a vectype
816         in BB vectorization.
818 2015-11-09  Julian Brown  <julian@codesourcery.com>
820         * final.c (output_asm_insn): Pass VOIDmode to output_address.
821         (output_address): Add MODE argument. Pass to print_operand_address
822         hook.
823         * targhooks.c (default_print_operand_address): Add MODE argument.
824         * targhooks.h (default_print_operand_address): Update prototype.
825         * output.h (output_address): Update prototype.
826         * target.def (print_operand_address): Add MODE argument.
827         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
828         output_address.
829         (print_operand): Pass access mode to output_address.
830         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
831         argument.
832         (mcore_print_operand): Update calls to mcore_print_operand_address.
833         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
834         output_address.
835         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
836         output_address.
837         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
838         global.
839         (tilegx_print_operand): Don't set above global. Update calls to
840         output_address.
841         (tilegx_print_operand_address): Add MODE argument. Use instead of
842         output_memory_reference_mode global.
843         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
844         (frv_print_operand): Pass mode to frv_print_operand_address calls.
845         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
846         output_address.
847         * config/cris/cris.c (cris_print_operand_address): Add MODE
848         argument.
849         (cris_print_operand): Pass mode to output_address calls.
850         * config/spu/spu.c (print_operand): Pass mode to output_address
851         calls.
852         * config/aarch64/aarch64.h (aarch64_print_operand)
853         (aarch64_print_operand_address): Remove prototypes.
854         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
855         global.
856         (aarch64_print_operand): Make static. Update calls to
857         output_address.
858         (aarch64_print_operand_address): Add MODE argument. Use instead of
859         aarch64_memory_reference_mode global.
860         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
861         hooks.
862         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
863         Delete macro definitions.
864         * config/pa/pa.c (pa_print_operand): Pass mode in output_address
865         calls.
866         * config/xtensa/xtensa.c (print_operand): Pass mode in
867         output_address calls.
868         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
869         argument.
870         (h83000_print_operand): Update calls to h8300_print_operand_address
871         and output_address.
872         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
873         argument.
874         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
875         global.
876         (tilepro_print_operand): Pass mode to output_address.
877         (tilepro_print_operand_address): Add MODE argument. Use instead of
878         output_memory_reference_mode.
879         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
880         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
881         to output_address calls.
882         (nvptx_print_operand_address): Add MODE argument.
883         * config/alpha/alpha.c (print_operand): Pass mode argument in
884         output_address calls.
885         * config/m68k/m68k.c (print_operand): Pass mode argument in
886         output_address call.
887         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
888         (avr_print_operand): Update calls to avr_print_operand_address.
889         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
890         argument. Update calls to output_address.
891         (sparc_print_operand): Pass mode to output_address.
892         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
893         argument.
894         (iq2000_print_operand): Pass mode in output_address calls.
895         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
896         MODE argument.
897         (xstormy16_print_operand): Pass mode to
898         xstormy16_print_operand_address calls.
899         * config/mips/mips.c (mips_print_operand): Update calls to
900         output_address.
901         (mips_print_operand_address): Add MODE argument.
902         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
903         to output_address.
904         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
905         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
906         output_address.
907         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
908         (rx_print_operand): Update calls to output_address,
909         rx_print_operand_address.
910         * config/nds32/nds32.c (nds32_print_operand): Update calls to
911         output_address.
912         (nds32_print_operand_address): Add MODE argument.
913         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
914         output_address calls.
915         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
916         output_address call.
917         (c6x_print_address_operand): Update calls to output_address.
918         (c6x_print_operand_address): Pass mode to above.
919         * config/v850/v850.c (v850_print_operand_address): Add MODE
920         argument.
921         (v850_print_operand): Pass mode to v850_print_operand_address,
922         output_address.
923         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
924         argument.
925         (mmix_print_operand): Pass mode in output_address calls.
926         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
927         (sh_print_operand): Pass mem mode to output_address,
928         sh_print_operand_address.
929         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
930         argument.
931         (cr16_print_operand): Pass mode to output_address,
932         cr16_print_operand_address.
933         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
934         output_address.
935         * config/microblaze/microblaze.c (print_operand): Pass mode to
936         output_address.
937         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
938         output_address.
939         (nios2_print_operand_address): Add MODE argument. Update call to
940         nios2_print_operand_address.
941         * config/s390/s390.c (print_operand): Pass mode to output_address.
942         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
943         argument.
944         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
945         output_address.
946         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
947         Use instead of output_memory_reference_mode.
948         (output_memory_reference_mode): Delete global.
949         (arm_print_operand): Pass mem mode to output_address.
950         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
951         argument.
952         (m32r_print_operand): Pass mode to output_address.
953         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
954         argument.
955         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
956         * config/i386/i386.c (ix86_print_operand): Pass mode to
957         output_address calls.
958         (ix86_print_operand_address): Add MODE argument.
960 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
962         PR middle-end/68251
963         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
964         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
965         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
966         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
968 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
970         PR rtl-optimization/67749
971         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
972         case before emitting the two blocks.  Instead modify the register
973         in the corresponding final insn of the basic block.
975 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
977         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
978         assembler syntax.
979         Support Solaris ld.
980         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
982         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
983         HAVE_INITFINI_ARRAY_SUPPORT.
984         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
985         value.
987         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
988         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
989         Don't check HAVE_AS_SPARC_NOBITS.
990         Heed SECTION_NOTYPE.
992         * configure: Regenerate.
993         * config.in: Regenerate.
995 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
997         PR middle-end/68253
998         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1000 2015-11-09  Richard Henderson  <rth@redhat.com>
1002         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1003         __SEG_GS, __SEG_TLS.
1004         (ix86_register_pragmas): Register address spaces __seg_fs,
1005         __seg_gs, __seg_tls.
1006         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1007         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1008         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1009         * config/i386/i386.c (ix86_decompose_address): Likewise.
1010         (ix86_legitimate_address_p): Likewise.
1011         (memory_address_length): Likewise.  Check mem address space too.
1012         (ix86_print_operand): Use ix86_print_operand_address_as.
1013         (ix86_print_operand_address_as): Rename from
1014         ix86_print_operand_address, add new addr_space_t parameter.
1015         Validate that either the parameter or the ix86_address segment
1016         is default address space.  Handle ADDR_SPACE_SEG_TLS.
1017         (ix86_print_operand_address): New.
1018         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1019         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1020         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1021         (ix86_addr_space_zero_address_valid): New.
1022         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1023         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1024         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1025         * config/i386/predicates.md (address_no_seg_operand): Likewise.
1026         (vsib_address_operand): Likewise.
1027         (address_mpx_no_base_operand): Likewise.
1028         (address_mpx_no_index_operand): Likewise.
1029         * doc/extend.texi (x86 Named Address Spaces): New section.
1031         * config/i386/i386.c (ix86_check_no_addr_space): New.
1032         (decide_alg): Add have_as parameter.
1033         (alg_usable_p): Likewise; disable rep algorithms if set.
1034         (ix86_expand_set_or_movmem): Notice if either MEM has a
1035         non-default address space.
1036         (ix86_expand_strlen): Likewise.
1037         * config/i386/i386.md (strmov, strset): Likewise.
1038         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1039         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1040         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1041         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1042         *cmpstrnqi_1, *strlenqi_1): Likewise.
1044         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1045         (*movabs<mode>_2): Likewise.
1047         * dwarf2out.c (modified_type_die): Pass the address space number
1048         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1049         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1050         * targhooks.c (default_addr_space_debug): New.
1051         * targhooks.h (default_addr_space_debug): Declare.
1052         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1053         * doc/tm.texi: Rebuild.
1055         * gimple.c (check_loadstore): Return false when 0 is a valid address.
1056         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1057         null when 0 is valid in the source address space.
1058         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1059         * targhooks.c (default_addr_space_zero_address_valid): New.
1060         * targhooks.h (default_addr_space_zero_address_valid): Declare.
1061         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1062         * doc/tm.texi: Rebuild.
1064         * cselib.c (add_mem_for_addr): Compare address spaces when
1065         matching memories.
1066         (cselib_lookup_mem): Likewise.
1067         * fold-const.c (operand_equal_p): Check address spaces of
1068         pointer types before checking integer constants.
1070         PR tree-opt/66768
1071         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1072         the correct type for the base.
1074 2015-11-09  Jeff Law  <law@redhat.com>
1076         * tree-into-ssa.c (names_to_release): No longer static.
1077         * tree-into-ssa.h (names_to_release): Declare.
1078         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1079         (release_free_names_and_compact_live_names): New function extracted
1080         from pass_release_ssa_names::execute.
1081         (pass_release_ssa_names::execute): Use it.
1083 2015-11-09  Alan Modra  <amodra@gmail.com>
1085         * gensupport.c (add_mnemonic_string): Make len param a size_t.
1086         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
1087         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
1088         return value.
1090 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
1092         PR rtl-optimization/68182
1093         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1094         branch with only one successor just like unconditional branches.
1096 2015-11-08  Jeff Law  <law@redhat.com>
1098         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1099         non-FSM path has no edges marked with EDGE_DFS_BACK.
1100         (ssa_redirect_edges): No longer call mark_loop_for_removal.
1101         (thread_single_edge, def_split_header_continue_p): Remove.
1102         (bb_ends_with_multiway_branch): Likewise.
1103         (thread_through_loop_header): Remove cases of threading from
1104         latch through the header.  Simplify knowing we won't thread
1105         the latch.
1106         (thread_through_all_blocks): Simplify knowing that only the FSM
1107         threader needs to handle backedges.
1109 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1111         * doc/extend.texi (type attributes): Document scalar_storage_order.
1112         (Structure-Packing Pragmas): Rename into...
1113         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
1114         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1115         (Warnings): Document -Wno-scalar-storage-order.
1116         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1117         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1118         extract_bit_field and store_bit_field.
1119         (initialize_argument_information): Adjust call to store_expr.
1120         (load_register_parameters): Adjust call to extract_bit_field.
1121         * expmed.c (check_reverse_storage_order_support): New function.
1122         (check_reverse_float_storage_order_support): Likewise.
1123         (flip_storage_order): Likewise.
1124         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
1125         of the value if it is true.  Pass REVERSE to recursive call after
1126         adjusting the target offset.
1127         Do not use extraction or movstrict instruction if REVERSE is true.
1128         Pass REVERSE to store_fixed_bit_field.
1129         (store_bit_field): Add REVERSE parameter and pass to it to above.
1130         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1131         store_split_bit_field and store_fixed_bit_field_1.
1132         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
1133         order of the value if it is true and adjust the target offset.
1134         (store_split_bit_field): Add REVERSE parameter and pass it to
1135         store_fixed_bit_field.  Adjust the target offset if it is true.
1136         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
1137         of the value if it is true.  Pass REVERSE to recursive call after
1138         adjusting the target offset.
1139         Do not use extraction or subreg instruction if REVERSE is true.
1140         Pass REVERSE to extract_fixed_bit_field.
1141         (extract_bit_field): Add REVERSE parameter and pass to it to above.
1142         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1143         extract_split_bit_field and extract_fixed_bit_field_1.
1144         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
1145         order of the value if it is true and adjust the target offset.
1146         (extract_split_bit_field): Add REVERSE parameter and pass it to
1147         extract_fixed_bit_field.  Adjust the target offset if it is true.
1148         * expmed.h (flip_storage_order): Declare.
1149         (store_bit_field): Adjust prototype.
1150         (extract_bit_field): Likewise.
1151         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1152         (emit_group_store): Adjust call to store_bit_field.
1153         (copy_blkmode_from_reg): Likewise.
1154         (copy_blkmode_to_reg): Likewise.
1155         (write_complex_part): Likewise.
1156         (read_complex_part): Likewise.
1157         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
1158         that it isn't true if the target is a register.
1159         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1160         and flip the storage order of the value.
1161         <BIT_IOR_EXPR>: Flip the storage order of the value.
1162         (get_bit_range): Adjust call to get_inner_reference.
1163         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1164         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
1165         with reverse storage order.
1166         (store_expr_with_bounds): Add REVERSE parameter and pass it to
1167         recursive calls and call to store_bit_field.  Force the value into a
1168         register if it is true and then flip the storage order of the value.
1169         (store_expr): Add REVERSE parameter and pass it to above.
1170         (categorize_ctor_elements_1): Adjust call to
1171         initializer_constant_valid_p.
1172         (store_constructor_field): Add REVERSE parameter and pass it to
1173         recursive calls and call to store_field.
1174         (store_constructor): Add REVERSE parameter and pass it to calls to
1175         store_constructor_field and store_expr.  Set it to true for an
1176         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1177         (store_field): Add REVERSE parameter and pass it to recursive calls
1178         and calls to store_expr and store_bit_field.  Temporarily flip the
1179         storage order of the value with record type and integral mode and
1180         adjust the shift if it is true.
1181         (get_inner_reference): Add PREVERSEP parameter and set it to true
1182         upon encoutering a reference with reverse storage order.
1183         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1184         (expand_constructor): Adjust call to store_constructor.
1185         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1186         of the union type to store_expr in the MEM case and assert that it
1187         isn't set in the REG case.  Adjust call to store_field.
1188         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1189         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1190         get_inner_reference and extract_bit_field. Temporarily flip the
1191         storage order of the value with record type and integral mode and
1192         adjust the shift if it is true.  Flip the storage order of the value
1193         at the end if it is true.
1194         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1195         get_inner_reference.  Do not fetch an inner reference if it is true.
1196         * expr.h (store_expr_with_bounds): Ajust prototype.
1197         (store_expr): Likewise.
1198         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1199         REF_REVERSE_STORAGE_ORDER on the reference according to it.
1200         (optimize_bit_field_compare): Deal with reverse storage order.
1201         Adjust calls to get_inner_reference and make_bit_field_ref.
1202         (decode_field_reference): Add PREVERSEP parameter and adjust call to
1203         get_inner_reference.
1204         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
1205         to decode_field_reference and make_bit_field_ref.
1206         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1207         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1208         (fold_comparison): Adjust call to get_inner_reference.
1209         (split_address_to_core_and_offset): Adjust call to
1210         get_inner_reference.
1211         * gimple-expr.c (useless_type_conversion_p): Return false for array
1212         types with different TYPE_REVERSE_STORAGE_ORDER flag.
1213         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1214         REF_REVERSE_STORAGE_ORDER flag.
1215         * lto-streamer-out.c (hash_tree): Deal with
1216         TYPE_REVERSE_STORAGE_ORDER.
1217         * output.h (assemble_real): Adjust prototype.
1218         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1219         * stor-layout.c (finish_record_layout): Propagate the
1220         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1221         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1222         (TYPE_SATURATING): Adjust.
1223         (REF_REVERSE_STORAGE_ORDER): Document.
1224         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1225         set it to true upon encoutering a reference with reverse storage
1226         order.
1227         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1228         * tree-inline.c (remap_gimple_op_r): Propagate the
1229         REF_REVERSE_STORAGE_ORDER flag.
1230         (copy_tree_body_r): Likewise.
1231         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1232         store_expr.
1233         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1234         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1235         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1236         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1237         REF_REVERSE_STORAGE_ORDER flag.
1238         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1239         (gimple_canonical_types_compatible_p): Likewise.
1240         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1241         (TYPE_SATURATING): Adjust.
1242         (REF_REVERSE_STORAGE_ORDER): New flag.
1243         (reverse_storage_order_for_component_p): New inline predicate.
1244         (storage_order_barrier_p): Likewise.
1245         (get_inner_reference): Adjust prototype.
1246         * varasm.c: Include expmed.h.
1247         (assemble_variable_contents): Adjust call to output_constant.
1248         (assemble_real): Add REVERSE parameter.  Flip the storage
1249         order of the value if REVERSE is true.
1250         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1251         (assemble_constant_contents): Adjust call to output_constant.
1252         (output_constant_pool_2): Adjust call to assemble_real.
1253         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1254         TYPE_REVERSE_STORAGE_ORDER.
1255         (initializer_constant_valid_p): Add REVERSE parameter.
1256         (output_constant): Add REVERSE parameter.
1257         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1258         <REAL_TYPE>: Adjust call to assemble_real.
1259         <COMPLEX_TYPE>: Pass it to recursive calls.
1260         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
1261         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
1262         (struct oc_local_state): Add REVERSE field.
1263         (output_constructor_array_range): Adjust calls to output_constant.
1264         (output_constructor_regular_field): Likewise.
1265         (output_constructor_bitfield): Adjust call to output_constructor.
1266         Flip the storage order of the value if REVERSE is true.
1267         (output_constructor): Add REVERSE parameter.  Set it to true for an
1268         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
1269         output_constructor_bitfield.
1270         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1271         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1272         * builtins.c (get_object_alignment_2): Likewise.
1273         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1274         and get_ref_base_and_extent.
1275         * dbxout.c (dbxout_expand_expr): Likewise.
1276         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1277         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1278         (loc_list_from_tree): Likewise.
1279         (fortran_common): Likewise.
1280         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1281         get_ref_base_and_extent.
1282         (get_base_constructor): Likewise.
1283         (fold_const_aggregate_ref_1): Likewise.
1284         * gimple-laddress.c (pass_laddress::execute): Adjust call to
1285         get_inner_reference.
1286         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1287         get_inner_reference and bail out on reverse storage order.
1288         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1289         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1290         build_ref_for_offset.
1291         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1292         get_ref_base_and_extent.
1293         (ipa_polymorphic_call_context): Likewise.
1294         (extr_type_from_vtbl_ptr_store): Likewise.
1295         (check_stmt_for_type_change): Likewise.
1296         (get_dynamic_type): Likewise.
1297         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1298         get_ref_base_and_extent.
1299         (compute_complex_assign_jump_func): Likewise.
1300         (get_ancestor_addr_info): Likewise.
1301         (compute_known_type_jump_func): Likewise.
1302         (determine_known_aggregate_parts): Likewise.
1303         (ipa_get_adjustment_candidate): Likewise.
1304         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1305         MEM_REF.
1306         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1307         (build_ref_for_offset): Adjust prototype.
1308         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1309         get_inner_reference.
1310         * tree-affine.c (tree_to_aff_combination): Adjust call to
1311         get_inner_reference.
1312         (get_inner_reference_aff): Likewise.
1313         * tree-data-ref.c (split_constant_offset_1): Likewise.
1314         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
1315         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1316         get_inner_reference.
1317         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1318         (dump_access): Print new fields.
1319         (create_access): Adjust call to get_ref_base_and_extent and set the
1320         REVERSE flag according to the result.
1321         (completely_scalarize_record): Set the REVERSE flag.
1322         (scalarize_elem): Add REVERSE parameter.
1323         (build_access_from_expr_1): Preserve storage order barriers.
1324         (build_accesses_from_assign): Likewise.
1325         (build_ref_for_offset): Add REVERSE parameter and set the
1326         REF_REVERSE_STORAGE_ORDER flag accordingly.
1327         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1328         the REF_REVERSE_STORAGE_ORDER flag if there are components.
1329         (analyze_access_subtree): Likewise.
1330         (create_artificial_child_access): Set the REVERSE flag.
1331         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1332         (turn_representatives_into_adjustments): Propagate REVERSE flag.
1333         (ipa_sra_check_caller): Adjust call to get_inner_reference.
1334         * tree-ssa-alias.c (ao_ref_base): Adjust call to
1335         get_ref_base_and_extent.
1336         (aliasing_component_refs_p): Likewise.
1337         (stmt_kills_ref_p_1): Likewise.
1338         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1339         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1340         Return true if reverse storage order.
1341         <BIT_FIELD_REF>: Likewise.
1342         <COMPONENT_REF>: Likewise.
1343         <ARRAY_REF>: Likewise.
1344         <ARRAY_RANGE_REF>: Likewise.
1345         (split_address_cost): Likewise.  Bail out if reverse storage order.
1346         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1347         get_inner_reference.  Bail out if reverse storage order.
1348         (bswap_replace): Adjust call to get_inner_reference.
1349         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1350         the REF_REVERSE_STORAGE_ORDER flag.
1351         <BIT_FIELD_REF>: Likewise.
1352         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1353         barriers.
1354         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1355         to the REF_REVERSE_STORAGE_ORDER flag.
1356         <BIT_FIELD_REF>: Likewise.
1357         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1358         (contains_storage_order_barrier_p): New predicate.
1359         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1360         Punt on storage order barriers if necessary.
1361         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1362         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1363         call to get_ref_base_and_extent.
1364         (do_structure_copy): Likewise.
1365         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1366         get_inner_reference.
1367         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
1368         order.
1369         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1370         * ubsan.c (instrument_bool_enum_load): Likewise.
1371         (instrument_object_size): Likewise.
1372         * var-tracking.c (track_expr_p): Adjust call to
1373         get_ref_base_and_extent
1374         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1375         get_inner_reference.
1376         * config/s390/s390.c (s390_expand_atomic): Adjust call to
1377         store_bit_field.
1378         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1379         extract_bit_field.
1380         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1382 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1384         * config/sparc/sparc.opt (mfix-at697f): Add final period.
1386 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
1388         PR rtl-optimization/67864
1389         * common/config/i386/i386-common.c (ix86_option_optimization_table)
1390         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1391         at -Os and up.
1393 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1395         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1396         internal functions.
1398 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1400         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1401         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1403 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1405         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1406         * internal-fn.c: Don't undef it here.
1407         * tree-core.h: Likewise.
1409 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1411         * builtins.c (fold_builtin_nan): Delete.
1412         (fold_builtin_memcmp): Remove case where both arguments are constant.
1413         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1414         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1415         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1416         * fold-const-call.c: Include fold-const.h.
1417         (host_size_t_cst_p): New function.
1418         (build_cmp_result, fold_const_builtin_nan): Likewise.
1419         (fold_const_call_1): New function, split out from...
1420         (fold_const_call): ...here (for all three interfaces).  Handle
1421         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1423 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1425         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1426         (fold_builtin_1): Don't call them.
1427         * fold-const-call.c: Include tm.h.
1428         (fold_const_call_ss): New variant for integer-to-integer folds.
1429         (fold_const_call): Call it.
1431 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1433         * builtins.c (fold_builtin_classify): Move constant cases to...
1434         * fold-const-call.c (fold_const_call_ss): ...here.
1436 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1438         * builtins.h (c_getstr): Move to...
1439         * fold-const.h (c_getstr): ...here.
1440         * builtins.c (c_getstr): Move to...
1441         * fold-const.c (c_getstr): ...here.
1443 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1445         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1446         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1448 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1450         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1451         the dominance info; free it if we can't.
1452         (pass_call_cdce::execute): Don't free the dominance info here.
1454 2015-11-06  Jeff Law <law@redhat.com>
1456         * tree-ssa-threadedge.c (dummy_simplify): Remove.
1457         (thread_around_empty_blocks): Remove backedge_seen_p argument.
1458         If we thread to a backedge, then return false.  Update recursive
1459         call to eliminate backedge_seen_p argument.
1460         (thread_through_normal_block): Remove backedge_seen_p argument.
1461         Remove backedge_seen_p argument from calls to
1462         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
1463         If we thread to a backedge, then return 0.
1464         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
1465         pass it to thread_through_normal_block or thread_through_empty_blocks.
1466         For joiner handling, if we see a backedge, do not try normal
1467         threading.
1469 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1471         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1472         * graphite-poly.c (new_scop): Initialize original_schedule.
1473         (free_scop): Free original_schedule.
1474         * graphite-poly.h (struct scop): Add field original_schedule.
1475         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1476         (build_poly_scop): Call build_scop_original_schedule.
1478 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1480         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1481         (build_pbb_minimal_scattering_polyhedrons): New.
1482         (build_scop_scattering): Remove.
1483         (build_scop_minimal_scattering): New.
1484         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1485         (build_poly_scop): Call build_scop_minimal_scattering.
1487 2015-11-06  Jeff Law <law@redhat.com>
1489         * cfg-flags.def (IGNORE): New edge flag.
1490         * tree-vrp.c (identify_jump_threads): Mark and clear edges
1491         scheduled for removal with EDGE_IGNORE around call into
1492         jump threader.  Do no thread across edges with EDGE_IGNORE,
1493         but do allow threading across those with EDGE_DFS_BACK.
1495 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
1497         * doc/md.texi (multi-alternative constraints): Don't document
1498         alternatives inherently tied to reload for the user documentation.
1500 2015-11-06  Michael Collison  <michael.collison@linaro.org
1501             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1503         Revert:
1504         2015-08-01  Michael Collison  <michael.collison@linaro.org
1505                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1507         * config/arm/arm.md (*arm_smin_cmp): New pattern.
1508         (*arm_umin_cmp): Likewise.
1510 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
1512         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1513         wording.
1514         * omp-low.c (check_omp_nesting_restrictions): Update for the
1515         various new OpenMP 4.5 nesting restrictions, clarified
1516         nesting glossary, closely nested region relationship clarified
1517         to mean explicit or implicit parallel regions (target/teams),
1518         use %</%> or %qs where appropriate.
1520 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1521             Sebastian Pop  <s.pop@samsung.com>
1523         * graphite-scop-detection.c (loop_is_valid_scop): Call
1524         optimize_loop_nest_for_speed_p.
1526 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1527             Sebastian Pop  <s.pop@samsung.com>
1529         * graphite-optimize-isl.c (optimize_isl): Call
1530         isl_options_set_schedule_maximize_band_depth.
1532 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1533             Sebastian Pop  <s.pop@samsung.com>
1535         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1536         and exit edges should not be a part of irreducible loop.
1537         (scop_detection::can_represent_loop_1): Loops should not be
1538         irreducible.
1539         (scop_detection::harmful_stmt_in_region): All the basic block
1540         should belong to reducible loops.
1542 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
1544         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1545         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1546         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1547         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1548         (aarch64_tbx4v8qi): Rename to...
1549         aarch64_tbx4<mode>): ... this.
1550         (aarch64_qtbl3<mode>): New pattern.
1551         (aarch64_qtbx3<mode>): New pattern.
1552         (aarch64_qtbl4<mode>): New pattern.
1553         (aarch64_qtbx4<mode>): New pattern.
1554         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1555         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1556         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1557         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1558         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1559         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1560         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1561         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1562         functions.
1564 2015-11-06  Mike Stump  <mikestump@comcast.net>
1566         PR debug/66728
1567         * dwarf2out.c (get_full_len): Return a value based upon the actual
1568         precision needed for the value.
1569         (add_const_value_attribute): Use a maximal wide-int for
1570         CONST_WIDE_INTs, not VOIDmode.
1571         (output_die): Don't ever output NULL with printf.
1573         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1574         BLKmode nor VOIDmode values.
1576 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1578         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1579         and "range2".
1580         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1581         * diagnostic-core.h (warning_at_rich_loc): New declaration.
1582         (error_at_rich_loc): New declaration.
1583         (permerror_at_rich_loc): New declaration.
1584         (inform_at_rich_loc): New declaration.
1585         * diagnostic-show-locus.c (adjust_line): Delete.
1586         (struct point_state): New struct.
1587         (class colorizer): New class.
1588         (class layout_point): New class.
1589         (class layout_range): New class.
1590         (struct line_bounds): New.
1591         (class layout): New class.
1592         (colorizer::colorizer): New ctor.
1593         (colorizer::~colorizer): New dtor.
1594         (layout::layout): New ctor.
1595         (layout::print_source_line): New method.
1596         (layout::print_annotation_line): New method.
1597         (layout::get_state_at_point): New method.
1598         (layout::get_x_bound_for_row): New method.
1599         (diagnostic_show_locus): Reimplement in terms of class layout.
1600         (diagnostic_print_caret_line): Delete.
1601         * diagnostic.c (diagnostic_initialize): Replace
1602         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1603         (diagnostic_set_info_translated): Convert param from location_t
1604         to rich_location *.  Eliminate calls to set_location on the
1605         message in favor of storing the rich_location ptr there.
1606         (diagnostic_set_info): Convert param from location_t to
1607         rich_location *.
1608         (diagnostic_build_prefix): Break out array into...
1609         (diagnostic_kind_color): New variable.
1610         (diagnostic_get_color_for_kind): New function.
1611         (diagnostic_report_diagnostic): Colorize the option_text
1612         using the color for the severity.
1613         (diagnostic_append_note): Update for change in signature of
1614         diagnostic_set_info.
1615         (diagnostic_append_note_at_rich_loc): New function.
1616         (emit_diagnostic): Update for change in signature of
1617         diagnostic_set_info.
1618         (inform): Likewise.
1619         (inform_at_rich_loc): New function.
1620         (inform_n): Update for change in signature of diagnostic_set_info.
1621         (warning): Likewise.
1622         (warning_at): Likewise.
1623         (warning_at_rich_loc): New function.
1624         (warning_n): Update for change in signature of diagnostic_set_info.
1625         (pedwarn): Likewise.
1626         (permerror): Likewise.
1627         (permerror_at_rich_loc): New function.
1628         (error): Update for change in signature of diagnostic_set_info.
1629         (error_n): Likewise.
1630         (error_at): Likewise.
1631         (error_at_rich_loc): New function.
1632         (sorry): Update for change in signature of diagnostic_set_info.
1633         (fatal_error): Likewise.
1634         (internal_error): Likewise.
1635         (internal_error_no_backtrace): Likewise.
1636         (source_range::debug): New function.
1637         * diagnostic.h (struct diagnostic_info): Eliminate field
1638         "override_column".  Add field "richloc".
1639         (struct diagnostic_context): Add field "colorize_source_p".
1640         (diagnostic_override_column): Delete.
1641         (diagnostic_set_info): Convert param from location_t to
1642         rich_location *.
1643         (diagnostic_set_info_translated): Likewise.
1644         (diagnostic_append_note_at_rich_loc): New function.
1645         (diagnostic_num_locations): New function.
1646         (diagnostic_expand_location): Get the location from the
1647         rich_location.
1648         (diagnostic_print_caret_line): Delete.
1649         (diagnostic_get_color_for_kind): New declaration.
1650         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1651         (error_cb): Update for change in signature of "error" callback.
1652         (fatal_at): Likewise.
1653         (warning_at): Likewise.
1654         * input.c (linemap_client_expand_location_to_spelling_point): New.
1655         * pretty-print.c (text_info::set_range): New method.
1656         (text_info::get_location): New method.
1657         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1658         (struct text_info): Eliminate "locations" array in favor of
1659         "m_richloc", a rich_location *.
1660         (textinfo::set_location): Add a "caret_p" param, and reimplement
1661         in terms of a call to set_range.
1662         (textinfo::get_location): Eliminate inline implementation in favor of
1663         an out-of-line reimplementation.
1664         (textinfo::set_range): New method.
1665         * rtl-error.c (diagnostic_for_asm): Update for change in signature
1666         of diagnostic_set_info.
1667         * tree-diagnostic.c (default_tree_printer): Update for new
1668         "caret_p" param for textinfo::set_location.
1669         * tree-pretty-print.c (percent_K_format): Likewise.
1671 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1673         Properly apply.
1674         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1675         * config/aarch64/aarch64.c
1676         (aarch64_can_use_per_function_literal_pools_p): New.
1677         (aarch64_use_blocks_for_constant_p): Adjust declaration
1678         and use aarch64_can_use_function_literal_pools_p.
1679         (aarch64_select_rtx_section): Update.
1681 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1683         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1684         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1685         (arm_output_multireg_pop): Likewise.
1686         (output_move_double):  Likewise.
1687         (output_move_quad):  Likewise.
1688         (output_return_instruction): Likewise.
1689         (arm_print_operand): Remove support for %( and %. print modifiers.
1690         (arm_output_shift): Make unified asm.
1691         (arm_declare_function_name): Likewise.
1692         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1693         (ASM_APP_OFF): Adjust.
1694         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1695         (ASM_OUTPUT_REG_POP): Likewise.
1696         * config/arm/arm.md: Adjust uses of %., %(, %)
1697         * config/arm/sync.md: Likewise.
1698         * config/arm/thumb2.md: Likewise.
1699         * config/arm/ldmstm.md: Regenerate.
1700         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1701         * doc/invoke.texi (masm-unified-syntax): Update documentation.
1703 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1705         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1707 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1709         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1710         add OEP_MATCH_SIDE_EFFECTS.
1711         * fold-const.c (operand_equal_p): Update documentation; handle
1712         OEP_MATCH_SIDE_EFFECTS.
1713         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1714         OEP_MATCH_SIDE_EFFECTS.
1716 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
1717             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1719         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1720         * config/aarch64/aarch64-protos.h: Declare.
1721         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1722         frsqrts.
1723         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1724         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1725         code when applicable.
1726         * config/aarch64/aarch64.md: Added enum entries.
1727         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1728         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1729         macros for assembly checks.
1730         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1731         frsqrts and frsqrte are not emitted.
1732         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1733         frsqrts and frsqrte are emitted.
1734         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1736 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1738         PR ipa/68057
1739         PR ipa/68220
1740         * ipa-polymorphic-call.c
1741         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1742         issue when offset is out of range.
1743         (contains_type_p): Fix out of range check, clear dynamic flag.
1745 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
1747         * config.gcc (e6500): Fix cpu_is_64bit typo.
1749 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
1751         * tree-sra.c (completely_scalarize): Properly handle negative array
1752         indices using offset_int.
1754 2015-11-06  Richard Biener  <rguenther@suse.de>
1756         * alloc-pool.h (object_allocator::allocate): Default-initialize
1757         object.
1759 2015-11-06  Richard Biener  <rguenther@suse.de>
1761         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1762         * lra.c (init_reg_info): Truncate copy_vec instead of
1763         re-allocating a new one and leaking the old.
1764         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1765         bb_infos vec.
1766         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1767         * postreload-gcse.c (free_mem): Free modify_mem_list and
1768         canon_modify_mem_list.
1770 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
1772         PR tree-optimization/68145
1773         * tree-vect-stmts.c (vectorizable_operation): Fix
1774         determination for booleans.
1776 2015-11-06  Tom de Vries  <tom@codesourcery.com>
1778         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1779         cond_jump, instead of split after last nondebug insn before cond_jump.
1780         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1781         returning.
1783 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1785         PR target/68088
1786         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1787         subregs from accumulator and make sure it's a register.
1789 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
1791         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1792         low part to scalar.
1793         (reduc_uplus_<mode>): Remove.
1794         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1795         loongson_extract_lo_<mode>.
1796         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1797         reduc_smax_<mode>, reduc_smax_<mode>, use vec
1798         loongson_extract_lo_<mode>.
1799         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1801 2015-11-06  Richard Biener  <rguenther@suse.de>
1803         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1804         members.
1805         (vect_stmt_in_region_p): Declare.
1806         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1807         (destroy_bb_vec_info): Likewise.
1808         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1809         (vect_get_and_check_slp_defs): Likewise.
1810         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1811         (vect_slp_bb): Likewise.
1812         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1813         in terms of vect_stmt_in_region_p.
1814         (vect_pattern_recog): Iterate over the BB region.
1815         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1816         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1817         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1818         * config/i386/i386.c: Include gimple-iterator.h.
1819         * config/aarch64/aarch64.c: Likewise.
1821 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
1823         PR rtl-optimization/67753
1824         PR rtl-optimization/64164
1825         * function.c (assign_parm_setup_block): Avoid allocating a
1826         stack slot if we don't have an ABI-reserved one.  Emit the
1827         copy to target_reg in the conversion seq if the copy from
1828         entry_parm is in it too.  Don't use the conversion seq to copy
1829         a PARALLEL to a REG or a CONCAT.
1831 2015-11-06  Richard Biener  <rguenther@suse.de>
1833         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1834         equal_keys.
1836 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
1837             Thomas Schwinge  <thomas@codesourcery.com>
1838             James Norris  <jnorris@codesourcery.com>
1841         * gimplify.c (gimplify_scan_omp_clauses): Add support for
1842         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
1843         (gimplify_adjust_omp_clauses): Likewise.
1844         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1845         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1846         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1847         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1848         (omp_clause_code_name): Likewise.
1849         (walk_tree_1): Handle OMP_CLAUSE_TILE.
1850         * tree.h (OMP_TILE_LIST): New macro.
1852 2015-11-05  Martin Sebor  <msebor@redhat.com>
1854         PR c++/67942
1855         * doc/invoke.texi (-Wplacement-new): Document new option.
1857 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
1859         PR tree-optimization/65963
1860         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1861         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1863 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
1865         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1866         (noce_convert_multiple_sets): Likewise.
1867         (noce_process_if_block): Call them.
1869 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1871         * gimple-fold.c: Include omp-low.h.
1872         (fold_internal_goacc_dim): New.
1873         (gimple_fold_call): Call it.
1875 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
1876             Ilya Verbin  <ilya.verbin@intel.com>
1878         * builtin-types.def
1879         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1880         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1881         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1882         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1883         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1884         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1885         (struct cgraph_simd_clone_arg): Adjust comment.
1886         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1887         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
1888         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1889         to GOMP_target_data_ext.
1890         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1891         to GOMP_target_update_ext.
1892         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1893         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1894         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1895         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1896         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1897         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1898         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1899         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1900         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1901         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1902         * tree-core.h (enum omp_clause_schedule_kind): Add
1903         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1904         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1905         OMP_CLAUSE_SCHEDULE_LAST value.
1906         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1907         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1908         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1909         OMP_FOR_CHECK.  Remove comment.
1910         * tree-pretty-print.c (dump_omp_clause): Handle
1911         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1912         Simplify.  Print schedule clause modifiers.
1913         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1914         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1915         cases.
1916         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1917         (omp_default_clause): Tweak for
1918         private/firstprivate/is_device_ptr variables on target
1919         construct and use_device_ptr on target data.
1920         (omp_check_private): Likewise.
1921         (omp_notice_variable): For references check whether what it refers
1922         to has mappable type, rather than the reference itself.
1923         (omp_is_private): Diagnose linear iteration variables on non-simd
1924         constructs.
1925         (omp_no_lastprivate): Return true only for Fortran.
1926         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1927         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1928         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1929         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1930         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
1931         lastprivate and linear when combined with distribute.  Gimplify
1932         variable low-bound for array reduction.  Look through
1933         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1934         reductions.
1935         (gimplify_adjust_omp_clauses_1): For implicit references to
1936         variables with reference type and when not ref to scalar or
1937         ref to pointer, map what they refer to using tofrom and
1938         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1939         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1940         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1941         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
1942         Diagnose the same var on both firstprivate and lastprivate on
1943         distribute construct.
1944         (gimplify_omp_for): Fix up handling of predetermined
1945         lastprivate or linear iter vars when combined with distribute.
1946         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1947         functions.
1948         (gimplify_omp_workshare): Call optimize_target_teams.
1949         * omp-low.c (struct omp_region): Add sched_modifiers field.
1950         (struct omp_for_data): Likewise.
1951         (omp_any_child_fn_dumped): New variable.
1952         (extract_omp_for_data): Fill in sched_modifiers, and mask out
1953         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1954         from sched_kind.
1955         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1956         bits of OMP_CLAUSE_SCHED_KIND.
1957         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1958         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
1959         for array section reductions.
1960         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1961         for distribute parallel for, if there are lastprivate clauses on the
1962         for.
1963         (lower_rec_input_clauses): Handle non-zero low-bound on array
1964         section reductions.
1965         (lower_reduction_clauses): Likewise.
1966         (lower_send_clauses): Look through POINTER_PLUS_EXPR
1967         for array section reductions.
1968         (expand_parallel_call): Use nonmonotonic entrypoints for
1969         nonmonotonic: dynamic/guided.
1970         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1971         child_fn if current_function_decl has assembler name set, but child_fn
1972         does not.  Dump the header and IL of the child function when not in SSA
1973         form.
1974         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
1975         arguments to BUILT_IN_GOMP_TARGET.
1976         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1977         Initialize the extra _looptemp_ clause to fd->loop.n2.
1978         (expand_omp_for): Use nonmonotonic entrypoints for
1979         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
1980         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
1981         again if we have dumped any child functions.
1982         (lower_omp_for_lastprivate): Determine the right count variable
1983         for distribute simd, or distribute parallel for{, simd}.
1984         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1985         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
1986         support.
1987         (simd_clone_clauses_extract): Handle variable step
1988         for references and arguments passed by reference.
1989         (simd_clone_mangle): Mangle ref/uval/val variable steps.
1990         (simd_clone_adjust_argument_types): Handle
1991         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1992         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1993         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1994         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1995         (simd_clone_linear_addend): New function.
1996         (simd_clone_adjust): Handle variable step like similarly
1997         to constant step, use simd_clone_linear_addend to determine
1998         the actual step at runtime.
2000 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2002         * target.def (goacc.dim_limit): New hook.
2003         * targhooks.h (default_goacc_dim_limit): Declare.
2004         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2005         * doc/tm.texi: Rebuilt.
2006         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2007         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2008         (default_goacc_dim_limit): New.
2009         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2010         (nvptx_goacc_dim_limit) New.
2011         (TARGET_GOACC_DIM_LIMIT): Override.
2012         * tree-vrp.c: Include omp-low.h, target.h.
2013         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2014         IFN_GOACC_DIM_POS.
2016 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2018         * tree-vect-generic.c (do_compare): Use -1 for true
2019         result instead of 1.
2021 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2023         * config/aarch64/aarch64.c
2024         (aarch64_can_use_per_function_literal_pools_p): New.
2025         (aarch64_use_blocks_for_constant_p): Adjust declaration
2026         and use aarch64_can_use_function_literal_pools_p.
2027         (aarch64_select_rtx_section): Update.
2029 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2031         * targhooks.c (default_get_mask_mode): Use BLKmode in
2032         case target doesn't support required vector mode.
2033         * stor-layout.c (layout_type); Check for BLKmode.
2035 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2036             Sebastian Pop  <s.pop@samsung.com>
2038         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2039         Remove use of parameter_rename_map.
2040         (copy_def): Remove.
2041         (copy_internal_parameters): Remove.
2042         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2043         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2044         (free_sese_info): Do not free parameter_rename_map.
2045         (set_rename): Do not use parameter_rename_map.
2046         (rename_uses): Update call to set_rename.
2047         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2048         * sese.h (parameter_rename_map_t): Remove.
2049         (struct sese_info_t): Remove field parameter_rename_map.
2051 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2052             Sebastian Pop  <s.pop@samsung.com>
2054         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2055         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2056         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2057         anonymous namespace.
2058         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2059         (isl_id_for_pbb): Use a buffer of size 10.
2060         (isl_id_for_ssa_name): Same.
2061         * sese.c (set_rename): Add more dumps.
2063 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2065         * omp-low.c (struct omp_context): Remove reduction_map field.
2066         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2067         (new_omp_context, delete_omp_context, scan_omp_target): Remove
2068         reduction_map handling.
2069         (lower_omp_target): Remove obsolete openacc reduction handling.
2071 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2073         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2075 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2076             Cesar Philippidis  <cesar@codesourcery.com>
2078         * config/nvptx/nvptx.c: Include gimple headers.
2079         (worker_red_size, worker_red_align, worker_red_name,
2080         worker_red_sym): New.
2081         (nvptx_option_override): Initialize worker reduction buffer.
2082         (nvptx_file_end): Write out worker reduction buffer var.
2083         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2084         nvptx_expand_cmp_swap): New builtin expanders.
2085         (enum nvptx_builtins): New.
2086         (nvptx_builtin_decls): New.
2087         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2088         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2089         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2090         nvptx_lockless_update): New helpers.
2091         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2092         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2093         (nvptx_goacc_reduction): New.
2094         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2095         TARGET_BUILTIN_DECL): Override.
2096         (TARGET_GOACC_REDUCTION): Override.
2098 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2099             Cesar Philippidis  <cesar@codesourcery.com>
2101         * internal-fn.def (GOACC_REDUCTION): New.
2102         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2103         * internal-fn.c (expand_GOACC_REDUCTION): New.
2104         * target.def (goacc.reduction): New OpenACC hook.
2105         * targhooks.h (default_goacc_reduction): Declare.
2106         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2107         * doc/tm.texi: Rebuilt.
2108         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2109         scan_sharing_clauses): Remove oacc reduction handling here.
2110         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2111         (oacc_lower_reduction_var_helper): Delete.
2112         (lower_oacc_reductions): New.
2113         (lower_reduction_clauses): Don't handle OpenACC reductions here.
2114         (lower_oacc_head_tail): Call lower_oacc_reductions.
2115         (oacc_gimple_assign, oacc_init_reduction_array,
2116         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2117         oacc_process_reduction_data): Delete.
2118         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
2119         dummy OpenACC gang reduction for reductions at outer level.
2120         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2121         (default_goacc_reduction): New.
2122         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2124 2015-11-04  Martin Liska  <mliska@suse.cz>
2126         * cgraphunit.c (cgraph_node::expand_thunk): Call
2127         allocate_struct_function before init_function_start.
2128         (cgraph_node::expand): Use push_cfun and pop_cfun.
2129         * config/i386/i386.c (ix86_code_end): Call
2130         allocate_struct_function before init_function_start.
2131         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2132         * function.c (init_function_start): Move preamble to all
2133         callers.
2134         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2135         (execute_one_pass): Handle newly added TODO_discard_function.
2136         (execute_pass_list_1): Terminate if cfun equals to NULL.
2137         (execute_pass_list): Do not push and pop cfun, expect that
2138         cfun is set.
2139         * tree-pass.h (TODO_discard_function): Define.
2141 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2143         * cfganal.c (inverted_post_order_compute): Remove conditional
2144         compilation, use flag_checking.
2145         * config.in: Regenerate.
2146         * configure: Regenerate.
2147         * configure.ac: Remove ENABLE_CHECKING.
2148         * genconditions.c: Do not #undef ENABLE_CHECKING.
2149         * sese.h (bb_in_region): Comment out broken check.
2150         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2151         conditional compilation, use flag_checking.
2153 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2155         PR tree-optimization/67742
2156         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2157         field.
2158         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2159         (create_variable_info_for_1): Add and handle handle_param parameter.
2160         Add restrict handling.
2161         (create_variable_info_for): Call create_variable_info_for_1 with extra
2162         arg.
2163         (make_param_constraints): Drop restrict_name parameter.  Ignore
2164         vi->only_restrict_pointers.
2165         (intra_create_variable_infos): Call create_variable_info_for_1 with
2166         extra arg.  Remove restrict handling.  Call make_param_constraints with
2167         one fewer arg.
2169 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2171         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2172         variable.
2174 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2176         * config/arm/coff.h: Remove.
2178 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2180         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2181         check for aggregate types and beef up comment for mode check.
2183 2015-11-03  Richard Biener  <rguenther@suse.de>
2185         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2186         data references here.
2187         * tree-vect-loop.c: Include cgraph.h.
2188         (vect_analyze_loop_2): Collect data references here.
2189         * tree-vect-slp.c (find_bb_location): Inline ...
2190         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
2191         Factor in vect_slp_transform_bb.
2192         (vect_slp_transform_bb): Removed.
2193         (vect_slp_analyze_bb_1): Collect data references here.
2194         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2195         vect_slp_bb.
2196         * tree-vectorizer.h (vect_slp_bb): Declare.
2197         (vect_slp_analyze_bb): Remove.
2198         (vect_slp_transform_bb): Remove.
2199         (find_bb_location): Remove.
2200         (vect_analyze_data_refs): Remove stmt count reference parameter.
2202 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
2204         * multiple_target.c (create_dispatcher_calls): Add target check
2205         on ifunc.
2206         (create_target_clone): Change assembler name for versioned declarations.
2208 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2209             Chung-Lin Tang  <cltang@codesourcery.com>
2211         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2212         * omp-low.c (check_omp_nesting_restrictions): Allow
2213         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2214         contexts.
2216 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
2218         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2219         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2220         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2221         builtin.
2222         (vmulxq_f32): Likewise.
2223         (vmulx_f64): New.
2224         (vmulxq_f64): Rewrite to call fmulx builtin.
2225         (vmulxs_f32): Likewise.
2226         (vmulxd_f64): Likewise.
2227         (vmulx_lane_f32): Remove.
2228         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2230 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
2232         * config/aarch64/aarch64.md (*movhf_aarch64): Use
2233         aarch64_reg_or_fp_zero for second operand.
2235 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
2237         * gimple-expr.c: Include hash-set.h and rtl.h.
2238         (mark_addressable_queue): New var.
2239         (mark_addressable): Factor actual marking into...
2240         (mark_addressable_1): ... this.  Queue it up during expand.
2241         (mark_addressable_2): New.
2242         (flush_mark_addressable_queue): New.
2243         * gimple-expr.h (flush_mark_addressable_queue): Declare.
2244         * cfgexpand.c: Include gimple-expr.h.
2245         (pass_expand::execute): Flush mark_addressable queue.
2247 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
2249         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2250         bb_no_side_effects_p tests...
2251         (tree_ssa_ifcombine_bb): ... here.
2253         PR tree-optimization/68083
2254         * tree-ssa-ifcombine.c: Include tree-ssa.h.
2255         (bb_no_side_effects_p): Test for undefined uses too.
2256         * tree-ssa.c (gimple_uses_undefined_value_p): New.
2257         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2259 2015-11-02  Jeff Law <law@redhat.com>
2261         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2262         cases where the loop latch edge is in the middle of an FSM path.
2264 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2266         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2267         (make_param_constraints): ... this.  Add and handle restrict_name
2268         parameter.  Handle is_full_var case.
2269         (intra_create_variable_infos): Use make_param_constraints.
2271 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2273         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2274         make_copy_constraint call with make_constraint_from call.
2276 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
2278         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2279         PIE executables.
2281 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
2283         * builtins.h (fold_fma): Move to fold-const-call.h.
2284         * builtins.c: Include fold-const-call.h.
2285         (mathfn_built_in_2): New function, split out from...
2286         (mathfn_built_in_1): ...here.
2287         (do_real_to_int_conversion, fold_const_builtin_pow)
2288         (fold_const_builtin_logb, fold_const_builtin_significand)
2289         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2290         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2291         (fold_builtin_sincos): Use fold_const_call to handle constants.
2292         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2293         checks for ERROR_MARK.  Use fold_const_call to handle constant
2294         folds for math functions.
2295         (fold_fma): Move to fold-const-call.c.
2296         * fold-const.c: Include fold-const-call.h.
2297         * Makefile.in (OBJS): Add fold-const-call.o.
2298         (PLUGIN_HEADERS): Add fold-const-call.h.
2299         * realmpfr.h (real_from_mpfr): Allow the format to be specified
2300         directly.
2301         * realmpfr.c (real_from_mpfr): Likewise.
2302         * fold-const-call.h, fold-const-call.c: New files.
2304 2015-11-02  Julian Brown  <julian@codesourcery.com>
2306         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2307         brackets and semicolon.
2309 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
2311         Revert:
2312         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2314         PR tree-optimization/65963
2315         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2316         LSHIFT_EXPRs as equivalent MULT_EXPRs.
2318 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2320         PR middle-end/68166
2321         * fold-const.c: Include "md5.h".
2323 2015-11-01  Jeff Law <law@redhat.com>
2325         * vmsdbgout.c: Revert unused header file reduction patch.
2327         * config/mcore/mcore.c: Include regs.h.
2329 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2331         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2333 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2335         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2336         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2337         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2339 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2341         * ggc-common.c: Restore needed header for checking=release.
2343 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2345         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2347 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2349         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2350         existing varinfo for arguments.
2352 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2354         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2355         create_function_info_for.  Dump constraints generated during
2356         create_function_info_for. Move intra_create_variable_infos call and
2357         function-return-values-escape bit to ...
2358         (create_function_info_for): ... here, and merge
2359         intra_create_variable_infos call with argument loop.  Add and handle
2360         nonlocal_p parameter.
2362 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2364         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2365         updating is alap, and seperated from preceding code.  Make sure
2366         insert_vi_for_tree is seperated from surrounding code.
2368 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2370         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2372 2015-10-30  Jeff Law <law@redhat.com>
2373             Nathan Sidwell  <nathan@acm.org>
2375         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2376         args.
2377         (MOVE_MAX): Set to 8.
2379 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
2381         * cgraph.c: Include context.h for offloading.
2382         * varpool.c: Include context.h and omp-low.h.
2384 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
2386         * rtl.h (contains_symbol_ref_p): Declare.
2387         (SYMBOL_REF_P): Define.
2388         * rtlanal.c (contains_symbol_ref_p: New function.
2389         * lra-constraints.c (contains_symbol_ref_p): Remove.
2390         * var-tracking.c (contains_symbol_ref): Remove.
2391         (track_expr_p): Use contains_symbol_ref_p instead of
2392         contains_symbol_ref.
2394 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2396         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2397         * fold-const.c (get_array_ctor_element_at_index): New.
2398         (fold): Remove binary-search through CONSTRUCTOR, call previous.
2400         * fold-const.h (get_array_ctor_element_at_index): New.
2402 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2404         * Makefile.in (OBJS): Add multiple_target.o.
2405         * attrib.c (make_attribute): Moved from config/i386/i386.c
2406         * config/i386/i386.c (make_attribute): Deleted.
2407         * multiple_target.c (create_dispatcher_calls): New.
2408         (get_attr_len): Ditto.
2409         (get_attr_str): Ditto.
2410         (separate_attrs): Ditto.
2411         (is_valid_asm_symbol): Ditto.
2412         (create_new_asm_name): Ditto.
2413         (create_target_clone): Ditto.
2414         (expand_target_clones): Ditto.
2415         (ipa_target_clone): Ditto.
2416         (ipa_dispatcher_calls): Ditto.
2417         * passes.def (pass_target_clone): Two new ipa passes.
2418         * tree-pass.h (make_pass_target_clone): Ditto.
2419         * doc/extend.texi (target_clones): New attribute description.
2421 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
2423         PR rtl-optimization/68106
2424         * lra-remat.c (input_regno_present_p): Process hard regs
2425         explicitly present in machine description insns.
2426         (call_used_input_regno_present_p): Ditto.
2427         (calculate_gen_cands): Ditto.
2428         (do_remat): Ditto.
2430 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
2432         * config/arm/neon-testgen.ml: Fix comment typo.
2434 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2436         * rtlanal.c (reg_set_p): Expand function comment.
2438 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
2440         * alias.c: Remove unused headers.
2441         * asan.c: Likewise.
2442         * attribs.c: Likewise.
2443         * auto-inc-dec.c: Likewise.
2444         * auto-profile.c: Likewise.
2445         * bb-reorder.c: Likewise.
2446         * bitmap.c: Likewise.
2447         * bt-load.c: Likewise.
2448         * builtins.c: Likewise.
2449         * caller-save.c: Likewise.
2450         * calls.c: Likewise.
2451         * ccmp.c: Likewise.
2452         * cfg.c: Likewise.
2453         * cfganal.c: Likewise.
2454         * cfgbuild.c: Likewise.
2455         * cfgcleanup.c: Likewise.
2456         * cfgexpand.c: Likewise.
2457         * cfghooks.c: Likewise.
2458         * cfgloop.c: Likewise.
2459         * cfgloopanal.c: Likewise.
2460         * cfgloopmanip.c: Likewise.
2461         * cfgrtl.c: Likewise.
2462         * cgraph.c: Likewise.
2463         * cgraphbuild.c: Likewise.
2464         * cgraphclones.c: Likewise.
2465         * cgraphunit.c: Likewise.
2466         * cilk-common.c: Likewise.
2467         * combine-stack-adj.c: Likewise.
2468         * combine.c: Likewise.
2469         * compare-elim.c: Likewise.
2470         * convert.c: Likewise.
2471         * coverage.c: Likewise.
2472         * cppbuiltin.c: Likewise.
2473         * cprop.c: Likewise.
2474         * cse.c: Likewise.
2475         * cselib.c: Likewise.
2476         * data-streamer-in.c: Likewise.
2477         * data-streamer-out.c: Likewise.
2478         * data-streamer.c: Likewise.
2479         * dbxout.c: Likewise.
2480         * dce.c: Likewise.
2481         * ddg.c: Likewise.
2482         * debug.c: Likewise.
2483         * df-core.c: Likewise.
2484         * df-problems.c: Likewise.
2485         * df-scan.c: Likewise.
2486         * dfp.c: Likewise.
2487         * dojump.c: Likewise.
2488         * dominance.c: Likewise.
2489         * domwalk.c: Likewise.
2490         * double-int.c: Likewise.
2491         * dse.c: Likewise.
2492         * dumpfile.c: Likewise.
2493         * dwarf2asm.c: Likewise.
2494         * dwarf2cfi.c: Likewise.
2495         * dwarf2out.c: Likewise.
2496         * emit-rtl.c: Likewise.
2497         * except.c: Likewise.
2498         * explow.c: Likewise.
2499         * expmed.c: Likewise.
2500         * expr.c: Likewise.
2501         * final.c: Likewise.
2502         * fixed-value.c: Likewise.
2503         * fold-const.c: Likewise.
2504         * function.c: Likewise.
2505         * fwprop.c: Likewise.
2506         * gcse.c: Likewise.
2507         * generic-match-head.c: Likewise.
2508         * ggc-common.c: Likewise.
2509         * gimple-builder.c: Likewise.
2510         * gimple-expr.c: Likewise.
2511         * gimple-fold.c: Likewise.
2512         * gimple-iterator.c: Likewise.
2513         * gimple-low.c: Likewise.
2514         * gimple-match-head.c: Likewise.
2515         * gimple-pretty-print.c: Likewise.
2516         * gimple-ssa-isolate-paths.c: Likewise.
2517         * gimple-ssa-strength-reduction.c: Likewise.
2518         * gimple-streamer-in.c: Likewise.
2519         * gimple-streamer-out.c: Likewise.
2520         * gimple-walk.c: Likewise.
2521         * gimple.c: Likewise.
2522         * gimplify-me.c: Likewise.
2523         * gimplify.c: Likewise.
2524         * godump.c: Likewise.
2525         * graph.c: Likewise.
2526         * graphds.c: Likewise.
2527         * haifa-sched.c: Likewise.
2528         * hw-doloop.c: Likewise.
2529         * ifcvt.c: Likewise.
2530         * init-regs.c: Likewise.
2531         * internal-fn.c: Likewise.
2532         * ipa-chkp.c: Likewise.
2533         * ipa-comdats.c: Likewise.
2534         * ipa-cp.c: Likewise.
2535         * ipa-devirt.c: Likewise.
2536         * ipa-icf-gimple.c: Likewise.
2537         * ipa-icf.c: Likewise.
2538         * ipa-inline-analysis.c: Likewise.
2539         * ipa-inline-transform.c: Likewise.
2540         * ipa-inline.c: Likewise.
2541         * ipa-polymorphic-call.c: Likewise.
2542         * ipa-profile.c: Likewise.
2543         * ipa-prop.c: Likewise.
2544         * ipa-pure-const.c: Likewise.
2545         * ipa-ref.c: Likewise.
2546         * ipa-reference.c: Likewise.
2547         * ipa-split.c: Likewise.
2548         * ipa-utils.c: Likewise.
2549         * ipa-visibility.c: Likewise.
2550         * ipa.c: Likewise.
2551         * ira-build.c: Likewise.
2552         * ira-color.c: Likewise.
2553         * ira-conflicts.c: Likewise.
2554         * ira-costs.c: Likewise.
2555         * ira-emit.c: Likewise.
2556         * ira-lives.c: Likewise.
2557         * ira.c: Likewise.
2558         * jump.c: Likewise.
2559         * langhooks.c: Likewise.
2560         * lcm.c: Likewise.
2561         * lists.c: Likewise.
2562         * loop-doloop.c: Likewise.
2563         * loop-init.c: Likewise.
2564         * loop-invariant.c: Likewise.
2565         * loop-iv.c: Likewise.
2566         * loop-unroll.c: Likewise.
2567         * lower-subreg.c: Likewise.
2568         * lra-assigns.c: Likewise.
2569         * lra-coalesce.c: Likewise.
2570         * lra-constraints.c: Likewise.
2571         * lra-eliminations.c: Likewise.
2572         * lra-lives.c: Likewise.
2573         * lra-remat.c: Likewise.
2574         * lra-spills.c: Likewise.
2575         * lra.c: Likewise.
2576         * lto-cgraph.c: Likewise.
2577         * lto-compress.c: Likewise.
2578         * lto-opts.c: Likewise.
2579         * lto-section-in.c: Likewise.
2580         * lto-section-out.c: Likewise.
2581         * lto-streamer-in.c: Likewise.
2582         * lto-streamer-out.c: Likewise.
2583         * lto-streamer.c: Likewise.
2584         * mcf.c: Likewise.
2585         * mode-switching.c: Likewise.
2586         * modulo-sched.c: Likewise.
2587         * optabs.c: Likewise.
2588         * opts-global.c: Likewise.
2589         * passes.c: Likewise.
2590         * plugin.c: Likewise.
2591         * postreload-gcse.c: Likewise.
2592         * postreload.c: Likewise.
2593         * predict.c: Likewise.
2594         * print-tree.c: Likewise.
2595         * profile.c: Likewise.
2596         * real.c: Likewise.
2597         * realmpfr.c: Likewise.
2598         * recog.c: Likewise.
2599         * ree.c: Likewise.
2600         * reg-stack.c: Likewise.
2601         * regcprop.c: Likewise.
2602         * reginfo.c: Likewise.
2603         * regrename.c: Likewise.
2604         * regstat.c: Likewise.
2605         * reload.c: Likewise.
2606         * reload1.c: Likewise.
2607         * reorg.c: Likewise.
2608         * resource.c: Likewise.
2609         * rtl-chkp.c: Likewise.
2610         * rtl-error.c: Likewise.
2611         * rtlanal.c: Likewise.
2612         * rtlhooks.c: Likewise.
2613         * sanopt.c: Likewise.
2614         * sched-deps.c: Likewise.
2615         * sched-ebb.c: Likewise.
2616         * sched-rgn.c: Likewise.
2617         * sdbout.c: Likewise.
2618         * sel-sched-dump.c: Likewise.
2619         * sel-sched-ir.c: Likewise.
2620         * sel-sched.c: Likewise.
2621         * sese.c: Likewise.
2622         * shrink-wrap.c: Likewise.
2623         * simplify-rtx.c: Likewise.
2624         * stack-ptr-mod.c: Likewise.
2625         * statistics.c: Likewise.
2626         * stmt.c: Likewise.
2627         * stor-layout.c: Likewise.
2628         * store-motion.c: Likewise.
2629         * stringpool.c: Likewise.
2630         * symtab.c: Likewise.
2631         * target-globals.c: Likewise.
2632         * targhooks.c: Likewise.
2633         * toplev.c: Likewise.
2634         * tracer.c: Likewise.
2635         * trans-mem.c: Likewise.
2636         * tree-affine.c: Likewise.
2637         * tree-call-cdce.c: Likewise.
2638         * tree-cfg.c: Likewise.
2639         * tree-cfgcleanup.c: Likewise.
2640         * tree-chkp-opt.c: Likewise.
2641         * tree-chkp.c: Likewise.
2642         * tree-chrec.c: Likewise.
2643         * tree-complex.c: Likewise.
2644         * tree-data-ref.c: Likewise.
2645         * tree-dfa.c: Likewise.
2646         * tree-diagnostic.c: Likewise.
2647         * tree-dump.c: Likewise.
2648         * tree-eh.c: Likewise.
2649         * tree-emutls.c: Likewise.
2650         * tree-if-conv.c: Likewise.
2651         * tree-inline.c: Likewise.
2652         * tree-into-ssa.c: Likewise.
2653         * tree-iterator.c: Likewise.
2654         * tree-loop-distribution.c: Likewise.
2655         * tree-nested.c: Likewise.
2656         * tree-nrv.c: Likewise.
2657         * tree-object-size.c: Likewise.
2658         * tree-outof-ssa.c: Likewise.
2659         * tree-parloops.c: Likewise.
2660         * tree-phinodes.c: Likewise.
2661         * tree-predcom.c: Likewise.
2662         * tree-pretty-print.c: Likewise.
2663         * tree-profile.c: Likewise.
2664         * tree-scalar-evolution.c: Likewise.
2665         * tree-sra.c: Likewise.
2666         * tree-ssa-address.c: Likewise.
2667         * tree-ssa-alias.c: Likewise.
2668         * tree-ssa-ccp.c: Likewise.
2669         * tree-ssa-coalesce.c: Likewise.
2670         * tree-ssa-copy.c: Likewise.
2671         * tree-ssa-dce.c: Likewise.
2672         * tree-ssa-dse.c: Likewise.
2673         * tree-ssa-forwprop.c: Likewise.
2674         * tree-ssa-ifcombine.c: Likewise.
2675         * tree-ssa-live.c: Likewise.
2676         * tree-ssa-loop-ch.c: Likewise.
2677         * tree-ssa-loop-im.c: Likewise.
2678         * tree-ssa-loop-ivcanon.c: Likewise.
2679         * tree-ssa-loop-ivopts.c: Likewise.
2680         * tree-ssa-loop-manip.c: Likewise.
2681         * tree-ssa-loop-niter.c: Likewise.
2682         * tree-ssa-loop-prefetch.c: Likewise.
2683         * tree-ssa-loop-unswitch.c: Likewise.
2684         * tree-ssa-loop.c: Likewise.
2685         * tree-ssa-math-opts.c: Likewise.
2686         * tree-ssa-operands.c: Likewise.
2687         * tree-ssa-phiopt.c: Likewise.
2688         * tree-ssa-phiprop.c: Likewise.
2689         * tree-ssa-pre.c: Likewise.
2690         * tree-ssa-propagate.c: Likewise.
2691         * tree-ssa-reassoc.c: Likewise.
2692         * tree-ssa-scopedtables.c: Likewise.
2693         * tree-ssa-sink.c: Likewise.
2694         * tree-ssa-strlen.c: Likewise.
2695         * tree-ssa-structalias.c: Likewise.
2696         * tree-ssa-tail-merge.c: Likewise.
2697         * tree-ssa-ter.c: Likewise.
2698         * tree-ssa-threadupdate.c: Likewise.
2699         * tree-ssa-uncprop.c: Likewise.
2700         * tree-ssa-uninit.c: Likewise.
2701         * tree-ssa.c: Likewise.
2702         * tree-ssanames.c: Likewise.
2703         * tree-stdarg.c: Likewise.
2704         * tree-streamer-in.c: Likewise.
2705         * tree-streamer-out.c: Likewise.
2706         * tree-streamer.c: Likewise.
2707         * tree-switch-conversion.c: Likewise.
2708         * tree-tailcall.c: Likewise.
2709         * tree-vect-data-refs.c: Likewise.
2710         * tree-vect-generic.c: Likewise.
2711         * tree-vect-loop-manip.c: Likewise.
2712         * tree-vect-loop.c: Likewise.
2713         * tree-vect-patterns.c: Likewise.
2714         * tree-vect-slp.c: Likewise.
2715         * tree-vect-stmts.c: Likewise.
2716         * tree-vectorizer.c: Likewise.
2717         * tree-vrp.c: Likewise.
2718         * tree.c: Likewise.
2719         * tsan.c: Likewise.
2720         * ubsan.c: Likewise.
2721         * value-prof.c: Likewise.
2722         * var-tracking.c: Likewise.
2723         * varasm.c: Likewise.
2724         * varpool.c: Likewise.
2725         * vmsdbgout.c: Likewise.
2726         * vtable-verify.c: Likewise.
2727         * web.c: Likewise.
2728         * wide-int-print.cc: Likewise.
2729         * wide-int.cc: Likewise.
2730         * xcoffout.c: Likewise.
2732 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
2734         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2735         between pass numbering and execution order.
2737 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2739         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2740         check for dependencies.
2742 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2744         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2745         CDI_DOMINATORS.
2747 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2749         * real.h (format_helper): New.
2750         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2751         (real_from_target, real_nan, real_2expN, real_value_truncate)
2752         (significand_size, real_from_string2, exact_real_inverse)
2753         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2754         (real_round, real_isinteger, real_from_integer): Replace
2755         machine_mode arguments with format_helper arguments.
2756         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2757         (real_from_integer, real_nan, real_2expN, real_convert)
2758         (real_value_truncate, exact_real_truncate, real_to_target)
2759         (real_from_target, significand_size, real_powi, real_trunc)
2760         (real_floor, real_ceil, real_round, real_isinteger): Replace
2761         machine_mode arguments with format_helper arguments.
2762         (real_to_target_fmt, real_from_target_fmt): Delete.
2763         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2764         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2765         argument with real_format.
2766         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2768 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2770         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2771         (fixed_to_decimal, fixed_convert_from_real)
2772         (real_convert_from_fixed): Fix mode arguments to real_2expN.
2774 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2776         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2777         SCALAR_FLOAT_MODE_P.
2779 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2781         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2782         (completely_scalarize): Comment zero-length arrays.
2783         (get_access_replacement): Correct comment re. precondition.
2785 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2787         * config/i386/i386.c (get_builtin_code_for_version): Set priority
2788         for PROCESSOR_ZNVER1.
2789         (enum processor_model): Add M_AMDFAM17H_znver1.
2790         (struct arch_names_table): Likewise.
2791         * doc/extend.texi: ADD znver1.
2793 2015-10-30  Richard Biener  <rguenther@suse.de>
2795         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2796         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
2797         zeros to be folded to VECTOR_CSTs.
2798         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2799         * fold-const.c (fold): Use build_vector_from_ctor.
2801 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
2803         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2804         "mov %0.h[0], %1.h[0] to "neon_move".
2805         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2806         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2807         "mov_imm".
2808         (*cmovsi_insn_uxtw): Likewise.
2810 2015-10-30  Tom de Vries  <tom@codesourcery.com>
2812         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2813         unsigned, and initialize, and use initial value instead of hardcoded
2814         constant.  Add generic constraints dumping section.  Don't dump global
2815         initializers constraints dumping section if empty.  Don't update
2816         variable from if unused.
2818 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
2820         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2821         flag_checking and/or CHECKING_P to eliminate conditional compilation
2822         on ENABLE_CHECKING.
2823         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2824         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2825         * config/i386/i386.c (ix86_print_operand_address): Likewise.
2826         (output_387_binary_op): Likewise.
2827         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2828         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2829         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2830         Likewise.
2831         * config/rs6000/rs6000.h: Likewise.
2832         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2834 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2836         * config/sh/sh.opt (mfdpic): Add missing period.
2838 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
2840         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2841         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2842         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2843         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2844         mcore_base_register_rtx_p, mcore_legitimate_index_p,
2845         mcore_legitimate_address_p): New functions.
2846         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2848 2015-10-29  Jeff Law  <law@redhat.com>
2850         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2851         method.
2852         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2853         * tree-ssa-threadedge.c
2854         (record_temporary_equivalences_from_stmts_at_dest): Remove
2855         backedge_seen argument and associated code which invalidated
2856         equivalences based on the value of that argument.
2857         (thread_through_normal_block): Corresponding changes.
2859 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2861         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2862         function earlier in the file.
2863         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2864         df_regs_ever_live_p.
2866 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2868         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2869         by ignoring it.
2871 2015-10-29  Richard Henderson  <rth@redhat.com>
2873         PR target/68124
2874         PR rtl-opt/67609
2875         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2876         sse check to the exact conditions of PR 67609.
2878 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2880         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2881         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2882         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2883         of the traditional names that TFmode uses for handling IEEE
2884         extended double. If -mfloat128, add KFmode functions for all of
2885         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2886         make TFmode use the same emulation functions as KFmode.
2887         (init_float128_ibm): Likewise.
2888         (init_float128_ieee): Likewise.
2889         (rs6000_generate_compare): For IEEE 128-bit floating point
2890         comparisons, call the unordered comparison function instead of the
2891         ordered comparison function.
2892         (rs6000_expand_float128_convert): Deal with operands that are
2893         memory operands. Restructure the code to use a switch statement on
2894         the mode. Add support for TFmode defaulting to either IBM extended
2895         double or IEEE 128-bit floating point. If the underlying types are
2896         the same, use a move instead of a conversion function.
2897         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2898         use for IEEE 128-bit floating point constants with -mfloat128.
2899         (rs6000_c_mode_for_suffix): Likewise.
2900         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2901         128-bit floating point with IBM extended double floating point.
2902         (rs6000_invalid_binary_op): Likewise.
2903         (rs6000_gen_le_vsx_permute): On little endian systems generate a
2904         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2905         types that can go in vector registers.
2906         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2907         point types that can go in vector registers on little endian
2908         PowerPC systems.
2909         (mark_swaps_for_removal): Likewise.
2910         (rs6000_analyze_swaps): Likewise.
2911         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2913         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2914         rework IEEE 128-bit floating point insns to deal with TFmode being
2915         either IBM extended double or IEEE 128-bit floating point.
2916         (IFKF): Likewise.
2917         (IBM128): Update iterator to add condition that the mode is IBM
2918         extended double.
2919         (IEEE128): New iterator for IEEE 128-bit floating point.
2920         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2921         (FLOAT128): Likewise.
2922         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2923         iterator.
2924         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2925         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2926         instead of hard coding TFmode or KFmode.
2927         (negtf2_internal): Likewise.
2928         (neg<mode>2_internal): Likewise.
2929         (abs<mode>2): Likewise.
2930         (abstf2_internal): Likewise.
2931         (abs<mode>2_internal): Likewise.
2932         (ieee_128bit_neg<mode>2): Likewise.
2933         (ieee_128bit_neg<mode>2_internal): Likewise.
2934         (ieee_128bit_abs<mode>2): Likewise.
2935         (ieee_128bit_abs<mode>2_internal): Likewise.
2936         (ieee_128bit_nabs<mode>2): Likewise.
2937         (ieee_128bit_nabs<mode>2_internal): Likewise.
2938         (extendiftf2): Add explicit conversions between 128-bit floating
2939         point types. Drop the old conversions that had become unwieldy.
2940         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2941         (extendifkf2): Likewise.
2942         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2943         (extendtfkf2): Likewise.
2944         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2945         (trunciftf2): Likewise.
2946         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2947         (truncifkf2): Likewise.
2948         (float<SDI:mode><IFKF:mode>2): Likewise.
2949         (trunckftf2): Likewise.
2950         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2951         (trunctfif2): Likewise.
2952         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2953         (extenddftf2): Rework 128-bit floating point conversions to
2954         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2955         KFmode expanders into one function.
2956         (extenddf<mode>2): Likewise.
2957         (extenddftf2_fprs): Likewise.
2958         (extenddf<mode>2_fprs): Likewise.
2959         (extenddftf2_vsx): Likewise.
2960         (extenddf<mode>2_vsx): Likewise.
2961         (extendsftf2): Likewise.
2962         (extendsf<mode>2): Likewise.
2963         (trunctfdf2): Likewise.
2964         (trunc<mode>df2): Likewise.
2965         (trunctfdf2_internal1): Likewise.
2966         (trunc<mode>df2_internal1): Likewise.
2967         (trunctfdf2_internal2): Likewise.
2968         (trunc<mode>df2_internal2): Likewise.
2969         (trunctfsf2): Likewise.
2970         (trunc<mode>sf2): Likewise.
2971         (trunctfsf2_fprs): Likewise.
2972         (trunc<mode>sf2_fprs): Likewise.
2973         (floatsit2f): Likewise.
2974         (floatsi<mode>2): Likewise.
2975         (fix_trunc_helper): Likewise.
2976         (fix_trunc_helper<mode>): Likewise.
2977         (fix_trunctfsi2): Likewise.
2978         (fix_trunc<mode>si2): Likewise.
2979         (fix_trunctfsi2_fprs): Likewise.
2980         (fix_trunc<mode>si2_fprs): Likewise.
2981         (fix_trunctfsi2_internal): Likewise.
2982         (fix_trunc<mode>si2_internal): Likewise.
2983         (fix_trunctfdi2): Likewise.
2984         (fix_trunc<mode>di2): Likewise.
2985         (fixuns_trunctf<mode>2): Likewise.
2986         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2987         (floatditf2): Likewise.
2988         (floatdi<mode>2): Likewise.
2989         (floatuns<mode>tf2): Likewise.
2990         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2991         (cmptf_internal1): Use a mode iterator to add support for both
2992         types (IFmode, TFmode) that support IBM extended double.
2993         (cmp<mode>_internal1): Likewise.
2994         (cmptf_internal2): Likewise.
2995         (cmp<mode>_internal2): Likewise.
2997         * doc/extend.texi (Floating Types): Document __ibm128 and
2998         __float128 on PowerPC.
3000         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3001         -mfloat128 and -mno-float128.
3003 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3005         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3006         floating point modes that can go in vector registers.
3007         (MODES_TIEABLE_P): Move tests for vector modes before tests for
3008         scalar floating point, so that IEEE 128-bit floating point that
3009         can go in vector registers bind with vectors and not FP.
3010         (struct rs6000_args): Add libcall field.
3012         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3013         and -mfloat128-software switches.  Replace them with a binary
3014         -mfloat128 switch.
3015         (-mfloat128): Likewise.
3017         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3018         128-bit floating point types in GPRs, even if the appropriate
3019         option enabling the type was not used.
3020         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3021         debugging.
3022         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3023         pre-decrement on IEEE 128-bit floating point values.
3024         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3025         is IEEE 128-bit floating point.
3026         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3027         128-bit floating point types that can go in vector registers.
3028         (rs6000_option_override_internal): Change -mfloat128-none and
3029         -mfloat128-software to -mfloat128, and move code to be near other
3030         VSX option handling.
3031         (rs6000_option_override_internal): Disable -mfloat128 if we don't
3032         have the Altivec ABI.
3033         (rs6000_init_builtins): Don't make TFmode use either IFmode or
3034         KFmode floating point nodes. Instead, have three separate nodes.
3035         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3036         eventually moving the long double default to IEEE 128-bit floating
3037         point.
3038         (rs6000_opt_masks): Add -mfloat128.
3039         (struct rs6000_opt_var): Fix typo in comment.
3040         (init_cumulative_args): Initialize libcall field in
3041         CUMULATIVE_ARGS.
3042         (rs6000_function_arg): Treat library functions as if they had
3043         prototypes to prevent IEEE 128-bit support functions from passing
3044         arguments in both GPRs and vector registers.
3045         (rs6000_arg_partial_bytes): Likewise.
3047         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3048         an option that can be turned on via -mcpu=<xxx>.
3050         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3051         longer used.
3053         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3054         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3055         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3056         double is IBM extended double.
3058         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3059         SUBREGs.
3061 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3063         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3064         * genconditions.c: Define CHECKING_P in the generated code.
3065         * genextract.c: Use flag_checking in insn_extract.
3066         * gengtype.c (main): Remove conditional compilation.
3067         * gengtype.h: Likewise.
3069 2015-10-29  Jeff Law  <law@redhat.com>
3071         PR tree-optimization/67892
3072         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3073         in comment.
3074         (thread_through_normal_block): If we have seen a backedge, then
3075         do nothing.  No longer call find_jump_threads_backwards here.
3076         (thread_across_edge): Use find_jump_threads_backwards to find
3077         jump threads if the old style threader was not successful.
3078         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3079         gsi_last_nondebug_bb.  Return NULL if the block does not end
3080         with a control statement.
3081         (find_jump_threads_backwards): Setup code moved here from
3082         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
3083         single edge argument instead of name & block.
3084         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3085         prototype.
3087 2015-10-29  Tom de Vries  <tom@codesourcery.com>
3089         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3090         types.
3092 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
3094         * omp-low.c (lower_omp_target): Remove unreachable code & merge
3095         ifs.
3097 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
3099         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3101 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3103         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3104         guard_bb0 and use guard_bb throughout.
3106 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3108         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3109         unnecessary label.
3111 2015-10-29  Richard Biener  <rguenther@suse.de>
3113         PR middle-end/68142
3114         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3115         overflow.
3117 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3119         * alias.c: Reorder #include statements and remove duplicates.
3120         * asan.c: Likewise.
3121         * attribs.c: Likewise.
3122         * auto-inc-dec.c: Likewise.
3123         * auto-profile.c: Likewise.
3124         * bb-reorder.c: Likewise.
3125         * bt-load.c: Likewise.
3126         * builtins.c: Likewise.
3127         * caller-save.c: Likewise.
3128         * calls.c: Likewise.
3129         * ccmp.c: Likewise.
3130         * cfg.c: Likewise.
3131         * cfganal.c: Likewise.
3132         * cfgbuild.c: Likewise.
3133         * cfgcleanup.c: Likewise.
3134         * cfgexpand.c: Likewise.
3135         * cfghooks.c: Likewise.
3136         * cfgloop.c: Likewise.
3137         * cfgloopanal.c: Likewise.
3138         * cfgloopmanip.c: Likewise.
3139         * cfgrtl.c: Likewise.
3140         * cgraph.c: Likewise.
3141         * cgraphbuild.c: Likewise.
3142         * cgraphclones.c: Likewise.
3143         * cgraphunit.c: Likewise.
3144         * cilk-common.c: Likewise.
3145         * combine-stack-adj.c: Likewise.
3146         * combine.c: Likewise.
3147         * compare-elim.c: Likewise.
3148         * convert.c: Likewise.
3149         * coverage.c: Likewise.
3150         * cppbuiltin.c: Likewise.
3151         * cprop.c: Likewise.
3152         * cse.c: Likewise.
3153         * cselib.c: Likewise.
3154         * data-streamer-in.c: Likewise.
3155         * data-streamer-out.c: Likewise.
3156         * data-streamer.c: Likewise.
3157         * dbxout.c: Likewise.
3158         * dce.c: Likewise.
3159         * ddg.c: Likewise.
3160         * debug.c: Likewise.
3161         * df-core.c: Likewise.
3162         * df-problems.c: Likewise.
3163         * df-scan.c: Likewise.
3164         * dfp.c: Likewise.
3165         * dojump.c: Likewise.
3166         * dominance.c: Likewise.
3167         * double-int.c: Likewise.
3168         * dse.c: Likewise.
3169         * dumpfile.c: Likewise.
3170         * dwarf2asm.c: Likewise.
3171         * dwarf2cfi.c: Likewise.
3172         * dwarf2out.c: Likewise.
3173         * emit-rtl.c: Likewise.
3174         * except.c: Likewise.
3175         * explow.c: Likewise.
3176         * expmed.c: Likewise.
3177         * expr.c: Likewise.
3178         * final.c: Likewise.
3179         * fixed-value.c: Likewise.
3180         * fold-const.c: Likewise.
3181         * function.c: Likewise.
3182         * fwprop.c: Likewise.
3183         * gcse.c: Likewise.
3184         * generic-match-head.c: Likewise.
3185         * ggc-common.c: Likewise.
3186         * gimple-builder.c: Likewise.
3187         * gimple-expr.c: Likewise.
3188         * gimple-fold.c: Likewise.
3189         * gimple-iterator.c: Likewise.
3190         * gimple-low.c: Likewise.
3191         * gimple-match-head.c: Likewise.
3192         * gimple-pretty-print.c: Likewise.
3193         * gimple-ssa-isolate-paths.c: Likewise.
3194         * gimple-ssa-strength-reduction.c: Likewise.
3195         * gimple-streamer-in.c: Likewise.
3196         * gimple-streamer-out.c: Likewise.
3197         * gimple-walk.c: Likewise.
3198         * gimple.c: Likewise.
3199         * gimplify-me.c: Likewise.
3200         * gimplify.c: Likewise.
3201         * godump.c: Likewise.
3202         * graph.c: Likewise.
3203         * graphite-poly.c: Likewise.
3204         * haifa-sched.c: Likewise.
3205         * hw-doloop.c: Likewise.
3206         * ifcvt.c: Likewise.
3207         * incpath.c: Likewise.
3208         * init-regs.c: Likewise.
3209         * internal-fn.c: Likewise.
3210         * ipa-chkp.c: Likewise.
3211         * ipa-comdats.c: Likewise.
3212         * ipa-cp.c: Likewise.
3213         * ipa-devirt.c: Likewise.
3214         * ipa-icf-gimple.c: Likewise.
3215         * ipa-icf.c: Likewise.
3216         * ipa-inline-analysis.c: Likewise.
3217         * ipa-inline-transform.c: Likewise.
3218         * ipa-inline.c: Likewise.
3219         * ipa-polymorphic-call.c: Likewise.
3220         * ipa-profile.c: Likewise.
3221         * ipa-prop.c: Likewise.
3222         * ipa-pure-const.c: Likewise.
3223         * ipa-ref.c: Likewise.
3224         * ipa-reference.c: Likewise.
3225         * ipa-split.c: Likewise.
3226         * ipa-utils.c: Likewise.
3227         * ipa-visibility.c: Likewise.
3228         * ipa.c: Likewise.
3229         * ira-build.c: Likewise.
3230         * ira-color.c: Likewise.
3231         * ira-conflicts.c: Likewise.
3232         * ira-costs.c: Likewise.
3233         * ira-emit.c: Likewise.
3234         * ira-lives.c: Likewise.
3235         * ira.c: Likewise.
3236         * jump.c: Likewise.
3237         * langhooks.c: Likewise.
3238         * lcm.c: Likewise.
3239         * lists.c: Likewise.
3240         * loop-doloop.c: Likewise.
3241         * loop-init.c: Likewise.
3242         * loop-invariant.c: Likewise.
3243         * loop-iv.c: Likewise.
3244         * loop-unroll.c: Likewise.
3245         * lower-subreg.c: Likewise.
3246         * lra-assigns.c: Likewise.
3247         * lra-coalesce.c: Likewise.
3248         * lra-constraints.c: Likewise.
3249         * lra-eliminations.c: Likewise.
3250         * lra-lives.c: Likewise.
3251         * lra-remat.c: Likewise.
3252         * lra-spills.c: Likewise.
3253         * lra.c: Likewise.
3254         * lto-cgraph.c: Likewise.
3255         * lto-compress.c: Likewise.
3256         * lto-opts.c: Likewise.
3257         * lto-section-in.c: Likewise.
3258         * lto-section-out.c: Likewise.
3259         * lto-streamer-in.c: Likewise.
3260         * lto-streamer-out.c: Likewise.
3261         * lto-streamer.c: Likewise.
3262         * mode-switching.c: Likewise.
3263         * modulo-sched.c: Likewise.
3264         * omp-low.c: Likewise.
3265         * optabs.c: Likewise.
3266         * opts-global.c: Likewise.
3267         * passes.c: Likewise.
3268         * plugin.c: Likewise.
3269         * postreload-gcse.c: Likewise.
3270         * postreload.c: Likewise.
3271         * predict.c: Likewise.
3272         * print-tree.c: Likewise.
3273         * profile.c: Likewise.
3274         * real.c: Likewise.
3275         * realmpfr.c: Likewise.
3276         * recog.c: Likewise.
3277         * ree.c: Likewise.
3278         * reg-stack.c: Likewise.
3279         * regcprop.c: Likewise.
3280         * reginfo.c: Likewise.
3281         * regrename.c: Likewise.
3282         * regstat.c: Likewise.
3283         * reload.c: Likewise.
3284         * reload1.c: Likewise.
3285         * reorg.c: Likewise.
3286         * resource.c: Likewise.
3287         * rtl-chkp.c: Likewise.
3288         * rtl-error.c: Likewise.
3289         * rtlanal.c: Likewise.
3290         * rtlhooks.c: Likewise.
3291         * sanopt.c: Likewise.
3292         * sched-deps.c: Likewise.
3293         * sched-ebb.c: Likewise.
3294         * sched-rgn.c: Likewise.
3295         * sese.c: Likewise.
3296         * shrink-wrap.c: Likewise.
3297         * simplify-rtx.c: Likewise.
3298         * stack-ptr-mod.c: Likewise.
3299         * statistics.c: Likewise.
3300         * stmt.c: Likewise.
3301         * stor-layout.c: Likewise.
3302         * store-motion.c: Likewise.
3303         * stringpool.c: Likewise.
3304         * symtab.c: Likewise.
3305         * target-globals.c: Likewise.
3306         * targhooks.c: Likewise.
3307         * toplev.c: Likewise.
3308         * tracer.c: Likewise.
3309         * trans-mem.c: Likewise.
3310         * tree-affine.c: Likewise.
3311         * tree-call-cdce.c: Likewise.
3312         * tree-cfg.c: Likewise.
3313         * tree-cfgcleanup.c: Likewise.
3314         * tree-chkp-opt.c: Likewise.
3315         * tree-chkp.c: Likewise.
3316         * tree-chrec.c: Likewise.
3317         * tree-complex.c: Likewise.
3318         * tree-data-ref.c: Likewise.
3319         * tree-dfa.c: Likewise.
3320         * tree-diagnostic.c: Likewise.
3321         * tree-dump.c: Likewise.
3322         * tree-eh.c: Likewise.
3323         * tree-emutls.c: Likewise.
3324         * tree-if-conv.c: Likewise.
3325         * tree-inline.c: Likewise.
3326         * tree-into-ssa.c: Likewise.
3327         * tree-iterator.c: Likewise.
3328         * tree-loop-distribution.c: Likewise.
3329         * tree-nested.c: Likewise.
3330         * tree-nrv.c: Likewise.
3331         * tree-object-size.c: Likewise.
3332         * tree-outof-ssa.c: Likewise.
3333         * tree-parloops.c: Likewise.
3334         * tree-phinodes.c: Likewise.
3335         * tree-predcom.c: Likewise.
3336         * tree-pretty-print.c: Likewise.
3337         * tree-profile.c: Likewise.
3338         * tree-scalar-evolution.c: Likewise.
3339         * tree-sra.c: Likewise.
3340         * tree-ssa-address.c: Likewise.
3341         * tree-ssa-alias.c: Likewise.
3342         * tree-ssa-ccp.c: Likewise.
3343         * tree-ssa-coalesce.c: Likewise.
3344         * tree-ssa-copy.c: Likewise.
3345         * tree-ssa-dce.c: Likewise.
3346         * tree-ssa-dom.c: Likewise.
3347         * tree-ssa-dse.c: Likewise.
3348         * tree-ssa-forwprop.c: Likewise.
3349         * tree-ssa-ifcombine.c: Likewise.
3350         * tree-ssa-live.c: Likewise.
3351         * tree-ssa-loop-ch.c: Likewise.
3352         * tree-ssa-loop-im.c: Likewise.
3353         * tree-ssa-loop-ivcanon.c: Likewise.
3354         * tree-ssa-loop-ivopts.c: Likewise.
3355         * tree-ssa-loop-manip.c: Likewise.
3356         * tree-ssa-loop-niter.c: Likewise.
3357         * tree-ssa-loop-prefetch.c: Likewise.
3358         * tree-ssa-loop-unswitch.c: Likewise.
3359         * tree-ssa-loop.c: Likewise.
3360         * tree-ssa-math-opts.c: Likewise.
3361         * tree-ssa-operands.c: Likewise.
3362         * tree-ssa-phiopt.c: Likewise.
3363         * tree-ssa-phiprop.c: Likewise.
3364         * tree-ssa-pre.c: Likewise.
3365         * tree-ssa-propagate.c: Likewise.
3366         * tree-ssa-reassoc.c: Likewise.
3367         * tree-ssa-sccvn.c: Likewise.
3368         * tree-ssa-scopedtables.c: Likewise.
3369         * tree-ssa-sink.c: Likewise.
3370         * tree-ssa-strlen.c: Likewise.
3371         * tree-ssa-structalias.c: Likewise.
3372         * tree-ssa-tail-merge.c: Likewise.
3373         * tree-ssa-ter.c: Likewise.
3374         * tree-ssa-threadedge.c: Likewise.
3375         * tree-ssa-threadupdate.c: Likewise.
3376         * tree-ssa-uncprop.c: Likewise.
3377         * tree-ssa-uninit.c: Likewise.
3378         * tree-ssa.c: Likewise.
3379         * tree-ssanames.c: Likewise.
3380         * tree-stdarg.c: Likewise.
3381         * tree-streamer-in.c: Likewise.
3382         * tree-streamer-out.c: Likewise.
3383         * tree-streamer.c: Likewise.
3384         * tree-switch-conversion.c: Likewise.
3385         * tree-tailcall.c: Likewise.
3386         * tree-vect-data-refs.c: Likewise.
3387         * tree-vect-generic.c: Likewise.
3388         * tree-vect-loop-manip.c: Likewise.
3389         * tree-vect-loop.c: Likewise.
3390         * tree-vect-patterns.c: Likewise.
3391         * tree-vect-slp.c: Likewise.
3392         * tree-vect-stmts.c: Likewise.
3393         * tree-vectorizer.c: Likewise.
3394         * tree-vrp.c: Likewise.
3395         * tree.c: Likewise.
3396         * tsan.c: Likewise.
3397         * ubsan.c: Likewise.
3398         * value-prof.c: Likewise.
3399         * var-tracking.c: Likewise.
3400         * varasm.c: Likewise.
3401         * varpool.c: Likewise.
3402         * vtable-verify.c: Likewise.
3403         * web.c: Likewise.
3404         * wide-int-print.cc: Likewise.
3405         * wide-int.cc: Likewise.
3406         * xcoffout.c: Likewise.
3408 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
3410         * Makefile.in (NO_PIE_CFLAGS): New.
3411         (NO_PIE_FLAG): Likewise.
3412         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3413         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3414         (BUILD_NO_PIE_CFLAGS): Likewise.
3415         (BUILD_NO_PIE_FLAG): Likewise.
3416         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3417         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3418         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3419         $(BUILD_NO_PIE_CFLAGS).
3420         (BUILD_CXXFLAGS): Likewise.
3421         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3422         $(BUILD_NO_PIE_FLAG).
3423         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
3424         (BUILD_NO_PIE_FLAG): Likewise.
3425         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3426         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3427         * configure: Regenerated.
3429 2015-10-29  Richard Biener  <rguenther@suse.de>
3431         PR middle-end/56956
3432         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3433         unsigned conditonal negation to ABS_EXPR.
3435 2015-10-29  Richard Biener  <rguenther@suse.de>
3437         * gimple-match-head.c (gimple_simplify): Remove premature checking
3438         of builtin_decl_implicit of function calls we simplify.
3440 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
3442         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3443         (get_computation_cost_at): Ditto.
3444         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3445         and inv_expr_id.
3447 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3449         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3450         superfluous code.
3452 2015-10-28  Jason Merrill  <jason@redhat.com>
3454         * Makefile.in (TAGS): Include libcpp and libiberty.
3456 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3458         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3459         (extract_omp_for_data): Remove OpenACC special handling of
3460         chunking.
3462         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3463         (struct parallel): Update comment.
3464         (nvptx_reorg): Likewise.
3465         (nvptx_neuter): Cleanup whitespace.
3467 2015-10-28  Richard Henderson  <rth@redhat.com>
3469         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3471 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3473         PR target/67839
3474         * config/avr/predicates.md (low_io_address_operand): Don't
3475         consider MODE when computing upper bound.
3476         (io_address_operand): Likewise.
3478 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
3480         * fold-const.c (operand_equal_p): Do not verify that types are
3481         compatible for MEM_REFs.
3483 2015-10-28  Richard Biener  <rguenther@suse.de>
3485         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3486         in simplifying VEC_COND_EXPR conditions.
3488 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3490         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3491         into vi_next of a full_var.
3493 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3495         * tree-ssa-structalias.c (new_var_info, make_heapvar)
3496         (make_constraint_from_restrict, make_constraint_from_global_restrict)
3497         (create_function_info_for, create_variable_info_for_1)
3498         (create_variable_info_for): Add and handle add_id parameter.
3499         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3500         (init_base_vars): Add extra argument to calls to new_var_info.
3501         (get_vi_for_tree): Add extra argument to call to
3502         create_variable_info_for.
3503         (process_constraint, do_deref, process_all_all_constraints): Add extra
3504         argument to calls to new_scalar_tmp_constraint_exp.
3505         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3506         argument to calls to make_heapvar.
3507         (make_restrict_var_constraints): Add extra argument to call to
3508         make_constraint_from_global_restrict.
3509         (intra_create_variable_infos): Add extra argument to call to
3510         create_variable_info_for_1.
3511         (ipa_pta_execute): Add extra argument to call to
3512         create_function_info_for.
3514 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3516         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3517         (sibcall_value): Likewise.
3519 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3521         * config/nvptx/nvptx.h (struct machine_function): Add
3522         axis_predicate.
3523         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3524         nvptx_expand_oacc_join): Declare.
3525         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3526         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3527         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3528         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3529         UNSPECV_JOINING, UNSPECV_JOIN): New.
3530         (BITS, BITD): New mode iterators.
3531         (br_true_uni, br_false_uni): New.
3532         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3533         (oacc_dim_size, oacc_dim_pos): New.
3534         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3535         (oacc_fork, oacc_join): New.
3536         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3537         (worker_load<mode>, worker_store<mode>): New.
3538         (nvptx_barsync): New.
3539         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3540         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3541         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3542         worker_bcast_sym): New.
3543         (nvptx_option_override): Initialize worker broadcast buffer.
3544         (nvptx_emit_forking, nvptx_emit_joining): New.
3545         (nvptx_init_axis_predicate): New.
3546         (nvptx_declare_function_name): Init axis predicates.
3547         (nvptx_expand_call): Add fork/join markers around routine call.
3548         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3549         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3550         (nvptx_gen_vcast): New.
3551         (struct wcast_data_t): New.
3552         (enum propagate_mask): New.
3553         (nvptx_gen_wcast): New.
3554         (nvptx_print_operand): Add 'S' case.
3555         (struct parallel): New.
3556         (parallel::parallel, parallel::~parallel): New.
3557         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3558         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3559         nvptx_find_par, nvptx_discover_pars): New.
3560         (nvptx_propagate): New.
3561         (vprop_gen, nvptx_vpropagate): New.
3562         (wprop_gen, nvptx_wpropagate): New.
3563         (nvptx_wsync): New.
3564         (nvptx_single, nvptx_skip_par): New.
3565         (nvptx_process_pars, nvptx_neuter_pars): New.
3566         (ntptx_reorg): Split blocks, generate parallel structure, apply
3567         neutering.
3568         (nvptx_cannot_copy_insn_p): New.
3569         (nvptx_file_end): Emit worker broadcast decl.
3570         (nvptx_goacc_fork_join): New.
3571         (TARGET_CANNOT_COPY_INSN_P): Override.
3572         (TARGET_GOACC_FORK_JOIN): Override.
3574 2015-10-28  Richard Biener  <rguenther@suse.de>
3576         * fold-const.c (negate_expr_p): Adjust the division case to
3577         properly avoid introducing undefined overflow.
3578         (fold_negate_expr): Likewise.
3580 2015-10-28  Richard Biener  <rguenther@suse.de>
3582         PR tree-optimization/65962
3583         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3584         Avoid creating loop carried dependences also for outer loops
3585         of the loop a use to replace is in.
3587 2015-10-28  Richard Biener  <rguenther@suse.de>
3589         * common.opt (fchecking): New flag controlling flag_checking.
3590         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3591         * timevar.c (timer::print): Adjust output.
3592         * doc/invoke.texi (fchecking): Document.
3594 2015-10-28  Richard Biener  <rguenther@suse.de>
3596         PR middle-end/68067
3597         * fold-const.c (negate_expr_p): We cannot negate plus or minus
3598         if overflow is not wrapping.  Likewise multiplication unless
3599         one operand is constant and not power of two.
3600         (fold_negate_expr): Adjust accordingly.
3602 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3604         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3605         fields.
3606         (is_oacc_parallel, is_oacc_kernels): New.
3607         (enclosing_target_ctx): May return NULL.
3608         (ctx_in_oacc_kernels_region): New.
3609         (check_oacc_kernel_gwv): New.
3610         (oacc_loop_or_target_p): Delete.
3611         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
3612         operands.  Strip reductions fro kernels.
3613         (scan_omp_target): Don't calculate gwv mask.
3614         (lower_oacc_head_mark, lower_oacc_loop_marker,
3615         lower_oacc_head_tail): New.
3616         (struct oacc_collapse): New.
3617         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3618         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3619         Remove OpenACC handling.
3620         (expand_oacc_for): New.
3621         (expand_omp_for): Call expand_oacc_for.
3622         (lower_omp_for): Call lower_oacc_head_tail.
3624 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
3626         * attribs.c (check_attribute_tables): New function, broken out from...
3627         (init_attributes): Use it.
3628         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3629         gcc_checking_assert and checking_* functions to eliminate
3630         ENABLE_CHECKING conditionals.
3631         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3632         (pass_expand::execute): Likewise.
3633         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3634         * cgraphunit.c (mark_functions_to_output): Likewise.
3635         (cgraph_node::expand_thunk): Likewise.
3636         (symbol_table::compile): Likewise.
3637         * ddg.c (add_cross_iteration_register_deps): Likewise.
3638         (create_ddg_all_sccs): Likewise.
3639         * df-core.c (df_finish_pass, df_analyze): Likewise.
3640         * diagnostic-core.h: Likewise.
3641         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3642         * dominance.c (calculate_dominance_info): Likewise.
3643         * dwarf2out.c (add_AT_die_ref): Likewise.
3644         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3645         (loc_list_from_tree, gen_lexical_block_die): Likewise.
3646         gen_type_die_with_usage, gen_type_die): Likewise.
3647         (dwarf2out_decl): Likewise.
3648         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3649         * except.c (duplicate_eh_regions): Likewise.
3650         * fwprop.c (register_active_defs, update_df_init): Likewise.
3651         (fwprop_init, fwprop_done): Likewise.
3652         (update_uses): Likewise.
3653         * ggc-page.c (ggc_grow): Likewise.
3654         * gimplify.c (gimplify_body): Likewise.
3655         (gimplify_hasher::equal): Likewise.
3656         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3657         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3658         Likewise.
3659         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3660         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3661         * hash-table.h (::find_empty_slot_for_expand): Likewise.
3662         * ifcvt.c (if_convert): Likewise.
3663         * ipa-cp.c (ipcp_propagate_stage): Likewise.
3664         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3665         (odr_type_p, odr_types_equivalent_p): Likewise.
3666         (add_type_duplicate, get_odr_type): Likewise.
3667         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3668         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3669         (sem_item_optimizer::verify_classes): Likewise.
3670         (sem_item_optimizer::traverse_congruence_split): Likewise.
3671         (sem_item_optimizer::checking_verify_classes): New.
3672         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3673         method.
3674         * cfgrtl.c (commit_edge_insertions): Likewise.
3675         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3676         (rtl_flow_call_edges_add): Likewise.
3677         * cgraph.c (symbol_table::create_edge): Likewise.
3678         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3679         * cgraph.h (symtab_node): Likewise.
3680         (symtab_node::checking_verify_symtab_nodes): Define.
3681         (cgraph_node::checking_verify_cgraph_nodes): Define.
3682         * cfghooks.h (checking_verify_flow_info): Define.
3683         * cfgloop.h (checking_verify_loop_structure): Define.
3684         * dominance.h (checking_verify_dominators): Define.
3685         * et-forest.c: Fix comment.
3686         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3687         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3688         ENABLE_CHECKING conditionals.
3689         * ipa-inline-transform.c (save_inline_function_body): Likewise.
3690         * ipa-inline.c (inline_small_functions): Likewise.
3691         (early_inliner): Likewise.
3692         * ipa-inline.h (estimate_edge_growth): Likewise.
3693         * ipa-visibility.c (function_and_variable_visibility): Likewise.
3694         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3695         (ipa_single_use): Likewise.
3696         * ira-int.h: Likewise.
3697         * ira.c (ira): Likewise.
3698         * loop-doloop.c (doloop_optimize_loops): Likewise.
3699         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3700         * loop-invariant.c (move_loop_invariants): Likewise.
3701         * lra-assigns.c (lra_assign): Likewise.
3702         * lra-constraints.c (lra_constraints): Likewise.
3703         * lra-eliminations.c (lra_eliminate): Likewise.
3704         * lra-int.h (struct lra_reg): Likewise.
3705         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3706         (lra_create_live_ranges_1): Likewise.
3707         * lra-remat.c (create_remat_bb_data): Likewise.
3708         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3709         (lra): Likewise.
3710         (check_rtl): Always define. Remove incorrect guard around
3711         extract_constrain_insn call.
3712         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3713         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3714         ENABLE_CHECKING conditionals.
3715         * lto-streamer-out.c (DFS::DFS): Likewise.
3716         (lto_output): Likewise.
3717         * lto-streamer.c (lto_streamer_init): Likewise.
3718         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3719         expand_omp_target, execute_expand_omp): Likewise.
3720         (lower_omp_target): Likewise.
3721         * passes.c (execute_function_todo): Likewise.
3722         (execute_todo, execute_one_pass): Likewise.
3723         (verify_curr_properties): Always define.
3724         * predict.c (tree_estimate_probability: Use flag_checking,
3725         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3726         ENABLE_CHECKING conditionals.
3727         (propagate_freq): Likewise.
3728         * pretty-print.c (pp_format): Likewise.
3729         * real.c (real_to_decimal_for_mode): Likewise.
3730         * recog.c (split_all_insns): Likewise.
3731         * regcprop.c (kill_value_one_regno): Likewise.
3732         (copy_value): Likewise.
3733         (validate_value_data): Define unconditionally.
3734         * reload.c: Fix comment.
3735         * timevar.c: Include options.h
3736         * tree-ssa.h (checking_verify_ssa): Define.
3737         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3738         * sched-deps.c (CHECK): Remove unused macro.
3739         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3740         gcc_checking_assert and checking_* functions to eliminate
3741         ENABLE_CHECKING conditionals.
3742         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3743         * sel-sched.c (struct moveop_static_params): Likewise.
3744         (find_best_reg_for_expr, move_cond_jump): Likewise.
3745         (move_op_orig_expr_not_found): Likewise.
3746         (code_motion_process_successors, move_op): Likewise.
3747         * ssa-iterators.h (first_readonly_imm_use): Likewise.
3748         (next_readonly_imm_use): Likewise.
3749         * store-motion.c (compute_store_table): Likewise.
3750         * symbol-summary.h (function_summary::function_summary): Likewise.
3751         * target.h (cumulative_args_t): Likewise.
3752         (get_cumulative_args, pack_cumulative_args): Likewise.
3753         * timevar.c: (timer::print): Likewise.
3754         * trans-mem.c (ipa_tm_execute): Likewise.
3755         * tree-cfg.c (move_stmt_op): Likewise.
3756         (move_sese_region_to_fn): Likewise.
3757         (gimple_flow_call_edges_add): Likewise.
3758         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3759         Likewise.
3760         * tree-eh.c (remove_unreachable_handlers): Likewise.
3761         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3762         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3763         * tree-into-ssa.c (update_ssa): Likewise.
3764         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3765         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3766         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3767         * tree-predcom.c (suitable_component_p): Likewise.
3768         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3769         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3770         * tree-ssa-live.c (verify_live_on_entry): Likewise.
3771         * tree-ssa-live.h (register_ssa_partition): Likewise.
3772         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3773         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3774         (tree_transform_and_unroll_loop): Likewise.
3775         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3776         * tree-ssa-operands.c (get_expr_operands): Likewise.
3777         * tree-ssa-propagate.c (replace_exp_1): Likewise.
3778         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3779         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3780         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3781         * tree-ssanames.c (release_ssa_name_fn): Likewise.
3782         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3783         * tree-vect-loop-manip.c
3784         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3785         (slpeel_checking_verify_cfg_after_peeling): Likewise.
3786         (vect_do_peeling_for_loop_bound): Likewise.
3787         (vect_do_peeling_for_alignment): Likewise.
3788         * tree-vrp.c (supports_overflow_infinity): Likewise.
3789         (set_value_range): Likewise.
3790         * tree.c (free_lang_data_in_cgraph): Likewise.
3791         * value-prof.c (gimple_remove_histogram_value): Likewise.
3792         (free_hist): Likewise.
3793         * var-tracking.c (canonicalize_values_star): Likewise.
3794         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3796 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3798         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3799         IFN_GOACC_LOOP): New.
3800         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3801         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3802         IFN_UNIQUE_OACC_TAIL_MARK.
3803         (enum ifn_goacc_loop_kind): New.
3804         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3805         IFN_UNIQUE_OACC_JOIN cases.
3806         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3807         (expand_GOACC_LOOP): New.
3808         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3809         * omp-low.c: Include gimple-pretty-print.h.
3810         (struct oacc_loop): New.
3811         (enum oacc_loop_flags): New.
3812         (oacc_thread_numbers): New.
3813         (oacc_xform_loop): New.
3814         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3815         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3816         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3817         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3818         oacc_loop_discovery): New.
3819         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3820         oacc_loop_process): New.
3821         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3822         (execute_oacc_device_lower): Discover & process loops.  Process
3823         internal fns.
3824         * target.def (goacc.fork_join): Change sense of hook, clarify
3825         documentation.
3826         * doc/tm.texi: Regenerated.
3828 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3830         * target-insns.def (oacc_fork, oacc_join): Define.
3831         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3832         (goacc.fork_join): New GOACC hook.
3833         * targhooks.h (default_goacc_fork_join): Declare.
3834         * omp-low.c (default_goacc_forkjoin): New.
3835         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3836         * doc/tm.texi: Regenerate.
3838 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3840         * omp-low.c (oacc_init_rediction_array): New.
3841         (oacc_initialize_reduction_data): Initialize array.
3843 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3845         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3847 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3849         * internal-fn.c (expand_UNIQUE): New.
3850         * internal-fn.h (enum ifn_unique_kind): New.
3851         * internal-fn.def (IFN_UNIQUE): New.
3852         * target-insns.def (unique): Define.
3853         * gimple.h (gimple_call_internal_unique_p): New.
3854         * gimple.c (gimple_call_same_target_p): Check internal fn
3855         uniqueness.
3856         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3857         * tree-ssa-threadedge.c
3858         (record_temporary_equivalences_from_stmts): Likewise.
3859         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3861 2015-10-27  Richard Henderson  <rth@redhat.com>
3863         PR rtl-opt/67609
3864         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3865         narrowing subregs on SSE and MMX registers.
3866         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3867         appear to be sub-words of multi-register pseudos must be rejected.
3868         * doc/tm.texi: Regenerate.
3870 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3872         PR target/68102
3873         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3874         operands[0] is a reg before taking its REGNO in split condition.
3875         (*movdi_aarch64): Likewise.
3877 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3879         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3880         Handle floating point inner modes properly.
3882 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
3884         * tree-vect-looop.c
3885         (vectorizable_live_operation): Change iterator.
3887 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3888             Aditya Kumar  <aditya.k7@samsung.com>
3890         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3891           function to schedule based on isl_schedule_node.
3892         (get_schedule_map_st): New schedule optimizer based on
3893         isl_schedule_node.
3894         (scop_get_domains): New. Return the isl_union_set containing the
3895         domains of all the pbbs.
3896         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3898 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
3900         PR target/67215
3901         * calls.c (prepare_call_address): Don't handle -fno-plt here.
3902         * config/i386/i386.c (ix86_expand_call): Generate indirect call
3903         via GOT for -fno-plt.  Support indirect call via GOT for x32.
3904         * config/i386/predicates.md (sibcall_memory_operand): Allow
3905         GOT memory operand.
3907 2015-10-27  Richard Biener  <rguenther@suse.de>
3909         PR tree-optimization/68104
3910         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3911         strided access check ...
3912         (vect_compute_data_refs_alignment): ... here.
3914 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
3915             Joseph Myers  <joseph@codesourcery.com>
3916             Mark Shinwell  <shinwell@codesourcery.com>
3917             Andrew Stubbs  <ams@codesourcery.com>
3918             Rich Felker <dalias@libc.org>
3920         * config.gcc: Handle --enable-fdpic.
3921         * config/sh/constraints.md (Ccl): New constraint.
3922         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3923         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3924         __SH_FDPIC__.
3925         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3926         library functions.
3927         * config/sh/sh-protos.h (function_symbol_result): New struct.
3928         (function_symbol): Return function_symbol_result.
3929         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3930         declarations.
3931         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3932         target hook.
3933         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3934         (sh_option_override): Force -fPIC if FDPIC is in effect.
3935         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3936         UNSPEC_GOTOFFFUNCDESC cases.
3937         (prepare_move_operands): Use FDPIC initial GOT register for
3938         TLS-related GOT access; inhibit cross-section address offset constants
3939         for FDPIC.
3940         (sh_assemble_integer): New function.
3941         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3942         PC-relative call sites.
3943         (expand_ashiftrt): Adapt invocation of function_symbol.
3944         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3945         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3946         UNSPEC_GOTOFFFUNCDESC.
3947         (legitimize_pic_address): Resolve function symbols to function
3948         descriptors for FDPIC.  Do not use GOT-relative addressing for local
3949         data that may be read-only on FDPIC.
3950         (sh_emit_storesi, sh_emit_storehi): New functions.
3951         (sh_trampoline_init): Generate FDPIC trampolines.
3952         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3953         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3954         (sh_output_mi_thunk): Generate FDPIC call.
3955         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
3956         FDPIC, generate call site labels to use PC-relative addressing rather
3957         than GOT-relative addressing.
3958         (sh_conditional_register_usage): Make PIC register fixed and call used
3959         when FDPIC is in effect.
3960         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3961         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3962         sh_get_fdpic_reg_initial_val): New functions.
3963         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3964         Handle -mfdpic.
3965         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3966         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3967         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3968         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3969         FDPIC_SELF_SPECS.
3970         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3971         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3972         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3973         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3974         constants.
3975         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3976         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3977         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3978         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3979         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3980         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3981         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3982         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3983         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3984         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3985         block_move_real, block_lump_real, block_move_real_i4,
3986         block_lump_real_i4): Add support for FDPIC calls.
3987         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3988         call_value_pop): Adjust for new function_symbol signature.
3989         * config/sh/sh.opt (-mfdpic): New option.
3990         * doc/install.texi (Options specification): Document --enable-fdpic.
3991         * doc/invoke.texi (SH Options): Document -mfdpic.
3994 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3996         PR tree-optimization/65963
3997         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3998         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4000 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4002         PR target/67929
4003         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4004         * config/arm/constraints.md (Dp): Update callsite.
4005         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4007 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4009         * builtins.c (fold_builtin_load_exponent): Rename to...
4010         (fold_const_builtin_load_exponent): ...this and only handle
4011         constant arguments.
4012         (fold_builtin_2): Update accordingly.
4013         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4015 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4017         * builtins.c (fold_builtin_logb): Rename to...
4018         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4019         (fold_builtin_significand): Rename to...
4020         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4021         (fold_builtin_1): Update accordingly.
4023 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4025         * builtins.c (fold_builtin_fmin_fmax): Delete.
4026         (fold_builtin_2): Handle constant fmin and fmax arguments here.
4027         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4029 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
4031         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4032         for register extension into sign and zero register extension.
4033         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4034         for sign and zero register extension.
4035         (cortexa57_addrcost_table): Likewise.
4036         (xgene1_addrcost_table): Likewise.
4038 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4040         * fold-const.c (fold_minmax): Delete.
4041         (fold_binary_loc): Don't call it.
4042         * match.pd: Add rules previously handled by fold_minmax.
4044 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4046         * builtins.c (fold_builtin_fma): Remove constant handling.
4047         (fold_builtin_3): Handle constant fma arguments here.
4049 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4051         * builtins.c (fold_builtin_fabs): Remove constant handling.
4052         (fold_builtin_abs): Likewise.
4054 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4056         * builtins.c (fold_builtin_copysign): Delete.
4057         (fold_builtin_2): Handle constant copysign arguments here.
4058         * match.pd: Add rules previously handled by fold_builtin_copysign.
4060 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4062         * builtins.c (fold_builtin_signbit): Delete.
4063         (fold_builtin_2): Handle constant signbit arguments here.
4064         * match.pd: Add rules previously handled by fold_builtin_signbit.
4066 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4068         * match.pd: Handle sqrt(x) cmp 0 specially.
4070 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
4072         * tree-vect-generic.c (expand_vector_operations_1): Check
4073         optab type before using it.
4075 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4077         * config/aarch64/aarch64-protos.h
4078         (struct tune_params): Add autoprefetcher_model field.
4079         * config/aarch64/aarch64.c: Include params.h
4080         (generic_tunings): Specify autoprefetcher_model value.
4081         (cortexa53_tunings): Likewise.
4082         (cortexa57_tunings): Likewise.
4083         (cortexa72_tunings): Likewise.
4084         (thunderx_tunings): Likewise.
4085         (xgene1_tunings): Likewise.
4086         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4087         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4088         (aarch64_override_options_internal): Set
4089         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4091 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4093         * builtins.c (fold_builtin_exponent): Delete.
4094         (fold_builtin_2): Handle constant expN arguments here.
4095         * match.pd: Fold expN(logN(x)) -> x.
4097 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4099         * builtins.c (fold_builtin_powi): Delete.
4100         (fold_builtin_2): Handle constant powi arguments here.
4101         * match.pd: Add rules previously handled by fold_builtin_powi.
4103 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4105         * builtins.c (fold_builtin_pow): Delete in favor of...
4106         (fold_const_builtin_pow): ...this new function.  Only handle constant
4107         arguments.
4108         (fold_builtin_2): Update accordingly.
4109         * match.pd: Add rules previously handled by fold_builtin_pow.
4111 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4113         * builtins.c (fold_builtin_hypot): Delete.
4114         (fold_builtin_2): Handle constant hypot arguments here.
4115         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
4116         hypot(x, x) to fabs(x)*sqrt(2).
4118 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4120         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4121         instead of make_ssa_name if not yet in SSA form.
4123 2015-10-27  Richard Biener  <rguenther@suse.de>
4125         * cfg.c (free_edge): Add function argument and use it instead of cfun.
4126         (clear_edges): Likewise.
4127         * cfg.h (clear_edges): Adjust prototype.
4128         * cfgexpand.c (pass_expand::execute): Adjust.
4129         * cfgloop.c (release_recorded_exits): Add function argument and use
4130         it instead of cfun.
4131         * cfgloop.h (release_recorded_exits): Adjust prototype.
4132         (loops_state_satisfies_p): Add overload with function argument.
4133         (loops_state_set): Likewise.
4134         (loops_state_clear): Likewise.
4135         (struct loop_iterator): Add function argument to constructor
4136         and iterator and use it instead of cfun.
4137         (FOR_EACH_LOOP_FN): New macro.
4138         (loop_optimizer_finalize): Add overload with function argument.
4139         * loop-init.c (loop_optimizer_init): Adjust.
4140         (fix_loop_structure): Likewise.
4141         (loop_optimizer_finaliz): Add function argument and use it
4142         instead of cfun.
4143         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4144         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4145         * cgraph.c (release_function_body): Do not push/pop cfun.
4146         * final.c (rest_of_clean_state): Adjust.
4147         * graphite.c (graphite_finalize): Likewise.
4148         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4149         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4150         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4151         (tree_unroll_loops_completely): Likewise.
4152         (pass_complete_unrolli::execute): Likewise.
4153         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4154         Add function argument and use it instead of cfun.
4155         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4156         Adjust prototype.
4157         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4158         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4159         instead of cfun.
4160         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4161         * tree-ssanames.c (fini_ssanames): Add function argument and use it
4162         instead of cfun.
4163         * tree-ssanames.c (fini_ssanames): Adjust prototype.
4164         * tree-vrp.c (execute_vrp): Adjust.
4165         * value-prof.c (free_histograms): Add function argument and use it
4166         instead of cfun.
4167         * value-prof.h (free_histograms): Adjust prototype.
4169 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
4171         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4172         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4173         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
4175 2015-10-27  Tom de Vries  <tom@codesourcery.com>
4177         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4178         field_type.
4180 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
4182         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4183         (inv_can_prop_to_addr_use): New function.
4184         (record_use): Call can_prop_to_addr_uses, set the new field.
4185         (get_inv_cost): Count cost if inv can't be propagated into its
4186         address uses.
4188 2015-10-26  Doug Evans  <dje@google.com>
4190         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4192 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
4194         * match.pd (fold_widened_comparison): Apply simplifications to all
4195         integral types.
4197 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
4199         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4200         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4201         * doc/tm.texi: Regenerated.
4202         * reorg.c (dbr_schedule): Use new hook.
4203         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4205 2015-10-26  Jeff Law  <law@redhat.com>
4207         PR tree-optimization/68013
4208         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4209         Make sure the first block in the path is in VISITED_BBs.
4211 2015-10-26  Richard Biener  <rguenther@suse.de>
4212         Dominik Vogt  <vogt@linux.vnet.ibm.com>
4214         PR middle-end/67443
4215         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4216         Properly prune ref->ref for accesses outside of ref.
4218 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4220         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4221         new statements to be inserted if inplace.  Allow calls to have
4222         nonempty sequences.
4224 2015-10-26  Richard Biener  <rguenther@suse.de>
4226         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4227         (do_valueize): New function.
4228         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4229         replace_uses_by.
4230         * tree-ssa-threadedge.c: Remove builtins.h include, include
4231         gimple-fold.h
4232         (fold_assignment_stmt): Remove.
4233         (threadedge_valueize): New function.
4234         (record_temporary_equivalences_from_stmts): Use
4235         gimple_fold_stmt_to_constant_1, note additional cleanup
4236         opportunities.
4238 2015-10-26  Richard Biener  <rguenther@suse.de>
4240         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4241         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4243 2015-10-26  Alan Hayward <alan.hayward@arm.com>
4245         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4246         VEC_COND_EXPR types.
4248 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4250         * auto-inc-dec.c (insert_move_insn_before): Delete.
4251         (attempt_change): Remember to cost the simple move in the
4252         FORM_PRE_ADD and FORM_POST_ADD cases.
4254 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4256         PR target/68091
4257         * config/sh/sh.c (sh_vector_mode_supported_p): Use
4258         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4260 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4262         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4263         factored out of ...
4264         (intra_create_variable_infos): ... here.
4266 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4268         * tree-ssa-structalias.c (intra_create_variable_infos): Add
4269         restrict_pointer_p and recursive_restrict_p variables.
4271 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4273         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4274         get_vi_for_tree call.
4276 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4278         PR middle-end/67989
4279         * optabs.c (expand_atomic_compare_and_swap): Handle case when
4280         ptarget_oval or ptarget_bool are const0_rtx.
4282 2015-10-26  Christian Bruel  <christian.bruel@st.com>
4284         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4285         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4286         * cp/method.c (implicitly_declare_fn): Likewise.
4287         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4288         * java/class.c (add_method_1): Likewise.
4290 2015-10-26  Richard Biener  <rguenther@suse.de>
4292         * alloc-pool.h (base_pool_allocator): Use placement new.
4293         (base_pool_allocator::remove): Likewise.  Compute size outside of
4294         flag_checking.
4296 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4298         * builtins.c (do_real_to_int_conversion): New function.
4299         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4300         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4301         arguments here.
4302         * match.pd: Add rules previously handled by fold_fixed_mathfn
4303         and fold_builtin_int_roundingfn.
4305 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4307         * match.pd: Use macros to define built-in operator lists.
4309 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
4310             Richard Biener  <rguenther@suse.de>
4312         * genmatch.c (dt_simplify::gen): Skip captures that are
4313         part of the result.
4314         (parser::parse_expr): Allow captures in results too.
4315         * builtins.c (fold_builtin_cexp): Delete.
4316         (fold_builtin_1): Handle constant cexp arguments here.
4317         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4319 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
4321         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4322         conditional compilation.
4323         (base_pool_allocator::remove): Use flag_checking.
4325 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
4327         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4329         PR middle-end/68079
4330         * dojump.c (do_compare_and_jump): Canonicalize both function and
4331         method types.
4333 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
4335         PR target/68084
4336         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4337         for =@ccae.
4339 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4341         PR ipa/pr67600
4342         * ipa-polymorphic-call.c
4343         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4344         instance offset with offset of outer type.
4346 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4348         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4350 2015-10-23  Caroline Tice  <cmtice@google.com>
4352         (from Richard Biener
4353         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
4354         call to iterative_hash_host_wide_int.
4356 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4358         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4359         Define as yes.
4361 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4363         * tree-vect-generic.c (expand_vector_operations_1): Check
4364         optab exists before use it.
4366 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4368         * tree-vect-generic.c (expand_vector_condition): Avoid
4369         uninitialized variable warning.
4371 2015-10-23  Jeff Law  <law@redhat.com>
4373         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4374         here.  Instead...
4375         (execute_todo): Call it here.
4376         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4377         statistics
4378         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4380 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4381             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4383         * config.gcc (enable_secureplt): Add *-linux*-musl*.
4385 2015-10-23  Jeff Law  <law@redhat.com>
4387         PR tree-optimization/67830
4388         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4389         Explicitly verify the mask has no bits outside the type of
4390         the innermost operands.
4392 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4393             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4395         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4396         (MUSL_DYNAMIC_LINKER64): Define.
4397         (GNU_USER_DYNAMIC_LINKER32): Update.
4398         (GNU_USER_DYNAMIC_LINKER64): Update.
4399         (CHOOSE_DYNAMIC_LINKER): Update.
4401         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4402         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4403         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4404         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4405         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4406         (CHOOSE_DYNAMIC_LINKER): Update.
4407         (INCLUDE_DEFAULTS): Redefine.
4409         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4411 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4413         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4414         comparing addresses.
4416 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4418         * fold-const.c (operand_equal_p): Handle matching of vector
4419         constructors.
4421 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4423         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4425 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
4426             Andrew Pinski  <apinski@cavium.com>
4428         PR rtl-optimization/67736
4429         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4430         of gen_lowpart.
4432 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4434         PR middle-end/68066
4435         * tree.c (build_truth_vector_type): Support BLK mode
4436         returned for boolean vector.
4438 2015-10-23  Alan Hayward <alan.hayward@arm.com>
4440         PR tree-optimization/65947
4441         * tree-vect-loop.c
4442         (vect_is_simple_reduction_1): Find condition reductions.
4443         (vect_model_reduction_cost): Add condition reduction costs.
4444         (get_initial_def_for_reduction): Add condition reduction initial var.
4445         (vect_create_epilog_for_reduction): Add condition reduction epilog.
4446         (vectorizable_reduction): Condition reduction support.
4447         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4448         * doc/sourcebuild.texi (Vector-specific attributes): Document
4449         vect_max_reduc
4451 2015-10-23  Richard Biener  <rguenther@suse.de>
4453         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4454         and builtins.def.
4456 2015-10-23  Richard Biener  <rguenther@suse.de>
4457             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4459         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4460         into (A ^ B) - B to match.pd
4461         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4463         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4464         New simplifier.
4465         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4466         New simplifier.
4467         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4468         New simplifier.
4469         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4470         New simplifier.
4471         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4472         INTEGER_CST@1)): New simplifier.
4474 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
4476         * builtins.c (integer_valued_real_p): Move to fold-const.c.
4477         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4478         (fold_builtin_ceil, fold_builtin_round): Delete.
4479         (fold_builtin_1): Handle constant trunc, floor, ceil and round
4480         arguments here.
4481         * convert.c (convert_to_real): Remove narrowing of rounding
4482         functions.
4483         * fold-const.h (integer_valued_real_unary_p)
4484         (integer_valued_real_binary_p, integer_valued_real_call_p)
4485         (integer_valued_real_single_p, integer_valued_real_p): Declare.
4486         * fold-const.c (tree_single_nonnegative_warnv_p): Move
4487         name_registered_for_update_p check to SSA_NAME case statement.
4488         Don't call tree_simple_nonnegative_warnv_p for SSA names.
4489         (integer_valued_real_unary_p, integer_valued_real_binary_p)
4490         (integer_valued_real_call_p, integer_valued_real_single_p)
4491         (integer_valued_real_invalid_p): New functions.
4492         (integer_valued_real_p): Move from fold-const.c and rework
4493         to call the functions above.  Handle SSA names.
4494         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4495         * gimple-fold.c (gimple_assign_integer_valued_real_p)
4496         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4497         (gimple_stmt_integer_valued_real_p): New functions.
4498         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4499         Fold f(x)->x for the same f if x is known to be integer-valued.
4500         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4501         the result.  Canonicalize floor(x) as trunc(x) if x is
4502         nonnegative.
4504 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4506         * tree-ssa-structalias.c (intra_create_variable_infos): Use
4507         make_constraint_from.
4509 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4511         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4512         setting of is_full_var in case of a single field.
4514 2015-10-22  Martin Sebor  <msebor@redhat.com>
4516         PR driver/68043
4517         * config/i386/i386.opt: Add missing periods to the ends of sentences.
4518         * config/msp430/msp430.opt: Same.
4520 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4522         * doc/extend.exp (Global Register Variables): Rewrite.
4524 2015-10-22  Jeff Law  <law@redhat.com>
4526         * genattrtab.c (main): If we do not have any annul-true or annul-false
4527         slots, then write out a dummy eligible_for_annul_true or
4528         eligible_for_annul_false as needed.
4530 2015-10-22  Nick Clifton  <nickc@redhat.com>
4532         * config/msp430/msp430.opt: Add -msilicon-errata and
4533         -msilicon-errata-warn.
4534         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4535         assembler.
4536         * doc/invoke.texi: Document new options.
4538 2015-10-22  Richard Biener  <rguenther@suse.de>
4540         PR tree-optimization/58497
4541         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4542         (expand_vector_operations_1): Use it.  Lower operations on
4543         all uniform vectors to scalar operations if the HW supports it.
4545 2015-10-22  Richard Biener  <rguenther@suse.de>
4547         PR tree-optimization/19049
4548         PR tree-optimization/65962
4549         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4550         to strided accesses if single-element interleaving doesn't work.
4552 2015-10-22  Richard Biener  <rguenther@suse.de>
4554         PR middle-end/68046
4555         PR middle-end/61893
4556         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4557         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4558         (expand_unop): Likewise.
4560 2015-10-22  Richard Biener  <rguenther@suse.de>
4562         * fold-const.c (fold_addr_of_array_ref_difference): Properly
4563         convert operands before folding a MINUS_EXPR.
4564         (fold_binary_loc): Move simplification of MINUS_EXPR on
4565         converted POINTER_PLUS_EXPRs ...
4566         * match.pd: ... here.
4568 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4570         * builtins.c (fold_builtin_tan): Delete.
4571         (fold_builtin_1): Handle constant tan arguments here.
4572         * match.pd: Simplify (tan (atan x)) to x.
4574 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4576         * builtins.c (fold_builtin_cproj): Delete.
4577         (fold_builtin_1): Handle constant arguments here.
4578         (build_complex_cproj): Move and rename to...
4579         * tree.c: (build_complex_inf): ...this.
4580         * tree.h (build_complex_inf): Declare.
4581         * match.pd: Fold cproj(x)->x if x has no infinity.
4582         Use build_complex_inf for existing cproj rules.
4584 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4586         PR target/68015
4587         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4588         already have a comparison result.
4590 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4592         PR target/63304
4593         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4594         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4595         (aarch64_classify_address): Likewise.
4596         (aarch64_secondary_reload): Likewise.
4597         (aarch64_override_options_after_change_1): Adjust.
4598         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4599         Use aarch64_nopcrelative_literal_loads.
4600         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4601         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4602         Declare.
4604 2015-10-21  Martin Sebor  <msebor@redhat.com>
4606         PR driver/68043
4607         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4608         (print_filtered_help): Reference aliased option's name and encourage
4609         readers to use it in preference to the alias if the former is not
4610         documented.  Mention when using an option is diagnosed.
4611         * gcc.c (display_help): End each sentence with a period.
4613         * common.opt: End each sentence that describes an option with
4614         a period.
4615         * config/aarch64/aarch64.opt: Same.
4616         * config/alpha/alpha.opt: Same.
4617         * config/arc/arc.opt: Same.
4618         * config/arm/arm.opt: Same.
4619         * config/avr/avr.opt: Same.
4620         * config/bfin/bfin.opt: Same.
4621         * config/c6x/c6x.opt: Same.
4622         * config/cr16/cr16.opt: Same.
4623         * config/cris/cris.opt: Same.
4624         * config/cris/linux.opt: Same.
4625         * config/darwin.opt: Same.
4626         * config/epiphany/epiphany.opt: Same.
4627         * config/fr30/fr30.opt: Same.
4628         * config/frv/frv.opt: Same.
4629         * config/ft32/ft32.opt: Same.
4630         * config/g.opt: Same.
4631         * config/h8300/h8300.opt: Same.
4632         * config/i386/cygming.opt: Same.
4633         * config/i386/djgpp.opt: Same.
4634         * config/i386/i386.opt: Same.
4635         * config/i386/interix.opt: Same.
4636         * config/i386/mingw-w64.opt: Same.
4637         * config/i386/mingw.opt: Same.
4638         * config/ia64/ia64.opt: Same.
4639         * config/ia64/ilp32.opt: Same.
4640         * config/iq2000/iq2000.opt: Same.
4641         * config/linux.opt: Same.
4642         * config/lm32/lm32.opt: Same.
4643         * config/lynx.opt: Same.
4644         * config/m32c/m32c.opt: Same.
4645         * config/m32r/m32r.opt: Same.
4646         * config/m68k/ieee.opt: Same.
4647         * config/m68k/m68k.opt: Same.
4648         * config/mcore/mcore.opt: Same.
4649         * config/mep/mep.opt: Same.
4650         * config/microblaze/microblaze.opt: Same.
4651         * config/mips/mips.opt: Same.
4652         * config/mmix/mmix.opt: Same.
4653         * config/mn10300/mn10300.opt: Same.
4654         * config/moxie/moxie.opt: Same.
4655         * config/msp430/msp430.opt: Same.
4656         * config/nios2/elf.opt: Same.
4657         * config/nios2/nios2.opt: Same.
4658         * config/nvptx/nvptx.opt: Same.
4659         * config/pa/pa-hpux.opt: Same.
4660         * config/pa/pa-hpux1010.opt: Same.
4661         * config/pa/pa-hpux1111.opt: Same.
4662         * config/pa/pa-hpux1131.opt: Same.
4663         * config/pa/pa.opt: Same.
4664         * config/pa/pa64-hpux.opt: Same.
4665         * config/pdp11/pdp11.opt: Same.
4666         * config/rl78/rl78.opt: Same.
4667         * config/rs6000/476.opt: Same.
4668         * config/rs6000/aix64.opt: Same.
4669         * config/rs6000/darwin.opt: Same.
4670         * config/rs6000/linux64.opt: Same.
4671         * config/rs6000/rs6000.opt: Same.
4672         * config/rs6000/sysv4.opt: Same.
4673         * config/s390/s390.opt: Same.
4674         * config/s390/tpf.opt: Same.
4675         * config/sh/sh.opt: Same.
4676         * config/sol2.opt: Same.
4677         * config/sparc/long-double-switch.opt: Same.
4678         * config/sparc/sparc.opt: Same.
4679         * config/spu/spu.opt: Same.
4680         * config/stormy16/stormy16.opt: Same.
4681         * config/tilegx/tilegx.opt: Same.
4682         * config/tilepro/tilepro.opt: Same.
4683         * config/v850/v850.opt: Same.
4684         * config/vax/vax.opt: Same.
4685         * config/visium/visium.opt: Same.
4686         * config/vms/vms.opt: Same.
4687         * config/vxworks.opt: Same.
4688         * config/xtensa/xtensa.opt: Same.
4690 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4691             Sebastian Pop  <s.pop@samsung.com>
4693         * graphite-scop-detection.c (parameter_index_in_region): Update call to
4694         invariant_in_sese_p_rec.
4695         * graphite-sese-to-poly.c (extract_affine): Same.
4696         * sese.c (invariant_in_sese_p_rec): Pass in an extra
4697         parameter has_vdefs.
4698         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4699         variable depends on virtual definitions in the current region.
4700         * sese.h (invariant_in_sese_p_rec): Update declaration.
4702 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4703             Sebastian Pop  <s.pop@samsung.com>
4705         * graphite-scop-detection.c (build_scops): Do not handle scops
4706         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4707         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4709 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
4711         * config.in: Regenerate.
4712         * configure: Regenerate.
4713         * configure.ac (CHECKING_P): Define.
4714         * system.h: Use CHECKING_P.
4716 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4718         PR ipa/67056
4719         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4720         is negative we don't know the type.
4721         (check_stmt_for_type_change): Skip constructors of non-polymorphic
4722         types as those won't help devirutalization.
4724 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4726         * fold-const.c (operand_equal_p): Add code matching empty constructors.
4728 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4730         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4731         comments.
4732         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4733         Add comments on sign of the result.
4734         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4735         Recurse on operand #1 instead of operand #0.
4736         <CEIL_MOD_EXPR>: Do not recurse.
4737         <ROUND_MOD_EXPR>: Likewise.
4739 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4741         * cfgrtl.c (pass_free_cfg::execute): Adjust.
4742         * final.c (dbr_sequence_length): Always define.
4743         (shorten_branches): Adjust.
4744         * genattr-common.c (main): Always define DELAY_SLOTS.
4745         * genattr.c (main): Unconditionally declare functions and define
4746         macros related to delay slots.
4747         * genattrtab.c (write_eligible_delay): Adjust.
4748         (main): Always write out delay slot functions.
4749         * opts.c (default_options_table): Adjust.
4750         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4751         (redirect_with_delay_list_safe_p): Likewise.
4752         (fill_simple_delay_slots): Likewise.
4753         (fill_slots_from_thread): Likewise.
4754         (make_return_insns): Likewise.
4755         (dbr_schedule): Likewise.
4756         (rest_of_handle_delay_slots): Likewise.
4757         (pass_delay_slots::gate): Likewise.
4758         * toplev.c (process_options): Likewise.
4760 2015-10-21  Richard Henderson  <rth@redhat.com>
4762         * targhooks.c (default_addr_space_pointer_mode): Remove check
4763         for generic address space.
4764         (default_addr_space_address_mode): Likewise.
4765         (default_addr_space_valid_pointer_mode): Likewise.
4766         (default_addr_space_legitimate_address_p): Likewise.
4767         (default_addr_space_legitimize_address): Likewise.
4768         * target.def (addr_space.pointer_mode): Update documentation
4769         of default behavior.
4770         (addr_space.address_mode): Likewise.
4771         * tm.texi: Update.
4773         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4774         address spaces.
4776 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4778         * builtins.c (fold_builtin_cabs): Delete.
4779         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
4780         * match.pd: Add rules previously handled by fold_builtin_cabs.
4782 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4784         * fold-const.h (fold_strip_sign_ops): Delete.
4785         * fold-const.c (fold_strip_sign_ops): Likewise.
4786         (fold_unary_loc, fold_binary_loc): Remove calls to it.
4787         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4788         (fold_builtin_ccos): Delete.
4789         (fold_builtin_pow): Don't call fold_strip_sign_ops.
4790         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4791         Remove fndecl argument.
4792         (fold_builtin_1): Update calls accordingly.  Handle constant
4793         cos, cosh, ccos and ccosh here.
4795 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4797         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4798         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4799         * common.opt (fssa-backprop): New option.
4800         * fold-const.h (negate_mathfn_p): Declare.
4801         * fold-const.c (negate_mathfn_p): Make public.
4802         * timevar.def (TV_TREE_BACKPROP): New.
4803         * tree-pass.h (make_pass_backprop): Declare.
4804         * passes.def (pass_backprop): Add.
4805         * gimple-ssa-backprop.c: New file.
4807 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4808             Sebastian Pop  <s.pop@samsung.com>
4810         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4811         Do not call create_empty_if_region_on_edge when cond_expr is true.
4812         (translate_isl_ast_node_for): Check whether a guard has been generated.
4814 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4816         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4817         (operator=): Removed.
4818         (dr_info): Make alias_set number the last argument with default
4819         value of invalid_alias_set.
4820         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4821         of dr_info.
4822         (rewrite_reductions_out_of_ssa): Iterate only through the
4823         basic blocks which are inside region.
4824         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4825         * sese.h (struct sese_l): Removed assignment operator.
4826         (split_region_for_bb): Removed dead code.
4828 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4830         * graphite-poly.h (struct dr_info): Removed conversion constructor.
4831         (struct scop): Renamed scop::region to scop::scop_info
4832         (scop_set_region): Same.
4833         (SCOP_REGION): Removed
4834         (SCOP_CONTEXT): Removed.
4835         (POLY_SCOP_P): Removed.
4836         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4837         Rename scop->region to scop->scop_info.
4838         (add_parameters_to_ivs_params): Same.
4839         (graphite_regenerate_ast_isl): Same.
4840         * graphite-poly.c (new_scop): Same.
4841         (free_scop): Same.
4842         (print_scop_params): Same.
4843         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4844         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4845         (dot_all_scops_1): Rename scop->region to scop->scop_info.
4846         (scop_detection::nb_pbbs_in_loops): Same.
4847         (find_scop_parameters): Same.
4848         (try_generate_gimple_bb): Same.
4849         (gather_bbs::before_dom_children): Same.
4850         (gather_bbs::after_dom_children): Same.
4851         (build_scops): Same.
4852         * graphite-sese-to-poly.c (build_scop_scattering): Same.
4853         (extract_affine_chrec): Same.
4854         (extract_affine): Same.
4855         (set_scop_parameter_dim): Same.
4856         (build_loop_iteration_domains): Same.
4857         (create_pw_aff_from_tree): Same.
4858         (add_param_constraints): Same.
4859         (build_scop_iteration_domain): Same.
4860         (build_scop_drs): Same.
4861         (analyze_drs_in_stmts): Same.
4862         (insert_out_of_ssa_copy_on_edge): Same.
4863         (rewrite_close_phi_out_of_ssa):Same.
4864         (rewrite_reductions_out_of_ssa):Same.
4865         (handle_scalar_deps_crossing_scop_limits):Same.
4866         (rewrite_cross_bb_scalar_deps):Same.
4867         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4868         (build_poly_scop):Same.
4869         (build_alias_set): Use pointer to dr_info.
4870         * graphite.c (print_graphite_scop_statistics):
4871         (graphite_transform_loops):
4872         * sese.h (struct sese_l): Remove conversion constructor.
4874 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4876         PR middle-end/67966
4877         * tree.c (verify_type): Verify that TYPE_MODE match
4878         between TYPE_CANONICAL and type.
4879         * expr.c (store_expr_with_bounds): Revert my previous change.
4880         * expmed.c (store_bit_field_1): Revert prevoius change.
4881         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4882         to match for all types.
4884 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
4886         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4887         nesting.
4889 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4891         * doc/tm.texi: Regenerated.
4892         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4893         * stor-layout.c (layout_type): Use mode to get vector mask size.
4894         * target.def (get_mask_mode): New.
4895         * targhooks.c (default_get_mask_mode): New.
4896         * targhooks.h (default_get_mask_mode): New.
4897         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4898         for boolean vector.
4899         * tree.c (MAX_BOOL_CACHED_PREC): New.
4900         (nonstandard_boolean_type_cache): New.
4901         (build_nonstandard_boolean_type): New.
4902         (make_vector_type): Vector mask has no canonical type.
4903         (build_truth_vector_type): New.
4904         (build_same_sized_truth_vector_type): New.
4905         (truth_type_for): Support vector masks.
4906         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4907         (build_truth_vector_type): New.
4908         (build_same_sized_truth_vector_type): New.
4909         (build_nonstandard_boolean_type): New.
4910         * tree-cfg.c (verify_gimple_comparison) Require boolean
4911         vector type for vector comparison.
4912         (verify_gimple_assign_ternary): Likewise.
4913         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4914         condition operand.
4915         * tree-vect-stmts.c (vectorizable_condition): Use boolean
4916         vector type for vector comparison.
4917         * tree-vect-generic.c (elem_op_func): Add new operand to hold
4918         vector type.
4919         (do_unop): Adjust to modified function type.
4920         (do_binop): Likewise.
4921         (do_plus_minus): Likewise.
4922         (do_negate); Likewise.
4923         (expand_vector_piecewise): Likewise.
4924         (do_cond): Likewise.
4925         (do_compare): Use comparison instead of condition.
4926         (expand_vector_divmod): Use boolean vector type for comparison.
4927         (expand_vector_operations_1): Skip scalar mask operations.
4929 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4931         * omp-low.c (simd_clone_create): Set in_other_partition
4932         for created clones.
4934 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4936         * doc/extend.exp (Local Register Variables): Rewrite.
4938 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4940         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4941         and x*x in cases where the operands are sign ops.  Extend these
4942         rules to handle copysign as a sign op (including for cos, cosh
4943         and pow, which already treated negate and abs as sign ops).
4945 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
4947         PR target/68018
4948         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4949         for 64-bit MS_ABI targets also when default incoming stack boundary
4950         is overriden.
4952 2015-10-21  Richard Biener  <rguenther@suse.de>
4954         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4955         cond stmts, enhanced and split out from ...
4956         (vn_phi_eq): ... here.
4958 2015-10-21  Richard Biener  <rguenther@suse.de>
4960         PR middle-end/68031
4961         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4962         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4963         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
4964         make sure they are not registered for update.
4966 2015-10-21  Richard Biener  <rguenther@suse.de>
4968         PR tree-optimization/68026
4969         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4970         unsigned VARYING values.
4972 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
4974         * asan.c (asan_emit_stack_protection): Don't pass local stack to
4975         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4976         NULL and use local stack than.
4977         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4978         in addition to __asan_init.
4979         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4980         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4981         * asan.h (asan_intercepted_p): Handle new string builtins.
4982         * ubsan.c (ubsan_use_new_style_p): New function.
4983         (ubsan_instrument_float_cast): If location is unknown, assign
4984         input_location to loc. Propagate loc to ubsan_create_data if
4985         ubsan_use_new_style_p returned true.
4987 2015-10-21  Jeff Law  <law@redhat.com>
4989         * Makefile.in (OBJS): Remove sched-vis.c
4990         * sched-vis.c: Removed.  Code moved into...
4991         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
4992         * rtl.h: Remove prototypes for functions now living in print-rtl.c
4993         * print-rtl.h Add prototypes for new functions in print-rtl.c.
4994         * auto-inc-dec.c: Include print-rtl.h
4995         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4996         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4998         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4999         ATTRIBUTE_UNUSED.
5001 2015-10-21  Richard Biener  <rguenther@suse.de>
5002             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5004         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5005         to match.pd.
5006         Move (a * (1 << b)) is (a << b) to match.pd.
5007         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5008         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5009         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5011         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5012         New simplifier.
5013         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5014         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5015         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5016         : New simplifier.
5017         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5018         New simplifier.
5019         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5021 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
5022             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5023             Alan Modra  <amodra@gmail.com>
5025         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5026         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5027         (LINK_SPEC): Add %(link_secure_plt).
5028         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5029         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5031 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
5032             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5034         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5035         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5037 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5039         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5040         New function.
5041         (fusion_load_store): Use it.
5042         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5043         ldp and stp in VD modes.
5044         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5045         (store_pair<mode>, VD): Likewise.
5047 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
5049         PR rtl-optimization/67609
5050         * lra-splill.c (lra_final_code_change): Don't remove all
5051         sub-registers.
5053 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5055         * simplify-rtx.c (simplify_binary_operation): If either operand was
5056         a constant pool reference use them if all other simplifications failed.
5058 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5060         * config/aarch64/aarch64.md
5061         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5062         * config/aarch64/aarch64-simd.md
5063         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5064         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5065         (aarch64_fpconst_pow_of_2): New function.
5066         (aarch64_vec_fpconst_pow_of_2): Likewise.
5067         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5068         prototype.
5069         (aarch64_vec_fpconst_pow_of_2): Likewise.
5070         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5071         (aarch64_fp_vec_pow2): Likewise.
5073 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
5075         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5076         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
5077         * config/alpha/alpha.c (alpha_function_arg_advance): Update
5078         ALPHA_ARG_SIZE usage.
5079         (alpha_arg_partial_bytes): Ditto.
5081 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5083         PR target/66810
5084         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5085         error_mark_node decls.
5087 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5089         PR target/67963
5090         PR target/67985
5091         * common/config/i386/i386-common.c (ix86_handle_option): Remove
5092         OPT_miamcu handling.
5093         * config/i386/i386.c (PTA_NO_80387): New macro.
5094         (processor_alias_table): Add PTA_NO_80387 to lakemont.
5095         (ix86_option_override_internal): Update MASK_80387 from
5096         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
5097         SSE math only if 80387 is supported.  Don't change
5098         MASK_FLOAT_RETURNS.
5099         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5100         80387 is supported.
5101         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5102         if TARGET_80387 is true and TARGET_IAMCU is false.
5103         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5104         is true and TARGET_IAMCU_P is false.
5106 2015-10-20  Richard Biener  <rguenther@suse.de>
5108         PR tree-optimization/68017
5109         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5111 2015-10-20  Martin Liska  <mliska@suse.cz>
5113         * cgraphclones.c (cgraph_node::create_virtual_clone):
5114         Verify cgraph_node.local.versionable instead of calling
5115         tree_versionable_function_p.
5116         * ipa-cp.c (determine_versionability): Save the information
5117         to ipa_node_params summary.
5118         (ipcp_versionable_function_p): Use it.
5119         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5120         (ipcp_generate_summary): Do not compute cgraph_node
5121         versionability.
5122         * ipa-inline-analysis.c (inline_generate_summary): Compute
5123         versionability for all cgraph nodes.
5124         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5125         ipa_node_params::versionability.
5126         * ipa-prop.h (struct ipa_node_params): Declare it.
5128 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5130         PR other/67868
5131         * varasm.c (assemble_variable): Move special vtv handling to..
5132         (handle_vtv_comdat_sections): .. here. New function.
5133         (output_object_block): Handle vtv sections.
5135 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5137         PR target/66912
5138         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5140 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
5142         * doc/extend.texi: Update documentation WRT inline functions.
5144 2015-10-20  Alan Modra  <amodra@gmail.com>
5146         PR go/66870
5147         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5148         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5149         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5151 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
5153         PR rtl-optimization/66790
5154         * df.h (DF_MIR): New macro.
5155         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5156         (DF_MIR_INFO_BB): New macro.
5157         (DF_MIR_IN, DF_MIR_OUT): New macros.
5158         (struct df_mir_bb_info): New.
5159         (df_mir): New macro.
5160         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5161         declarations.
5162         (df_mir_get_bb_info): New.
5163         * df-problems.c (struct df_mir_problem_data): New.
5164         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5165         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5166         df_mir_confluence_0, df_mir_confluence_n,
5167         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5168         df_mir_bottom_dump, df_mir_verify_solution_start,
5169         df_mir_verify_solution_end): New.
5170         (problem_MIR): New.
5171         (df_mir_add_problem, df_mir_simulate_one_insn): New.
5172         * timevar.def (TV_DF_MIR): New.
5173         * ree.c: Include bitmap.h
5174         (add_removable_extension): Add an INIT_REGS parameter.  Use it
5175         to skip zero-extensions that may get an uninitialized register.
5176         (find_removable_extensions): Compute must-initialized registers
5177         using the MIR dataflow problem. Update the call to
5178         add_removable_extension.
5179         (find_and_remove_re): Call df_mir_add_problem.
5181 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
5183         * common/config/mn10300/mn10300-common.c
5184         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5185         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5187 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
5189         * doc/extend.texi (Explicit Register Variables): Simplify and
5190         avoid unnecessary and confusion abbreviations.  Update cross
5191         references.
5192         doc/implement-c.tex: Update cross reference.
5194 2015-10-19  Jeff Law  <law@redhat.com>
5196         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5197         that create irreducible loops unless the path elimiantes a multiway
5198         branch.
5200 2015-10-19  Richard Biener  <rguenther@suse.de>
5202         PR tree-optimization/67975
5203         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5204         * tree-cfg.c (extract_true_false_controlled_edges): Split out
5205         core worker from ...
5206         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5207         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5208         instead of block number for PHIs with two or one args.
5209         (vn_phi_eq): Compare edge predicates of PHIs that are in different
5210         blocks.
5212 2015-10-19  Richard Biener  <rguenther@suse.de>
5214         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5215         (gimple_stmt_nonnegative_warnv_p): Use it.
5216         * match.pd (CPROJ): New operator list.
5217         (cproj (complex ...)): Move simplifications from ...
5218         * builtins.c (fold_builtin_cproj): ... here.
5220 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5222         * config/i386/i386.c (ix86_expand_vector_move): Use
5223         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5224         alignment.
5226 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5228         * doc/invoke.texi: Replace @optindex with @opindex.
5230 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5232         PR target/67995
5233         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5234         arch= is set,  clear all bits in x_ix86_isa_flags, except for
5235         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5237 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
5239         PR middle-end/68002
5240         * common.opt (fkeep-static-functions): New option.
5241         * doc/invoke.texi: Document it.
5242         * cgraphunit.c (cgraph_node::finalize_function): Use it.
5244 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5246         * sched-int.h (struct autopref_multipass_data_): Remove offset
5247         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
5248         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5249         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
5250         (autopref_rank_data): New function.
5251         (autopref_rank_for_schedule): Use it.
5252         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5254 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
5256         PR other/65800
5257         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5259 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5261         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5262         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
5263         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5264         (STANDARD_STARTFILE_PREFIX_1): New.
5265         (STANDARD_STARTFILE_PREFIX_2): New.
5267 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5269         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5270         (darwin_driver_init): Note a version-min when provided on the c/l.
5271         * config/darwin.h (%darwin_minversion): Remove.
5272         * config/i386/darwin.h: Likewise.
5273         * config/rs6000/darwin.h: Likewise.
5274         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5275         rather than an arbitrary constant.
5277 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5279         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5280         PPC, detect conflicts between -arch and multilib settings.  Detect
5281         and warn about conflicts between multiple -arch definitions.
5283 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5285         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5287 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5289         * lra-constraints.c (add_next_usage_insn): Change argument type
5290         from rtx to rtx_insn *.
5292 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
5294         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5295         for Lakemont.
5297 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
5299         * config/tilepro/gen-mul-tables.cc: Adjust include files.
5300         * config/tilegx/mul-tables.c: Regenerate.
5301         * config/tilepro/mul-tables.c: Regenerate.
5303         * config/tilegx/tilegx-c.c: Adjust include files.
5304         * config/tilegx/tilegx.c: Likewise.
5305         * config/tilepro/tilepro-c.c: Likewise.
5306         * config/tilepro/tilepro.c: Likewise.
5307         * config/aarch64/aarch64-builtins.c: Likewise.
5308         * config/aarch64/aarch64.c: Likewise.
5309         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5310         * config/alpha/alpha.c: Likewise.
5311         * config/arc/arc.c: Likewise.
5312         * config/arm/aarch-common.c: Likewise.
5313         * config/arm/arm-builtins.c: Likewise.
5314         * config/arm/arm-c.c: Likewise.
5315         * config/arm/arm.c: Likewise.
5316         * config/avr/avr-c.c: Likewise.
5317         * config/avr/avr-devices.c: Likewise.
5318         * config/avr/avr-log.c: Likewise.
5319         * config/avr/avr.c: Likewise.
5320         * config/bfin/bfin.c: Likewise.
5321         * config/c6x/c6x.c: Likewise.
5322         * config/cr16/cr16.c: Likewise.
5323         * config/cris/cris.c: Likewise.
5324         * config/darwin-c.c: Likewise.
5325         * config/darwin-driver.c: Likewise.
5326         * config/darwin.c: Likewise.
5327         * config/default-c.c: Likewise.
5328         * config/epiphany/epiphany.c: Likewise.
5329         * config/epiphany/mode-switch-use.c: Likewise.
5330         * config/epiphany/resolve-sw-modes.c: Likewise.
5331         * config/fr30/fr30.c: Likewise.
5332         * config/frv/frv.c: Likewise.
5333         * config/ft32/ft32.c: Likewise.
5334         * config/glibc-c.c: Likewise.
5335         * config/h8300/h8300.c: Likewise.
5336         * config/i386/host-cygwin.c: Likewise.
5337         * config/i386/host-mingw32.c: Likewise.
5338         * config/i386/i386-c.c: Likewise.
5339         * config/i386/i386.c: Likewise.
5340         * config/i386/msformat-c.c: Likewise.
5341         * config/i386/winnt-cxx.c: Likewise.
5342         * config/i386/winnt-stubs.c: Likewise.
5343         * config/i386/winnt.c: Likewise.
5344         * config/ia64/ia64-c.c: Likewise.
5345         * config/ia64/ia64.c: Likewise.
5346         * config/iq2000/iq2000.c: Likewise.
5347         * config/lm32/lm32.c: Likewise.
5348         * config/m32c/m32c-pragma.c: Likewise.
5349         * config/m32c/m32c.c: Likewise.
5350         * config/m32r/m32r.c: Likewise.
5351         * config/mcore/mcore.c: Likewise.
5352         * config/mep/mep-pragma.c: Likewise.
5353         * config/mep/mep.c: Likewise.
5354         * config/microblaze/microblaze-c.c: Likewise.
5355         * config/microblaze/microblaze.c: Likewise.
5356         * config/mips/mips-tables.opt
5357         * config/mips/mips.c: Likewise.
5358         * config/mmix/mmix.c: Likewise.
5359         * config/mn10300/mn10300.c: Likewise.
5360         * config/moxie/moxie.c: Likewise.
5361         * config/msp430/msp430-c.c: Likewise.
5362         * config/msp430/msp430.c: Likewise.
5363         * config/nds32/nds32-cost.c: Likewise.
5364         * config/nds32/nds32-fp-as-gp.c: Likewise.
5365         * config/nds32/nds32-intrinsic.c: Likewise.
5366         * config/nds32/nds32-isr.c: Likewise.
5367         * config/nds32/nds32-md-auxiliary.c: Likewise.
5368         * config/nds32/nds32-memory-manipulation.c: Likewise.
5369         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5370         * config/nds32/nds32-predicates.c: Likewise.
5371         * config/nds32/nds32.c: Likewise.
5372         * config/nios2/nios2.c: Likewise.
5373         * config/nvptx/mkoffload.c: Likewise.
5374         * config/nvptx/nvptx.c: Likewise.
5375         * config/pa/pa.c: Likewise.
5376         * config/pdp11/pdp11.c: Likewise.
5377         * config/rl78/rl78-c.c: Likewise.
5378         * config/rl78/rl78.c: Likewise.
5379         * config/rs6000/host-darwin.c: Likewise.
5380         * config/rs6000/rs6000-c.c: Likewise.
5381         * config/rs6000/rs6000-linux.c: Likewise.
5382         * config/rs6000/rs6000.c: Likewise.
5383         * config/rx/rx.c: Likewise.
5384         * config/s390/s390-c.c: Likewise.
5385         * config/s390/s390.c: Likewise.
5386         * config/sh/sh-c.c: Likewise.
5387         * config/sh/sh-mem.cc: Likewise.
5388         * config/sh/sh.c: Likewise.
5389         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5390         * config/sh/sh_treg_combine.cc: Likewise.
5391         * config/sol2-c.c: Likewise.
5392         * config/sol2-cxx.c: Likewise.
5393         * config/sol2-stubs.c: Likewise.
5394         * config/sol2.c: Likewise.
5395         * config/sparc/sparc-c.c: Likewise.
5396         * config/sparc/sparc.c: Likewise.
5397         * config/spu/spu-c.c: Likewise.
5398         * config/spu/spu.c: Likewise.
5399         * config/stormy16/stormy16.c: Likewise.
5400         * config/v850/v850-c.c: Likewise.
5401         * config/v850/v850.c: Likewise.
5402         * config/vax/vax.c: Likewise.
5403         * config/visium/visium.c: Likewise.
5404         * config/vms/vms-c.c: Likewise.
5405         * config/vms/vms.c: Likewise.
5406         * config/vxworks.c: Likewise.
5407         * config/winnt-c.c: Likewise.
5408         * config/xtensa/xtensa.c: Likewise.
5410 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5412         PR target/67745
5413         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5414         (FUNCTION_BOUNDARY_P): New macro:
5415         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5416         New hook.
5417         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5418         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5419         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5420         * function.c (allocate_struct_function): Call
5421         relayout_function hook.
5422         * passes.c (rest_of_decl_compilation): Likewise.
5424 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5426         PR target/67745
5427         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5428         * config/arm/arm.c (arm_option_override_internal): Call
5429         arm_override_options_after_change_1.
5430         (arm_override_options_after_change): New function.
5431         (arm_override_options_after_change_1): Likewise.
5432         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5434 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5436         Revert:
5437         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5438         empty constructors.
5440 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5442         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5443         argument is an ADDR_EXPR.
5445 2015-10-16  Richard Biener  <rguenther@suse.de>
5447         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5448         and get rid of force_gimple_operand_gsi.
5449         (gimple_fold_builtin_memory_chk): Likewise.
5450         (gimple_fold_builtin_stxcpy_chk): Likewise.
5451         (rewrite_to_defined_overflow): Likewise.
5452         (gimple_convert_to_ptrofftype): New function.
5453         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5455 2015-10-16  Richard Biener  <rguenther@suse.de>
5457         * tree-nested.h (build_addr): Adjust prototype.
5458         * tree-nested.c (build_addr): Remove context argument and use
5459         mark_addressable.
5460         (get_static_chain): Adjust calls to build_addr.
5461         (convert_nl_goto_reference): Likewise.
5462         (convert_tramp_reference_op): Likewise.
5463         (finalize_nesting_tree_1): Likewise.
5464         * value-prof.c (gimple_ic): Likewise.
5465         * gimple-low.c (lower_builtin_setjmp): Likewise.
5466         * tree-parloops.c (take_address_of): Likewise.
5467         (create_call_for_reduction_1): Likewise.
5468         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5469         (gimple_gen_ic_func_profiler): Likewise.
5471 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5473         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5474         empty constructors.
5476 2015-10-16  Michael Collison  <michael.collison@linaro.org>
5477             Andrew Pinski <andrew.pinski@caviumnetworks.com>
5479         * match.pd ((x < y) && (x < z) -> x < min (y,z),
5480         (x > y) and (x > z) -> x > max (y,z))
5482 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
5483             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5485         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5486         (DYNAMIC_LINKER): Renamed to ...
5487         (GLIBC_DYNAMIC_LINKER): This.
5488         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5490 2015-10-15  Marek Polacek  <polacek@redhat.com>
5492         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5493         gimple_call_builtin instead of is_gimple_call.
5495 2015-10-15  Richard Biener  <rguenther@suse.de>
5497         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5499 2015-10-15  Richard Biener  <rguenther@suse.de>
5501         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5502         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5503         * tree-vect-loop.c (get_initial_def_for_induction): Drop
5504         use of force_gimple_operand in favor of gimple_build.
5505         Use vect_get_new_ssa_name.
5506         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5507         (vectorizable_mask_load_store): Likewise.
5508         (vectorizable_call): Likewise.
5509         (vectorizable_store): Likewise.
5510         (vectorizable_load): Likewise.
5511         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5513 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
5515         PR tree-optimization/67945
5516         * tree-pass.h (PROP_gimple_opt_math): New property flag.
5517         * generic-match-head.c (canonicalize_math_p): New function.
5518         * gimple-match-head.c: Include tree-pass.h.
5519         (canonicalize_math_p): New function.
5520         * match.pd: Group math built-in rules into simplifications
5521         and canonicalizations.  Guard the latter with canonicalize_math_p.
5522         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5523         PROP_gimple_opt_math property.
5525 2015-10-15  Marek Polacek  <polacek@redhat.com>
5527         PR tree-optimization/67953
5528         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5530 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
5532         * config.gcc: Recognize "." in architecture base name for AArch64.
5534 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5536         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5537         ROUND_UP macro.
5538         * config/mips/mips.c (mips_setup_incoming_varargs): Use
5539         ROUND_DOWN to calculate off.
5540         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5541         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5542         rounded_size.
5544 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5546         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5548 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
5549             Torvald Riegel  <triegel@redhat.com>
5551         PR target/67281
5552         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5553         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5554         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5555         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5556         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
5557         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5558         trechkpt, treclaim, tsr, ttest): New define_expands.
5559         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5560         __TM_FENCE__ for htm.
5561         * doc/extend.texi: Update documentation for htm builtins.
5563 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5565         PR target/67967
5566         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5567         REG_CFA_EXPRESSION to aligned SSE stores.
5569 2015-10-14  Jeff Law  <law@redhat.com>
5571         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5572         num_threaded_edges for successful FSM threads too.
5574 2015-10-14  Richard Biener  <rguenther@suse.de>
5576         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5577         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
5578         (vect_get_vec_def_for_operand): Remove unused parameter.
5579         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5580         (vect_create_epilog_for_reduction): Likewise.
5581         (vectorizable_reduction): Likewise.
5582         (vectorizable_live_operation): Likewise.
5583         * tree-vect-patterns.c (type_conversion_p): Likewise.
5584         (vect_recog_vector_vector_shift_pattern): Likewise.
5585         (check_bool_pattern): Likewise.
5586         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5587         (vect_analyze_slp_cost_1): Likewise.
5588         * tree-vect-stmts.c (process_use): Likewise.
5589         (vect_get_vec_def_for_operand): Do not handle reductions.
5590         (vect_get_vec_defs): Adjust.
5591         (vectorizable_mask_load_store): Likewise.
5592         (vectorizable_call): Likewise.
5593         (vectorizable_simd_clone_call): Likewise.
5594         (vect_get_loop_based_defs): Likewise.
5595         (vectorizable_conversion): Likewise.
5596         (vectorizable_assignment): Likewise.
5597         (vectorizable_shift): Likewise.
5598         (vectorizable_operation): Likewise.
5599         (vectorizable_store): Likewise.
5600         (vectorizable_load): Likewise.
5601         (vect_is_simple_cond): Likewise.
5602         (vectorizable_condition): Likewise.
5603         (vect_is_simple_use): Remove unused parameters.
5604         (vect_is_simple_use_1): Adjust and rename.
5606 2015-10-14  Richard Biener  <rguenther@suse.de>
5608         PR tree-optimization/67915
5609         * match.pd: Handle comparisons of addresses of STRING_CSTs.
5610         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5611         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5612         stmt folding in favor of GIMPLE one.
5614 2015-10-14  Marek Polacek  <polacek@redhat.com>
5616         PR tree-optimization/67815
5617         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5618         (reassociate_bb): Call it.
5620 2015-10-14  Richard Biener  <rguenther@suse.de>
5622         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5623         Reset info at start.
5624         (vect_analyze_group_access_1): Add debug print.
5625         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5626         (vect_compute_single_scalar_iteration_cost): ... to this.
5627         (vect_analyze_loop_2): Adjust.
5628         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5629         * tree-vectorizer.h: ... here.
5630         (add_stmt_info_to_vec): Remove.
5631         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5633 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5635         * targhooks.c (default_target_option_pragma_parse): Do not warn if
5636         called on behalf of "#pragma GCC pop_options".
5638 2015-10-14  Tom de Vries  <tom@codesourcery.com>
5640         * cfganal.c (verify_no_unreachable_blocks): New function.
5641         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5642         verify_no_unreachable_blocks.
5643         cfganal.h (verify_no_unreachable_blocks): Declare.
5645 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
5647         * common.opt: Add flag_checking.
5648         * system.h (CHECKING_P): Define.
5650 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
5651             Aldy Hernandez  <aldyh@redhat.com>
5652             Ilya Verbin  <ilya.verbin@intel.com>
5654         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5655         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5656         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5657         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5658         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5659         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5660         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5661         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5662         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5663         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5664         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5665         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5666         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5667         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5668         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5669         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5670         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5671         (struct cgraph_simd_clone_arg): Adjust comment.
5672         * coretypes.h (struct gomp_ordered): New forward decl.
5673         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5674         set critical clauses to it.
5675         (gimple_build_omp_ordered): Return gomp_ordered * instead of
5676         gimple *.  Add CLAUSES argument, set ordered clauses to it.
5677         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5678         GIMPLE_OMP_ORDERED.
5679         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5680         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5681         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
5682         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5683         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
5684         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5685         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
5686         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5687         renumber
5688         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5689         (gomp_critical): Add clauses field.
5690         (gomp_ordered): New struct.
5691         (is_a_helper <gomp_ordered *>::test): New inline.
5692         (gimple_build_omp_critical): Add CLAUSES argument.
5693         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
5694         instead of gimple *.
5695         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5696         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5697         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5698         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5699         inline functions.
5700         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5701         (dump_gimple_omp_target): Handle enter data and exit data.
5702         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5703         (dump_gimple_omp_critical): Print clauses.
5704         (dump_gimple_omp_ordered): New function.
5705         (dump_gimple_omp_task): Handle taskloop.
5706         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5707         GIMPLE_OMP_ORDERED.
5708         * gimple-walk.c (walk_gimple_op): Walk clauses on
5709         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5710         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5711         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5712         (struct gimplify_omp_ctx): Add loop_iter_var,
5713         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5714         and target_firstprivatize_array_bases fields.
5715         (delete_omp_context): Release loop_iter_var.
5716         (gimplify_bind_expr): Handle ORT_NONE.
5717         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5718         ORT_COMBINED_TARGET.
5719         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5720         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5721         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
5722         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
5723         ctx->target_map_scalars_firstprivate.
5724         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
5725         data sharing clauses.  For data sharing clause with VLA decl
5726         on omp target/target data don't add firstprivate for the pointer.
5727         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5728         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5729         the addition of ORT_COMBINED_TARGET.
5730         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
5731         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
5732         pointers as zero length array sections and
5733         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5734         data sharing.
5735         (omp_check_private): Handle omp_member_access_dummy_var vars.
5736         (find_decl_expr): New function.
5737         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
5738         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5739         Handle OMP_CLAUSE_GANG separately.  Handle
5740         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5741         clauses.  Diagnose linear clause on combined
5742         distribute {, parallel for} simd construct, unless it is the loop
5743         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5744         Handle map clauses with COMPONENT_REF.  Initialize
5745         ctx->target_map_scalars_firstprivate,
5746         ctx->target_firstprivatize_array_bases and
5747         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
5748         linear clause even to target region if combined.  Remove
5749         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5750         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
5751         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5752         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
5753         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5754         For linear clause on worksharing loop combined with parallel add
5755         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
5756         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
5757         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
5758         taskloop if needed.
5759         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5760         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5761         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5762         GOMP_MAP_POINTER.
5763         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
5764         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5765         in target body.  Handle removal of struct mapping if struct is not
5766         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
5767         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
5768         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
5769         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5770         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5771         clause appear together.  Handle
5772         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
5773         clause if it has map-type-modifier always.  Handle
5774         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5775         clauses.
5776         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5777         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5778         callers.
5779         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
5780         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
5781         iterators in doacross loops.
5782         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5783         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
5784         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
5785         for the addition of ORT_COMBINED_TARGET.
5786         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5787         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
5788         and OMP_TARGET_EXIT_DATA.
5789         (gimplify_omp_ordered): New function.
5790         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5791         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
5792         Gimplify clauses on OMP_CRITICAL.
5793         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5794         expand_GOMP_SIMD_ORDERED_END): New functions.
5795         * internal-fn.def (GOMP_SIMD_ORDERED_START,
5796         GOMP_SIMD_ORDERED_END): New internal functions.
5797         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5798         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5799         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5800         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5801         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5802         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5803         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5804         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5805         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5806         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5807         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5808         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5809         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5810         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5811         adjust type.
5812         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5813         GOMP_target_data_41, adjust type.
5814         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5815         GOMP_target_update_41, adjust type.
5816         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5817         field.
5818         (struct omp_for_data): Add ordered and simd_schedule fields.
5819         (omp_member_access_dummy_var, unshare_and_remap_1,
5820         unshare_and_remap, is_taskloop_ctx): New functions.
5821         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5822         (extract_omp_for_data): Handle taskloops and doacross loops
5823         and simd schedule modifier.
5824         (omp_adjust_chunk_size): New function.
5825         (get_ws_args_for): Use it.
5826         (lookup_sfield): Change first argument to splay_tree_key,
5827         add overload with first argument tree.
5828         (maybe_lookup_field): Likewise.
5829         (use_pointer_for_field): Handle omp_member_access_dummy_var.
5830         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5831         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5832         (build_outer_var_ref): Add LASTPRIVATE argument, handle
5833         taskloops and omp_member_access_dummy_var vars.
5834         (build_sender_ref): Change first argument to splay_tree_key,
5835         add overload with first argument tree.
5836         (install_var_field): For mask & 8 use &DECL_UID as key instead
5837         of the tree itself.
5838         (fixup_child_record_type): Const qualify *.omp_data_i.
5839         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5840         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5841         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5842         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5843         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5844         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5845         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5846         kinds.
5847         (add_taskreg_looptemp_clauses): New function.
5848         (scan_omp_parallel): Use it.
5849         (scan_omp_task): Likewise.
5850         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5851         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5852         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5853         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
5854         sandwiched taskloop constructs.  Type check
5855         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
5856         region.  Diagnose depend(source) or depend(sink:...) on
5857         target constructs or task/taskloop.
5858         (handle_simd_reference): Use get_name.
5859         (lower_rec_input_clauses): Likewise.  Ignore all
5860         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5861         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
5862         before passing it to omp_clause_{default,copy}_ctor.  Handle
5863         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
5864         lastprivate_firstprivate flag for linear that needs copyin and
5865         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5866         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5867         on taskloop lookup decl in outer context.  Pass true to
5868         build_outer_var_ref lastprivate argument.  Handle
5869         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5870         outside of outer taskloop for.
5871         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5872         OMP_CLAUSE_DECL.
5873         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5874         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
5875         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
5876         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
5877         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5878         abstract origin.  Handle omp_member_access_dummy_var vars.
5879         (expand_parallel_call): Use expand_omp_build_assign.
5880         (expand_task_call): Handle taskloop construct expansion.  Add
5881         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
5882         integers.  Add priority argument to GOMP_task* calls.  Or in
5883         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5884         GOMP_task call.
5885         (expand_omp_build_assign): Add prototype.  Add AFTER
5886         argument, if true emit statements after *GSI_P and continue linking.
5887         (expand_omp_taskreg): Adjust expand_task_call caller.
5888         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5889         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5890         zero_iter2_bb and first_zero_iter2 arguments, handle computation
5891         of counts even for ordered loops.
5892         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5893         (expand_omp_ordered_source, expand_omp_ordered_sink,
5894         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5895         functions.
5896         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
5897         clauses on worksharing loop.  Handle DOACROSS loop expansion.
5898         (expand_omp_for_static_nochunk): Handle linear clauses on
5899         worksharing loop.  Adjust expand_omp_for_init_counts
5900         callers.
5901         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
5902         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
5903         expand_omp_for_init_counts callers.
5904         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5905         functions.
5906         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5907         Handle doacross loops.
5908         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5909         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
5910         GOMP_target_{41,update_41,enter_exit_data} libcalls.
5911         (expand_omp): Don't expand ordered depend constructs here, record
5912         ord_stmt instead for later expand_omp_for_generic.
5913         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5914         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5915         clause as stand-alone directive.
5916         (lower_omp_ordered_clauses): New function.
5917         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5918         don't lower anything.
5919         (lower_omp_for_lastprivate): Use last _looptemp_ clause
5920         on taskloop for comparison.
5921         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
5922         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5923         expansion for linear adjustments.
5924         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5925         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5926         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
5927         to tree * pointing to the stmt's clauses.
5928         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5929         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5930         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5931         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5932         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5933         clauses.  Always use short kind and 8-bit align shift.
5934         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5935         (struct lower_omp_regimplify_operands_data): New type.
5936         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5937         New functions.
5938         (lower_omp_1): Use lower_omp_regimplify_operands instead of
5939         gimple_regimplify_operands.
5940         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5941         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5942         clause as stand-alone directive.
5943         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5944         (simd_clone_mangle): Mangle the various linear kinds
5945         per the new ABI.
5946         (simd_clone_adjust_argument_types): Handle
5947         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5948         (simd_clone_init_simd_arrays): Don't do anything for uval.
5949         (simd_clone_adjust): Handle
5950         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5951         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5952         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5953         * omp-low.h (omp_member_access_dummy_var): New prototype.
5954         * passes.def (pass_simduid_cleanup): Schedule another copy of the
5955         pass after all optimizations.
5956         * tree.c (omp_clause_code_name): Add entries for
5957         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5958         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5959         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
5960         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5961         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5962         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
5963         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5964         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5965         clauses.
5966         * tree-core.h (enum omp_clause_linear_kind): New.
5967         (struct tree_omp_clause): Change type of map_kind
5968         from unsigned char to unsigned int.  Add subcode.if_modifier
5969         and subcode.linear_kind fields.
5970         (enum omp_clause_code): Add
5971         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5972         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5973         (OMP_CLAUSE_REDUCTION): Document
5974         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5975         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5976         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5977         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
5978         operand.
5979         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
5980         operand.
5981         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5982         codes.
5983         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5984         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5985         char.
5986         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5987         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5988         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5989         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5990         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5991         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5992         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5993         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5994         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5995         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5996         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5997         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5998         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5999         * tree-inline.c (remap_gimple_stmt): Handle clauses on
6000         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
6001         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6002         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6003         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6004         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6005         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6006         (convert_local_omp_clauses): Likewise.
6007         * tree-pretty-print.c (dump_omp_clause): Handle
6008         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6009         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6010         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6011         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6012         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
6013         GOMP_MAP_FORCE_DEALLOC.  Handle
6014         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6015         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6016         and clauses on OMP_ORDERED and OMP_CRITICAL.
6017         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6018         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6019         (vectorize_loops): Adjust comments.
6020         (pass_simduid_cleanup::execute): Likewise.
6021         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6022         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6023         * wide-int.h (wi::gcd): New.
6025 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6027         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6028         (ix86_function_arg_advance): Ditto.
6029         (ix86_function_arg): Ditto.
6030         (ix86_gimplify_va_arg): Ditto.
6031         (ix86_class_max_nregs): Ditto.
6032         (inline_memory_move_cost): Ditto.
6033         (ix86_set_reg_reg_cost): Ditto.
6034         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6036 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
6038         PR middle-end/67912
6039         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6041 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6043         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6044         ROUND_UP macro and UNITS_PER_WORD * 2.
6045         * config/sparc/sparc.c (sparc_compute_frame_size):
6046         Use ROUND_UP and ROUND_DOWN macros where applicable.
6047         (function_arg_record_value, function_arg_record_value_1)
6048         (function_arg_record_value_1): Ditto.
6049         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6050         alignment to double-word.
6051         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6052         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6053         rounded_size.
6055 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6057         * rtl.h (print_insn): Fix prototype.
6059 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6061         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6062         -1.  Add assert that returned entry matches phi argument.
6063         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6064         free_stmt_vec_info_vec ...
6065         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
6066         with -1.
6068 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
6070         PR tree-optimization/67909, 67947
6071         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6072         really skip the inner loop.
6074 2015-10-13  Jeff Law  <law@redhat.com>
6076         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6077         Allow single block jump threading paths.
6079 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6081         PR tree-optimization/67476
6082         * doc/invoke.texi (@item parloops-schedule): New item.
6083         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6084         * tree-parloops.c: Include params-enum.h.
6085         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6087 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6089         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6090         * params-enum.h: New file.
6091         * opts.c (handle_param): Handle case that param arg is a string.
6092         * params-list.h: Handle DEFPARAMENUM5 in params.def.
6093         * params.c (find_param): New function, factored out of ...
6094         (set_param_value): ... here.
6095         (param_string_value_p): New function.
6096         * params.h (struct param_info): Add value_names field.
6097         (find_param, param_string_value_p): Declare.
6099 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6101         PR tree-optimization/67476
6102         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6104 2015-10-13  Richard Biener  <rguenther@suse.de>
6106         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6107         the data dependence vector.
6108         (vect_peeling_hash_insert): Get the peeling hash table as argument.
6109         (vect_peeling_hash_get_lowest_cost): Likewise.
6110         (vect_enhance_data_refs_alignment): Adjust.
6111         (struct _vect_peel_info, struct _vect_peel_extended_info,
6112         struct peel_info_hasher): Move from ...
6113         * tree-vectorizer.h: ... here.
6114         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6115         (LOOP_VINFO_PEELING_HTAB): Likewise.
6116         (struct _loop_vec_info): Remove min_profitable_iters and
6117         peeling_htab members.
6118         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6119         here.
6120         (destroy_loop_vec_info): Adjust.
6121         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6122         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6123         to estimate alias versioning cost.
6124         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6126 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
6128         * real.h (real_isinteger): Declare.
6129         * real.c (real_isinteger): New function.
6130         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6131         if y is an even integer.
6133 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6135         revert:
6136         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6137         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6138         counts when these are more informative.
6140 2015-10-12  Jeff Law  <law@redhat.com>
6142         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6143         (fsm_find_control_stmt_paths): Change name of first argument to
6144         more accurately relfect what it really is.  Handle simplification
6145         of GIMPLE_COND after finding a thread path for NAME.
6146         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6147         nontrivial conditions to be handled by FSM threader.
6148         (thread_through_normal_block): Extract the name to looup via
6149         FSM threader from COND_EXPR.
6151         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6152         restriction that traced SSA_NAME is a user variable.
6154 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6156         PR tree-optimization/67476
6157         * omp-low.c (expand_omp_for_generic): Add missing phis.
6159 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6161         PR tree-optimization/67476
6162         * omp-low.c (expand_omp_for_generic): Handle simple latch.
6164 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
6166         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6167         tables: add tbl3 and tbx4.
6168         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6169         (aarch64_tbx4v8qi): New.
6170         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6171         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6172         Rewrite using builtin functions.
6173         * config/aarch64/iterators.md (UNSPEC_TBX): New.
6175 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6177         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6178         ROUND_UP macro.
6179         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6180         Use ROUND_UP and ROUND_DOWN macros where applicable.
6181         (rs6000_darwin64_record_arg_flush): Ditto.
6182         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6183         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6184         rounded_size.
6186 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6188         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6189         (AARCH64_ROUND_DOWN): Ditto.
6190         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6192 2015-10-12  Richard Biener  <rguenther@suse.de>
6194         PR ipa/67783
6195         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6196         code that analyzes IVs on each stmt but in a cheaper way avoiding
6197         quadratic behavior.
6199 2015-10-12  Nick Clifton  <nickc@redhat.com>
6201         * config/msp430/msp430.c (msp430_mcu_names): Rename to
6202         msp430_mcu_data, add fields for ISA and hardware multiply
6203         support.  Import latest data from the devices.csv file.
6204         (msp430_override_option): Use the data from the new array.
6205         (msp430_use_f5_series_hwmult): Likewise.
6206         (use_32bit_hwmult): Likewise.
6207         (msp430_no_hwmult): Likewise.
6208         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6209         MCU names.
6210         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6211         not recognised then no hardware multiply support is assumed and
6212         that only the MSP430 ISA is allowed.
6214 2015-10-12  Richard Biener  <rguenther@suse.de>
6216         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6217         related code ...
6218         (vect_analyze_loop_2): ... here.
6220 2015-10-11  Jason Merrill  <jason@redhat.com>
6222         PR c++/67557
6223         * expr.c (store_field): Call store_constructor directly when
6224         storing a CONSTRUCTOR into a target smaller than its type.
6225         Guard against unsafe bitwise copy.
6227 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6229         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6230         counts when these are more informative.
6232 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6234         * tree-profile.c (tree_profiling): Do not clear
6235         pure/const when not instrumenting.
6236         (pass tree_profile): Add dump of symtab.
6238 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6240         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6241         addresses.
6242         (fold_addr_of_array_ref_difference): Likewise.
6244 2015-10-11  Jeff Law  <law@redhat.com>
6246         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6247         tree-ssa-threadbackward.c.
6248         (fsm_find_control_statement_thread_paths): Likewise.
6249         (thread_through_normal_block): Break out FSM bits and move them
6250         into a new function in tree-ssa-threadbackward.c.  Call new function
6251         instead.
6252         Minimize header file usage.
6253         * tree-ssa-threadbackward.h: New file.
6254         * tree-ssa-threadbackward.c: Likewise.
6255         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6257 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
6259         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6261 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
6263         PR rtl-optimization/67864
6264         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6265         fallthrough edges for conditional jumps.  Don't sort candidate
6266         edges if not optimizing for speed.
6268 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6270         * defaults.h (REVERSE_CONDITION): New default definition.
6271         * jump.c (reversed_comparison_code_parts): Adjust.
6273 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6275         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6276         check HARD_FRAME_POINTER_IS_ARG_POINTER.
6278 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6280         * defaults.h (FRAME_ADDR_RTX): New default definition.
6281         * builtins.c (expand_builtin_return_addr): Adjust.
6283 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6285         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6286         * builtins.c (expand_builtin_return_addr): Adjust.
6288 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6290         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6291         * builtins.c (expand_builtin_return_addr): Adjust.
6292         * doc/tm.texi: Likewise.
6293         * doc/tm.texi.in: Likewise.
6294         * except.c (expand_builtin_unwind_init): Likewise.
6296 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6298         * builtins.c (expand_builtin_return_addr): Adjust.
6299         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6301 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6303         * tree.c (type_with_interoperable_signedness): New.
6304         (gimple_canonical_types_compatible_p): Use it.
6305         * tree.h (type_with_interoperable_signedness): Declare
6307 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6309         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6310         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6311         when OEP_ADDRESS_OF is se.
6313 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6314             Sebastian Pop  <s.pop@samsung.com>
6316         * graphite-dependences.c (scop_get_dependences): Add dump of the
6317         data dependence graph.
6318         * graphite-poly.c (print_isl_union_map): New.
6319         (debug_isl_union_map): New.
6320         * graphite-poly.h (print_isl_union_map): Declare.
6321         (debug_isl_union_map): Declare.
6323 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6324             Sebastian Pop  <s.pop@samsung.com>
6326         * graphite-poly.c (print_iteration_domain): Remove verbosity.
6327         Remove OpenScop formatting.
6328         (print_iteration_domains): Same.
6329         (debug_iteration_domain): Same.
6330         (debug_iteration_domains): Same.
6331         (print_pdr): Same.
6332         (debug_pdr): Same.
6333         (dump_gbb_cases): Same.
6334         (dump_gbb_conditions): Same.
6335         (print_pdrs): Same.
6336         (debug_pdrs): Same.
6337         (print_pbb_body): Same.
6338         (print_pbb): Same.
6339         (print_scop_params): Same.
6340         (print_scop_context): Same.
6341         (print_scop): Same.
6342         (debug_pbb_domain): Same.
6343         (debug_pbb): Same.
6344         (debug_scop_context): Same.
6345         (debug_scop): Same.
6346         (debug_scop_params): Same.
6347         * graphite-poly.h: Same.
6348         * graphite.c (graphite_transform_loops): Same.
6350 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6352         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6353         call that isn't needed.
6355 2015-10-09  Jeff Law  <law@redhat.com>
6357         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6358         rather than moving each name to the freelist individually.
6360 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
6362         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6363         * frame-header-opt.c: New file.
6364         * config/mips/mips-proto.h (mips_register_frame_header_opt):
6365         Add prototype.
6366         * config/mips/mips.c (mips_compute_frame_info): Check
6367         optimize_call_stack flag.
6368         (mips_option_override): Register new frame_header_opt pass.
6369         (mips_frame_info, mips_int_mask, mips_shadow_set,
6370         machine_function): Move these types to...
6371         * config/mips/mips.h: here.
6372         (machine_function): Add does_not_use_frame_header and
6373         optimize_call_stack fields.
6374         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6375         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6376         Document new flags.
6377         * config/mips/mips.opt (mframe-header-opt): Add new option.
6379 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
6381         * config/i386/i386.c
6382         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6383         ROUND_DOWN where applicable.
6385 2015-10-09  Jeff Law  <law@redhat.com>
6387         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6388         correct statement.
6390 2015-10-09  Renlin Li  <renlin.li@arm.com>
6392         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6393         operands[0] and operands[2].
6394         (neon_vtrn<mode>_insn): Likewise.
6395         (neon_vzip<mode>_insn): Likewise.
6397 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6399         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6400         ((X & C2) << C1): Expand to...
6401         (X {&,^,|} C2 << C1): ...This.
6402         ((X & C2) >> C1): Expand to...
6403         (X {&,^,|} C2 >> C1): ...This.
6405 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
6407         PR target/67895
6408         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6409         Adjust embedded rounding/SAE specifier position.
6410         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6411         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6412         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6413         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6414         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6415         Likewise.
6416         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6418 2015-10-09  Martin Jambor  <mjambor@suse.cz>
6420         tree-optimization/67794
6421         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6422         between types of state,ents but accept original definitions as a
6423         parameter.
6424         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6425         iterate over definitions.
6427 2015-10-09  James Norris  <jnorris@codesourcery.com>
6429         * config/rs6000/rs6000.c (rs6000_offload_options): New.
6430         (TARGET_OFFLOAD_OPTIONS): New.
6432 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
6434         PR middle-end/67891
6435         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6437         PR middle-end/67766
6438         * function.c (expand_function_end): Move return value
6439         promotion past the handling of PARALLELs and CONCATs.
6441         PR rtl-optimization/67828
6442         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6443         (tree_may_unswitch_on): Don't unswitch on expressions
6444         involving undefined values.
6446 2015-10-09  Richard Biener  <rguenther@suse.de>
6448         * genmatch.c (print_operand): Fix formatting.
6449         (dt_node::append_simplify): Warn for multiple simplifiers
6450         that match the same pattern.
6451         * match.pd (log (exp @0)): Remove duplicates.
6453 2015-10-09  Richard Biener  <rguenth@suse.de>
6455         PR target/67366
6456         * gimple-fold.c (optabs-query.h): Include
6457         (gimple_fold_builtin_memory_op): Allow unaligned stores
6458         when movmisalign_optabs are available.
6460 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6462         PR target/67366
6463         * config/arm/arm.md (movmisalign<mode>): New.
6464         * config/arm/iterators.md (HSI): New.
6466 2015-10-09  Richard Biener  <rguenther@suse.de>
6468         PR tree-optimization/67891
6469         * gimple-match.h (gimple_simplified_result_is_gimple_val):
6470         New helper.
6471         (gimple_resimplify1): Declare.
6472         (gimple_resimplify2): Likewise.
6473         (gimple_resimplify3): Likewise.
6474         * gimple-match-head.c (gimple_resimplify1): Export.
6475         (gimple_resimplify2): Likewise.
6476         (gimple_resimplify3): Likewise.
6477         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6478         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6479         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6480         to avoid creating stmts without VN info.
6482 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
6484         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6485         of availability.
6487 2015-10-08  Jeff Law  <law@redhat.com>
6489         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6490         and release_ssa_name in two places.
6491         (gimple_stringop_fixed_value): Similarly.
6493         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6494         release_defs.
6496         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6497         unlink_stmt_vdef and release_ssa_name_fn.
6499         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6500         release_defs.
6502 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
6504         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6505         SSE register save area to 16 bytes only if the incoming stack
6506         boundary is no less than 16 bytes.
6508 2015-10-08  Jeff Law  <law@redhat.com>
6510         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6511         release_ssa_name.  Fix typo in comment.
6513 2015-10-08  Nathan Sidwell  <nathan@acm.org>
6515         * config/nvptx/nvptx.h (struct machine_function): Add comment.
6516         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6517         may return pointer as well as in memory.
6518         (nvptx_output_return): Likewise.
6520 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6522         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6523         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
6524         * match.pd: Add rules previously handled by fold_builtin_sqrt
6525         and fold_builtin_cbrt.
6527 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6529         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6530         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6531         * fold-const.h (tree_unary_nonnegative_warnv_p)
6532         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6533         (tree_expr_nonnegative_warnv_p): Add depth parameters.
6534         * fold-const.c: Include gimple-fold.h and params.h.
6535         (tree_ssa_name_nonnegative_warnv_p): New function.
6536         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6537         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6538         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6539         Add a depth parameter and increment it for recursive calls to
6540         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
6541         to handle SSA names.
6542         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6543         (gimple_stmt_nonnegative_warnv_p): Declare.
6544         * tree-vrp.c (remove_range_assertions): Remove assert that condition
6545         cannot be proven false.
6546         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6547         (gimple_stmt_nonnegative_warnv_p): Move to...
6548         * gimple-fold.c: ...here.  Add depth parameters and pass them
6549         down to the tree routines.  Accept statements that aren't
6550         assignments or calls but just return false for them.
6551         (gimple_val_nonnegative_real_p): Delete.
6552         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6553         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6554         Check HONOR_NANs first.
6556 2015-10-08  Martin Jambor  <mjambor@suse.cz>
6558         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
6559         unnecessary MIN.
6561 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6563         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6564         in the tail of outer-loop.
6566 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
6568         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6569         return UI_NONE.
6571 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6573         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6574         "cfghooks.h", add prototypes for introduced new functions.
6575         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6576         checks on ability of loop unswitching to tree_unswitch_single_loop;
6577         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6578         on innermost loop check.
6579         (tree_unswitch_single_loop): Add all required checks on ability of
6580         loop unswitching under zero recursive level guard.
6581         (tree_unswitch_outer_loop): New function.
6582         (find_loop_guard): Likewise.
6583         (empty_bb_without_guard_p): Likewise.
6584         (used_outside_loop_p): Likewise.
6585         (get_vop_from_header): Likewise.
6586         (hoist_guard): Likewise.
6587         (check_exit_phi): Likewise.
6589 2015-10-08  Marek Polacek  <polacek@redhat.com>
6591         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6592         ops element.
6594 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6596         PR c/65345
6597         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6598         create_tmp_var_raw instead of create_tmp_var.
6600 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
6602         * expr.c (store_expr_with_bounds): Handle aggregate moves from
6603         BLKmode.
6604         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6605         to define gimple type system; compare aggregates only by size.
6607 2015-10-07  Jeff Law  <law@redhat.com>
6609         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6610         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6611         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
6612         unnecessarily.
6614 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6615             Sebastian Pop  <s.pop@samsung.com>
6617         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6618         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6619         (generate_isl_schedule): Same.
6620         * graphite-optimize-isl.c (scop_get_domains): Same.
6621         (apply_schedule_map_to_scop): Same.
6622         * graphite-poly.c (print_iteration_domains): Same.
6623         (remove_gbbs_in_scop): Same.
6624         (new_scop): Same.
6625         (free_scop): Same.
6626         (print_scop): Same.
6627         * graphite-poly.h (struct scop): Rename bbs to pbbs.
6628         (SCOP_BBS): Remove.
6629         * graphite-scop-detection.c (compare_bb_depths): Remove.
6630         (graphite_sort_dominated_info): Remove.
6631         (try_generate_gimple_bb): Move out of scop_detection.
6632         (all_non_dominated_preds_marked_p): Remove.
6633         (build_scop_bbs_1): Remove.
6634         (build_scop_bbs): Remove.
6635         (nb_pbbs_in_loops): Do not use SCOP_BBS.
6636         (find_scop_parameters): Same.
6637         (sese_dom_walker): Rename gather_bbs.
6638         (before_dom_children): Call try_generate_gimple_bb and collect gbb
6639         and pbb.
6640         (build_scops): Call gather_bbs.
6641         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6642         (add_conditions_to_constraints): Same.
6643         (build_scop_iteration_domain): Same.
6644         (build_scop_drs): Same.
6645         (new_pbb_from_pbb): Same.
6646         * sese.c (new_sese_info): Create bbs.
6647         * sese.h (struct sese_info_t): Add bbs.
6649 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
6651         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6652         encoding in 64-bit mode.
6654 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
6656         PR target/66697
6657         * config/i386/i386.c (ix86_option_override_internal): Always use
6658         8-byte minimum stack boundary in 64-bit mode.
6659         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6660         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6661         Add a REG_CFA_EXPRESSION note if needed.
6662         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6663         (ix86_handle_force_align_arg_pointer_attribute): New.
6664         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6665         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6666         with ix86_handle_force_align_arg_pointer_attribute.
6667         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6669 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6670             Sebastian Pop  <s.pop@samsung.com>
6672         * graphite-scop-detection.c (parameter_index_in_region): Remove
6673         use of SESE_ADD_PARAMS.
6674         (find_scop_parameters): Same.
6675         * sese.c (new_sese_info): Same.
6676         * sese.h (struct sese_info_t): Remove add_params.
6677         (SESE_ADD_PARAMS): Remove.
6679 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6680             Sebastian Pop  <s.pop@samsung.com>
6682         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6683         an sese_info_p.
6684         (copy_def): Same.
6685         (copy_internal_parameters): Same.
6686         (translate_isl_ast_to_gimple): Use an sese_l.
6687         (build_iv_mapping): Same.
6688         * graphite-poly.c (new_sese): Rename new_sese_info.
6689         (free_sese): Rename free_sese_info.
6690         * graphite-poly.h (struct scop): Use an sese_info_p.
6691         (scop_set_region): Same.
6692         * graphite-scop-detection.c (struct sese_l): Moved...
6693         (get_entry_bb): Moved...
6694         (get_exit_bb): Moved...
6695         (parameter_index_in_region_1): Use an sese_info_p.
6696         (parameter_index_in_region): Same.
6697         (scan_tree_for_params): Same.
6698         (find_params_in_bb): Same.
6699         (sese_dom_walker): Use an sese_l.
6700         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6701         (reduction_phi_p): Same.
6702         (parameter_index_in_region_1): Use an sese_info_p.
6703         (propagate_expr_outside_region): Use an sese_l.
6704         * graphite.c: Replace uses of SCOP_REGION.
6705         * sese.c (sese_record_loop): Use an sese_info_p.
6706         (build_sese_loop_nests): Same.
6707         (sese_build_liveouts_use): Same.
6708         (sese_build_liveouts_bb): Same.
6709         (sese_build_liveouts_bb): Same.
6710         (sese_bad_liveouts_use): Same.
6711         (sese_reset_debug_liveouts_bb): Same.
6712         (sese_build_liveouts): Same.
6713         (new_sese): Renamed new_sese_info.
6714         (free_sese): Renamed free_sese_info.
6715         (set_rename): Use an sese_info_p.
6716         (graphite_copy_stmts_from_block): Same.
6717         (copy_bb_and_scalar_dependences): Same.
6718         (outermost_loop_in_sese_1): Use an sese_l.
6719         (outermost_loop_in_sese): Same.
6720         (if_region_set_false_region): Use an sese_info_p.
6721         (move_sese_in_condition): Same.
6722         (scalar_evolution_in_region): Use an sese_l.
6723         * sese.h (struct sese_l): ... here.
6724         (SESE_ENTRY): Remove.
6725         (SESE_ENTRY_BB): Remove.
6726         (SESE_EXIT): Remove.
6727         (SESE_EXIT_BB): Remove.
6728         (sese_contains_loop): Use an sese_info_p.
6729         (sese_nb_params): Same.
6730         (bb_in_sese_p): Use an sese_l.
6731         (stmt_in_sese_p): Same.
6732         (defined_in_sese_p): Same.
6733         (loop_in_sese_p): Same.
6734         (sese_loop_depth): Same.
6735         (struct ifsese_s): Use an sese_info_p.
6736         (gbb_loop_at_index): Use an sese_l.
6737         (nb_common_loops): Same.
6738         (scev_analyzable_p): Same.
6740 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6742         * config/i386/i386.c (ix86_conditional_register_usage): Use
6743         CALL_USED_REGISTERS_MASK.
6744         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6746 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6748         PR bootstrap/67385
6749         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6750         * configure: Regenerated.
6752 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6754         PR target/67850
6755         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6756         (ix86_set_current_function): This.
6757         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6759 2015-10-07  Richard Biener  <rguenther@suse.de>
6761         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6762         (vinfo_for_stmt): Adjust.
6763         (set_vinfo_for_stmt): Likewise.
6764         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6765         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6766         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6767         of inner loop.
6768         (vect_analyze_loop_1): Remove.
6769         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6770         inner loop when vectorizing an outer loop by splitting out from ...
6771         (vect_analyze_loop_form): ... here.
6773 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6775         PR c/65345
6776         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6777         Use create_tmp_var_raw instead of create_tmp_var.
6779 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
6781         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6782         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6783         * real.c (CACHED_FRACTION): New helper macro.
6784         (dconst_third_ptr): Use it.
6785         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6786         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6787         dconst_sixth.
6788         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6790 2015-10-06  Jeff Law  <law@redhat.com>
6792         PR tree-optimization/67816
6793         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6794         from remove_jump_threads_starting_at.  Accept an edge rather than
6795         a basic block.
6796         * tree-ssa-threadupdate.c (removed_edges): New hash table.
6797         (remove_jump_threads_including): Note edges that get removed from
6798         the CFG for later pruning of jump threading paths including them.
6799         (thread_through_all_blocks): Remove paths which include edges that
6800         have been removed.
6801         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6802         on each outgoing edges when optimizing away a control statement.
6804 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6806         * reorg.c (emit_delay_sequence): Store list of delay slot insns
6807         in a vector instead of rtx_insn_list.
6808         (add_to_delay_list): Likewise.
6809         (delete_from_delay_slot): Likewise.
6810         (optimize_skip): Likewise.
6811         (redirect_with_delay_list_safe_p): Likewise.
6812         (check_annul_list_true_false): Likewise.
6813         (steal_delay_list_from_target): Likewise.
6814         (steal_delay_list_from_fallthrough): Likewise.
6815         (redundant_insn): Likewise.
6816         (fill_simple_delay_slots): Likewise.
6817         (fill_slots_from_thread): Likewise.
6818         (fill_eager_delay_slots): Likewise.
6819         (relax_delay_slots): Likewise.
6821 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
6823         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6824         For -mgpopt=local, also exclude unintialized common symbols.
6825         * doc/invoke.texi (Nios II Options): Document the change.
6827 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6829         * config/aarch64/iterators.md (vwcore): Add missing cases for
6830          V4HF/V8HF modes.
6832 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6833             Sebastian Pop  <s.pop@samsung.com>
6835         * graphite-poly.c (new_scop): Initialize drs.
6836         * graphite-poly.h (struct dr_info): New.
6837         (struct scop): Add drs.
6838         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6839         (pdr_add_memory_accesses): Same.
6840         (build_poly_dr): Same.
6841         (build_alias_set): Same.
6842         (build_scop_drs): Same.
6843         (build_pbb_drs): Remove.
6844         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6845         * tree-data-ref.h (data_reference): Remove alias_set.
6847 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6848             Sebastian Pop  <s.pop@samsung.com>
6850         * graphite-poly.c (free_data_refs_aux): Remove.
6851         (free_gimple_poly_bb): Do not call free_data_refs_aux.
6852         * graphite-poly.h (struct base_alias_pair): Remove.
6853         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6854         base_alias_pair and dr->aux.
6855         (build_alias_set): Same.
6856         * tree-data-ref.c (create_data_ref): Initialize alias_set.
6857         * tree-data-ref.h (data_reference): Add alias_set.
6859 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6860             Sebastian Pop  <s.pop@samsung.com>
6862         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6863         Do not set PDR_BASE_OBJECT_SET.
6864         * graphite-poly.h (poly_dr): Same.
6865         (PDR_BASE_OBJECT_SET): Remove.
6866         (new_poly_dr): Update decl.
6867         * graphite-sese-to-poly.c (build_poly_dr): Update call to
6868         new_poly_dr.
6869         (write_alias_graph_to_ascii_dimacs): Remove.
6870         (write_alias_graph_to_ascii_dot): Remove.
6871         (write_alias_graph_to_ascii_ecc): Remove.
6872         (dr_same_base_object_p): Remove.
6873         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
6874         code.
6875         (build_base_obj_set_for_drs): Remove.
6876         (dump_alias_graphs): Remove.
6877         (build_scop_drs): Remove dead code.
6879 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
6880             Peter Bergner  <bergner@vnet.ibm.com>
6882         PR target/67808
6883         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6884         allow registers, but provide insns for the combiner to create for
6885         loads from memory. Separate VSX code from non-VSX code. For
6886         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6887         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6888         so that registers come before memory operations. Drop support from
6889         converting DFmode to TFmode, if the DFmode value is in a GPR
6890         register.
6891         (extenddftf2_fprs): Likewise.
6892         (extenddftf2_internal): Likewise.
6893         (extenddftf2_vsx): Likewise.
6894         (extendsftf2): In the expander, only allow registers, but provide
6895         insns for the combiner to create for stores and loads.
6897 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6899         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6900         from the decl parameter.
6902 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
6904         PR 67861
6905         * gimple-fold.c (gimple_fold_builtin): Add break after
6906         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6908 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6910         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6911         to scop->isl_context.
6913 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6915         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6916         (output_probe_stack_range): Rotate the loop and simplify.
6917         (thumb1_expand_prologue): Tweak sorry message.
6918         * config/arm/arm.md (probe_stack): Use bare string.
6920 2015-10-06  Nick Clifton  <nickc@redhat.com>
6922         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6924 2015-10-06  Nick Clifton  <nickc@redhat.com>
6926         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6927         (ATTR_PERSIST): New constant.
6928         (msp430_data_attr): New function - verifies an attribute that only
6929         applies to variables.
6930         (msp430_attributes): Add noinit and persistent attributes.
6931         (noinit_section): New variable.
6932         (presis_section): New variable.
6933         (TARGET_ASM_INIT_SECTIONS): Define.
6934         (msp430_init_sections): New function - initialises the noinit and
6935         persist section variables.
6936         (msp430_select_section): Add support for noinit and persist
6937         attributes.
6938         (msp430_section_type_flags): Likewise.
6939         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
6940         and persistent attributes.
6942 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6943             Sebastian Pop  <s.pop@samsung.com>
6945         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6946         (no_violations): Remove.
6947         (subtract_commutative_associative_deps): Remove.
6948         (compute_deps): Do not call subtract_commutative_associative_deps.
6949         (transform_is_safe): Remove.
6950         (graphite_legal_transform): Remove.
6951         * graphite-poly.h (graphite_legal_transform): Remove.
6953 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
6955         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6956         which are in this region are passed so gcc_assert and remove redundant
6957         computation.
6958         * sese.c (sese_build_liveouts): Pass only those bbs which are not
6959         in region.
6960         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6961         gcc_assert on that and remove unnecessary computation.
6962         (sese_build_liveouts_use): Same.
6964 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6966         * graphite-dependences.c (scop_get_reads): Renamed scop->context
6967         to scop->param_context.
6968         (scop_get_must_writes): Same.
6969         (scop_get_may_writes): Same.
6970         (scop_get_original_schedule): Same.
6971         (scop_get_transformed_schedule): Same.
6972         (subtract_commutative_associative_deps): Same.
6973         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6974         (generate_isl_context): Same.
6975         (generate_isl_schedule): Same.
6976         (scop_to_isl_ast): Same.
6977         (graphite_regenerate_ast_isl): Same.
6978         * graphite-optimize-isl.c (scop_get_domains): Same.
6979         (optimize_isl): Renamed scop->context to scop->param_context.
6980         * graphite-poly.c (new_poly_bb): Change the type of argument to
6981         gimple_poly_bb_p.
6982         (new_scop): Renamed scop->context to scop->param_context.
6983         (free_scop): Same.
6984         (print_scop_context): Same.
6985         * graphite-poly.h (new_poly_dr): Change the type of argument from
6986         void* to data_reference_p.
6987         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6988         (new_poly_bb): Change the type of argument from void* to
6989         gimple_poly_bb_p.
6990         (pbb_set_black_box): Same.
6991         (struct scop): Rename context to param_context, ctx to isl_context.
6992         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6993         Move declarations closer to assignment.
6994         (find_params_in_bb): Same.
6995         (find_scop_parameters): Same.
6996         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6997         Global to be used for statement IDs.
6998         (isl_id_for_pbb): Use ssa_name_version_typesize.
6999         (simple_copy_phi_p): Move declarations closer to assignment.
7000         (build_pbb_scattering_polyhedrons): Same.
7001         (build_scop_scattering): Same.
7002         (isl_id_for_ssa_name): Same.
7003         (extract_affine_name): Same.
7004         (extract_affine_int): Same.
7005         (extract_affine): Same.
7006         (set_scop_parameter_dim): Use renamed member.
7007         (build_loop_iteration_domains): Same.
7008         (add_param_constraints): Same.
7009         (build_scop_iteration_domain): Same.
7010         (pdr_add_data_dimensions): Same.
7011         (build_poly_dr): Same.
7012         (build_scop_drs): Move declarations closer to assignment.
7013         (analyze_drs_in_stmts): Same.
7014         (insert_out_of_ssa_copy): Same.
7015         (insert_out_of_ssa_copy_on_edge): Same.
7016         (propagate_expr_outside_region): Same.
7017         (rewrite_phi_out_of_ssa): Same.
7018         (rewrite_degenerate_phi): Same.
7019         (rewrite_reductions_out_of_ssa): Same.
7020         (rewrite_cross_bb_scalar_dependence): Same.
7021         (handle_scalar_deps_crossing_scop_limits): Same.
7022         (rewrite_cross_bb_scalar_deps): Same.
7023         * graphite.c (graphite_transform_loops): Use renamed member.
7025 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
7027         PR c/65345
7028         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7029         create_tmp_var_raw instead of create_tmp_var.
7031 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7033         PR c/65345
7034         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7035         Use create_tmp_var_raw instead of create_tmp_var.
7037 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
7039         PR target/67849
7040         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7041         split for upper-bank registers when target does not support
7042         AVX512VL.
7043         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7044         split when target does not support AVX512VL.
7046 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
7048         PR c/65345
7049         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7050         Adjust to use create_tmp_var_raw instead of create_tmp_var.
7052 2015-10-06  Nick Clifton  <nickc@redhat.com>
7054         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7055         multiplication.
7057 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7059         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7060         (case ${target}): Add znver1.
7061         * config/i386/cpuid.h(bit_CLZERO):  Define.
7062         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7063         -march=native recognize znver1 processors.
7064         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7065         znver1, clzero def_and_undef.
7066         * config/i386/i386.c (struct processor_costs znver1_cost): New.
7067         (m_znver1): New definition.
7068         (m_AMD_MULTIPLE): Includes m_znver1.
7069         (processor_target_table): Add znver1 entry.
7070         (ix86_target_string) : Add clzero entry.
7071         (static const char *const cpu_names): Add znver1 entry.
7072         (ix86_option_override_internal): Add znver1 instruction sets.
7073         (PTA_CLZERO) :  New definition.
7074         (ix86_option_override_internal): Handle new clzerooption.
7075         (ix86_issue_rate): Add znver1.
7076         (ix86_adjust_cost): Add znver1.
7077         (ia32_multipass_dfa_lookahead): Add znver1.
7078         (has_dispatch): Add znver1.
7079         * config/i386/i386.h (TARGET_znver1): New definition.
7080         (TARGET_CLZERO): Define.
7081         (TARGET_CLZERO_P): Define.
7082         (struct ix86_size_cost): Add TARGET_ZNVER1.
7083         (enum processor_type): Add PROCESSOR_znver1.
7084         * config/i386/i386.md (define_attr "cpu"): Add znver1.
7085         (set_attr znver1_decode): New definitions for znver1.
7086         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7087         (mclzero): New.
7088         * config/i386/mmx.md (set_attr znver1_decode): New definitions
7089         for znver1.
7090         * config/i386/sse.md (set_attr znver1_decode): Likewise.
7091         * config/i386/x86-tune.def:  Add znver1 tunings.
7092         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7093         * doc/invoke.texi: Add details about znver1
7095 2015-10-06  Richard Biener  <rguenther@suse.de>
7097         PR tree-optimization/67859
7098         * tree-ssa-pre.c (create_expression_by_pieces): Properly
7099         discard not inserted stmts.
7101 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
7103         * doc/extend.texi (Template Instantiation): Reorder options and
7104         de-emphasize -frepo.
7105         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7106         example instead of -frepo.
7108 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7110         PR c/65345
7111         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7112         use create_tmp_var_raw rather than create_tmp_var.
7114 2015-10-06  Richard Biener  <rguenther@suse.de>
7116         * tree-vectorizer.h (vec_info): New base class for...
7117         (_loop_vec_info): ... this and ...
7118         (_bb_vec_info): ... this.
7119         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7120         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7121         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7122         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7123         vect_destroy_datarefs): Adjust interface to take a vec_info *
7124         rather than both a loop_vec_info and a bb_vec_info argument.
7125         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7126         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7127         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7128         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7129         accordingly.
7130         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7131         (destroy_loop_vec_info, vect_analyze_loop_2,
7132         vect_is_simple_reduction_1, get_initial_def_for_induction,
7133         vect_create_epilog_for_reduction, vectorizable_reduction,
7134         vectorizable_live_operation, vect_transform_loop): Adjust.
7135         * tree-vect-patterns.c (type_conversion_p,
7136         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7137         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7138         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7139         check_bool_pattern, vect_recog_bool_pattern,
7140         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7141         * tree-vect-slp.c (vect_get_and_check_slp_defs,
7142         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7143         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7144         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7145         (new_bb_vec_info): Initialize base classs.
7146         * tree-vect-stmts.c (record_stmt_cost, process_use,
7147         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7148         vectorizable_mask_load_store, vectorizable_call,
7149         vectorizable_simd_clone_call, vectorizable_conversion,
7150         vectorizable_assignment, vectorizable_shift,
7151         vectorizable_operation, vectorizable_store,
7152         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7153         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7154         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7156 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7158         PR c/65345
7159         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7160         create_tmp_var_raw rather than create_tmp_var.
7162 2015-10-05  Marek Polacek  <polacek@redhat.com>
7164         * tree-ssa-loop-im.c
7165         (move_computations_dom_walker::before_dom_children): Don't set
7166         SSA_NAME_ANTI_RANGE_P.
7167         * tree-ssa-phiopt.c (value_replacement): Likewise.
7169 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7170             Sebastian Pop  <s.pop@samsung.com>
7172         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7174 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7175             Sebastian Pop  <s.pop@samsung.com>
7177         * graphite-poly.c (new_gimple_poly_bb): ... here.
7178         (free_data_refs_aux): ... here.
7179         (free_gimple_poly_bb): ... here.
7180         (remove_gbbs_in_scop): ... here.
7181         (new_scop): Call new_sese.
7182         (free_scop): Call remove_gbbs_in_scop and free_sese.
7183         * graphite-poly.h (base_alias_pair): ... here.
7184         (new_gimple_poly_bb): Declare.
7185         (free_gimple_poly_bb): Declare.
7186         * graphite-scop-detection.c (parameter_index_in_region_1):
7187         (parameter_index_in_region): ... here.
7188         (scan_tree_for_params): ... here.
7189         (find_params_in_bb): ... here.
7190         (find_scop_parameters): ... here.
7191         (build_scops): Call find_scop_parameters.
7192         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7193         (free_scops): Move...
7194         (single_pred_cond_non_loop_exit): Move...
7195         (sese_dom_walker::before_dom_children): Move...
7196         (sese_dom_walker::after_dom_children): Move...
7197         (build_poly_scop): Move...
7198         * graphite-sese-to-poly.h (base_alias_pair): Move...
7199         * graphite.c (free_scops): ... here.
7201 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7202             Sebastian Pop  <s.pop@samsung.com>
7204         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7205         (trivially_empty_bb_p): Move...
7206         (same_close_phi_node): Move...
7207         (new_gimple_poly_bb): Move...
7208         (compare_bb_depths): Move...
7209         (graphite_sort_dominated_info): Move...
7210         (remove_duplicate_close_phi): Move...
7211         (make_close_phi_nodes_unique): Move...
7212         (canonicalize_loop_closed_ssa): Move...
7213         (canonicalize_loop_closed_ssa_form): Move...
7214         (loop_ivs_can_be_represented): Move...
7215         (single_pred_cond_non_loop_exit): Move...
7216         (graphite_can_represent_init): Move...
7217         (graphite_can_represent_scev): Move...
7218         (stmt_has_simple_data_refs_p): Move...
7219         (stmt_has_side_effects):  Move...
7220         (graphite_can_represent_stmt): Move...
7221         (scop_detection): ... here.
7222         (sese_dom_walker): ... and here.
7223         (build_scops): Call all moved functions.
7224         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7225         (all_non_dominated_preds_marked_p): Move...
7226         (build_scop_bbs_1): Move...
7227         (build_scop_bbs): Move...
7228         (set_scop_parameter_dim): Move...
7229         (nb_pbbs_in_loops): Move...
7230         (build_poly_scop): Do not call all the moved functions.
7232 2015-10-05  Martin Jambor  <mjambor@suse.cz>
7233             Jan Hubicka  <hubicka@ucw.cz>
7235         * ipa-cp.c (ipcp_alignment_lattice): New type.
7236         (ipcp_param_lattices): Use the above to represent alignment.
7237         (ipcp_alignment_lattice::print): New function.
7238         (print_all_lattices): Use it to print alignment information.
7239         (ipcp_alignment_lattice::top_p): New function.
7240         (ipcp_alignment_lattice::bottom_p): Likewise.
7241         (ipcp_alignment_lattice::set_to_bottom): Likewise.
7242         (ipcp_alignment_lattice::meet_with_1): Likewise.
7243         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7244         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7245         (initialize_node_lattices): Likewise.
7246         (propagate_alignment_accross_jump_function): Work with the new class
7247         for alignment lattices.
7248         (propagate_constants_accross_call): Pass only the alignment lattice to
7249         propagate_alignment_accross_jump_function.
7250         (ipcp_store_alignment_results): Work with the new class for alignment
7251         lattices.
7253 2015-10-05  Marek Polacek  <polacek@redhat.com>
7255         PR tree-optimization/67821
7256         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7258 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
7260         PR other/65021
7261         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7262         function to...
7263         (mkoffload_cleanup): ... this.  Adjust all users.
7264         (maybe_unlink): Look at save_temps and verbose flags instead of
7265         debug flag.
7266         (main): Parse "-save-temps" flag.
7267         (generate_target_descr_file, generate_target_offloadend_file)
7268         (generate_host_descr_file, prepare_target_image): Pass it on.
7269         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7270         (mkoffload_cleanup): New function.
7271         (maybe_unlink): Look at save_temps and verbose flags instead of
7272         debug flag.
7273         (main): Instead of calling utils_cleanup, register atexit handler
7274         for mkoffload_cleanup.
7275         (main): Parse "-save-temps" flag.
7276         (compile_native, main): Pass it on.
7277         * lto-wrapper.c (compile_offload_image): Likewise.
7279 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7281         * gimple.h (gimple_op_ptr): Require a non const gimple *.
7282         (gimple_assign_lhs_ptr): Likewise.
7283         (gimple_assign_rhs1_ptr): Likewise.
7284         (gimple_assign_rhs2_ptr): Likewise.
7285         (gimple_assign_rhs3_ptr): Likewise.
7286         (gimple_call_lhs_ptr): Likewise.
7287         (gimple_call_fn_ptr): Likewise.
7288         (gimple_call_chain_ptr): Likewise.
7289                 (gimple_call_arg_ptr): Likewise.
7290                 (gimple_cond_lhs_ptr): Likewise.
7291         (gimple_cond_rhs_ptr): Likewise.
7292         (gimple_switch_index_ptr): Likewise.
7293         (gimple_return_retval_ptr): Likewise.
7295 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7297         * gimple.h (gimple_asm_input_op_ptr): Remove.
7298         (gimple_asm_output_op_ptr): Likewise.
7300 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7302         * gimple.h (gimple_location_ptr): Remove.
7303         * tree-vrp.c (check_all_array_refs): Adjust.
7305 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7307         * tree-ssa-operands.c (build_uses): store tree * instead of
7308         tree.
7309         (finalize_ssa_uses): Adjust.
7310         (append_use): Likewise.
7311         (verify_ssa_operands): Likewise.
7313 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7315         * real.h (build_real_truncate): Declare.
7316         * tree.c (build_real_truncate): New function.
7317         (strip_float_extensions): Use it.
7318         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7319         (fold_builtin_hypot, fold_builtin_pow): Likewise.
7320         * match.pd: Likewise.
7322 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7323            Jiong Wang  <jiong.wang@arm.com>
7325         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7327 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7329         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7330         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7331         (aarch64_print_operand, aarch64_float_const_representable_p)
7332         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7333         instead of REAL_VALUE_FROM_CONST_DOUBLE.
7334         * config/arc/arc.c (arc_print_operand): Likewise.
7335         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7336         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7337         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7338         Likewise.
7339         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7340         (consttable_16): Likewise.
7341         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7342         * config/avr/avr.c (avr_print_operand): Likewise.
7343         * config/bfin/bfin.md: Likewise (in a define_split).
7344         * config/c6x/c6x.md: Likewise (in a define_split).
7345         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7346         (cr16_print_operand): Likewise.
7347         * config/cris/cris.c (cris_print_operand): Likewise.
7348         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7349         * config/fr30/fr30.c (fr30_print_operand): Likewise.
7350         (fr30_const_double_is_zero): Likewise.
7351         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7352         * config/frv/frv.md: Likewise (in a define_split).
7353         * config/frv/predicates.md (int_2word_operand): Likewise.
7354         * config/h8300/h8300.c (h8300_print_operand): Likewise.
7355         * config/i386/i386.c (standard_80387_constant_p): Likewise.
7356         (ix86_print_operand, ix86_split_to_parts): Likewise.
7357         * config/i386/i386.md: Likewise (in a define_split).
7358         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7359         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7360         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7361         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7362         (print_operand): Likewise.
7363         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7364         * config/mep/mep.md: Likewise (in define_split).
7365         * config/microblaze/microblaze.c (microblaze_const_double_ok)
7366         (print_operand): Likewise.
7367         * config/mips/mips.md (consttable_float): Likewise.
7368         * config/mmix/mmix.c (mmix_intval): Likewise.
7369         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7370         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7371         * config/pa/pa.c (pa_singlemove_string): Likewise.
7372         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7373         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7374         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7375         (output_toc): Likewise.
7376         * config/rs6000/rs6000.md: Likewise (in define_splits).
7377         * config/rx/rx.c (rx_print_operand): Likewise.
7378         * config/s390/s390.c (s390_output_pool_entry): Likewise.
7379         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7380         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7381         (and also in define_splits).
7382         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7383         (fp_high_losum_p): Likewise.
7384         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7385         (*movsf_high): Likewise.
7386         * config/spu/spu.c (const_double_to_hwint): Likewise.
7387         * config/v850/v850.c (const_double_split): Likewise.
7388         * config/vax/vax.c (vax_float_literal): Likewise.
7389         * config/visium/visium.c (visium_expand_copysign): Likewise.
7390         * config/visium/visium.md: Likewise (in define_split).
7391         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7392         * config/xtensa/xtensa.c (print_operand): Likewise.
7393         (xtensa_output_literal): Likewise.
7394         * cprop.c (implicit_set_cond_p): Likewise.
7395         * dwarf2out.c (insert_float): Likewise.
7396         * expmed.c (expand_mult, make_tree): Likewise.
7397         * expr.c (compress_float_constant): Likewise.
7398         * rtlanal.c (split_double): Likewise.
7399         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7400         (simplify_const_unary_operation, simplify_binary_operation_1)
7401         (simplify_const_binary_operation): Likewise.
7402         (simplify_const_relational_operation): Likewise.
7403         * varasm.c (output_constant_pool_2): Likewise.
7405 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7407         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7408         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7409         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7410         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7411         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7412         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7413         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7414         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7415         (ix86_emit_swsqrtsf): Likewise.
7416         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7417         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7418         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7419         * config/pa/pa.c (pa_expand_builtin): Likewise.
7420         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7421         (rs6000_scale_v2df): Likewise.
7422         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7423         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7424         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7425         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7426         (vec_ctul): Likewise.
7427         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7428         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7429         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7430         * cse.c (fold_rtx): Likewise.
7431         * emit-rtl.c (immed_double_const): Likewise (in comments).
7432         (init_emit_once): Likewise.
7433         * expr.c (compress_float_constant, expand_expr_real_1)
7434         (const_vector_from_tree): Likewise.
7435         * optabs.c (expand_float, expand_fix): Likewise.
7436         * reg-stack.c (reg_to_stack): Likewise.
7437         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7438         (simplify_const_unary_operation, simplify_binary_operation_1)
7439         (simplify_const_binary_operation, simplify_relational_operation)
7440         (simplify_immed_subreg): Likewise.
7442 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7444         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7445         * doc/tm.texi: Regenerate.
7446         * real.h (REAL_ARITHMETIC): Delete.
7447         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7448         (ix86_expand_round_sse4): Use real_arithmetic instead of
7449         REAL_ARITHMETIC.
7450         * config/i386/sse.md (round<mode>2): Likewise.
7451         * rtl.h (rtx_to_tree_code): Likewise (in comment).
7452         * explow.c (rtx_to_tree_code): Likewise (in comment).
7453         * match.pd: Likewise.
7454         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7455         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7456         (expand_pow_as_sqrts): Likewise.
7457         * tree-pretty-print.c (dump_generic_node): Remove code that
7458         was conditional on REAL_ARITHMETIC being undefined.
7460 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7462         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7463         * doc/tm.texi: Regenerate.
7464         * real.h (real_less): Declare.
7465         (REAL_VALUES_LESS): Delete.
7466         * real.c (real_less): New function.
7467         (real_compare): Use it.
7468         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7469         of REAL_VALUES_LESS.
7470         * config/microblaze/microblaze.c (microblaze_const_double_ok):
7471         Likewise.
7472         * fold-const.c (fold_convert_const_int_from_real): Likewise.
7473         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7474         (simplify_const_relational_operation): Likewise.
7475         * tree-call-cdce.c (check_pow): Likewise.
7476         (gen_conditions_for_pow_cst_base): Likewise.
7478 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7480         * real.h (REAL_VALUES_IDENTICAL): Delete.
7481         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7482         instead of REAL_VALUES_IDENTICAL.
7483         * fold-const.c (operand_equal_p): Likewise.
7484         * ipa-icf.c (sem_variable::equals): Likewise.
7485         * tree-complex.c (some_nonzerop): Likewise.
7486         (expand_complex_multiplication): Likewise.
7487         * tree.c (simple_cst_equal): Likewise.
7488         * varasm.c (compare_constant): Likewise.
7490 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7492         * real.h (real_equal): Declare.
7493         (REAL_VALUES_EQUAL): Delete.
7494         * real.c (real_equal): New function.
7495         (real_compare): Use it.
7496         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7497         * doc/tm.texi: Regenerate.
7498         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7499         real_equal instead of REAL_VALUES_EQUAL.
7500         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7501         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7502         (fp_const_from_val): Likewise.
7503         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7504         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7505         (floating_exact_log2): Likewise.
7506         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7507         * config/vax/vax.c (vax_float_literal): Likewise.
7508         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7509         * cprop.c (implicit_set_cond_p): Likewise.
7510         * expmed.c (expand_mult): Likewise.
7511         * fold-const.c (const_binop): Likewise.
7512         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7513         (simplify_const_binary_operation): Likewise.
7514         (simplify_const_relational_operation): Likewise.
7515         * tree-call-cdce.c (check_pow): Likewise.
7516         (gen_conditions_for_pow_cst_base): Likewise.
7517         * tree-inline.c (estimate_num_insns): Likewise.
7518         * tree-ssa-dom.c (record_equality): Likewise.
7519         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7520         (gimple_expand_builtin_pow): Likewise.
7521         (pass_optimize_widening_mul::execute): Likewise.
7522         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7523         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7524         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7526 2015-10-05  Richard Biener  <rguenther@suse.de>
7528         PR ipa/67783
7529         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7530         consider loop header PHI defs as IVs.
7532 2015-10-05  Richard Biener  <rguenther@suse.de>
7534         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7535         call handling ...
7536         (create_expression_by_pieces): ... here and build GIMPLE
7537         calls directly.  Use gimple_build API and avoid force_gimple_operand.
7538         (insert_into_preds_of_block): Simplify.
7539         (do_regular_insertion): Add comment.
7541 2015-10-04  Jason Merrill  <jason@redhat.com>
7543         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7545 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
7547         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7548         check for general register.
7549         (ix86_emit_save_regs): Ditto.
7550         (ix86_emit_save_regs_using_mov): Ditto.
7551         (ix86_emit_restore_regs_using_pop): Ditto.
7552         (ix86_emit_restore_regs_using_mov): Ditto.
7554 2015-10-03  Marek Polacek  <polacek@redhat.com>
7556         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7557         (insn-dfatab.o): Likewise.
7559 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
7561         * config.gcc (xtensa*-*-uclinux*): New configuration.
7562         * config/xtensa/uclinux.h: New file.
7563         * config/xtensa/uclinux.opt: New file.
7565 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
7567         * doc/cpp.texi (Standard Predefined Macros): Document value of
7568         __cplusplus for C++14.
7570 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
7572         * gcc.c (process_command): Use spec_machine rather than
7573         spec_host_machine to build tooldir_prefix2.
7575 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7576             Bernd Schmidt  <bernds@codesourcery.com>
7578         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7579         (Token, Stmt): Remove structs.
7580         (decls, vars, fns): Remove variables.
7581         (alloc_comment, append_stmt, is_keyword): Remove macros.
7582         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7583         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7584         (parse_init, parse_file): Remove functions.
7585         (read_file): Accept a pointer to a length and store into it.
7586         (process): Don't try to parse the input file, just write it out as
7587         a string, but looking for maps.  Also write out the length.
7588         (main): Don't use "-S" to compile PTX code.
7590 2015-10-02  Jeff Law  <law@redhat.com>
7592         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7593         fixups.
7595 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7597         PR target/67822
7598         * config/nvptx/mkoffload.c (main): Scan the argument vector for
7599         -fopenmp, and skip generating an offloading image if specified.
7601 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
7603         * system.h (ROUND_UP): New macro definition.
7604         (ROUND_DOWN): Ditto.
7605         * ggc-page.c (ROUND_UP): Remove local macro definition.
7606         (PAGE_ALIGN): Implement using ROUND_UP macro.
7608         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7609         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7610         to align values.
7611         (ix86_compute_frame_layout): Ditto.
7612         (ix86_expand_prologue): Ditto.
7613         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7614         to round down values.
7615         (expand_set_or_movmem_via_rep): Ditto.
7617 2015-10-02  Marek Polacek  <polacek@redhat.com>
7619         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7621 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
7623         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7624         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7625         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7626         (free_gimple_bb): Renamed free_gimple_poly_bb.
7627         (try_generate_gimple_bb): Hoist loop invariant code.
7628         (analyze_drs_in_stmts): Same.
7629         (build_scop_drs): Call renamed functions.
7630         (new_pbb_from_pbb): Same.
7631         (scop_ivs_can_be_represented): Delete as functionality now moved to
7632         graphite-scop-detection.c
7633         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7635 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
7637         * graphite-scop-detection.c (stmt_has_side_effects): New function
7638           outlined from stmt_simple_for_scop_p.
7639         (graphite_can_represent_stmt): Same.
7640         (stmt_simple_for_scop_p): Moved code out of this function for better
7641         readability.
7643 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7645         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7646         F_AVX512IFMA.
7647         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7649 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7651         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7653 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
7655         PR rtl-optimization/67756
7656         * lra-constraints.c (match_reload): Add a new parameter.  Use it
7657         for creating a pseudo with the same value.
7658         (curr_insn_transform): Pass a new argument to match_reload.
7660 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7662         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7663         (expand_vec_perm_even_odd_1): Handle V64QImode.
7664         (ix86_expand_vec_perm_const_1): Try expansion with
7665         expand_vec_perm_even_odd_trunc as well.
7666         * config/i386/sse.md (VI124_AVX512F): Rename to ...
7667         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7668         to V54QI.
7669         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7670         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7671         to V32HI and V16SI.
7672         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7673         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7674         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7675         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7676         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7677         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7679 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7681         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7682         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7684 2015-10-02  Jason Merrill  <jason@redhat.com>
7686         PR c/59218
7687         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7688         (diagnose_tm_1_op): Also diagnose volatile accesses in
7689         transaction_safe function.
7691 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
7693         * system.h (malloc.h): Don't include obsolete header.
7695 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7697         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7698         (TLS_SECTION_ASM_FLAG): Delete.
7700 2015-10-02  Marek Polacek  <polacek@redhat.com>
7702         PR c/64249
7703         * doc/invoke.texi: Document -Wduplicated-cond.
7704         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7705         (insn-dfatab.o): Likewise.
7706         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7707         warning.
7709 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
7711         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7712         sequences.
7714 2015-10-02  Renlin Li  <renlin.li@arm.com>
7716         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7718 2015-10-02  Renlin Li  <renlin.li@arm.com>
7720         PR target/66776
7721         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7723 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7725         PR rtl-optimization/67786
7726         PR rtl-optimization/67787
7727         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7728         it modifies a reg used in the condition calculation.
7730 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
7732         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7733         alternatives for reads from memory and moves from general-purpose
7734         registers.
7735         (*aarch64_combinez_be<mode>): Likewise.
7737 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
7739         PR target/51726
7740         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7741         selectany within this function without need to keep attribute.
7742         (i386_pe_encode_section_info): Remove selectany-code.
7744 2015-10-02  Richard Biener  <rguenther@suse.de>
7746         * tree-ssa-sccvn.c (has_VN_INFO): New function.
7747         (free_scc_vn): Use it.
7748         (visit_use): Remove dead code and refactor to use gassign
7749         and use less indentation.
7751 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7753         PR target/67788
7754         PR target/67789
7755         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7756         (rs6000_cannot_copy_insn_p): New function.
7757         * config/rs6000/rs6000.md (cannot_copy): New attribute.
7758         (load_toc_v4_PIC_1_normal): Set cannot_copy.
7759         (load_toc_v4_PIC_1_476): Ditto.
7761 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7763         * graphite-scop-detection.c (struct sese_l): New conversion constructor
7764         so that this type can be pushed into a vec.
7765         (class scop_builder): use sese_l to collect scops.
7766         (get_scops): New getter function.
7767         (remove_intersecting_scops): Use sese_l instead of scops_p.
7768         (intersects): Same.
7769         (add_scop): Same.
7770         (subsumes): Same.
7771         (remove_subscops): Same.
7772         (build_scops): Add scops to vec<scops_p> once all the scops have been
7773         detected.
7775 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7777         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7778         Renamed type from gimple_bb_p to gimple_poly_bb_p.
7779         (translate_isl_ast_node_user): Same.
7780         * graphite-poly.c (new_poly_bb): Same.
7781         * graphite-poly.h (gbb_from_bb): Same.
7782         * sese.h: Same.
7783         * graphite-sese-to-poly.c (new_gimple_bb):
7784         gimple_bb_p -> gimple_poly_bb_p
7785         (build_scop_scattering): Same.
7786         (find_params_in_bb): Same.
7787         (add_conditions_to_domain): Same.
7788         (sese_dom_walker::before_dom_children): Same.
7789         (analyze_drs_in_stmts): Same.
7790         (new_pbb_from_pbb): Same.
7791         (free_data_refs_aux): New pointer to type base_alias_pair.
7792         * graphite-sese-to-poly.h: Same.
7793         * sese.c (if_region_set_false_region): Fixed Indentation.
7794         (move_sese_in_condition): Same.
7796 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7797             Aditya Kumar  <aditya.k7@samsung.com>
7799         PR tree-optimization/66980
7800         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7801         when data reference analysis has failed.
7803 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7804             Aditya Kumar  <aditya.k7@samsung.com>
7806         PR tree-optimization/67754
7807         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7808         scev analysis on the same loop nest as analyze_drs_in_stmts.
7809         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7810         renamed...
7811         (try_generate_gimple_bb): Call outermost_loop_in_sese.
7812         (analyze_drs_in_stmts): Same.
7813         * sese.c (outermost_loop_in_sese): ...here.
7815 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7816             Aditya Kumar  <aditya.k7@samsung.com>
7818         PR tree-optimization/67754
7819         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7820         recursion on the inner loops.
7822 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7824         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7825         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7826         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7827         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7828         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7830 2015-10-01  Marek Polacek  <polacek@redhat.com>
7832         PR c/65345
7833         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7834         create_tmp_var_raw rather than create_tmp_var.
7836 2015-10-01  Marek Polacek  <polacek@redhat.com>
7838         PR tree-optimization/67769
7839         * tree-ssa-phiopt.c (conditional_replacement): Call
7840         reset_flow_sensitive_info_in_bb.
7841         (minmax_replacement): Likewise.
7842         (abs_replacement): Likewise.
7844 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
7846         * builtins.c: Don't include gomp-constants.h.
7847         (fold_builtin_1): Don't fold acc_on_device here.
7848         * gimple-fold.c: Include gomp-constants.h.
7849         (gimple_fold_builtin_acc_on_device): New.
7850         (gimple_fold_builtin): Call it.
7852 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7854         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7855         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7857 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
7859         * config/arm/aarch-common-protos.h
7860         (aarch_accumulator_forwarding): New.
7861         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7862         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7863         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7864         * config/arm/cortex-a53.md: Rewrite.
7866 2015-10-01  Richard Biener  <rguenther@suse.de>
7868         * gimple-match.h (mprts_hook): Declare.
7869         * gimple-match.head.c (mprts_hook): Define.
7870         (maybe_push_res_to_seq): Use new hook.
7871         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7872         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7873         (vn_ssa_aux::has_constants): Remove.
7874         * tree-ssa-sccvn.c: Include gimple-match.h.
7875         (VN_INFO_GET): Assert we don't re-use SSA names.
7876         (vn_get_expr_for): Remove.
7877         (expr_has_constants): Likewise.
7878         (stmt_has_constants): Likewise.
7879         (simplify_binary_expression): Likewise.
7880         (simplify_unary_expression): Likewise.
7881         (vn_lookup_simplify_result): New hook.
7882         (visit_copy): Adjust.
7883         (visit_reference_op_call): Likewise.
7884         (visit_phi): Likewise.
7885         (visit_use): Likewise.
7886         (process_scc): Likewise.
7887         (init_scc_vn): Likewise.
7888         (visit_reference_op_load): Likewise.  Use match-and-simplify and
7889         a gimple seq for inserted expressions.
7890         (try_to_simplify): Remove GENERIC stmt combining code.
7891         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7892         * tree-ssa-pre.c (eliminate_insert): Adjust.
7893         (eliminate_dom_walker::before_dom_children): Likewise.
7895 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7897         * doc/invoke.texi (Optimization Options): Add
7898         -freorder-blocks-algorithm=.
7899         (Optimize Options) <-O>: Add -freorder-blocks.
7900         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
7901         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7902         <-freorder-blocks>: Also enabled at levels -O and -Os.
7903         <-freorder-blocks-algorithm=>: Document new option.
7905 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7907         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7908         with flag_reorder_blocks_algorithm.
7909         * common.opt (freorder-blocks-algorithm=): New flag.
7910         (reorder_blocks_algorithm): New enum.
7911         * flag-types.h (reorder_blocks_algorithm): New enum.
7912         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7913         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7915 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7917         * bb-reorder.c: Add intro comment.
7918         (reorder_basic_blocks_software_trace_cache): Print a header to
7919         the dump file.
7920         (edge_order): New function.
7921         (reorder_basic_blocks_simple): New function.
7922         (reorder_basic_blocks): Choose between the STC and the simple
7923         algorithms (always choose the former).
7925 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7927         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7928         function, factored out from ...
7929         (reorder_basic_blocks): ... here.
7931 2015-10-01  Tom de Vries  <tom@codesourcery.com>
7933         * tree-cfg.c (dump_function_to_file): Dump function attributes using
7934         __attribute__(()) string.  Move dumping of function attributes to before
7935         function name.
7937 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
7939         PR target/66870
7940         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7941         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7942         based on gold linker version.
7943         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7944         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7945         * configure, config.in: Regenerate.
7947 2015-10-01  Alan Modra  <amodra@gmail.com>
7949         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7950         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7951         (rs6000_output_mi_thunk): Likewise.
7953 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7955         * config/nvptx/mkoffload.c (process): Change offload data format.
7957 2015-09-30  Jeff Law  <law@redhat.com>
7959         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7960         with constant conditions.
7961         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7962         (remove_ctrl_stmt_and_useless_edges): No longer static.
7963         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7964         (remove_ctrl_stmt_and_useless_edges): Likewise.
7966 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7967             Cesar Philippidis  <cesar@codesourcery.com>
7969         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7970         (TARGET_GOACC_VALIDATE_DIMS): Override.
7971         * target.def (TARGET_GOACC): New target hook prefix.
7972         (validate_dims): New hook.
7973         * targhooks.h (default_goacc_validate_dims): New.
7974         * omp-low.c (oacc_validate_dims): New.
7975         (execute_oacc_device_lower): New.
7976         (default_goacc_validate_dims): New.
7977         (pass_data_oacc_device_lower): New.
7978         (pass_oacc_device_lower): New pass.
7979         (make_pass_oacc_device_lower): New.
7980         * tree-pass.h (make_pass_oacc_device_lower): Declare.
7981         * passes.def (pass_oacc_device_lower): Add it.
7982         * doc/tm.texi: Rebuilt.
7983         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7984         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7986 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7988         PR rtl-optimization/67037
7989         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7991 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
7993         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7994         * passes.c: Include tree-ssanames.h.
7995         (execute_function_todo): Flush the pending free SSA_NAMEs after
7996         eliminating unreachable basic blocks.
7997         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7998         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7999         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8000         (flush_ssanames_freelist): New function.
8001         (release_ssaname_fn): Put released names on the queue.
8002         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8003         * tree-ssanames.h (flush_ssanames_freelist): Declare.
8005 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8007         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8008         (generate_target_descr_file, generate_target_offloadend_file)
8009         (generate_host_descr_file, prepare_target_image): Pass it on.
8010         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8011         (compile_native, main): Pass it on.
8012         * lto-wrapper.c (compile_offload_image): Likewise.
8014 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8015             Ilya Verbin  <ilya.verbin@intel.com>
8016             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8018         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8019         (prepare_target_image, main): Refactor argv building to use
8020         obstacks.
8022 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8024         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8025         * config/spu/spu.c (spu_expand_atomic_op): New function.
8026         * config/spu/spu.md (AINT): New mode iterator.
8027         (ATOMIC): New code iterator.
8028         (atomic_name, atomic_pred): New code predicates.
8029         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8030         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8031         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8032         "atomic_<atomic_name>_fetch<mode>"): Likewise.
8034 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
8036         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8037         debug insns.
8038         (scalar_chain::convert_reg): Likewise.
8040 2015-09-30  Richard Biener  <rguenther@suse.de>
8042         * builtins.c: Add comment that no new simplifications should
8043         be added here.
8045 2015-09-30  Marek Polacek  <polacek@redhat.com>
8047         PR tree-optimization/67690
8048         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8049         reset_flow_sensitive_info_in_bb.
8050         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8051         * tree-ssanames.c: Include "gimple-iterator.h".
8052         (reset_flow_sensitive_info_in_bb): New function.
8053         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8055 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8057         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8058         variable, replacing it with...
8059         (offload_abi): ... this new variable.  Adjust all users.
8060         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8062 2015-09-30  Matthias Klose  <doko@ubuntu.com>
8064         * configure.ac: Remove extraneous ;;.
8065         * configure: Regenerate.
8067 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
8069         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8070         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8071         predicate, disallow register for operand 2.
8073 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
8075         * graphite-dependences.c (scop_get_dependences): Moved in down
8076         in order to be visible to its caller.
8077         * graphite-poly.h: Removed compute_deps, and extend_schedule.
8079 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8080             Aditya Kumar  <aditya.k7@samsung.com>
8082         PR tree-optimization/67754
8083         * graphite-optimize-isl.c (optimize_isl): Call
8084         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8086 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8088         * builtins.c (expand_builtin_acc_on_device): Delete.
8089         (expand_builtin): Don't call it.
8090         (fold_builtin_1): Fold acc_on_device.
8092 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8094         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8095         (ix86_nsaved_sseregs): Likewise.
8097 2015-09-29  Jeff Law  <law@redhat.com>
8099         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8100         computation of unused value.
8102         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8103         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8104         inline macro expansion.
8106         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8108         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8109         (gen_shl_sext): Likewise.
8110         * config/sh/sh.md (divsi3): Likewise.
8111         (imm->ext_dest_operand splitter): Likewise.
8113 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8114             Aditya Kumar  <aditya.k7@samsung.com>
8116         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8117         (nb_data_writes_in_bb): Remove.
8118         (split_pbb): Remove.
8119         (split_reduction_stmt): Remove.
8120         (is_reduction_operation_p): Remove.
8121         (phi_contains_arg): Remove.
8122         (follow_ssa_with_commutative_ops): Remove.
8123         (detect_commutative_reduction_arg): Remove.
8124         (detect_commutative_reduction_assign): Remove.
8125         (follow_inital_value_to_phi): Remove.
8126         (edge_initial_value_for_loop_phi): Remove.
8127         (initial_value_for_loop_phi): Remove.
8128         (used_outside_reduction): Remove.
8129         (detect_commutative_reduction): Remove.
8130         (translate_scalar_reduction_to_array_for_stmt): Remove.
8131         (remove_phi): Remove.
8132         (dr_indices_valid_in_loop): Remove.
8133         (close_phi_written_to_memory): Remove.
8134         (translate_scalar_reduction_to_array): Remove.
8135         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8136         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8137         (rewrite_commutative_reductions_out_of_ssa): Remove.
8138         (build_poly_scop): Remove call to
8139         rewrite_commutative_reductions_out_of_ssa.
8141 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
8143         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8144         Add new insn types for vector load and store pairs.
8145         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8146         types "neon_ldp{,_q}".
8147         * config/arm/cortex-a57.md (neon_load_c): Add insn types
8148         "neon_ldp{,_q}".
8149         (neon_store_complex): Add insn types "neon_stp{,_q}".
8150         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8151         "neon_{ldp,stp}_q".
8153 2015-09-29  Jeff Law  <law@redhat.com>
8155         * config/rx/constraints.md (Int08): Fix undefined left shift
8156         behaviour.
8157         (Sint08, Sint16, Sint24): Likewise.
8158         * config/rx/rx.c (rx_get_stack_layout): Likewise.
8160         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8161         behaviour.
8163         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8164         left shift behaviour.
8165         * config/msp430/constraints.md ('L' constraint): Similarly.
8166         ('Ys' constraint): Similarly.
8168 2015-09-29  Richard Biener  <rguenther@suse.de>
8170         PR tree-optimization/67170
8171         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8172         the translate function pointer parameter to get the
8173         bool whether to disambiguate only by reference.
8174         (walk_non_aliased_vuses): Likewise.
8175         * tree-ssa-alias.c (maybe_skip_until): Adjust.
8176         (get_continuation_for_phi_1): Likewise.
8177         (get_continuation_for_phi): Likewise.
8178         (walk_non_aliased_vuses): Likewise.
8179         * tree-ssa-sccvn.c (const_parms): New bitmap.
8180         (vn_reference_lookup_3): Adjust for interface change.
8181         Disambiguate parameters pointing to readonly memory.
8182         (free_scc_vn): Free const_parms.
8183         (run_scc_vn): Initialize const_parms from a fn spec attribute.
8185 2015-09-29  Richard Biener  <rguenther@suse.de>
8187         PR tree-optimization/67741
8188         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8189         builtin calls with correct signature.
8191 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
8193         PR target/65105
8194         * config/i386/i386.c: Include dbgcnt.h.
8195         (has_non_address_hard_reg): New.
8196         (convertible_comparison_p): New.
8197         (scalar_to_vector_candidate_p): New.
8198         (remove_non_convertible_regs): New.
8199         (scalar_chain): New.
8200         (scalar_chain::scalar_chain): New.
8201         (scalar_chain::~scalar_chain): New.
8202         (scalar_chain::add_to_queue): New.
8203         (scalar_chain::mark_dual_mode_def): New.
8204         (scalar_chain::analyze_register_chain): New.
8205         (scalar_chain::add_insn): New.
8206         (scalar_chain::build): New.
8207         (scalar_chain::compute_convert_gain): New.
8208         (scalar_chain::replace_with_subreg): New.
8209         (scalar_chain::replace_with_subreg_in_insn): New.
8210         (scalar_chain::emit_conversion_insns): New.
8211         (scalar_chain::make_vector_copies): New.
8212         (scalar_chain::convert_reg): New.
8213         (scalar_chain::convert_op): New.
8214         (scalar_chain::convert_insn): New.
8215         (scalar_chain::convert): New.
8216         (convert_scalars_to_vector): New.
8217         (pass_data_stv): New.
8218         (pass_stv): New.
8219         (make_pass_stv): New.
8220         (ix86_option_override): Created and register stv pass.
8221         (flag_opts): Add -mstv.
8222         (ix86_option_override_internal): Likewise.
8223         * config/i386/i386.md (SWIM1248x): New.
8224         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8225         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8226         (*anddi3_doubleword): New.
8227         (*zext<mode>_doubleword): New.
8228         (*zextsi_doubleword): New.
8229         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8230         (*<code>di3_doubleword): New.
8231         * config/i386/i386.opt (mstv): New.
8232         * dbgcnt.def (stv_conversion): New.
8234 2015-09-29  Tom de Vries  <tom@codesourcery.com>
8236         * tree-cfg.c (dump_function_to_file): Dump function attributes.
8238 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8240         PR target/67716
8241         * config/sh/sh.c (sh_override_options_after_change): New.
8242         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8243         (sh_option_override): Move align_loops, align_jumps and
8244         align_functions handling into sh_override_options_after_change.
8246 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8248         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8249         (nvptx_record_offload_symbol): Record function execution geometry.
8250         * config/nvptx/mkoffload.c (process): Include launch geometry in
8251         function data.
8252         * omp-low.c (oacc_launch_pack): New.
8253         (replace_oacc_fn_attrib): New.
8254         (set_oacc_fn_attrib): New.
8255         (get_oacc_fn_attrib): New.
8256         (expand_omp_target): Create keyed varargs for GOACC_parallel call
8257         generation.
8258         * omp-low.h (get_oacc_fn_attrib): Declare.
8259         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8260         (DEF_FUNCTION_TYPE_VAR_11): Delete.
8261         * tree.h (OMP_CLAUSE_EXPR): New.
8262         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8264 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8265             Sebastian Pop  <s.pop@samsung.com>
8267         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8269 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8270             Sebastian Pop  <s.pop@samsung.com>
8272         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8273         * graphite-scop-detection.c (struct sese_l): New type.
8274         (get_entry_bb): API for getting entry bb of SESE.
8275         (get_exit_bb): API for getting exit bb of SESE.
8276         (class debug_printer): New type.  Simple printer in debug mode.
8277         (trivially_empty_bb_p): New.  Return true when BB is empty or
8278         contains only debug instructions.
8279         (graphite_can_represent_expr): Call scalar_evoution_in_region
8280         instead of analyze_scalar_evolution.  Pass in scop instead of only
8281         the scop entry.
8282         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8283         scop entry.
8284         (stmt_simple_for_scop_p): Same.
8285         (harmful_stmt_in_bb): Same.
8286         (graphite_can_represent_loop): Deleted.
8287         (struct scopdet_info): Deleted.
8288         (scopdet_basic_block_info): Deleted.
8289         (build_scops_1): Deleted.
8290         (bb_in_sd_region): Deleted.
8291         (find_single_entry_edge): Deleted.
8292         (find_single_exit_edge): Deleted.
8293         (create_single_entry_edge): Deleted.
8294         (sd_region_without_exit): Deleted.
8295         (create_single_exit_edge): Deleted.
8296         (unmark_exit_edges): Deleted.
8297         (mark_exit_edges): Deleted.
8298         (create_sese_edges): Deleted.
8299         (build_graphite_scops): Deleted.
8300         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8301         (build_scops): Use the new scop_builder to build scops.
8302         (dot_all_scops_1): Use the new pretty printer.  Print loop father
8303         as well.
8304         (loop_body_is_valid_scop): New.  Return true if loop body is a
8305         valid scop.
8306         (class scop_builder): New.  Builds SCoPs for polyhedral
8307         optimizations.
8308         (scop_builder): New constructor.
8309         (static sese_l invalid_sese): sese_l with invalid edges.
8310         (get_sese): Get an sese (from a loop) if possible, invalid_sese
8311         otherwise.
8312         (get_nearest_dom_with_single_entry): Get nearest dominator of a
8313         basic_block with single entry.  Return NULL if we get to the
8314         beginning of a function.
8315         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8316         a basic_block with single exit.  Return NULL if we get to the
8317         beginning of a function.
8318         (print_sese): Pretty-print SESE.
8319         (merge_sese): Merge two SESEs if possible and return the new SESE.
8320         (build_scop_depth): Start building the SCoP within a loop nest.
8321         (build_scop_breadth): Start building the SCoP at a single loop
8322         depth.  Merge adjacent SESEs if valid.
8323         (can_represent_loop_1): Returns true if Graphite can represent
8324         loop inside SCoP.  Helper for can_represent_loop.
8325         (can_represent_loop): Returns true if Graphite can represent LOOP
8326         and all its nested loops in SCoP.
8327         (loop_is_valid_scop): Returns true if LOOP and all its nests
8328         constitute a valid SCoP.
8329         (region_has_one_loop): Returns true of a region has only one loop.
8330         (add_scop): Add SCoP to the list of valid scops.  Removes an
8331         already existing scop if it intersects with or subsumed by this one.
8332         (harmful_stmt_in_region): Returns true if SCoP has any statment
8333         which cannot be represented by Graphite.
8334         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8335         (remove_subscops): Remove any SCoP from the list of already found
8336         SCoPs, if subsumed by S1.
8337         (intersects): Return true if region bounded by SCoPs S1 and S2
8338         intersect.
8339         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8340         * graphite.c (print_graphite_scop_statistics):
8341         (print_graphite_statistics): Print SCoP info while debugging.
8342         (graphite_initialize): Early exit in case number of loops in a
8343         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8344         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8345         (graphite_finalize):
8346         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8347         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8348         (recompute_all_dominators): Recalculate POST_DOMINATORS.
8349         * tree-cfg.c (print_loops): Print the function name while printing
8350         loops.
8352 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8353             Sebastian Pop  <s.pop@samsung.com>
8355         PR tree-optimization/67700
8356         * graphite-sese-to-poly.c (parameter_index_in_region): Call
8357         invariant_in_sese_p_rec.
8358         (extract_affine): Same.
8359         (rewrite_cross_bb_scalar_deps): Call update_ssa.
8360         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
8361         * sese.h (invariant_in_sese_p_rec): Declare.
8363 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
8365         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8367 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
8369         Revert:
8370         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8371                     Jiong Wang  <jiong.wang@arm.com>
8373         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8374         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8375         (REG_CLASS_NAMES): Likewise.
8376         (REG_CLASS_CONTENTS): Likewise.
8377         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8378         (aarch64_register_move_cost): Likewise.
8379         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8380         possible.
8381         * config/aarch64/constraints.md (Uc0): New constraint.
8383 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
8385         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8387 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
8389         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8390         SECTION_EXCLUDE in XO mapping class.
8392 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
8394         PR target/54236
8395         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8396         and handle ne and eq codes.
8397         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8398         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
8399         CONST_INT_P.  Use reverse_condition.
8400         (sh_split_treg_set_expr): Likewise.
8402 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
8404         * config/arm/types.md (type): Add rotate_imm.
8405         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8406         ROR immediate case.
8407         (*rorsi3_insn_uxtw): Likewise.
8408         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8409         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8410         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8412 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8414         PR rtl-optimization/67481
8415         * ifcvt.c (contains_ccmode_rtx_p): New function.
8416         (insn_valid_noce_process_p): Use it.
8418 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8420         PR rtl-optimization/67456
8421         PR rtl-optimization/67464
8422         PR rtl-optimization/67465
8423         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8424         move in the mode of x.  Handle combination of complex and simple
8425         block pairs as well as the case when one is empty.
8427 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8429         * doc/gimple.texi: Update references to gimple_statement_base.
8430         * gdbhooks.py: Likewise.
8431         * gimple.h: Likewise.
8433 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8435         * config/sparc/driver-sparc.c: map LEON to leon3
8437 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8439         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8440           and make it inverse to change default
8441         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8442           supervisor mode
8443         * doc/invoke.texi: Document change of default
8445 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8447         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8448         true on %f0 for a target without FPU.
8449         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8450         without FPU.
8451         (untyped_return): Do not load %f0 for a target without FPU.
8453 2015-09-28  Andrew Pinski  <apinski@cavium.com>
8455         * config/aarch64/aarch64.md (prefetch):
8456         Change the predicate of operand 0 to register_operand.
8458 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
8460         * config/i386/predicates.md (register_sse4nonimm_operand): New
8461         predicate.
8462         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8463         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8464         Use register_sse4nonimm_operand as operand 0 predicate.
8465         (*vec_extractv8hi_sse2): Remove insn pattern.
8466         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8467         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8469 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
8470             Kaz Kojima  <kkojima@gcc.gnu.org>
8472         PR target/67391
8473         * config/sh/sh-protos.h (sh_lra_p): Declare.
8474         * config/sh/sh.c (sh_lra_p): Make non-static.
8475         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8476         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
8477         Expand into addsi3_scr if operands[2] if needed.
8478         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
8479         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
8480         (addsi3_scr, *addsi3): New insn_and_split patterns.
8482 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
8484         PR rtl-optimization/64164
8485         PR tree-optimization/67312
8486         PR middle-end/67340
8487         PR middle-end/67490
8488         PR bootstrap/67597
8489         * cfgexpand.c (parm_in_stack_slot_p): Remove.
8490         (ssa_default_def_partition): Remove.
8491         (get_rtl_for_parm_ssa_default_def): Remove.
8492         (set_rtl): Check that RTL assignments match expectations.
8493         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
8494         default def location for params and results.  Record SSA names
8495         or types in REG and MEM attrs, respectively.
8496         (set_parm_rtl): New.
8497         (expand_one_ssa_partition): Drop logic that assigned MEMs with
8498         unassigned addresses.
8499         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8500         deferred stack alloc vars.
8501         (expand_used_vars): Skip partitions holding parm default defs.
8502         Move adjust_one_expanded_partition_var loop...
8503         (pass_expand::execute): ... here.  Drop redundant assert.
8504         Adjust comments before the final loop over all ssa names.
8505         Require assigned rtl of parms and results to match exactly.
8506         Reset its attributes to match them, not any other variables in
8507         the same partition.
8508         (expand_debug_expr): Use entry value for PARM's default defs
8509         only iff they have zero nondebug uses.
8510         * cfgexpand.h (parm_in_stack_slot_p): Remove.
8511         (get_rtl_for_parm_ssa_default_def): Remove.
8512         (set_parm_rtl): Declare.
8513         * doc/invoke.texi: Improve wording.
8514         * explow.c (promote_decl_mode): Fix promote_function_mode for
8515         result decls not by reference.
8516         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8517         bypass TYPE_MODE to get the actual vector mode.
8518         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
8519         2015-08-19's changes as follows.  Drop include of
8520         basic-block.h and df.h.
8521         (rtl_for_parm): Remove.
8522         (maybe_reset_rtl_for_parm): Remove.
8523         (parm_in_unassigned_mem_p): Remove.
8524         (use_register_for_decl): Add logic for RESULT_DECLs matching
8525         assign_parms' behavior.
8526         (split_complex_args): Revert.
8527         (assign_parms_augmented_arg_list): Revert.  Add comment
8528         referencing the logic above.
8529         (assign_parm_adjust_stack_rtl): Revert.
8530         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
8531         of SET_DECL_RTL.  Set up a REG if the parm demands so.
8532         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
8533         calls into a single set_parm_rtl.  Set up a temporary RTL
8534         temporarily for expand_assignment.
8535         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
8536         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
8537         (assign_bounds): Revert.
8538         (assign_parms): Revert.  Use set_parm_rtl.
8539         (allocate_struct_function): Relayout result and parms of
8540         non-abstruct functions.
8541         (expand_function_start): Revert.  Use set_parm_rtl.  If the
8542         result is not a hard reg, create a pseudo from the promoted
8543         mode of the default def.  Promote static chain mode.
8544         * tree-outof-ssa.c (remove_ssa_form): Drop unused
8545         partition_has_default_def.  Set up
8546         partitions_for_parm_default_defs.
8547         (finish_out_of_ssa): Remove partition_has_default_def.
8548         Release partitions_for_parm_default_defs.
8549         * tree-outof-ssa.h (struct ssaexpand): Remove
8550         partition_has_default_def.  Add
8551         partitions_for_parm_default_defs.
8552         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8553         stor-layout.h.
8554         (build_ssa_conflict_graph): Fix conflict-detection of default
8555         defs of even unused default defs of params and results.
8556         (for_all_parms): New.
8557         (create_default_def): New.
8558         (register_default_def): New.
8559         (coalesce_with_default): New.
8560         (create_outofssa_var_map): Create default defs for all parms
8561         and results, and register their partitions.  Add GIMPLE_RETURN
8562         operands as coalesce candidates with results.  Add default
8563         defs of each parm or result as coalesce candidates with its
8564         other defs.  Mark each result def, and each default def of
8565         parms, as used_in_copy.
8566         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
8567         with the ssa names, even anonymous ones.  Drop
8568         parm_in_stack_slot_p calls.  Require same signedness and
8569         alignment.
8570         (coalesce_ssa_name): Add coalesce candidates for all defs of
8571         each parm and result, even unused ones.
8572         (parm_default_def_partition_arg): New type.
8573         (set_parm_default_def_partition): New.
8574         (get_parm_default_def_partitions): New.
8575         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8576         * tree-ssa-live.c (partition_view_init): Regard unused defs of
8577         parms and results as used.
8578         (verify_live_on_entry): Don't error out just because they're
8579         not live.
8581 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
8583         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8584         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8585         (output_fde): Don't output length for debug_frame on AIX.
8586         (output_call_frame_info): Don't output length for debug_frame on AIX.
8587         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8588         HAVE_XCOFF_DWARF_EXTRAS.
8589         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8590         HAVE_XCOFF_DWARF_EXTRAS.
8591         (output_compilation_unit_header): Don't output length on AIX.
8592         (output_pubnames): Don't output length on AIX.
8593         (output_aranges): Delete argument. Compute length locally. Don't
8594         output length on AIX.
8595         (output_line_info): Don't output length on AIX.
8596         (dwarf2out_finish): Don't compute aranges_length.
8597         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8598         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8599         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8600         symbol decoration for AIX.
8601         (rs6000_xcoff_debug_unwind_info): New.
8602         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8603         for SECTION_DEBUG.
8604         (rs6000_xcoff_declare_function_name): Emit different
8605         .function pseudo-op when DWARF2_DEBUG. Don't call
8606         xcoffout_declare_function for DWARF2_DEBUG.
8607         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8608         Redefine.
8609         * config/rs6000/aix71.h: New.
8610         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8611         locations support.
8612         * configure: Regenerate.
8613         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8614         DWARF support.
8616 2015-09-26  Jeff Law  <law@redhat.com>
8618         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8619         behaviour.
8620         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8621         behaviour.
8623         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8624         behaviour
8626         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8627         undefined behaviour.
8629         * config/cris/cris.md (asrandb): Fix left shift undefined
8630         behaviour.
8631         (asrandw): Likewise.
8633 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
8635         PR target/61578
8636         * lra-constarints.c (match_reload): Check presence of the input pseudo
8637         in the output operand.
8639 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8641         * doc/invoke.texi (-fsanitize): Minor wording tweak.
8643 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8645         * doc/invoke.texi (-fsanitize): Update URLs.
8647 2015-09-25  Teresa Johnson  <tejohnson@google.com>
8649         * opts.c (finish_options): Unset -freorder-blocks-and-partition
8650         if not using profile.
8652 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8654         PR pretty-print/67567
8655         * pretty-print.c (pp_string): Add gcc_checking_assert.
8656         * pretty-print.h (output_buffer_append_r): Likewise.
8658 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
8660         PR target/67675
8661         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8662         addr2 individually.  Don't emit logical or insn if one is known to
8663         be aligned approriately.
8664         (sh_expand_cmpnstr): Likewise.
8666 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
8668         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8669         __builtin_aarch64_fp[sc]r arguments into a register.
8671 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
8673         * config.gcc (x86_archs): Replace lakemount with lakemont.
8674         (with_cpu): Likewise.
8675         (with_arch): Likewise.
8676         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8677         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
8678         __tune_lakemount__ with __tune_lakemont__.
8679         * config/i386/i386.c (lakemount_cost): Renamed to ...
8680         (lakemont_cost): This.
8681         (m_LAKEMOUNT): Renamed to ...
8682         (m_LAKEMONT): This.
8683         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8684         (processor_target_table): Replace "lakemount" with "lakemont".
8685         (processor_alias_table): Likewise.
8686         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8687         PROCESSOR_LAKEMONT.
8688         (ix86_adjust_cost): Likewise.
8689         (ia32_multipass_dfa_lookahead): Likewise.
8690         * config/i386/i386.h (processor_type): Likewise.
8691         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8692         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
8693         Lakemount with Lakemont.
8695 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8697         * config.gcc (x86_archs): Replace iamcu with lakemount.
8698         (with_cpu): Likewise.
8699         (with_arch): Likewise.
8700         * doc/invoke.texi: Likewise.
8701         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8702         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
8703         __tune_iamcu__ with __tune_lakemount__.
8704         * config/i386/i386.c (iamcu_cost): Renamed to ...
8705         (lakemount_cost): This.
8706         (m_IAMCU): Renamed to ...
8707         (m_LAKEMOUNT): This.
8708         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8709         (processor_target_table): Replace "iamcu" with "lakemount".
8710         (processor_alias_table): Likewise.
8711         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8712         PROCESSOR_LAKEMOUNT.
8713         (ix86_adjust_cost): Likewise.
8714         (ia32_multipass_dfa_lookahead): Likewise.
8715         * config/i386/i386.h (processor_type): Likewise.
8716         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8718 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
8720         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8721         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8722         Declare.
8723         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8724         (pa_expand_compare_and_swap_loop): New.
8725         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8726         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8727         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8728         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8729         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8730         Revise.
8732 2015-09-24  Michael Collison  <michael.collison@linaro.org>
8734         PR other/57195
8735         * read-md.c (read_name): Allow mode iterators inside angle
8736         brackets in rtl expressions.
8738 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
8740         PR target/61578
8741         * ira-color.c (update_allocno_cost): Add parameter.
8742         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
8743         parameter.
8745 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8747         PR driver/67640
8748         * opts-common.c (prune_options): Discard all -fdiagnostics-color
8749         but the last one, which is moved to the front to be processed
8750         first.
8751         * opts.c (enable_warning_as_error): Reject options that do not
8752         control warnings.
8754 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8756         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8758 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8760         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8761         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8762         (aarch64_cannot_force_const_mem): Likewise.
8763         (aarch64_classify_address): Likewise.
8764         (aarch64_classify_symbolic_expression): Likewise.
8765         (aarch64_print_operand): Likewise.
8766         (aarch64_classify_symbol): Likewise.
8767         (aarch64_mov_operand_p): Likewise.
8768         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8769         (aarch64_mov_operand): Likewise.
8771 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
8773         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8774         for info->spe_gp_size.
8776 2015-09-24  Richard Biener  <rguenther@suse.de>
8778         PR lto/67699
8779         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8780         abstract origins.
8782 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
8784         * tree-object-size.c (plus_stmt_object_size)
8785         (cond_expr_object_size): Change the formal parameters from gimple
8786         to gimple *.
8787         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8788         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8789         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8791 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8793         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8794         Check for ld -type pie on Solaris 11.x and 12.
8795         * configure: Regenerate.
8796         * config.in: Regenerate.
8798         * gcc.c (LD_PIE_SPEC): Allow redefinition.
8800         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8801         (STARTFILE_SPEC): Use it.
8802         (ENDFILE_CRTEND_SPEC): Define.
8803         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8804         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8805         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8806         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8807         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8808         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8809         (ENDFILE_ARCH_SPEC): Define.
8810         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8812 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8814         * configure.ac (gcc_cv_solaris_crts): New test.
8815         * configure. Regenerate.
8816         * config.in: Regenerate.
8817         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8818         HAVE_SOLARIS_CRTS variant.
8820 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8822         * tree-inline.h (count_insns_seq): Delete prototype.
8823         (estimate_num_insns_seq): Define prototype.
8824         * tree-inline.c (count_insns_seq): Delete.
8825         (estimate_num_insns_seq): Remove static qualifier.
8826         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8827         with estimate_num_insns_seq.
8829 2015-09-24  Richard Biener  <rguenther@suse.de>
8831         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8832         members.
8833         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8834         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
8835         offset.
8836         (ao_ref_init_from_vn_reference): Record clique and base in the
8837         built base.
8838         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8840 2015-09-24  Richard Biener  <rguenther@suse.de>
8842         PR tree-optimization/48885
8843         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8844         as not including any restrict tags from other pointers.
8846 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8848         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8849         character when appending to offload_targets.
8851         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8852         offload targets by commas, not colons.
8853         * config.in: Regenerate.
8854         * configure: Likewise.
8855         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8856         instead of setting up the default offload targets here...
8857         (process_command): ..., do it here.
8858         libgomp/
8859         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8860         targets are separated by commas.
8861         * config.h.in: Regenerate.
8863 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8864             Nathan Sidwell  <nathan@codesourcery.com>
8866         * omp-low.h (omp_reduction_init_op): Declare.
8867         * omp-low.c (omp_reduction_init_op): New, broken out of ...
8868         (omp_reduction_init): ... here.  Call it.
8869         * tree-parloops.c (initialize_reductions): Use
8870         omp_reduction_init_op.
8872 2015-09-23   Richard Biener  <rguenther@suse.de>
8874         PR middle-end/67662
8875         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8876         undefined overflow unless they will cancel out.
8878 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8880         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8881         insn emit.
8883 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8885         PR c/49655
8886         * opts.h (write_langs): Declare.
8887         * opts-global.c (write_langs): Make it extern.
8889 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
8891         PR target/67391
8892         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8893         overlapping regs when matching the pattern.
8895 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
8897         * config/aarch64/aarch64-simd.md
8898         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8899         (aarch64_float_truncate_hi_v4sf_le): New.
8900         (aarch64_float_truncate_hi_v4sf_be): Likewise.
8902 2015-09-23  Richard Biener  <rguenther@suse.de>
8904         * tree-ssa-structalias.c (intra_create_variable_infos): Build
8905         representatives for all restrict qualified pointer destinations.
8907 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8909         * config/i386/i386.md (define_code_attr mshift): New.
8910         (define_mode_iterator SWI1248_AVX512BW): Rename ...
8911         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8912         only.
8913         (define_insn "*k<logic><mode>"): Use new iterator name.
8914         (define_insn "*<mshift><mode>3"): New.
8916 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
8918         PR middle-end/67649
8919         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8920         mark the block as accessible.
8922 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
8924         * function.c (thread_prologue_and_epilogue_insns): Delete
8925         orig_entry_edge argument to try_shrink_wrapping.
8926         * shrink-wrap.c (can_get_prologue): New function.
8927         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8928         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
8929         can_get_prologue where needed.  Remove code that finds a single
8930         edge for the prologue.  Remove code that tests if any reg clobbered
8931         by the prologue is live on the prologue edge.  Remove code that finds
8932         the new prologue edge after duplicating blocks.  Make a new prologue
8933         block and edge.
8934         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8936 2015-09-22  Jeff Law  <law@redhat.com>
8938         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8939         behavior.
8941 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
8943         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
8944         -Wtemplates, -Wnamespaces): Document.
8946 2015-09-22  Tom de Vries  <tom@codesourcery.com>
8948         PR tree-optimization/67671
8949         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8950         pointer references as restrict.
8952 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8954         * config/nios2/nios2.c (nios2_legitimize_address): When handling
8955         'reg + reloc' cases, allow first operand to be non-REG, and use
8956         force_reg() to enforce address pattern.
8958 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
8960         PR target/67480
8961         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8962         (define_mode_iterator VI12_AVX_AVX512F): New.
8963         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8964         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8965         (define_insn "*<code><mode>3"): ... Into new pattern using
8966         VI12_AVX_AVX512F iterators without masking.
8968 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8970         * config.gcc: Support "skylake-avx512".
8971         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8972         PROCESSOR_SKYLAKE_AVX512.
8973         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8974         (processor_target_table): Add "skylake-avx512".
8975         (PTA_SKYLAKE_AVX512): Define.
8976         (ix86_option_override_internal): Add "skylake_avx512".
8977         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8978         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8979         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8980         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8981         * doc/invoke.texi (skylake-avx512): New.
8983 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8985         * config/i386/i386.md (define_insn "kunpckhi"): Fix
8986         operand in pattern.
8987         (define_insn "kunpcksi"): Ditto.
8988         (define_insn "kunpckdi"): Ditto.
8990 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8992         * config/i386/i386.md (define_split not/xor SWI1248x): Use
8993         iterator instead of fixed modes.
8995 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8997         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8998         Adjust declaration.
8999         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9000         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
9001         out_result.  Update to support update-fetch operations.
9002         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9003         Adjust for change to aarch64_gen_atomic_ldop.
9004         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9005         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9006         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9007         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9008         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9010 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9012         * config/aarch64/aarch64-protos.h
9013         (aarch64_atomic_ldop_supported_p): Declare.
9014         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9015         (enum aarch64_atomic_load_op_code): New.
9016         (aarch64_emit_atomic_load_op): New.
9017         (aarch64_gen_atomic_ldop): Update to support load-operate
9018         patterns.
9019         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9020         to an expander.
9021         (aarch64_atomic_<atomic_optab><mode>): New.
9022         (aarch64_atomic_<atomic_optab><mode>_lse): New.
9023         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9024         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9025         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9027 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9029         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9030         (UNSPECV_ATOMIC_LDOP_OR): New.
9031         (UNSPECV_ATOMIC_LDOP_BIC): New.
9032         (UNSPECV_ATOMIC_LDOP_XOR): New.
9033         (UNSPECV_ATOMIC_LDOP_PLUS): New.
9034         (ATOMIC_LDOP): New.
9035         (atomic_ldop): New.
9036         (aarch64_atomic_load<atomic_ldop><mode>): New.
9038 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9040         * config/aarch64/aarch64.md
9041         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9042         pattern.
9044 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9046         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9047         Declare.
9048         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9049         (aarch64_gen_atomic_ldop): New.
9050         (aarch64_split_atomic_op): Fix whitespace and add a comment.
9051         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9052         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9053         (atomic_exchange<mode>): Replace with an expander.
9054         (aarch64_atomic_exchange<mode>): New.
9055         (aarch64_atomic_exchange<mode>_lse): New.
9056         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9057         (aarch64_atomic_swp<mode>): New.
9059 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9061         * tree-inline.c (expand_call_inline): Use inform for extra note.
9062         Do not give a note with UNKNOWN_LOCATION.
9063         Replace input_location with gimple_location (stmt).
9064         Use true/false instead of TRUE/FALSE.
9066 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9068         PR tree-optimization/67666
9069         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9070         with single field non-conservative.
9072 2015-09-21  David S. Miller  <davem@davemloft.net>
9074         PR/67622
9075         Revert:
9076         2015-09-11  David S. Miller  <davem@davemloft.net>
9078         * config/sparc/constraints.md: Make "U" constraint a real register
9079         constraint.
9080         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9081         (D_MODES, DF_MODES): Add missing cast.
9082         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9083         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9084         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9085         cost to 8.
9086         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9087         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9088         provide these insn when flag_pic.
9090         2015-09-17  David S. Miller  <davem@davemloft.net>
9092         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9093         Declare.
9094         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9095         function.
9096         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9097         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9098         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9099         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9100         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9101         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9102         provide when flag_pic.
9104 2015-09-21  Jeff Law  <law@redhat.com>
9106         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9107         behavior.
9109 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9111         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9113 2015-09-21  Richard Biener  <rguenther@suse.de>
9115         * passes.c (rest_of_decl_compilation): Do not call
9116         dwarf2out_early_global_decl for aliases.
9118 2015-09-21  Richard Biener  <rguenther@suse.de>
9120         PR debug/67664
9121         * dwarf2out.c (add_location_or_const_value_attribute): Remove
9122         attribute parameter.  Early exit if either DW_AT_const_value
9123         or DW_AT_location are present already.
9124         (gen_variable_die): Adjust caller.
9125         (dwarf2out_late_global_decl): Likewise.
9127 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9129         PR target/67657
9130         * config/sh/sh.c (sh_remove_overlapping_post_inc,
9131         sh_peephole_emit_move_insn): Add new functions.
9132         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9133         sh_peephole_emit_move_insn): Declere them.
9134         * config/sh/sh.md: Use them in various peephole2 patterns.
9136 2015-09-21  Richard Biener  <rguenther@suse.de>
9138         PR middle-end/67651
9139         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9140         address with -fno-delete-null-pointer-checks.
9142 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
9144         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9145         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9146         (reduc_uplus_v16qi): Remove.
9148         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9149         (reduc_<VEC_reduc_name>_v2df): Remove.
9150         (reduc_<VEC_reduc_name>_v4sf): Remove.
9151         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9153         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9154         gen_ function by removing * prefix.
9155         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9157 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9159         PR middle-end/60832
9160         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9161         Print i_bound without converting it to a tree.
9163 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
9165         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9166         operands[4] operands[5] swap with std::swap, removed tmp variable.
9167         (arm_evpc_neon_vzip): Replaced in0/in1 and
9168         out0/out1 swaps with std::swap, removed x variable.
9169         (arm_evpc_neon_vtrn): Replaced in0/int1 and
9170         out0/out1 swaos with std::swap, removed x variable.
9171         (arm_expand_vec_perm_const_1): Replaced
9172         d->op0/d->op1 swap with std::swap, removed x variable.
9173         (arm_evpc_neon_vuzp): Replaced in0/in1 and
9174         out0/out1 swaps with std::swap, removed x variable.
9176 2015-09-21  Jonathan Yong  <10walls@gmail.com>
9178         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9179         sysroot/usr/lib/32api for additional win32 libraries,
9180         fixes failing Cygwin bootstrapping.
9182 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9184         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9186 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9188         PR target/67126
9189         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9190         (*mov_t_msb_neg): Rewrite negc pattern.
9192 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9194         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9195         immediate generation code.
9197 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9199         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9200         redundant immediate generation code.
9202 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9204         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9205         (AARCH64_NUM_BITMASKS): Remove.
9206         (aarch64_bitmasks_cmp): Remove.
9207         (aarch64_build_bitmask_table): Remove.
9209 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9211         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9212         slow immediate matching loops with a faster algorithm.
9214 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9216         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9217         faster algorithm.
9219 2015-09-20  Jeff Law  <law@redhat.com>
9221         PR tree-optimization/47679
9222         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9223         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9224         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9225         (thread_through_normal_block): Use record_temporary_equivalences.
9227 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
9229         * coretypes.h (gimple): Change typedef to be a forward declaration.
9230         * gimple.h (gimple_statement_base): rename to gimple.
9231         * (all functions and types using gimple): Adjust.
9232         * *.[ch]: Likewise.
9234 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
9235             David Edelsohn  <dje.gcc@gmail.com>
9237         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9238         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9239         (EH_FRAME_THROUGH_COLLECT2): Define.
9240         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9241         (ASM_OUTPUT_DWARF_PCREL): Define.
9242         (ASM_OUTPUT_DWARF_DATAREL): Define.
9244 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
9246         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9247         of TARGET_ELF32.
9249 2015-09-18  Jeff Law  <law@redhat.com>
9251         PR tree-optimization/47679
9252         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
9253         it here ...
9254         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9255         object.  Update constructor.
9256         (pass_dominator::execute):  Corresponding chagnes to declaration
9257         and initialization of avail_exprs_stack.  Update constructor call
9258         for dom_opt_dom_walker object.
9259         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
9260         it down to children as needed.
9261         (record_equivalences_from_incoming_edge): Likewise.
9262         (eliminate_redundant_computations): Likewise.
9263         (record_equivalences_from_stmt): Likewise.
9264         (simplify_stmt_for_jump_threading): Likewise.
9265         (record_temporary_equivalences): Likewise.
9266         (optimize_stmt): Likewise.
9267         (dom_opt_dom_walker::thread_across_edge): Update access to
9268         avail_exprs_stack object and pass it to children as needed.
9269         (dom_opt_dom_walker::before_dom_children): Similarly.
9270         (dom_opt_dom_walker::after_dom_children): Similarly.
9271         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9272         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9273         Add avail_expr_stack argument.  Pass it to children as needed.
9274         (dummy_simplify): Likewise.
9275         (simplify_control_stmt_condition): Likewise.
9276         (thread_around_empty_blocks): Likewise.
9277         (thread_through_normal_block): Likewise.
9278         (thread_across_edge): Likewise.
9279         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9280         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9282         PR tree-optimization/47679
9283         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
9284         it here ...
9285         (dom_opt_dom_walker): New private member holding the const_and_copies
9286         object.  Update constructor.
9287         (pass_dominator::execute): Corresponding changes to declaration
9288         and initialization of const_and_copies.  Update constructor call
9289         for the dom_opt_dom_walker object.
9290         (record_temporary_equivalences): Accept const_and_copies argument
9291         pass it down to children as needed.
9292         (record_equality): Likewise.
9293         (record_equivalences_from_incoming_edge): Likewise.
9294         (cprop_into_successor_phis, optimize_stmt): Likewise.
9295         (eliminate_redundant_computations): Likewise.
9296         (dom_opt_dom_walker::thread_across_edge): Update access to
9297         const_and_copies object and pass it to children as needed.
9298         (dom_opt_dom_walker::before_dom_children): Similarly.
9299         (dom_opt_dom_walker::after_dom_children): Similarly.
9301         PR tree-optimization/47679
9302         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
9303         it into the avail_exprs_stack class.
9304         (pass_dominator::execute): Corresponding changes to declaration
9305         and initialization of avail_exprs.  Pass avail_exprs to
9306         dump_dominator_optimization_stats.
9307         (record_cond): Extract avail_exprs from avail_exprs_stack.
9308         (lookup_avail_expr): Similarly.
9309         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
9310         position in file.
9311         (dump_dominator_optimization_stats): Make static and prototype.
9312         Add argument for the hash table to dump.
9313         (debug_dominator_optimization_stats): Remove.
9314         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9315         prototype.
9316         (debug_dominator_optimization_stats): Similarly.
9317         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9318         "void" in prototype for pop_to_marker method.  Add accessor method
9319         for the underlying avail_exprs table.
9321         * tree-ssa-threadedge.c: Remove trailing whitespace.
9323 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
9325         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9326         unsigned.
9327         (pa_ldil_cint_p): Likewise.
9328         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9329         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9330         Update callers.
9331         * config/pa/pa.md: Likewise.
9333 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
9335         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9336         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9337         (diagnostic_show_locus): Likewise.
9338         (diagnostic_print_caret_line): Likewise.
9339         * diagnostic-show-locus.c: New file.
9341 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
9343         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9344         "back" parameter. Declare label in #if block.
9346 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
9348         PR middle-end/67619
9349         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9350         the address to a register.
9352 2015-09-18  Jeff Law  <law@redhat.com>
9354         PR tree-optimization/47679
9355         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9356         * tree-ssa-dom.c: Remove unnecessary header includes.
9357         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9358         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9359         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9360         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9361         (pass_phi_only_cprop::execute): Likewise.
9362         (make_pass_phi_only_cprop): Likewise.
9363         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
9364         uses of file scoped statics by passing the required objects
9365         as parameters wherever needed.
9367 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
9368             David Edelsohn  <dje.gcc@gmail.com>
9370         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9371         EH_FRAME_THROUGH_COLLECT2.
9372         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9373         DW_EH_PE_datarel.
9374         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9375         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
9376         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9377         * except.c (switch_to_exception_section): Use a read-only section
9378         even if EH_FRAME_SECTION_NAME is undefined.
9379         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9380         * collect2.c (write_c_file_stat): Provide dbase on AIX.
9381         (scan_prog_file): Don't export __dso_handle nor
9382         __gcc_unwind_dbase.
9383         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9384         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9385         (ASM_OUTPUT_DWARF_PCREL): Define.
9386         (ASM_OUTPUT_DWARF_DATAREL): Define.
9387         (EH_FRAME_THROUGH_COLLECT2): Define.
9388         (EH_FRAME_IN_DATA_SECTION): Delete.
9389         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9390         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9391         Declare.
9392         (rs6000_asm_output_dwarf_datarel): Declare.
9393         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9394         (rs6000_aix_asm_output_dwarf_datarel): New.
9395         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9396         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9397         (EH_FRAME_THROUGH_COLLECT2): Define.
9398         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9399         (EH_FRAME_THROUGH_COLLECT2): Define.
9400         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9401         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9402         (EH_FRAME_THROUGH_COLLECT2): New.
9403         (ASM_OUTPUT_DWARF_DATAREL): New.
9404         * doc/tm.texi: Regenerate.
9406 2015-09-18  Richard Biener  <rguenther@suse.de>
9408         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9409         we're in early phase.
9410         (schedule_generic_params_dies_gen): Likewise.
9411         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9412         work as possible, retaining unhandled cases.
9413         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9414         clear out generic_type_instances at the end.
9415         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9416         (dwarf2out_early_finish): ... here.  Do most of
9417         gen_remaining_tmpl_value_param_die_attribute here.
9419 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
9421         PR tree-optimization/67283
9422         * tree-sra.c (type_consists_of_records_p): Rename to...
9423         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9424         (completely_scalarize_record): Rename to...
9425         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9426         (scalarize_elem): New.
9427         (analyze_all_variable_accesses): Follow renamings.
9429 2015-09-18  Richard Biener  <rguenther@suse.de>
9431         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9432         in early-dwarf.
9434 2015-09-18  Richard Biener  <rguenther@suse.de>
9436         PR tree-optimization/66142
9437         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9438         treat MEM[&x] and x the same.
9439         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9440         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9441         when we simplified sth.
9442         (vn_reference_maybe_forwprop_address): Likewise.
9443         (valueize_refs_1): When we simplified through
9444         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9445         set valueized_anything to true.
9446         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9447         one ref kills the other instead of just a offset-based test.
9448         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9449         for the operand_equal_p test to compare bases and also compare
9450         sizes.
9452 2015-09-17  Christian Bruel  <christian.bruel@st.com>
9454         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9456 2015-09-17  Richard Henderson  <rth@redhat.com>
9458         PR libstdc++/65913
9459         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9460         pointers that encode the alignment of the object.
9462 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9464         PR rtl-optimization/66790
9465         * df-problems.c (LIVE): Amend documentation.
9467 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
9469         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9470         and optabs-tree.o.
9471         (GTFILES): Replace optabs.c with optabs-libfunc.c.
9472         * genopinit.c (main): Add an include guard to insn-opinit.h.
9473         Protect the rtx_code parts with NUM_RTX_CODE.
9474         * optabs.h: Split parts out to...
9475         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9476         * optabs.c: Split parts out to...
9477         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9478         * cilk-common.c: Include optabs-query.h rather than optabs.h.
9479         * fold-const.c: Likewise.
9480         * target-globals.c: Likewise.
9481         * tree-if-conv.c: Likewise.
9482         * tree-ssa-forwprop.c: Likewise.
9483         * tree-ssa-loop-prefetch.c: Likewise.
9484         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9485         Remove unncessary include files.
9486         * tree-ssa-phiopt.c: Likewise.
9487         * tree-ssa-reassoc.c: Likewise.
9488         * tree-switch-conversion.c: Likewise.
9489         * tree-vect-data-refs.c: Likewise.
9490         * tree-vect-generic.c: Likewise.
9491         * tree-vect-loop.c: Likewise.
9492         * tree-vect-patterns.c: Likewise.
9493         * tree-vect-slp.c: Likewise.
9494         * tree-vect-stmts.c: Likewise.
9495         * tree-vrp.c: Likewise.
9496         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9497         rather than optabs.h.
9498         * expr.c: Include optabs-tree.h.
9499         * function.c: Likewise.
9501 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9503         PR middle-end/65958
9504         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9505         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9506         * config/arm/arm.c: Include common/common-target.h.
9507         (use_return_insn): Return 0 if the static chain register was saved
9508         above a non-APCS frame.
9509         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9510         (struct scratch_reg): New.
9511         (get_scratch_register_on_entry): New function.
9512         (release_scratch_register_on_entry): Likewise.
9513         (arm_emit_probe_stack_range): Likewise.
9514         (output_probe_stack_range): Likewise.
9515         (arm_expand_prologue): Factor out code dealing with the IP register
9516         for nested function and adjust it for stack checking.
9517         Invoke arm_emit_probe_stack_range if static builtin stack checking
9518         is enabled.
9519         (thumb1_expand_prologue): Sorry out if static builtin stack checking
9520         is enabled.
9521         (arm_expand_epilogue): Add the saved static chain register, if any, to
9522         the amount of pre-pushed registers to pop.
9523         (arm_frame_pointer_required): Return true if static stack checking is
9524         enabled and we want to catch the exception with the EABI unwinder.
9525         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9526         (UNSPEC_PROBE_STACK_RANGE): Likewise.
9527         * config/arm/arm.md (probe_stack): New insn.
9528         (probe_stack_range): Likewise.
9530 2015-09-17  Richard Biener  <rguenther@suse.de>
9532         * genmatch.c (parser::parse_expr): Improve error message
9533         for mis-placed flags.
9535 2015-09-17  Richard Biener  <rguenther@suse.de>
9537         * passes.c (rest_of_decl_compilation): Always call early_global_decl
9538         debug hook when we created a varpool node.
9539         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9540         dwarf2out_early_global_decl, when not just add location or
9541         value attributes to existing DIEs.
9543 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
9545         * config/aarch64/aarch64.md (copysigndf3): New.
9546         (copysignsf3): Likewise.
9548 2015-09-17  David S. Miller  <davem@davemloft.net>
9550         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9551         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9552         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9553         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9554         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9555         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9556         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9557         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9558         provide when flag_pic.
9560 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9562         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9563         object_allocator change.
9565 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9567         PR tree-optimization/66388
9568         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9569         (dump_iv): Dump no_overflow information.
9570         (alloc_iv): Initialize new field for struct iv.
9571         (mark_bivs): Count number of no_overflow bivs.
9572         (find_deriving_biv_for_expr, record_biv_for_address_use): New
9573         functions.
9574         (idx_find_step): Call new functions above.
9575         (add_candidate_1, add_candidate): New paramter.
9576         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9577         (get_computation_aff): Simplify convertion of cand for BIV.
9578         (get_computation_cost_at): Step cand's base if necessary.
9580 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9582         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9583         parameter.
9584         (tree_simplify_using_condition): Ditto.
9585         (simplify_using_initial_conditions): Ditto.
9586         (loop_exits_before_overflow): Pass new argument to function
9587         simplify_using_initial_conditions.  Remove case for type conversions
9588         simplification.
9589         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9590         parameter.
9591         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9592         in iv base using loop initial conditions.
9594 2015-09-16  Jeff Law  <law@redhat.com>
9596         PR tree-optimization/47679
9597         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9598         (free_all_edge_infos): Use it.
9599         (allocate_edge_info): Free preexisting edge info data.
9600         (pass_dominator::execute): Set up initial edge info structures.
9601         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9602         thread_across_edge.
9603         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9604         If non-null, then push/pop markers appropriately.
9605         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9606         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9607         thread-across_edge.
9609 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
9611         * config/ft32/ft32.c: Fix the memory address space predicate.
9613 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9615         PR target/67573
9616         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9617         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9619 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9621         * toplev.h (check_global_declaration): Remove declaration.
9622         * toplev.c (check_global_declaration): Move to ...
9623         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9624         (analyze_functions): Update call.
9626 2015-09-16  David S. Miller  <davem@davemloft.net>
9628         * lra-constraints.c (simplify_operand_subreg): Do not assume that
9629         lowpart of a SUBREG has offset zero.
9631 2015-09-16  Jeff Law  <law@redhat.com>
9633         PR tree-optimization/47679
9634         * tree-ssa-dom.c (enum expr_kind): Moved from here to
9635         tree-ssa-scopedtables.h.
9636         (struct hashable_expr, class expr_hash_elt): Likewise.
9637         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9638         Move associated methods into tree-ssa-scopedtables.c.
9639         (avail_expr_hash, initialize_expr_from_cond): Similarly.
9640         (hashable_expr_equal_p, add_expr_commutative): Likewise.
9641         (add_hashable_expr): Likewise.
9642         (record_cond): Delete element directly.
9643         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9644         private copy ctor and assignment operator methods.
9645         (expr_elt_hasher): Inline trivial methods.
9646         (initialize_expr_from_cond): Prototype.
9647         * tree-ssa-scopedtables.c: Add necessary includes, functions and
9648         methods that were previously in tree-ssa-dom.c.  Improve various
9649         comments.
9651 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
9653         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9655 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
9657         PR bootstrap/67587
9658         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9659         fixup_partitions.
9661 2015-09-16  Richard Biener  <rguenther@suse.de>
9663         PR middle-end/67253
9664         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9665         location of possibly shared trees.
9667 2015-09-16  Richard Biener  <rguenther@suse.de>
9669         PR middle-end/67271
9670         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9672 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
9674         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9675         offset and size computations instead of HOST_WIDE_INT.
9677 2015-09-16  Richard Biener  <rguenther@suse.de>
9679         PR middle-end/67442
9680         * fold-const.c (extract_muldiv_1): Properly extend multiplication
9681         result before builting a tree via wide_int_to_tree.
9683 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
9685         * Makefile.in: Add memory-block.cc
9686         (pool_allocator::initialize): Use fixed block size.
9687         (pool_allocator::release): Use memory_block_pool.
9688         (pool_allocator::allocate): Likewise.
9689         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9690         object pools.
9691         * cfg.c (initialize_original_copy_tables): Likewise.
9692         * cselib.c (elt_list_pool, elt_loc_list_pool,
9693         cselib_val_pool): Likewise.
9694         * df-problems.c (df_chain_alloc): Likewise.
9695         * df-scan.c (df_scan_alloc): Likewise.
9696         * dse.c (cse_store_info_pool, rtx_store_info_pool,
9697         read_info_type_pool, insn_info_type_pool, bb_info_pool,
9698         group_info_pool, deferred_change_pool): Likewise.
9699         * et-forest.c (et_nodes, et_occurrences): Likewise.
9700         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9701         ipcp_agg_lattice_pool): Likewise.
9702         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9703         * ipa-profile.c (histogram_pool): Likewise.
9704         * ipa-prop.c (ipa_refdesc_pool): Likewise.
9705         * ira-build.c (live_range_pool, allocno_pool, object_pool,
9706         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9707         * ira-color.c (update_cost_record_pool): Likewise.
9708         * lra-lives.c (lra_live_range_pool): Likewise.
9709         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9710         * memory-block.cc: New file.
9711         * memory-block.h: New file.
9712         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9713         * sched-deps.c (sched_deps_init): Likewise.
9714         * sel-sched-ir.c (sched_lists_pool): Likewise.
9715         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9716         * tree-sra.c (access_pool): Likewise.
9717         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9718         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9719         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9720         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9721         * tree-ssa-strlen.c (strinfo_pool): Likewise.
9722         * tree-ssa-structalias.c (variable_info_pool): Likewise.
9723         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9724         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9726 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
9728         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9729         definition.
9730         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9731         call0 ABI.
9733 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
9735         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9736         to pass TLS call argument, according to current ABI.
9737         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9738         callx0 for TLS call, according to current ABI.
9740 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9742         * tree-eh.c (lower_try_finally_dup_block): Clear location information
9743         on stack restore statements.
9744         (decide_copy_try_finally): Do not consider a stack restore statement as
9745         coming from sources.
9747 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
9749         * config/alpha/alpha.c (alpha_expand_block_clear): Use
9750         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9752 2015-09-15  Jeff Law  <law@redhat.com>
9754         PR tree-optimization/47679
9755         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9756         methods and private members.
9757         (avail_exprs_stack): Similarly.  Change type of global
9758         from a pair of expr_hash_elt_t to the new class.
9759         (expr_elt_hasher::hash): Corresponding changes.
9760         (expr_elt_hasher::equal): Similarly.
9761         (avail_expr_hash): Similarly.
9762         (pass_dominator::execute): Similarly.
9763         (dom_opt_dom_walker::thread_across_edge): Similarly.
9764         (record_cond): Similarly.
9765         (dom_opt_dom_walker::before_dom_children): Similarly.
9766         (dom_opt_dom_walker::after_dom_children): Similarly.
9767         (lookup_avail_expr): Likewise.
9768         (initialize_hash_element): Now a expr_hash_elt constructor.
9769         (initialize_hash_element_from_expr): Similarly.
9770         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9771         (free_expr_hash_elt): Call dtor for the element.
9772         (remove_local_expressions_from_table): Now the "pop_to_marker"
9773         method in the available_exprs_stack class.
9774         (avail_expr_stack::record_expr): Method factored out.
9775         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9776         Fix formatting.
9777         (hashable_expr_equal_p): Fix formatting.
9779 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
9781         * input.h (location_get_source_line): Drop "expanded_location"
9782         param in favor of a file and line number.
9783         * input.c (location_get_source_line): Likewise.
9784         (dump_location_info): Update for change in signature of
9785         location_get_source_line.
9786         * diagnostic.c (diagnostic_print_caret_line): Likewise.
9788 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9790         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9791         Bump to 4KB for SJLJ exceptions.
9792         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
9793         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9794         * doc/tm.texi: Regenerate.
9796 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9798         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9799         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
9800         Update prototype.
9802 2015-09-15  Richard Biener  <rguenther@suse.de>
9804         PR tree-optimization/67470
9805         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9806         structure for PHI hoisting by inserting a forwarder block
9807         if appropriate.
9809 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9811         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9812         (arm_option_print): New function.
9814 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9816         PR target/52144
9817         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9818         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9819         Remove flags parameter.
9820         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9821         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9822         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9823         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9824         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9825         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9826         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9827         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9829 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9831         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9833         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9834         AARCH64_VALID_SIMD_DREG_MODE.
9836 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9838         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9839         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9840         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9841         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9842         aarch64_ld4_lane<mode>): Combine together, making...
9843         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9844         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9845         aarch64_st4_lane<mode>): Combine together, making...
9846         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9847         * config/aarch64/iterators.md (nregs): Add comment.
9849 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9851         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9852         Change operand mode from <V_TWO_ELEM> to BLK.
9853         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9854         (aarch64_vec_store_lanesoi_lane<mode): Likewise
9855         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9856         (aarch64_ld2_lane<mode>): Likewise.
9857         (aarch64_st2_lane<VQ:mode>): Likewise.
9858         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9860 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9862         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9863         Change operand mode from <V_FOUR_ELEM> to BLK.
9864         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9865         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9866         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9867         (aarch64_ld4_lane<mode>): Likewise.
9868         (aarch64_st4_lane<mode>): Likewise.
9869         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9871 2015-09-15  Richard Biener  <rguenther@suse.de>
9873         PR middle-end/67563
9874         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9875         transfer EH info from old to new stmt.
9876         (replace_call_with_value): Likewise.
9877         (replace_call_with_call_and_fold): Likewise.
9878         (gimple_fold_builtin_memory_op): Likewise.
9879         (gimple_fold_builtin_memset): Likewise.
9880         (gimple_fold_builtin_stpcpy): Likewise.
9881         (gimple_fold_call): Likewise.
9883 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9885         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9886         comment.
9887         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9888         (aarch64_simd_intEI_type_node): Likewise.
9889         (aarch64_simd_builtin_std_type): Remove EImode case.
9890         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9891         * config/aarch64/aarch64-modes.def: Remove EImode.
9893 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9895         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9896         Change operand mode from <V_THREE_ELEM> to BLK.
9897         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9898         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9899         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9900         (aarch64_ld3_lane<mode>): Likewise.
9901         (aarch64_st3_lane<mode>): Likewise.
9902         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9904 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9906         * config/aarch64/aarch64-simd.md
9907         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9908         Change all TImode operands to BLKmode.
9909         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9910         Change all EImode operands to BLKmode.
9911         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9912         Change all OImode operands to BLKmode.
9914         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9915         and call set_mem_size.
9916         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9918         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9920 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9922         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9923         to...
9924         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9926         (vec_store_lanesci_lane<mode>): Rename to...
9927         (aarch64_vec_store_lanesci_lane<mode>): ...this.
9929         (vec_store_lanesxi_lane<mode>): Rename to...
9930         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9932         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9933         aarch64_st4_lane<mode>): Follow renaming.
9935 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9937         * config/s390/s390.c (s390_const_operand_ok): Add missing
9938         brackets.
9940 2015-09-15  Richard Biener  <rguenther@suse.de>
9942         PR lto/67568
9943         * lto-streamer.h (lto_location_cache::current_sysp): Properly
9944         initialize.
9945         * lto-streamer-out.c (clear_line_info): Likewise.
9947 2015-09-15  Richard Biener  <rguenther@suse.de>
9949         * doc/match-and-simplify.texi: Fix wording.
9951 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
9953         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9954         unnecessary type conversion in op1.
9956 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9958         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9959         (dup_block_and_redirect): Delete function.
9960         (can_dup_for_shrink_wrapping): New function.
9961         (fix_fake_fallthrough_edge): New function.
9962         (try_shrink_wrapping): Rewrite function.
9963         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9965 2015-09-14  Rich Felker  <dalias@libc.org>
9967         * configure.ac: Change target pattern for sh TLS support
9968         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9969         * configure: Regenerate.
9971 2015-09-14  Jeff Law  <law@redhat.com>
9973         PR tree-optimization/47679
9974         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9975         type rather than void *.
9977 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9979         PR fortran/67460
9980         * diagnostic.c (diagnostic_initialize): Do not set
9981         some_warnings_are_errors.
9982         (diagnostic_finish): Use DK_WERROR count instead.
9983         (diagnostic_report_diagnostic): Do not set
9984         some_warnings_are_errors.
9985         * diagnostic.h (struct diagnostic_context): Remove
9986         some_warnings_are_errors.
9988 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
9990         * config/sparc/predicates.md (const_all_ones_operand): Use
9991         CONSTM1_RTX to simplify definition.
9993 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
9995         PR target/67061
9996         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9997         Handle call insns.
9999 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
10001         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10002         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10003         OPT_fshow_column to handled saved option cases.
10004         (append_compiler_options): Do not skip the above added options.
10006 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10008         PR target/63304
10009         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10010         nopcrelative_literal_loads.
10011         (aarch64_classify_address): Likewise.
10012         (aarch64_constant_pool_reload_icode): Define.
10013         (aarch64_secondary_reload): Handle secondary reloads for
10014         literal pools.
10015         (aarch64_override_options): Handle nopcrelative_literal_loads.
10016         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10017         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10018         Define.
10019         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10020         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10021         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10022         predicate.
10023         * doc/invoke.texi (mpc-relative-literal-loads): Document.
10025 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
10027         PR middle-end/67401
10028         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10029         sync_compare_and_swap_optab libcall to target_oval.
10031 2015-09-14  Marek Polacek  <polacek@redhat.com>
10033         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10034         value.
10035         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10037 2015-09-11  Mark Wielaard  <mjw@redhat.com>
10039         PR c/28901
10040         * toplev.c (check_global_declaration): Check and use
10041         warn_unused_const_variable.
10042         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10043         (-Wunused-variable): Remove non-constant. For C implies
10044         -Wunused-const-variable.
10045         (-Wunused-const-variable): New.
10047 2015-09-14  Richard Biener  <rguenther@suse.de>
10049         * doc/match-and-simplify.texi: Update for changed syntax
10050         of inner ifs and the new switch expression.
10052 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10054         * config/i386/haswell.md: New file describing Haswell pipeline.
10055         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10056         haswell-like processors.
10057         (ix86_reassociation_width): Increase reassociation width for 64-bit
10058         Haswell processor family.
10059         * config/i386/i386.md: Introduce haswell cpu and include new md file.
10061 2015-09-14  Richard Biener  <rguenther@suse.de>
10063         * doc/match-and-simplify.texi: Fixup some formatting issues
10064         and document the 's' flag.
10066 2015-09-13  Olivier Hainque  <hainque@adacore.com>
10067             Eric Botcazou  <ebotcazou@adacore.com>
10069         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10070         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
10071         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10072         (TARGET_CPU_gr5): Likewise.
10073         (TARGET_CPU_gr6): Likewise.
10074         (MULTILIB_DEFAULTS): Likewise.
10075         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10076         for mcpu=gr5 and mcpu=gr6.
10077         (MULTILIB_DIRNAMES): Adjust accordingly.
10079 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10081         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10082         (mem_ref_p): Likewise.
10083         (outermost_indep_loop): Adjust.
10084         (mem_ref_in_stmt): Likewise.
10085         (determine_max_movement): Likewise.
10086         (mem_ref_alloc): Likewise.
10087         (record_mem_ref_loc): Likewise.
10088         (set_ref_stored_in_loop): Likewise.
10089         (mark_ref_stored): Likewise.
10090         (gather_mem_refs_stmt): Likewise.
10091         (mem_refs_may_alias_p): Likewise.
10092         (for_all_locs_in_loop): Likewise.
10093         (struct rewrite_mem_ref_loc): Likewise.
10094         (rewrite_mem_refs): Likewise.
10095         (struct first_mem_ref_loc_1): Likewise.
10096         (first_mem_ref_loc): Likewise.
10097         (struct sm_set_flag_if_changed): Likewise.
10098         (execute_sm_if_changed_flag_set): Likewise.
10099         (execute_sm): Likewise.
10100         (hoist_memory_references):
10101         (struct ref_always_accessed): Likewise.
10102         (ref_always_accessed_p): Likewise.
10103         (refs_independent_p): Likewise.
10104         (record_dep_loop): Likewise.
10105         (ref_indep_loop_p_1): Likewise.
10106         (ref_indep_loop_p_2): Likewise.
10107         (ref_indep_loop_p): Likewise.
10108         (can_sm_ref_p): Likewise.
10109         (find_refs_for_sm): Likewise.
10110         (tree_ssa_lim_finalize): Likewise.
10112 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10114         * dwarf2out.c (dw_attr_ref): Remove typedef.
10115         (dw_line_info_ref): Likewise.
10116         (pubname_ref): Likewise.
10117         (dw_ranges_ref): Likewise.
10118         (dw_ranges_by_label_ref): Likewise.
10119         (comdat_type_node_ref): Likewise.
10120         (get_AT): Adjust.
10121         (get_AT_low_pc): Likewise.
10122         (get_AT_hi_pc): Likewise.
10123         (get_AT_string): Likewise.
10124         (get_AT_flag): Likewise.
10125         (get_AT_unsigned): Likewise.
10126         (get_AT_ref): Likewise.
10127         (get_AT_file): Likewise.
10128         (remove_AT): Likewise.
10129         (print_die): Likewise.
10130         (check_die): Likewise.
10131         (die_checksum): Likewise.
10132         (attr_checksum_ordered): Likewise.
10133         (struct checksum_attributes): Likewise.
10134         (collect_checksum_attributes): Likewise.
10135         (die_checksum_ordered): Likewise.
10136         (same_die_p): Likewise.
10137         (is_declaration_die): Likewise.
10138         (clone_die): Likewise.
10139         (clone_as_declaration): Likewise.
10140         (copy_declaration_context): Likewise.
10141         (break_out_comdat_types): Likewise.
10142         (copy_decls_walk): Likewise.
10143         (output_location_lists): Likewise.
10144         (external_ref_hasher::hash): Likewise.
10145         (optimize_external_refs_1): Likewise.
10146         (build_abbrev_table): Likewise.
10147         (size_of_die): Likewise.
10148         (unmark_all_dies): Likewise.
10149         (size_of_pubnames): Likewise.
10150         (output_die_abbrevs): Likewise.
10151         (output_die): Likewise.
10152         (output_pubnames): Likewise.
10153         (add_ranges_num): Likewise.
10154         (add_ranges_by_labels): Likewise.
10155         (add_high_low_attributes): Likewise.
10156         (gen_producer_string): Likewise.
10157         (dwarf2out_set_name): Likewise.
10158         (new_line_info_table): Likewise.
10159         (prune_unused_types_walk_attribs): Likewise.
10160         (prune_unused_types_update_strings): Likewise.
10161         (prune_unused_types): Likewise.
10162         (resolve_addr): Likewise.
10163         (optimize_location_lists_1): Likewise.
10164         (index_location_lists): Likewise.
10165         (dwarf2out_finish): Likewise.
10167 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10169         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10171 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10173         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10174         (dump_asserts_for): Adjust.
10175         (register_new_assert_for): Likewise.
10176         (process_assert_insertions): Likewise.
10177         (insert_range_assertions): Likewise.
10179 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10181         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10182         and remove typedef.
10183         (new_temp_expr_table): Adjust.
10184         (free_temp_expr_table): Likewise.
10185         (version_to_be_replaced_p): Likewise.
10186         (make_dependent_on_partition): Likewise.
10187         (add_to_partition_kill_list): Likewise.
10188         (remove_from_partition_kill_list): Likewise.
10189         (add_dependence): Likewise.
10190         (finished_with_expr): Likewise.
10191         (process_replaceable): Likewise.
10192         (kill_expr): Likewise.
10193         (kill_virtual_exprs): Likewise.
10194         (mark_replaceable): Likewise.
10195         (find_replaceable_in_bb): Likewise.
10196         (find_replaceable_exprs): Likewise.
10197         (debug_ter): Likewise.
10199 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10201         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10202         (struct btr_user): Rename from btr_user_s.
10203         (struct btr_def): Rename from btr_def_s.
10204         (find_btr_def_group): Adjust.
10205         (add_btr_def): Likewise.
10206         (new_btr_user): Likewise.
10207         (note_other_use_this_block): Likewise.
10208         (compute_defs_uses_and_gen): Likewise.
10209         (link_btr_uses): Likewise.
10210         (build_btr_def_use_webs): Likewise.
10211         (block_at_edge_of_live_range_p): Likewise.
10212         (btr_def_live_range): Likewise.
10213         (combine_btr_defs): Likewise.
10214         (move_btr_def): Likewise.
10215         (migrate_btr_def): Likewise.
10216         (migrate_btr_defs): Likewise.
10218 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10220         * var-tracking.c (shared_hash_def): Rename to shared_hash.
10221         (shared_hash): Remove typedef.
10222         (struct dataflow_set): Adjust.
10223         (shared_hash_unshare): Likewise.
10224         (dataflow_set_merge): Likewise.
10225         (vt_initialize): Likewise.
10226         (vt_finalize): Likewise.
10228 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10230         * var-tracking.c (struct location_chain): Rename from
10231         location_chain_def.
10232         (struct variable_part): Adjust.
10233         (variable_htab_free): Likewise.
10234         (unshare_variable): Likewise.
10235         (get_init_value): Likewise.
10236         (get_addr_from_local_cache): Likewise.
10237         (drop_overlapping_mem_locs): Likewise.
10238         (val_reset): Likewise.
10239         (struct variable_union_info): Likewise.
10240         (variable_union): Likewise.
10241         (find_loc_in_1pdv): Likewise.
10242         (insert_into_intersection): Likewise.
10243         (intersect_loc_chains): Likewise.
10244         (canonicalize_loc_order_check): Likewise.
10245         (canonicalize_values_mark): Likewise.
10246         (canonicalize_values_star): Likewise.
10247         (canonicalize_vars_star): Likewise.
10248         (variable_merge_over_cur): Likewise.
10249         (remove_duplicate_values): Likewise.
10250         (variable_post_merge_new_vals): Likewise.
10251         (variable_post_merge_perm_vals): Likewise.
10252         (find_mem_expr_in_1pdv): Likewise.
10253         (dataflow_set_preserve_mem_locs): Likewise.
10254         (dataflow_set_remove_mem_locs): Likewise.
10255         (variable_part_different_p): Likewise.
10256         (onepart_variable_different_p): Likewise.
10257         (find_src_set_src): Likewise.
10258         (dump_var): Likewise.
10259         (set_slot_part): Likewise.
10260         (clobber_slot_part): Likewise.
10261         (delete_slot_part): Likewise.
10262         (vt_expand_var_loc_chain): Likewise.
10263         (emit_note_insn_var_location): Likewise.
10264         (vt_finalize): Likewise.
10266 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10268         * dse.c (store_info_t): Remove typedef.
10269         (group_info_t): Likewise.
10270         (const_group_info_t): Likewise.
10271         (deferred_change_t): Likewise.
10272         (get_group_info): Adjust.
10273         (free_store_info): Likewise.
10274         (canon_address): Likewise.
10275         (clear_rhs_from_active_local_stores): Likewise.
10276         (record_store): Likewise.
10277         (replace_read): Likewise.
10278         (check_mem_read_rtx): Likewise.
10279         (scan_insn): Likewise.
10280         (remove_useless_values): Likewise.
10281         (dse_step1): Likewise.
10282         (dse_step2_init): Likewise.
10283         (dse_step2_nospill): Likewise.
10284         (scan_stores_nospill): Likewise.
10285         (scan_reads_nospill): Likewise.
10286         (dse_step3_exit_block_scan): Likewise.
10287         (dse_step3): Likewise.
10288         (dse_step5_nospill): Likewise.
10289         (dse_step6): Likewise.
10291 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10293         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10294         (alias_set_entry): Remove typedef.
10295         (alias_set_subset_of): Adjust.
10296         (alias_sets_conflict_p): Likewise.
10297         (init_alias_set_entry): Likewise.
10298         (get_alias_set): Likewise.
10299         (new_alias_set): Likewise.
10300         (record_alias_subset): Likewise.
10302 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
10304         * doc/install.texi (Downloading the source): Mark up
10305         contrib/download_prerequisites properly and drop leading "./".
10307 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10309         * config/arc/arc.h: Remove define of STRUCT_VALUE.
10310         * config/lm32/lm32.h: Likewise.
10311         * config/mep/mep.h: Likewise.
10312         * config/visium/visium.h: Likewise.
10313         * system.h: Poison STRUCT_VALUE macro.
10315 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
10317         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10318         CONSTANT_P operands.
10320 2015-09-11  David S. Miller  <davem@davemloft.net>
10322         * config/sparc/constraints.md: Make "U" constraint a real register
10323         constraint.
10324         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10325         (D_MODES, DF_MODES): Add missing cast.
10326         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10327         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10328         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10329         cost to 8.
10330         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10331         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10332         provide these insn when flag_pic.
10334 2015-09-11  Jeff Law  <law@redhat.com>
10336         PR tree-optimization/47679
10337         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10338         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10339         member with m_.  Update inline member functions as necessary.  Add
10340         toplevel comment.
10341         * tree-ssa-scopedtables.c: Update const_and_copies's member
10342         functions to use m_ prefix to access the stack.
10344 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10346         * graphite-optimize-isl.c (disable_tiling): Remove.
10347         (get_schedule_for_band): Do not use disable_tiling.
10348         (get_prevector_map): Delete function.
10349         (enable_polly_vector): Remove.
10350         (get_schedule_for_band_list): Remove dead code.
10352 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10354         * graphite-optimize-isl.c (get_tile_map): Refactor.
10355         (get_schedule_for_band): Same.
10356         (getScheduleForBand): Same.
10357         (get_prevector_map): Same.
10358         (get_schedule_for_band_list): Same.
10359         (get_schedule_map): Same.
10360         (get_single_map): Same.
10361         (apply_schedule_map_to_scop): Same.
10362         (optimize_isl): Same.
10364 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10366         PR target/63304
10367         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10368         (movtf): Delete.
10369         * config/aarch64/iterators.md (GPF_TF_F16): New.
10370         (GPF_F16): Delete.
10372 2015-09-10  Nathan Sidwell  <nathan@acm.org>
10374         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10375         (nvptx_reorg): Adjust comments.
10377 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
10379         PR bootstrap/67363
10380         * configure.ac: Check if setenv and unsetenv are declared.
10381         * configure: Rebuild.
10382         * config.in: Rebuild.
10383         * system.h: Declare setenv and unsetenv if not declared.
10385 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10387         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10388         commentary to simplify permute mask adjustment equation.
10389         (special_handling_values): Add SH_VPERM.
10390         (const_load_sequence_p): New function.
10391         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10392         the mask loaded from the constant pool.
10393         (adjust_vperm): New function.
10394         (handle_special_swappables): Call adjust_vperm.
10395         (dump_swap_insn_table): Handle SH_VPERM.
10397 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10399         * shrink-wrap.c (requires_stack_frame_p): Remove static.
10400         * shrink-wrap.h (requires_stack_frame_p): Put back.
10402 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
10404         * reload1.c (elimination_costs_in_insn): Locally turn
10405         -Wmaybe-uninitialized into a warning.
10407 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
10409         * shrink-wrap.c (requires_stack_frame_p): Make static.
10410         (prepare_shrink_wrap): Likewise.
10411         (dup_block_and_redirect): Likewise.
10412         * shrink-wrap.h: Remove declarations of those functions.
10414 2015-09-10  Mark Wielaard  <mjw@redhat.com>
10416         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10418 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
10420         PR target/67506
10421         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10422         missing simplify_gen_subreg.
10424 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10426         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10427         the vector element is bigger than 64 bit.
10429 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10431         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10432         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10434 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10436         * config/s390/s390.c: Add V1TImode to constant pool modes.
10438 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10440         PR target/67439
10441         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10442         predicate.  Set predicable_short_it attr to "no".
10444 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
10446         PR rtl-optimization/67421
10447         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10448         left wide shift tranformation.
10450 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
10452         * common/config/arc/arc-common.c: Remove references to A5.
10453         * config/arc/arc-opts.h: Likewise.
10454         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10455         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10456         * config/arc/t-arc-newlib: Likewise.
10458 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
10460         * config/arc/arc.md (length): Fix attribute length for conditional
10461         executed instructions with long immediate.
10463 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10465         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10466         type for second alternative.
10468 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
10470         * doc/invoke.texi (Downloading GCC): Mention
10471         contrib/download_prerequisites script.
10473 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
10475         PR c++/67523
10476         * gimplify.c (gimplify_omp_for): If inner stmt is not found
10477         for combined loop, assert seen_error () and return GS_ERROR.
10479         PR middle-end/67521
10480         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10481         if decl is already in outer->variables.
10483         PR middle-end/67517
10484         * gimplify.c (gimplify_scan_omp_clauses): Instead of
10485         asserting that decl is not specified in octx->variables,
10486         break out of the loop if it is.
10488         PR c++/67514
10489         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10490         iterator is not explicitly determined, but is defined inside
10491         of the combined workshare region, handle it like if it has
10492         DECL_EXPR in OMP_FOR_PRE_BODY.
10494 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10496         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10497         (*cmp<mode>): Add assembler spacing.
10498         (setcc_int<mode>, set_cc_float<mode>): Likewise.
10499         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10500         level.
10501         (write_func_decl_from_insn): Refactor argument loops & comma emission.
10502         (nvptx_expand_call): Likewise.
10503         (nvptx_output_call_insn): Likewise.
10504         (nvptx_reorg_subreg): Add spacing.
10506 2015-09-09  Marek Polacek  <polacek@redhat.com>
10508         PR middle-end/67512
10509         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10510         for comparisons.
10512 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
10514         PR c++/53184
10515         * doc/invoke.texi ([Wsubobject-linkage]): Document.
10517 2015-09-09  Tom de Vries  <tom@codesourcery.com>
10519         * params-list.h: Add missing copyright notice.
10521 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10523         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10524         sel_truesi, not andsi.
10526 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10528         * config/arm/arm.md (*subsi3_compare0): Rename to...
10529         (subsi3_compare0): ... This.
10530         (modsi3): New define_expand.
10531         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10532         when operand is power of 2.
10534 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10536         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10537         (*neg<mode>2_compare0): Rename to...
10538         (neg<mode>2_compare0): ... This.
10539         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10540         Move check for speed inside the if-then-elses.  Reflect
10541         CSNEG sequence in MOD by power of 2 case.
10543 2015-09-09  Alan Modra  <amodra@gmail.com>
10545         PR target/67378
10546         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10547         reload replacement for PRE_MODIFY address reg.
10549 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
10551         PR tree-optimization/53852
10552         * config.in: Regenerate.
10553         * configure: Regenerate.
10554         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10555         * graphite-optimize-isl.c (optimize_isl): Stop computation when
10556         PARAM_MAX_ISL_OPERATIONS is reached.
10557         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10558         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10559         result equal to isl_stat_ok as the status now can be isl_error_quota.
10560         (subtract_commutative_associative_deps): Same.
10561         (compute_deps): Same.
10563 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10564             Sebastian Pop  <s.pop@samsung.com>
10566         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10567         Return the parameter if it was saved in corresponding
10568         parameter_rename_map of the region.
10569         (copy_def): Copy def from sese region to the newly created region.
10570         (copy_internal_parameters): Copy all the internal parameters defined
10571         within a region to the newly created region.
10572         (graphite_regenerate_ast_isl): Copy parameters to the new region before
10573         translating isl to gimple.
10574         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10575         the loop-nest does not have any data-references.
10576         (build_graphite_scops): Create a scop only when there is at least one
10577         loop inside it.
10578         (contains_only_close_phi_nodes): Deleted.
10579         (print_graphite_scop_statistics): Deleted
10580         (print_graphite_statistics): Deleted
10581         (limit_scops): Deleted.
10582         (build_scops): Removed call to limit_scops.
10583         * sese.c (new_sese): Construct.
10584         (free_sese): Destruct.
10585         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10586         added.
10587         (set_rename): Pass sese region so that parameters inside the region can
10588         be added to its parameter_rename_map.
10589         (rename_uses): Pass sese region.
10590         (graphite_copy_stmts_from_block): Do not copy parameters that have been
10591         generated in the header of the scop. For each SSA_NAME in the
10592         parameter_rename_map rename its usage.
10593         (invariant_in_sese_p_rec): Return false if tree t is defined outside
10594         sese region.
10595         (scalar_evolution_in_region): If the tree t is invariant just return t.
10596         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10597         struct sese to keep track of all the parameters which need renaming.
10598         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10599         any data-refs.
10600         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10602 2015-09-08  Tom de Vries  <tom@codesourcery.com>
10604         * Makefile.in (generated_files): Add params.list.
10605         (params.list, s-params.list): Add rule.
10606         * params.h (enum compiler_param): Include params-list.h.  Move define
10607         DEFPARAM, include params.def and undef DEFPARAM ...
10608         * params-list.h: ... here.  New file.
10610 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
10612         * pretty-print.h (printer_fn): Fix typo in comment.
10614 2015-09-07  Jeff Law  <law@redhat.com>
10616         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10618 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10620         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10621         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10622         (arm_neon_fp16_hw): New.
10624 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10626         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10627         UNITS_PER_WORD >= 4.
10629 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10631         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10632         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10633         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10634         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10635         (aarch64_float_extend_lo_v2df): Rename to...
10636         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10638         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10639         (float_extend_lo): Add v4sf.
10641         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10642         * config/aarch64/iterators.md (VQ_HSF): New iterator.
10643         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10644         (Vwide): New mode_attr.
10646 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10648         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10649         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10650         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10651         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10652         V4HF and V8HF variants to iterator.
10654         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10656         * config/aarch64/iterators.md (VDQF_F16): New.
10657         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10659 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10661         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10662         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10663         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10664         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10665         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10666         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10667         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10668         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10669         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10670         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10671         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10672         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10673         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10674         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10675         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10676         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10677         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10678         vld1q_dup_f16): New.
10680 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10682         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10683         Reparameterize to...
10684         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10685         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10686         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10688         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10689         v8hf variant.
10690         (float_truncate_lo_): Use BUILTIN_VDF iterator.
10692         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10694         * config/aarch64/iterators.md (VDF, Vdtype): New.
10695         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10697 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10699         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10700         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10701         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10702         Add __builtin_aarch64_simd_hf.
10703         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10704         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10705         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10706         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10707         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10708         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10709         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10710         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10711         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10713         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10714         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10715         (VDC, Vdbl): Add V4HF.
10717 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10719         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10720         V4HFmode and V8HFmode.
10721         (aarch64_split_simd_move): Add case for V8HFmode.
10722         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10723         (aarch64_simd_builtin_std_type): Handle HFmode.
10724         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10726         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10727         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10728         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10730         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10731         Float16x8_t.
10733         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10734         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10735         New typedefs.
10736         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10737         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10738         vst1q_lane_f16): New.
10739         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10740         (VALLDI_F16, VALL_F16): New.
10741         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10742         Add cases for V4HF and V8HF.
10743         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10745 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10747         * config/arm/arm-builtins.c (VAR11, VAR12): New.
10748         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10749         vld4_dup): Add v4hf variant.
10750         (vget_high, vget_low): Add v8hf variant.
10751         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10752         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10753         v4hf and v8hf variants.
10755         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10756         (VDX): Add V4HF.
10757         (V_DOUBLE): Add case for V4HF.
10758         (VQX): Add V8HF.
10759         (V_HALF): Add case for V8HF.
10760         (VDQX): Add V4HF, V8HF.
10761         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10762         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10764         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10765         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10766         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10767         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10768         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10769         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10770         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10771         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10772         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10774         (neon_vcreate, neon_vreinterpretv8qi<mode>,
10775         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10776         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10777         Change VDX to VD_RE.
10779         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10780         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10781         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10783         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10784         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10785         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10786         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10787         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10788         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10789         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10790         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10791         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10793 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10795         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10796         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10797         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10798         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10799         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10800         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10801         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10802         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10803         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10804         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10805         New.
10807 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10809         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10811         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10813         * config/arm/arm-builtins.c (v8hf_UP): New.
10814         (arm_init_simd_builtin_types): Initialise Float16x8_t.
10816         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10818         * config/arm/arm_neon.h (float16x8_t): New typedef.
10820 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10822         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10823         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10824         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10825         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10826         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10827         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10828         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10829         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10830         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10831         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10833 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
10835         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10836         non-alphanumeric characters in the symbol name.
10838 2015-09-07  Marek Polacek  <polacek@redhat.com>
10840         PR inline-asm/67448
10841         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10842         a memory input.
10844 2015-09-07  Marek Polacek  <polacek@redhat.com>
10846         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10848 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
10850         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10851         not warn.
10853 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
10855         PR middle-end/67452
10856         * tree-ssa-live.c: Include cfgloop.h.
10857         (remove_unused_locals): Clear loop->simduid if simduid is about
10858         to be removed from cfun->local_decls.
10860 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10862         PR target/65210
10863         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10864         attribute as well.
10866 2015-09-04  Tom de Vries  <tom@codesourcery.com>
10868         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10870 2015-09-04  Jeff Law  <law@redhat.com>
10872         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10873         unnecessary constructor.  It's now trivial and implemented inside...
10874         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10875         constructor.  Add comments to various methods.  Remove unused
10876         private fields.
10877         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10878         * tree-vrp.c (identify_jump_threads): Likewise.
10879         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10880         indentation issues.
10881         (thread_across_edge): Similarly.
10882         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10883         arguments in constructor call.
10885 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
10887         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10888         temp path contains a '-'.
10890 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10891             Petr Murzin  <petr.murzin@intel.com>
10892             Kirill Yukhin  <kirill.yukhin@intel.com>
10894         * config/i386/i386-builtin-types.def
10895         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10896         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10897         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10898         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10899         * config/i386/i386.c
10900         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10901         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10902         IX86_BUILTIN_SCATTERALTDIV16SI.
10903         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10904         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10905         __builtin_ia32_scatteraltdiv8si.
10906         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10907         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10908         IX86_BUILTIN_SCATTERALTDIV16SI.
10909         (ix86_vectorize_builtin_scatter): New.
10910         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10911         ix86_vectorize_builtin_scatter.
10913 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10914             Petr Murzin  <petr.murzin@intel.com>
10915             Kirill Yukhin  <kirill.yukhin@intel.com>
10917         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10918         * doc/tm.texi: Regenerate.
10919         * target.def: Add scatter builtin.
10920         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10921         for loads/stores in case of gather/scatter accordingly.
10922         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10923         STMT_VINFO_GATHER_P(S).
10924         (vect_check_gather): Rename to ...
10925         (vect_check_gather_scatter): this.
10926         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10927         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10928         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10929         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10930         variable and new checkings for it accordingly.
10931         * tree-vect-stmts.c
10932         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10933         STMT_VINFO_GATHER_P(S).
10934         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10935         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10937 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10939         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10940         define_insn.
10941         (mulv16qi3): New define_expand.
10943 2015-09-03  Martin Sebor  <msebor@redhat.com>
10945         PR c/66516
10946         * doc/extend.texi (Other Builtins): Document when the address
10947         of a built-in function can be taken.
10949 2015-09-03  Richard Biener  <rguenther@suse.de>
10951         * dwarf2out.c (flush_limbo_die_list): Split out from ...
10952         (dwarf2out_early_finish): ... here.
10953         (dwarf2out_finish): Do not call dwarf2out_early_finish but
10954         flush_limbo_die_list.  Assert we have no deferred asm names.
10956 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10958         * optabs.c (expand_binop): Don't create a broadcast vector with a
10959         source element wider than the inner mode.
10961 2015-09-03  Richard Biener  <rguenther@suse.de>
10963         * varasm.c (output_constant): Use fold_convert instead of
10964         wide_int_to_tree.
10966 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10968         PR tree-optimization/65637
10969         * omp-low.c (expand_omp_for_static_chunk): Handle case that
10970         fin_bb has 2 predecessors.
10972 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10974         PR tree-optimization/65637
10975         * omp-low.c (find_phi_with_arg_on_edge): New function.
10976         (expand_omp_for_static_chunk): Fix inner loop phi.
10978 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10980         PR tree-optimization/65637
10981         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10982         that head is NULL.
10984 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10986         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10988 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10990         * doc/invoke.texi (parloops-chunk-size): Add item.
10991         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10992         * tree-parloops.c: Include params.h.
10993         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10994         param parloops-chunk-size is used.
10996 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10998         PR middle-end/67351
10999         * fold-const.c (fold_binary_loc) : Move
11000         Transform (x >> c) << c into x & (-1<<c) or
11001         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11002         types using simplify and match.
11003         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11004         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11006 2015-09-03  Richard Biener  <rguenther@suse.de>
11008         PR ipa/66705
11009         * tree-ssa-structalias.c (ctor_for_analysis): New function.
11010         (create_variable_info_for_1): Use ctor_for_analysis instead
11011         of get_constructor.
11012         (create_variable_info_for): Likewise.
11014 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
11016         PR ipa/67280
11017         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11018         in new callgraph edge.
11020 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
11022         PR target/59810
11023         PR target/63652
11024         PR target/63653
11025         * config/aarch64/aarch64-simd.md
11026         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11027         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11028         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11029         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11031 2015-09-02  Alan Modra  <amodra@gmail.com>
11033         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11034         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11035         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11037 2015-09-02  Alan Modra  <amodra@gmail.com>
11039         PR target/67417
11040         * config/rs6000/predicates.md (current_file_function_operand): Don't
11041         return true for weak symbols.
11042         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11044 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11045             Andrew Bennett  <andrew.bennett@imgtec.com>
11047         * config/mips/mips-opts.h (mips_cb_setting): New enum.
11048         * config/mips/mips-protos.h: Add definitions for
11049         mips_output_jump and mips_output_equal_conditional_branch
11050         * config/mips/mips.c (MIPS_JR): Change to support the
11051         JIC instruction.
11052         (mips_emit_compare): Add support for the MIPS R6 conditional
11053         compact branches.
11054         (mips_process_sync_loop): Likewise.
11055         (mips_output_order_conditional_branch): Likewise.
11056         (mips16_build_call_stub): Change MIPS_CALL to
11057         mips_output_jump.
11058         (mips_print_operand_punctuation): Update 's' case to only
11059         apply to micromips r2.
11060         (mips_adjust_insn_length): Add support for forbidden slot
11061         hazards.
11062         (mips_avoid_hazard): Likewise.
11063         (mips_reorg_process_insns): Likewise.
11064         (mips_output_jump): New function.
11065         (mips_output_equal_conditional_branch): Likewise.
11066         (mips_output_conditional_branch): Use jrc/bc if compact
11067         branch support is enabled.  Ensure the forbidden slots
11068         between the two branch instructions is filled with a nop.
11069         (mips_option_override): Add support to process the compact
11070         branch option and set the correct defaults.  Prevent
11071         non-explict relocs being using for MIPS R6.
11072         (mips_trampoline_init): Add compact branch support.
11073         (mips_mult_zero_zero_cost): Allow zero initialisation of
11074         accumulators with TARGET_DSP.
11075         * config/mips/mips.h (TARGET_CB_NEVER): New define.
11076         (TARGET_CB_MAYBE): New define.
11077         (TARGET_CB_ALWAYS): New define.
11078         (ISA_HAS_DELAY_SLOTS): New define.
11079         (ISA_HAS_COMPACT_BRANCHES): New define.
11080         (ISA_HAS_JRC): New define.
11081         (MIPS_BRANCH_C): New define.
11082         (MIPS_CALL): Removed.
11083         (MICROMIPS_J): Removed.
11084         * config/mips/mips.md (compact_form): New attr.
11085         (hazard): Add support for forbidden slots.
11086         (define_delay): Add support for compact branches.
11087         (*branch_order<mode>): Likewise.
11088         (*branch_order<mode>_inverted): Likewise.
11089         (*branch_equality<mode>): Likewise.
11090         (*branch_equality<mode>_inverted): Likewise.
11091         (*jump_absolute): Likewise.
11092         (*jump_pic): Likewise.
11093         (indirect_jump): Use mips_output_jump to produce assembly output.
11094         (tablejump_<mode>"): Likewise.
11095         (*<optab>"): Likewise.
11096         (<optab>_internal): Likewise.
11097         (sibcall_internal): Likewise.
11098         (sibcall_value_internal): Likewise.
11099         (sibcall_value_multiple_internal): Likewise.
11100         (call_internal): Likewise.
11101         (call_split): Likewise.
11102         (call_internal_direct): Likewise.
11103         (call_direct_split): Likewise.
11104         (call_value_internal): Likewise.
11105         (call_value_split): Likewise.
11106         (call_value_internal_direct): Likewise.
11107         (call_value_direct_split): Likewise.
11108         (call_value_multiple_internal): Likewise.
11109         (call_value_multiple_split): Likewise.
11110         (mips_get_fcsr_mips16_<mode>): Likewise.
11111         (mips_set_fcsr_mips16_<mode>): Likewise.
11112         (tls_get_tp_mips16_<mode>): Likewise.
11113         * config/mips/mips.opt: Add -mcompact-branches option.
11114         * config/mips/predicates.md (order_operator): Ensure the
11115         conditional compact branches are only used if the ISA them.
11116         * doc/invoke.texi: Document -mcompact-branches option.
11118 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
11120         PR target/61578
11121         * lra-lives.c (process_bb_lives): Process move pseudos with the
11122         same value for copies and preferences
11123         * lra-constraints.c (match_reload): Create match reload pseudo
11124         with the same value from single dying input pseudo.
11126 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
11128         PR target/67405
11129         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11131 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
11133         * trans-mem.c: Add contributed-by.
11134         * trans-mem.h: Same.
11136 2015-09-01  Richard Biener  <rguenther@suse.de>
11138         * expr.c (expand_expr_real_1): For expanding TERed defs
11139         set the current location to that of the def if not UNKNOWN.
11141 2015-09-01  David Sherwood  <david.sherwood@arm.com>
11143         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11145 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11147         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11148         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
11149         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11150         Include rtl-iter.h.
11151         (noce_simple_bbs): New function.
11152         (noce_try_move): Bail if basic blocks are not simple.
11153         (noce_try_store_flag): Likewise.
11154         (noce_try_store_flag_constants): Likewise.
11155         (noce_try_addcc): Likewise.
11156         (noce_try_store_flag_mask): Likewise.
11157         (noce_try_cmove): Likewise.
11158         (noce_try_minmax): Likewise.
11159         (noce_try_abs): Likewise.
11160         (noce_try_sign_mask): Likewise.
11161         (noce_try_bitop): Likewise.
11162         (bbs_ok_for_cmove_arith): New function.
11163         (noce_emit_all_but_last): Likewise.
11164         (noce_emit_insn): Likewise.
11165         (noce_emit_bb): Likewise.
11166         (noce_try_cmove_arith): Handle non-simple basic blocks.
11167         (insn_valid_noce_process_p): New function.
11168         (contains_mem_rtx_p): Likewise.
11169         (bb_valid_for_noce_process_p): Likewise.
11170         (noce_process_if_block): Allow non-simple basic blocks
11171         where appropriate.
11173 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
11175         * tree-ssa-dom.c (record_equivalences_from_phis,
11176         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11177         (lookup_avail_expr): Likewise, and remove comment and unused temp.
11179 2015-09-01  Nick Clifton  <nickc@redhat.com>
11181         * config/msp430/msp430.opt (mcpu): Fix typo.
11183 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11185         * config/aarch64/aarch64.c (aarch64_set_current_function):
11186         Re-layout any vector parameters have non-simd layout.
11187         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11188         Delete.
11189         (aarch64_simd_expand_args): Delete call to the above.
11191 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
11193         * doc/invoke.texi (asan-stack): Add space before option.
11195 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11197         * tree.h (zerop): New function.
11198         * tree.c (zerop): Likewise.
11199         (element_precision): Handle expressions.
11200         * match.pd (define_predicates): Add zerop.
11201         (x <= +Inf): Fix comment.
11202         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11203         * fold-const.c (fold_binary_loc): ... here. Remove.
11205 2015-08-31  Richard Biener  <rguenther@suse.de>
11207         PR middle-end/67381
11208         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11210 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11212         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11213         (CEXPI): New operator list.
11214         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11215         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11216         Converted from ...
11217         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11219 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11221         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11222         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11223         parameter.
11224         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11225         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11226         (rewrite_into_loop_closed_ssa): ... here.
11227         (replace_uses_in_dominated_bbs): Remove function.
11228         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11229         rewrite_into_loop_closed_ssa_1.
11231 2015-08-31  Michael Matz  <matz@suse.de>
11233         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11234         enter entry and exit blocks for reverse post order.
11236 2015-08-31  Richard Biener  <rguenther@suse.de>
11238         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11239         (lto_location_cache::current_sysp): Likewise.
11240         (output_block::current_sysp): Likewise.
11241         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11242         (lto_location_cache::apply_location_cache): Properly record
11243         system header locations.
11244         (lto_location_cache::input_location): Input whether a file
11245         is a system header.
11246         * lto-streamer-out.c (lto_output_location): Stream whether a file
11247         is a system header.
11249 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11251         PR bootstrap/67363
11252         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11254 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11256         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11257         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11258         Improve function header comments.
11260 2015-08-30  Michael Collison  <michael.collison@linaro.org>
11262         PR other/67320
11263         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11264         standard names
11266 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11268         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11269         special_handling bitfield.
11270         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11271         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11272         that represents a general xxpermdi.
11273         (insn_is_swappable_p): Add handling for vec_concat of two
11274         doublewords, which maps to a specific xxpermdi.
11275         (adjust_xxpermdi): New function.
11276         (adjust_concat): Likewise.
11277         (handle_special_swappables): Call adjust_xxpermdi and
11278         adjust_concat.
11279         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11281 2015-08-30  Rich Felker <dalias@libc.org>
11283         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11284         case instead of sh[123456ble]-*-*.
11286 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
11288         * ira.c (print_unform_and_important_classes,
11289         print_translated_classes): Remove reg_class_names static array.
11290         (print_unform_and_important_classes): Rename to ...
11291         (print_uniform_and_important_classes): ... this.
11292         (ira_debug_allocno_classes): Update accordingly.
11294 2015-08-29  Tom de Vries  <tom@codesourcery.com>
11296         PR tree-optimization/46193
11297         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11298         clause.
11300 2015-08-28  Jeff Law  <law@redhat.com>
11302         PR lto/66752
11303         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11304         unable to find X NE 0 in the tables, return X as the simplified
11305         condition.
11306         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11307         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11308         to VISISTED_BBS.
11309         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11310         after removing the control flow statement and unnecessary edges.
11312 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
11314         Revert:
11315         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11317         PR tree-optimization/67283
11318         * tree-sra.c (type_consists_of_records_p): Rename to...
11319         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11321         (completely_scalarize_record): Rename to...
11322         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11323         code to:
11324         (scalarize_elem): New.
11326 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
11328         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11329         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11330         (aarch64_symbol_type): Likewise.
11331         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11332         Likewise.
11333         (aarch64_expand_mov_immediate): Likewise.
11334         (aarch64_print_operand): Likewise.
11335         (aarch64_classify_tls_symbol): Likewise.
11337 2015-08-28  Richard Biener  <rguenther@suse.de>
11339         * cgraphunit.c (symbol_table::compile): Move early debug generation
11340         and finish...
11341         (symbol_table::finalize_compilation_unit): ... back here and
11342         add a !seen_error () guard.
11344 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11346         * toplev.c (process_options): Do not use flag_loop_block,
11347         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
11348         flag_loop_optimize_isl.
11350 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11352         * Makefile.in (OBJS): Remove graphite-blocking.o and
11353         graphite-interchange.o.
11354         * common.opt (floop-strip-mine, floop-interchange, floop-block):
11355         Alias of floop-nest-optimize.
11356         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11357         Document as alias of -floop-nest-optimize.
11358         * graphite-blocking.c: Remove.
11359         * graphite-interchange.c: Remove.
11360         * graphite-optimize-isl.c: Include dumpfile.h.
11361         (getScheduleForBand): Add dump for tiled loops.  Use
11362         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11363         * graphite-poly.c (scop_max_loop_depth): Remove.
11364         (print_scattering_function_1): Remove.
11365         (print_scattering_function): Remove.
11366         (print_scattering_functions): Remove.
11367         (debug_scattering_function): Remove.
11368         (debug_scattering_functions): Remove.
11369         (apply_poly_transforms): Remove use of flag_loop_block,
11370         flag_loop_strip_mine, and flag_loop_interchange.
11371         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11372         PBB_ORIGINAL.
11373         (print_pdr_access_layout): Remove.
11374         (print_pdr): Print ISL representation.
11375         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11376         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11377         (free_scop): Same.
11378         (openscop_print_pbb_domain): Remove.
11379         (print_pbb): Remove call to print_scattering_function.
11380         (openscop_print_scop_context): Remove.
11381         (print_scop_context): Do not print matrices anymore.
11382         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11383         SCOP_TRANSFORMED_SCHEDULE.
11384         (print_isl_set): Add printing of a new line.
11385         (print_isl_map): Same.
11386         (print_isl_aff): Same.
11387         (print_isl_constraint): Same.
11388         (loop_to_lst): Remove.
11389         (scop_to_lst): Remove.
11390         (lst_indent_to): Remove.
11391         (print_lst): Remove.
11392         (debug_lst): Remove.
11393         (dot_lst_1): Remove.
11394         (dot_lst): Remove.
11395         (reverse_loop_at_level): Remove.
11396         (reverse_loop_for_pbbs): Remove.
11397         * graphite-poly.h (pdr_dim_iter_domain): Remove.
11398         (pdr_nb_params): Remove.
11399         (pdr_alias_set_dim): Remove.
11400         (pdr_subscript_dim): Remove.
11401         (pdr_iterator_dim): Remove.
11402         (pdr_parameter_dim): Remove.
11403         (same_pdr_p): Remove.
11404         (struct poly_scattering): Remove.
11405         (struct poly_bb): Remove _original, _transformed, _saved.
11406         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11407         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11408         (PBB_NB_LOCAL_VARIABLES): Remove.
11409         (PBB_NB_SCATTERING_TRANSFORM): Remove.
11410         (schedule_to_scattering): Remove.
11411         (number_of_write_pdrs): Remove.
11412         (pbb_dim_iter_domain): Remove.
11413         (pbb_nb_params): Remove.
11414         (pbb_nb_scattering_orig): Remove.
11415         (pbb_nb_scattering_transform): Remove.
11416         (pbb_nb_dynamic_scattering_transform): Remove.
11417         (pbb_nb_local_vars): Remove.
11418         (pbb_iterator_dim): Remove.
11419         (pbb_parameter_dim): Remove.
11420         (psco_scattering_dim): Remove.
11421         (psct_scattering_dim): Remove.
11422         (psct_local_var_dim): Remove.
11423         (psco_iterator_dim): Remove.
11424         (psct_iterator_dim): Remove.
11425         (psco_parameter_dim): Remove.
11426         (psct_parameter_dim): Remove.
11427         (psct_dynamic_dim): Remove.
11428         (psct_static_dim): Remove.
11429         (psct_add_local_variable): Remove.
11430         (new_lst_loop): Remove.
11431         (new_lst_stmt): Remove.
11432         (free_lst): Remove.
11433         (copy_lst): Remove.
11434         (lst_add_loop_under_loop): Remove.
11435         (lst_depth): Remove.
11436         (lst_dewey_number): Remove.
11437         (lst_dewey_number_at_depth): Remove.
11438         (lst_pred): Remove.
11439         (lst_succ): Remove.
11440         (lst_find_pbb): Remove.
11441         (find_lst_loop): Remove.
11442         (lst_find_first_pbb): Remove.
11443         (lst_empty_p): Remove.
11444         (lst_find_last_pbb): Remove.
11445         (lst_contains_p): Remove.
11446         (lst_contains_pbb): Remove.
11447         (lst_create_nest): Remove.
11448         (lst_remove_from_sequence): Remove.
11449         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11450         (lst_niter_for_loop): Remove.
11451         (pbb_update_scattering): Remove.
11452         (lst_update_scattering_under): Remove.
11453         (lst_update_scattering): Remove.
11454         (lst_insert_in_sequence): Remove.
11455         (lst_replace): Remove.
11456         (lst_substitute_3): Remove.
11457         (lst_distribute_lst): Remove.
11458         (lst_remove_all_before_including_pbb): Remove.
11459         (lst_remove_all_before_excluding_pbb): Remove.
11460         (struct scop): Remove original_schedule, transformed_schedule, and
11461         saved_schedule.
11462         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11463         (SCOP_SAVED_SCHEDULE): Remove.
11464         (poly_scattering_new): Remove.
11465         (poly_scattering_free): Remove.
11466         (poly_scattering_copy): Remove.
11467         (store_scattering_pbb): Remove.
11468         (store_lst_schedule): Remove.
11469         (restore_lst_schedule): Remove.
11470         (store_scattering): Remove.
11471         (restore_scattering_pbb): Remove.
11472         (restore_scattering): Remove.
11473         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11474         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
11475         compute the scattering polyhedron dimension from the dimension of
11476         pbb->domain.
11477         (build_scop_scattering): Update call to
11478         build_pbb_scattering_polyhedrons.
11479         (build_poly_scop): Remove call to scop_to_lst.
11480         * graphite.c (graphite_transform_loops): Add call to print_scop.
11481         (gate_graphite_transforms): Remove use of flag_loop_block,
11482         flag_loop_interchange, and flag_loop_strip_mine.
11484 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11486         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11487         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11488         -floop-nest-optimize.
11489         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11490         (generate_luj_sepclass): Remove.
11491         (generate_luj_options): Remove.
11492         (set_options): Remove opt_luj.
11493         (scop_to_isl_ast): Remove opt_luj.
11494         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11495         flag_loop_unroll_jam.
11496         (getPrevectorMap_full): Remove.
11497         (getScheduleForBandList): Remove map_sepcl.
11498         (getScheduleMap): Same.
11499         (apply_schedule_map_to_scop): Remove sepcl.
11500         (optimize_isl): Same.
11501         * graphite-poly.c (apply_poly_transforms): Remove check for
11502         flag_loop_unroll_jam.
11503         (new_poly_bb): Remove map_sepclass.
11504         * graphite-poly.h (struct poly_bb): Same.
11505         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11506         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11507         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11508         * toplev.c (process_options): Remove flag_loop_unroll_jam.
11510 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
11512         PR target/67317
11513         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11514         (addqi3_cc): Ditto.
11515         (UNSPEC_ADD_CARRY): Remove.
11516         (addqi3_cconly_overflow): New expander.
11517         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11518         Adjust for changed add<mode>3_carry.
11519         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11520         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11521         (<plusminus_insn><mode>3_carry): Remove expander.
11522         (*<plusminus_insn><mode>3_carry): Split insn pattern to
11523         add<mode>3_carry and sub<mode>3_carry.
11524         (plusminus_carry_mnemonic): Remove code attribute.
11525         (add<mode>3_carry): Canonicalize insn pattern.
11526         (*addsi3_carry_zext): Ditto.
11527         (sub<mode>3_carry): Ditto.
11528         (*subsi3_carry_zext): Ditto.
11529         (adcx<mode>3): Remove insn pattern.
11530         (addcarry<mode>): New insn pattern.
11531         (subborrow<mode>): Ditto.
11532         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11533         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11534         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11535         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11536         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11537         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11538         Rewrite expander to not clobber carry flag chains.
11540 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
11542         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11543         instead of a rotate.
11545 2015-08-27  Marek Polacek  <polacek@redhat.com>
11547         PR middle-end/67005
11548         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11549         an entry into an irreducible region.
11551 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11553         * configure: Regenerate.
11555 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11557         PR tree-optimization/67283
11558         * tree-sra.c (type_consists_of_records_p): Rename to...
11559         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11561         (completely_scalarize_record): Rename to...
11562         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11563         (scalarize_elem): New.
11565 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11567         * tree-sra.c (completely_scalarize_var): Rename to...
11568         (create_total_scalarization_access): ... Here. Drop call to
11569         completely_scalarize_record.
11571         (analyze_all_variable_accesses): Replace completely_scalarize_var
11572         with create_total_scalarization_access and completely_scalarize_record.
11574 2015-08-27  Alan Modra  <amodra@gmail.com>
11576         PR target/67356
11577         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11578         for operand 1.
11580 2015-08-27  Richard Biener  <rguenther@suse.de>
11582         * passes.c (rest_of_decl_compilation): Guard early_global_decl
11583         call with !seen_error ().
11584         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11585         early debug generation and finish...
11586         (symbol_table::compile): ... here to put it after a !seen_error ()
11587         guard.
11589 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11591         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11592         Solaris 12+.
11594 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11595             Andre Vieira  <andre.simoesdiasvieira@arm.com>
11597         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11598         (*cb<optab><mode>1): Likewise.
11599         (*tb<optab><mode>1): Likewise.
11600         (*cb<optab><mode>1): Likewise.
11601         * config/aarch64/iterators.md (inv_cb): New code attribute.
11602         (inv_tb): Likewise.
11603         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11604         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11606 2015-08-27  Richard Biener  <rguenther@suse.de>
11608         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11610 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11612         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11613         trap to fix ICE.
11615 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11617         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11618         Add declaration.
11620         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11621         comment.
11622         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11623         floating point in VSX registers.
11624         (rs6000_output_move_128bit): Always print out the set insn if we
11625         can't generate an appropriate 128-bit move.
11626         (rs6000_generate_compare): Add support for IEEE 128-bit floating
11627         point in VSX registers comparisons.
11628         (rs6000_expand_float128_convert): Likewise.
11630         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11631         predicate for only GPR hard registers.
11633         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11634         modes to iterators. Add new iterators for moving 128-bit values in
11635         scalar FPR registers and VSX registers.
11636         (FMOVE128): Likewise.
11637         (FMOVE128_FPR): Likewise.
11638         (FMOVE128_GPR): Likewise.
11639         (FMOVE128_VSX): Likewise.
11640         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11641         in VSX registers.
11642         (IFKF): Likewise.
11643         (IBM128): Likewise.
11644         (TFIFKF): Likewise.
11645         (RELOAD): Add IEEE 128-bit floating point modes.
11646         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11647         floating point in VSX registers modes.
11648         (signbit<mode>2, IBM128 iterator): Likewise.
11649         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11650         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11651         (negtf2): Likewise.
11652         (neg<mode>2, TFIFKF iterator): Likewise.
11653         (negtf2_internal): Likewise.
11654         (abstf2): Likewise.
11655         (abs<mode>2, TFIFKF iterator): Likewise.
11656         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11657         VSX insn support for negate, absolute value, and negative absolute
11658         value.
11659         (ieee_128bit_vsx_neg<mode>2): Likewise.
11660         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11661         (ieee_128bit_vsx_abs<mode>2): Likewise.
11662         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11663         (ieee_128bit_vsx_nabs<mode>2): Likewise.
11664         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11665         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11666         floating point in VSX registers.
11667         (unpack<mode>_dm): Likewise.
11668         (unpack<mode>_nodm): Likewise.
11669         (pack<mode>): Likewise.
11670         (unpackv1ti): Likewise.
11671         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11672         (packv1ti): Likewise.
11673         (pack<mode>, FMOVE128_VSX iterator): Likewise.
11674         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11675         registers.
11676         (extenddftf2_internal): Likewise.
11677         (trunctfdf2): Likewise.
11678         (trunctfdf2_internal2): Likewise.
11679         (fix_trunc_helper): Likewise.
11680         (fix_trunctfdi2"): Likewise.
11681         (floatditf2): Likewise.
11682         (floatuns<mode>tf2): Likewise.
11683         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11684         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11685         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11686         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11687         (float<SDI:mode><IFKF:mode>2): Likewise.
11688         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11690 2015-08-26  Renlin Li  <renlin.li@arm.com>
11692         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11694 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11695             Jiong Wang  <jiong.wang@arm.com>
11697         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11698         (tlsie_tiny_<mode>): New define_insn.
11699         (tlsie_tiny_sidi): Likewise.
11700         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11701         SYMBOL_TINY_TLSIE.
11702         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11703         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11704         SYMBOL_TINY_TLSIE.
11705         (aarch64_expand_mov_immediate): Likewise.
11706         (aarch64_print_operand): Likewise.
11707         (arch64_classify_tls_symbol): Likewise.
11709 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11711         * config/arm/arm-arches.def: Replace single value flags with
11712         an initializer built from ARM_FSET_MAKE_CPU1.
11713         * config/arm/arm-cores.def: Likewise.
11714         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11715         derivation from the ARM_CORE macro definition, use the given value
11716         instead.
11717         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11718         ARM_ARCH macro definition, use the given value instead.
11720 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11722         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11723         feature set.
11724         (struct builtin_description): Replace field mask with field
11725         features.
11726         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11727         (IWMMXT2_BUILTIN): Likewise.
11728         (IWMMXT2_BUILTIN2): Likewise.
11729         (FP_BUILTIN): Likewise.
11730         (CRC32_BUILTIN): Likewise.
11731         (CRYPTO_BUILTIN): Likewise.
11732         (iwmmx_mbuiltin): Likewise.
11733         (iwmmx2_mbuiltin): Likewise.
11734         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11735         struct builtin_description.
11737 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11739         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11740         (struct builtin_description): Change type of mask to unsigned
11741         long.
11742         * config/arm/arm-protos.h (insn_flags): Declare as type
11743         arm_feature_set.
11744         (tune_flags): Likewise.
11745         * config/arm/arm.c (feature_count): New.
11746         (insn_flags): Define as type arm_feature_set.
11747         (tune_flags): Likewise.
11748         (struct processors): Define field flags as type arm_feature_set.
11749         (all_cores): Update for change to struct processors.
11750         (all_architectures): Likewise.
11751         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11752         macros.
11753         (arm_option_override_internal): Likewise.
11754         (arm_option_override): Likewise.
11756 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11757             Jiong Wang  <jiong.wang@arm.com>
11759         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11760         tls size for tiny, small, large memory model.
11761         (aarch64_load_symref_appropriately): Support new symbol types.
11762         (aarch64_expand_mov_immediate): Likewise.
11763         (aarch64_print_operand): Likewise.
11764         (aarch64_classify_tls_symbol): Likewise.
11765         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11766         (aarch64_symbol_type): Likewise.
11767         * config/aarch64/aarch64.md (tlsle): Deleted.
11768         (tlsle12_<mode>): New define_insn.
11769         (tlsle24_<mode>): Likewise.
11770         (tlsle32_<mode>): Likewise.
11771         (tlsle48_<mode>): Likewise.
11772         * doc/sourcebuild.texi (AArch64-specific attributes): Document
11773         "aarch64_tlsle32".
11775 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11777         * config/arm/arm-protos.h (FL_NONE): New.
11778         (FL_ANY): New.
11779         (arm_feature_set): New.
11780         (ARM_FSET_MAKE): New.
11781         (ARM_FSET_MAKE_CPU1): New.
11782         (ARM_FSET_MAKE_CPU2): New.
11783         (ARM_FSET_CPU1): New.
11784         (ARM_FSET_CPU2): New.
11785         (ARM_FSET_EMPTY): New.
11786         (ARM_FSET_ANY): New.
11787         (ARM_FSET_HAS_CPU1): New.
11788         (ARM_FSET_HAS_CPU2): New.
11789         (ARM_FSET_HAS_CPU): New.
11790         (ARM_FSET_ADD_CPU1): New.
11791         (ARM_FSET_ADD_CPU2): New.
11792         (ARM_FSET_DEL_CPU1): New.
11793         (ARM_FSET_DEL_CPU2): New.
11794         (ARM_FSET_UNION): New.
11795         (ARM_FSET_INTER): New.
11796         (ARM_FSET_XOR): New.
11797         (ARM_FSET_EXCLUDE): New.
11798         (AFM_FSET_IS_EMPTY): New.
11799         (ARM_FSET_CPU_SUBSET): New.
11801 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11803         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11804         SYMBOL_TLSLE to SYMBOL_TLSLE24.
11805         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11806         Likewise.
11807         (aarch64_expand_mov_immediate): Likewise.
11808         (aarch64_print_operand): Likewise.
11809         (aarch64_classify_symbol): Likewise.
11811 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11813         * config/aarch64/aarch64.opt (mtls-size): New entry.
11814         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11815         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11816         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11818 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11820         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11821         ARM_CORE entry.  Fix some white-space.
11822         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11823         ARM_CORE definition.
11825 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11827         * fold-const.c (fold_binary_loc) : Move Optimize
11828         root(x)*root(y) as root(x*y) to match.pd.
11829         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11830         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11831         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11832         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11833         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11834         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11835         (mult (exps:s @0) (exps:s @1)) : New simplifier.
11836         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11837         (rdiv @0 (exps:s @1)) : New simplifier.
11839 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
11841         * gcc.c (driver::finalize): Only assign to extra_specs if
11842         [EXTRA_SPECS].
11844 2015-08-25  Marek Polacek  <polacek@redhat.com>
11846         PR middle-end/67330
11847         * varasm.c (declare_weak): Return after giving an error.
11849 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
11851         * gcc-main.c (main): Add params to driver ctor.
11852         * gcc.c (class env_manager): New.
11853         (env): New global.
11854         (env_manager::init): New.
11855         (env_manager::get): New.
11856         (env_manager::xput): New.
11857         (env_manager::restore): New.
11858         Poison getenv and putenv.
11859         (DEFAULT_TARGET_SYSTEM_ROOT): New.
11860         (target_system_root): Update initialization to use
11861         DEFAULT_TARGET_SYSTEM_ROOT.
11862         (struct spec_list): Add field "default_ptr".
11863         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11864         (init_spec): Likewise.
11865         (set_spec): Clear field "default_ptr".
11866         (read_specs): Free "spec" and "buffer".
11867         (xputenv): Reimplement in terms of env_manager.
11868         (process_command): Replace ::getenv calls with calls to the
11869         env_manager singleton.
11870         (process_brace_body): Free string in three places.
11871         (driver::driver): New.
11872         (driver::~driver): New.
11873         (used_arg): Convert from a function to...
11874         (class used_arg_t): ...this class, and...
11875         (used_arg): ...this new global instance.
11876         (used_arg_t::finalize): New function.
11877         (getenv_spec_function): Add "const" to local "value".  Replace
11878         ::getenv call with call to the env_manager singleton.
11879         (path_prefix_reset): New function.
11880         (driver::finalize): New function.
11881         * gcc.h (driver::driver): New.
11882         (driver::~driver): New.
11883         (driver::finalize): New.
11885 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11887         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11888         target doesn't have one.
11890 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11892         PR target/67346
11893         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11895 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11897         PR target/67344
11898         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11899         a define_insn, remove second alternative.
11901 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
11902             Joseph Myers  <joseph@codesourcery.com>
11904         * gcc.c (struct switchstr): Expand comment.
11906 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11908         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11909         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11911 2015-08-25  Richard Biener  <rguenther@suse.de>
11913         PR middle-end/67306
11914         * genmatch.c (expr::gen_transform): Verify the result of
11915         builtin_decl_implicit.
11916         (dt_simplify::gen_1): Likewise.
11918 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11920         * config/arm/constraints.md: Also list Cs and US ARM-specific
11921         constraints as used.
11923 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11925         PR target/66609
11926         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11927         UNSPEC_PCREL.
11928         (nonpic_symbol_mentioned_p): Likewise.
11929         (sh_delegitimize_address): Likewise.
11930         (sh_function_ok_for_sibcall): Take into account weak symbols.
11931         (sh_expand_sym_label2reg): New.
11932         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11933         * config/sh/sh.md (UNSPEC_PCREL): New enum.
11934         (call_pcrel): Use sh_expand_sym_label2reg.
11935         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11936         (symPCREL_label2reg) New expand.
11938 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11940         * graphite-poly.c: Change type of region from void* to sese.
11941         * graphite-poly.h (struct scop): Changing the type of scop::region
11942         from void* to sese. Change accessor macro accordingly.
11943         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11945 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11947         * graphite-scop-detection.c (stmt_simple_for_scop_p):
11948         Constrain only on INTEGER_TYPE.
11950 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11952         PR target/67211
11953         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11954         -mefficient-unaligned-vsx on ISA 2.7.
11956         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11957         option to a masked option.
11959         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11960         logic for -mefficient-unaligned-vsx so that it is set via an arch
11961         ISA option, instead of being set if -mtune=power8 is set. Move
11962         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11963         near other default option handling.
11965 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11967         * genflags.c (gen_macro): Delete.
11968         (gen_proto): Don't create GEN.*CALL.* macros.
11969         * gensupport.h (get_file_location): Declare.
11970         * gensupport.c (rtx_locs): New variable.
11971         (read_md_rtx): Record rtx locations.
11972         (get_file_location): New function.
11973         * target-insns.def (call, call_pop, call_value, call_value_pop)
11974         (sibcall, sibcall_value): New patterns.
11975         * gentarget-def.c (parse_argument): New function.
11976         (def_target_insn): Use it.  Handle optional operands.  Raise an
11977         error if an .md pattern has the wrong number of operands for the
11978         pattern name.  Remove the names of unused operands from the prototype.
11979         * builtins.c (expand_builtin_apply): Use targetm functions
11980         instead of HAVE_call_value and GEN_CALL_VALUE.
11981         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
11982         and sibcall_value_pop.
11983         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11984         of GEN_CALL.
11985         * config/alpha/alpha.md (untyped_call): Likewise.
11986         * config/iq2000/iq2000.md (untyped_call): Likewise.
11987         * config/m68k/m68k.md (untyped_call): Likewise.
11988         * config/mips/mips.md (untyped_call): Likewise.
11989         * config/pa/pa.md (untyped_call): Likewise.
11990         * config/rs6000/rs6000.md (untyped_call): Likewise.
11991         * config/sparc/sparc.md (untyped_call): Likewise.
11992         * config/tilegx/tilegx.md (untyped_call): Likewise.
11993         * config/tilepro/tilepro.md (untyped_call): Likewise.
11994         * config/visium/visium.md (untyped_call): Likewise.
11995         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11996         gen_call_value instead of GEN_CALL_VALUE.
11997         * config/arm/arm.md (untyped_call): Likewise.
11998         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11999         GEN_CALL.
12001 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12003         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12004         (have_cbranchcc4): New variable.
12005         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12006         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12007         (if_convert): Initialize have_cbranchcc4.
12009 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12011         * builtins.c (expand_cmpstrn): Rename to...
12012         (expand_cmpstrn_or_cmpmem): ...this.
12013         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12014         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12015         Remove mode argument.
12016         (expand_builtin): Update accordingly.
12018 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12020         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12021         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
12022         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12023         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12024         Add predicates for operands 0 and 3.
12025         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12026         operand.
12027         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12028         immediate_operand to nonmemory_operand.
12030 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12032         * df-scan.c (df_insn_info_init_fields): New function, split out
12033         from...
12034         (df_insn_create_insn_record): ...here.
12035         (df_insn_info_free_fields): New function, split out from...
12036         (df_insn_info_delete): ...here.
12037         (df_insn_rescan): Use the new functions instead of freeing and
12038         reallocating the df_insn_info.
12040 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12042         * doc/install.texi (Binaries): Remove links no longer valid.
12044 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
12046         * config/nvptx/mkoffload.c (process): Replace
12047         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12049 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
12051         PR target/67329
12052         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12054 2015-08-24  Renlin Li  <renlin.li@arm.com>
12056         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12057         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12058         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12059         * config/arm/constraints.md ("j"): Add check for high code.
12061 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12063         PR tree-optimization/65468
12064         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12065         chunk_size is one.
12067 2015-08-24  Nathan Sidwell  <nathan@acm.org>
12069         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12070         change to nvptx_type_from_mode call. Use arg_promotion for both
12071         split and non-split args.
12073 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12075         * target-insns.def (movstr): New pattern.
12076         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12077         (expand_movstr): Use targetm rather than HAVE_movstr/
12078         CODE_FOR_movstr.
12080 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12082         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12083         cast syntax.
12085 2015-08-24  Andrew Pinski  <apinski@cavium.com>
12087         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12088         AARCH64_EXTRA_TUNING_OPTION.
12089         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12090         New enum.
12091         (aarch64_extra_tuning_flags): Base the shifted value on the index
12092         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12093         * config/aarch64/aarch64.c: Remove the last argument to
12094         AARCH64_EXTRA_TUNING_OPTION.
12096 2015-08-23  Nathan Sidwell  <nathan@acm.org>
12098         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12099         decls.
12100         (nvptx_declare_function_name): Insert formatting tabs for
12101         consistency.
12103 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12105         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12106         parm_decl, rather than generating a dummy default def in cfun.
12107         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
12108         ssa_name from cfun and child_fn do not share a stmt as def stmt.
12109         (move_stmt_op): Handle PARM_DECl.
12110         (gather_ssa_name_hash_map_from): New function.
12111         (move_sese_region_to_fn): Add default defs for function params, and add
12112         them to vars_map.  Release copied ssa names.
12113         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12115 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12117         * doc/sourcebuild.texi: Rename vect_no_int_max with
12118         vect_no_int_min_max.  Update description.
12120 2015-08-22  Andrew Pinski  <apinski@cavium.com>
12122          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12123         * config/aarch64/aarch64-protos.h
12124         (aarch64_fusion_pairs_index): New enum.
12125         (aarch64_fusion_pairs): Base the shifted value on the index instead
12126         Rewrite AARCH64_FUSE_ALL to be based on the end index.
12127         of the argument to AARCH64_FUSION_PAIR.
12128         * config/aarch64/aarch64.c: Remove the last argument to
12129         AARCH64_FUSION_PAIR.
12131 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
12133         * dominance.c (new_zero_array): Define.
12134         (dom_info): Redefine as class with proper encapsulation.
12135         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12136         Add new members.
12137         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
12138         allocations/deallocations.  Pass function as parameter (instead of
12139         using cfun).
12140         (dom_info::get_idom): Define accessor method.
12141         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12142         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
12143         (calculate_dominance_info): Adjust to use dom_info class.
12144         (verify_dominators): Likewise.
12146 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
12148         * print-rtl.c (print_rtx): Check the correct range for
12149         flag_dump_unnumbered_links to behave as documented.
12151         PR rtl-optimization/67227
12152         PR rtl-optimization/64164
12153         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12154         (nonoverlapping_memrefs_p): Test offsets and sizes when given
12155         identical gimple_reg exprs.
12157 2015-08-21  Nathan Sidwell  <nathan@acm.org>
12159         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12160         expansion.
12161         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12162         crtl->stack_alignment_needed to determine alignment.
12163         (nvptx_get_drap_rtx): New.
12164         (TARGET_GET_DRAP_RTX): Override.
12165         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12167 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12169         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12171 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12173         * configure.ac: Remove uwin* cases.
12174         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12175         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12176         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12177         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12178         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12179         i[34567]86-*-uwin*, powerpc-*-beos*.
12181 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
12183         * gencodes.c (gencodes): Print the comma for the preceding
12184         enum value rather than the current one.  Use aliased enum values
12185         rather than #defines for compiled-out patterns.
12186         (main): Update accordingly.  Replace LAST_INSN_CODE with
12187         NUM_INSN_CODES.
12188         * lra.c (insn_code_data): Update accordingly.
12189         (finish_insn_code_data_once, get_static_insn_data): Likewise.
12190         * recog.h (target_recog): Likewise.
12191         (preprocess_insn_constraints): Change parameter to unsigned int.
12192         * recog.c (preprocess_insn_constraints): Likewise.
12193         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12194         * tree-vect-stmts.c (vectorizable_operation): Simplify.
12196 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12198         PR rtl-optimization/61657
12199         * loop-iv.c (iv_number_of_iterations): Declare up and down as
12200         unsigned.  Remove superflous uint64_t cast.
12202 2014-08-21  Felix Yang  <felix.yang@huawei.com>
12203             Jiji Jiang  <jiangjiji@huawei.com>
12205         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12206         argument and get builtin function code directly from CALL.
12207         (gimple_stringop_fixed_value): Modified accordingly.
12208         (gimple_stringops_transform, gimple_stringops_values_to_profile):
12209         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12211 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12213         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12215 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12217         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12218         to match.pd.
12219         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12220         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12221         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12222         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12223         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12224         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12225         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12226         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12227         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12228         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12230         * match.pd (SIN ) : New Operator.
12231         (TAN) : New Operator.
12232         (mult (SQRT@1 @0) @1) : New simplifier.
12233         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12234         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12235         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12236         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12237         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12238         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12239         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12240         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12241         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12242         (rdiv @0 (POW:s @1 @2)) : New simplifier.
12244 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
12246         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12247         loop if EXPR is simplified to const value.
12249 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
12251         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12252         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12254 2015-08-21  Richard Biener  <rguenther@suse.de>
12256         PR middle-end/67285
12257         * gimple-fold.c (replace_stmt_with_simplification): Assert
12258         seq is empty when replacing a call with itself but different
12259         arguments.
12260         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12261         a call require that it is const.
12263 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12265         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12266         * builtins.c (get_object_alignment_2): Adjust.
12267         * varasm.c (align_variable): Likewise.
12268         (get_variable_align): Likewise.
12269         (build_constant_desc): Likewise.
12270         (force_const_mem): Likewise.
12271         * doc/tm.texi.in: Likewise.
12272         * doc/tm.texi: Regenerate.
12274 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12276         * genconfig.c (main): Always define HAVE_cc0.
12277         * recog.c (rest_of_handle_peephole2): Adjust.
12279 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12281         * reorg.c (relax_delay_slots): Don't use #if to check value of
12282         HAVE_cc0.
12284 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12286         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12287         * targhooks.c (default_have_conditional_execution): Adjust.
12289 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12291         * rtl.h (rtvec_all_equal_p): Declare.
12292         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12293         * rtl.c (rtvec_all_equal_p): New function.
12294         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12295         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12296         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12297         * config/arm/arm.c (neon_vdup_constant): Likewise.
12298         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12299         * config/tilegx/constraints.md (W, Y): Likewise.
12300         * config/tilepro/constraints.md (W, Y): Likewise.
12301         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12302         (classify_immediate): Use unwrap_const_vec_duplicate.
12303         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12304         (reg_or_v2s8bit_operand): Likewise.
12305         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12306         (reg_or_v4s8bit_operand): Likewise.
12308 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12310         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12311         (vec_shasigma_be): New #define.
12312         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12313         (VPMSUMH): Likewise.
12314         (VPMSUMW): Likewise.
12315         (VPMSUMD): Likewise.
12316         (VPMSUM): New BU_P8V_OVERLOAD_2.
12317         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12318         entries for VEC_MADD and VEC_VPMSUM.
12320 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
12322         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12323         Multiply argument avr_n_flash by 64 to match unit of "KiB".
12324         (avr_pgm_check_var_decl): Same.
12326 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
12328         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12329         initialization of HFmode scalar type (float16_t) to...
12330         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12331         code.
12333         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12335         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12336         having an -mfp16-format.
12338 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12340         * config/i386/predicates.md (vector_all_ones_operand): Use
12341         CONSTM1_RTX to simplify definition.
12343 2015-08-20  Richard Biener  <rguenther@suse.de>
12345         * toplev.c (compile_file): Remove loop calling late_global_decl
12346         on all symbols.
12347         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12348         on decls we assembled.
12350 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
12352         * common/config/aarch64/aarch64-common.c
12353         (AARCH64_CPU_NAME_LENGTH): Delete.
12354         (aarch64_option_extension): New.
12355         (all_extensions): Likewise.
12356         (processor_name_to_arch): Likewise.
12357         (arch_to_arch_name): Likewise.
12358         (all_cores): New.
12359         (all_architectures): Likewise.
12360         (aarch64_get_extension_string_for_isa_flags): Likewise.
12361         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12362         architecture names.
12363         * config/aarch64/aarch64-protos.h
12364         (aarch64_get_extension_string_for_isa_flags): New.
12365         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12366         (aarch64_option_print): Get the string to print from
12367         aarch64_get_extension_string_for_isa_flags.
12368         (aarch64_declare_function_name): Likewise.
12369         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12370         (MCPU_TO_MARCH_SPEC): This.
12371         (ASM_CPU_SPEC): Use it.
12372         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12373         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12374         (EXTRA_SPEC_FUNCTIONS): Use it.
12376 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
12378         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12379         expansion when !ISA_HAS_LWL_LWR.
12380         (mips_block_move_straight): Update the size of elements copied to
12381         account for alignment when !ISA_HAS_LWL_LWR.
12382         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12384 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12386         * expr.c (expand_expr_real_2): Check gimple statement during
12387         LSHIFT_EXPR expand.
12389 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
12391         * common.opt (fstack-protector): Initialize to -1.
12392         (fstack-protector-all): Likewise.
12393         (fstack-protector-strong): Likewise.
12394         (fstack-protector-explicit): Likewise.
12395         * configure.ac: Add --enable-default-ssp.
12396         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
12397         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12398         -1.
12399         * doc/install.texi: Document --enable-default-ssp.
12400         * config.in: Regenerated.
12401         * configure: Likewise.
12403 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
12405         PR rtl-optimization/64164
12406         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12407         (parm_in_stack_slot_p): ... this.  Disregard mode, what
12408         matters is whether the parm will live in a pseudo or a stack
12409         slot.
12410         (expand_one_ssa_partition): Deal with params without a default
12411         def.  Disregard mode.
12412         * cfgexpand.h: Renamed function declaration.
12413         * tree-ssa-coalesce.c: Adjust.
12414         * function.c (split_complex_args): Allocate stack slot for
12415         unassigned parms before splitting.
12416         (parm_in_unassigned_mem_p): New.  Use it instead of
12417         parm_maybe_byref_p throughout this file.
12418         (assign_parm_setup_block): Use it.  Accept pseudos in the
12419         expand-assigned rtl.
12420         (assign_parm_setup_reg): Drop BLKmode requirement.
12421         (assign_parm_setup_stack): Allocate and fill in the address of
12422         unassigned MEM parms.
12424 2015-08-19  David Sherwood  <david.sherwood@arm.com>
12426         * genmodes.c (emit_mode_unit_size_inline): New function.
12427         (emit_mode_unit_precision_inline): New function.
12428         (emit_insn_modes_h): Emit new #define.  Emit new functions.
12429         (emit_mode_unit_size): New function.
12430         (emit_mode_unit_precision): New function.
12431         (emit_mode_adjustments): Add mode_unit_size adjustments.
12432         (emit_insn_modes_c): Emit new arrays.
12433         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12434         use new inline methods.
12436 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12438         * config/aarch64/aarch64.c (bit_count): Delete prototype
12439         and definition.
12440         (aarch64_print_operand): Use popcount_hwi instead of the above.
12442 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12444         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12445         comment.
12447 2015-08-19  Marek Polacek  <polacek@redhat.com>
12449         PR middle-end/67133
12450         * gimple-ssa-isolate-paths.c
12451         (insert_trap_and_remove_trailing_statements): Rename to ...
12452         (insert_trap): ... this.  Don't remove trailing statements; split
12453         block instead.
12454         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12456 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
12458         PR other/67042
12459         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12460         conditionalize the whole on __GNUC__.  Add fallback code
12461         depending neither on undefined nor implementation-defined behaviour.
12463 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12465         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12466         whitespaces with tab.
12468 2015-08-19  Florian Weimer  <fweimer@redhat.com>
12470         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12471         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12472         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12473         Move Name_Ids instantiation to the Prj.Proc package, to avoid
12474         trampolines.
12476 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12478         * config/arm/arm.c (bounds_check): Use %wd print format
12479         for HOST_WIDE_INT arguments.
12481 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
12483         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12484         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12485         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12486         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12487         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12488         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12489         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12490         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12491         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12492         typedefs.
12494 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
12496         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12497         function.c, graphite-scop-detection.c, haifa-sched.c,
12498         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12499         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12500         varasm.c: Remove typedefs of structs.
12502 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
12504         * config/rs6000/altivec.h (vec_adde): New define.
12505         (vec_addec): Likewise.
12506         (vec_double): Likewise.
12507         (vec_bperm): Likewise.
12508         (vec_gb): Likewise.
12509         * config/rs6000/rs6000-builtin.def (ADDE): New
12510         BU_ALTIVEC_OVERLOAD_3.
12511         (ADDEC): Likewise.
12512         (DOUBLE): New BU_VSX_OVERLOAD_1.
12513         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12514         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12515         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12516         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12517         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12518         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12519         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12520         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12521         and P8V_BUILTIN_VEC_VBPERMQ.
12523 2015-08-18  Jason Merrill  <jason@redhat.com>
12525         * print-tree.c (print_node): Handle TREE_BINFO.
12527 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12529         PR middle-end/36757
12530         * builtins.c (expand_builtin_signbit): Add asserts to make sure
12531         we can expand BUILT_IN_SIGNBIT inline.
12532         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12533         * doc/extend.texi: Document the type-generic __builtin_signbit.
12535 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
12537         PR rtl-optimization/67218
12538         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12539         (simplify_unary_operation_1): Use it.
12541 2015-08-18  Marek Polacek  <polacek@redhat.com>
12543         PR middle-end/67222
12544         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12545         if the call isn't valid.
12546         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12547         gimple_call_builtin_p.
12548         (call_may_clobber_ref_p_1): Likewise.
12549         (stmt_kills_ref_p): Likewise.
12551 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12553         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12554         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12555         (mips_hard_regno_scratch_ok): Likewise.
12556         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12557         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12559 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
12561         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12562         (determine_value_range): Call refine_value_range_using_guard for
12563         each loop initial condition to improve value range.
12565 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
12567         * config/i386/i386.c: Remove include of fibheap.h.
12569 2015-08-17  Richard Biener  <rguenther@suse.de>
12571         PR tree-optimization/67221
12572         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12573         (sccvn_dom_walker::before_dom_children): Mark backedges of
12574         non-executable blocks as not executable.
12576 2015-08-17  David Sherwood  <david.sherwood@arm.com>
12578         * config/arm/arm.c (neon_element_bits): Replace call to
12579         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12580         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12581         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12582         (neon_vdup_lane<mode>): Likewise.
12583         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12584         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12585         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12586         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12587         * config/spu/spu.c (arith_immediate_p): Likewise.
12588         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12589         * expr.c (expand_expr_real_2): Likewise.
12590         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12591         * simplify-rtx.c (simplify_immed_subreg): Likewise.
12592         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12593         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12594         New variable.
12595         * fold-const.c (fold_binary_loc): Replace call to
12596         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12597         GET_MODE_UNIT_PRECISION (m).
12599 2015-08-17  Mike Stump  <mikestump@comcast.net>
12601         * config/arm/arm.c (arm_block_move_unaligned_straight):
12602         Emit normal move instead of unaligned load when source or destination
12603         are appropriately aligned.
12605 2015-08-17  Richard Biener  <rguenther@suse.de>
12606             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12608         PR middle-end/16107
12609         * match.pd (div (coss (op @0) : New simplifier.
12611 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
12613         PR rtl-optimization/64164
12614         PR bootstrap/66978
12615         PR middle-end/66983
12616         PR rtl-optimization/67000
12617         PR middle-end/67034
12618         PR middle-end/67035
12619         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12620         * tree-ssa-copyrename.c: Removed.
12621         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12622         -ftree-coalesce-vars.
12623         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12624         * common.opt (ftree-copyrename): Ignore.
12625         (ftree-coalesce-inlined-vars): Likewise.
12626         * doc/invoke.texi: Remove the ignored options above.
12627         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12628         * tree-ssa-coalesce.h: ... here.
12629         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12630         headers required by it.
12631         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12632         across variables when flag_tree_coalesce_vars.  Check register
12633         use and promoted modes to allow coalescing.  Do not coalesce
12634         maybe-byref parms with SSA_NAMEs of other variables, or
12635         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
12636         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12637         with its member functions to tree-ssa-coalesce.c.
12638         (var_map_base_init): Likewise.  Renamed to
12639         compute_samebase_partition_bases.
12640         (partition_view_normal): Drop want_bases parameter.
12641         (partition_view_bitmap): Likewise.
12642         * tree-ssa-live.h: Adjust declarations.
12643         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12644         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12645         default defs at the entry point.
12646         (dump_part_var_map): New.
12647         (compute_optimized_partition_bases): New, called by...
12648         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12649         of compute_samebase_partition_bases.  Adjust.
12650         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12651         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12652         (ssa_default_def_partition): New.
12653         (get_rtl_for_parm_ssa_default_def): New.
12654         (align_local_variable, add_stack_var): Support anonymous SSA
12655         names.
12656         (defer_stack_allocation): Likewise.  Declare earlier.
12657         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12658         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12659         Do no record deferred-allocation marker in
12660         SA.partition_to_pseudo.
12661         (expand_stack_vars): Adjust check for the marker in it.
12662         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12663         redundant MEM attr setting.
12664         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12665         from...
12666         (expand_one_stack_var): ... this.  New wrapper to check and
12667         skip already expanded SSA partitions.
12668         (record_alignment_for_reg_var): New, factored out of...
12669         (expand_one_var): ... this.
12670         (expand_one_ssa_partition): New.
12671         (adjust_one_expanded_partition_var): New.
12672         (expand_one_register_var): Check and skip already expanded SSA
12673         partitions.
12674         (expand_used_vars): Don't create DECLs for anonymous SSA
12675         names.  Expand all SSA partitions, then adjust all SSA names.
12676         (pass::execute): Replace the loops that set
12677         SA.partition_to_pseudo from partition leaders and cleared
12678         DECL_RTL for multi-location variables, and that which used to
12679         rename vars and set attrs, with one that clears DECL_RTL and
12680         checks that PARMs and RESULTs default_defs match DECL_RTL.
12681         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12682         * emit-rtl.c: Include stor-layout.h.
12683         (set_reg_attrs_for_parm): Handle NULL decl.
12684         (set_reg_attrs_for_decl_rtl): Take mode from expression if
12685         it's not a DECL.
12686         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12687         rather than its possibly-NULL DECL.
12688         * explow.c (promote_ssa_mode): New.
12689         * explow.h (promote_ssa_mode): Declare.
12690         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12691         (read_complex_part): Export.
12692         * expr.h (read_complex_part): Declare.
12693         * cfgexpand.h (parm_maybe_byref_p): Declare.
12694         * function.c: Include cfgexpand.h.
12695         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12696         (use_register_for_parm_decl): Wrapper for the above to
12697         special-case the result_ptr.
12698         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12699         (split_complex_args): Take assign_parm_data_all argument.
12700         Pass it to rtl_for_parm.  Set up rtl and context for split
12701         args.  Reset complex parm before fetching its default decl
12702         rtl.
12703         (assign_parms_unsplit_complex): Use the default-def complex
12704         parm rtl if it matches the components.
12705         (assign_parms_augmented_arg_list): Adjust.
12706         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12707         multiple locations.  Recognize split complex args.
12708         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12709         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12710         (assign_parm_setup_block): Prefer SSA-assigned location, and
12711         fill in its address if the memory location of a maybe-byref
12712         parm was not assigned by cfgexpand.
12713         (assign_parm_setup_reg): Likewise.  Adjust its mode as
12714         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
12715         sure passed_pointer parms don't need conversion.  Copy address
12716         or value as needed.
12717         (assign_parm_setup_stack): Prefer SSA-assigned location.
12718         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12719         rtl before testing for pointer bounds.  Special-case result_ptr.
12720         (expand_function_start): Maybe reset DECL_RTL of result.
12721         Prefer SSA-assigned location for result and static chain.
12722         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
12723         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
12724         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12725         anonymous SSA names.  Use promote_ssa_mode.
12726         (get_temp_reg): Likewise.
12727         (remove_ssa_form): Adjust.
12728         * stor-layout.c (layout_decl): Don't set mem attributes of
12729         non-MEMs.
12730         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12731         and get its reg_usage for reg invalidation.
12732         (compute_bb_dataflow): Pass it insn.
12733         (emit_notes_in_bb): Likewise.
12735 2015-08-14  Marek Polacek  <polacek@redhat.com>
12737         * tree-core.h (tree_base): Fix typo.
12739 2015-08-14  Marek Polacek  <polacek@redhat.com>
12741         PR middle-end/67133
12742         * gimple.c (infer_nonnull_range_by_attribute): Check that the
12743         nonnull argument position is not outside function arguments.
12745 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
12747         PR target/67143
12748         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12749         'lconst_atomic' with 'const_atomic'.
12750         (atomic_fetch_<optab><mode>): Likewise.
12751         (atomic_<optab>_fetch<mode>): Likewise.
12752         * config/aarch64/iterators.md (lconst-atomic): Move below
12753         'const_atomic'.
12754         (const_atomic): New.
12756 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
12757             Bernd Schmidt  <bernds@codesourcery.com>
12759         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12760         debug options.
12761         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12762         (DWARF2_DEBUGGING_INFO): Don't define.
12763         * debug.h (dwarf2_lineno_debug_hooks): Declare.
12764         * toplev.c (process_options): Add a case for it.
12765         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12766         (dwarf2out_init): Skip most initializations if
12767         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12768         case.
12769         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12770         DWARF2_LINENO_DEBUGGING_INFO.
12771         * opts.c (set_debug_level): Likewise.
12773 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
12775         * config/arm/types.md (is_neon_type): Add missing types.
12777 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12779         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12780         for skylake.
12781         * config/i386/i386.c (PTA_SKYLAKE): New macros.
12782         (processor_alias_table): Add skylake description.
12783         (enum processor_model): Add skylake processor.
12784         (arch_names_table): Add skylake record.
12785         * doc/invoke.texi: Add skylake item.
12787 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
12789         * ira-int.h: Include recog.h.
12790         * ira-build.c: Don't include recog.h.
12791         * ira-color.c: Likewise.
12792         * ira-conflicts.c: Likewise.
12793         * ira-costs.c: Likewise.
12794         * ira-emit.c: Likewise.
12795         * ira-lives.c: Likewise.
12796         * ira.c: Likewise.
12797         * sched-deps.c: Likewise.
12798         * sel-sched.c: Likewise.
12799         * target-globals.c: Likewise.
12801 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12803         PR bootstrap/55035
12804         * reload1.c (elimination_costs_in_insn): Make it obvious to the
12805         compiler that the n_dups and n_operands loop bounds are invariant.
12807 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12809         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12810         expressions in A and B.
12812 2015-08-13  Richard Biener  <rguenther@suse.de>
12814         * tree.c (nonnull_arg_p): Move from ...
12815         * tree-vrp.c (nonnull_arg_p): ... here.
12816         * tree.h (nonnull_arg_p): Declare.
12817         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12818         here, register ptr != 0 for nonnull_arg_p pointer arguments.
12819         Properly initialize static chain and by-reference result pointer.
12820         (run_scc_vn): Adjust.
12822 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12824         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12825         TUNE_I6400.
12827 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12829         * config/aarch64/aarch64-protos.h
12830         (aarch64_gen_atomic_cas): Declare.
12831         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12832         Choose appropriate instruction pattern for the target.
12833         (aarch64_gen_atomic_cas): New.
12834         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12835         (atomic_compare_and_swap<mode>_1): Rename to
12836         aarch64_compare_and_swap<mode>.  Fix some indentation.
12837         (aarch64_compare_and_swap<mode>_lse): New.
12838         (aarch64_atomic_cas<mode>): New.
12840 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12842         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12843         (TARGET_LSE): New.
12845 2015-08-13  Richard Biener  <rguenther@suse.de>
12847         PR tree-optimization/67191
12848         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12849         assert we value-numbered last stmts operand because it can validly
12850         trigger for unreachable code.
12852 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12854         PR rtl-optimization/67103
12855         * ifcvt.c (noce_try_store_flag_constants): Move
12856         x = (-(test != 0) & (b - a)) + a transformation to...
12857         (noce_try_cmove): ... Here.  Try it if normal conditional
12858         move fails.
12860 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12862         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12863         pseudo-processors.
12864         * config/mips/mips.md (processor): Remove w32 and w64.
12866 2015-08-13  Richard Biener  <rguenther@suse.de>
12868         PR tree-optimization/66502
12869         PR tree-optimization/67167
12870         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12871         backedge arguments.
12872         (vn_phi_lookup): Adjust.
12873         (vn_phi_insert): Likewise.
12874         (visit_phi): Prefer to value-number to another PHI node
12875         over value-numbering to a PHI argument.
12876         (init_scc_vn): Mark DFS back edges.
12878 2015-08-13  Richard Biener  <rguenther@suse.de>
12880         * gimple.h (gcall::code_): New constant static member.
12881         (gcond::code_): Likewise.
12882         * gimple.c (gcall::code_): Define.
12883         (gcond::code_): Likewise.
12884         (is_a_helper <const gcond *>): Add.
12885         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12886         and forward to a new gcall overload with less checking and a
12887         cheaper way to access the operand.
12888         (gimple_call_lhs_ptr): Likewise.
12889         (gimple_call_set_lhs): Likewise.
12890         (gimple_call_internal_p): Likewise.
12891         (gimple_call_with_bounds_p): Likewise.
12892         (gimple_call_set_with_bounds): Likewise.
12893         (gimple_call_internal_fn): Likewise.
12894         (gimple_call_set_ctrl_altering): Likewise.
12895         (gimple_call_ctrl_altering_p): Likewise.
12896         (gimple_call_fntype): Likewise.
12897         (gimple_call_fn): Likewise.
12898         (gimple_call_fn_ptr): Likewise.
12899         (gimple_call_set_fndecl): Likewise.
12900         (gimple_call_fndecl): Likewise.
12901         (gimple_call_chain): Likewise.
12902         (gimple_call_num_args): Likewise.
12903         (gimple_call_arg): Likewise.
12904         (gimple_call_arg_ptr): Likewise.
12905         (gimple_call_set_arg): Likewise.
12906         (gimple_call_noreturn_p): Likewise.
12907         (gimple_cond_code): Likewise.
12908         (gimple_cond_lhs): Likewise.
12909         (gimple_cond_rhs): Likewise.
12910         (gimple_has_lhs): Reduce checking.
12912 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12914         PR middle-end/25529
12915         * match.pd (div (mult @0 @1) @1) : New simplifier.
12917 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12919         PR target/67071
12920         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12921         predicate to allow construction of vector constants using the
12922         VSLDOI vector shift instruction.
12924         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12925         declaration.
12927         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12928         the number of bytes to be shifted left and filled in with either
12929         all zero or all one bits.
12930         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12931         methods exist.
12932         (output_vec_const_move): On power8, generate XXLORC to generate
12933         a vector constant with all 1's. Do a split if we need to use a
12934         VSLDOI instruction.
12936         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12937         properly test for the MSB.
12939         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12940         vector constants that can be created with VSLDOI.
12942 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
12944         revert:
12945         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12946         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12947         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12948         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12949         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12950         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12951         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12952         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12953         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12955 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
12957         * config/xtensa/constraints.md (define_constraint "Y"): New
12958         constraint.
12959         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12960         * config/xtensa/linux.h (ASM_SPEC): Likewise.
12961         * config/xtensa/predicates.md (move_operand): Match constants
12962         and symbols in the presence of TARGET_AUTO_LITPOOLS.
12963         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12964         immediate references to TLS data.
12965         (xtensa_emit_move_sequence): Don't force constants to memory in
12966         the presence of TARGET_AUTO_LITPOOLS.
12967         (print_operand): Add 'y' format, same as default, but capable of
12968         printing SF mode constants as well.
12969         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12970         (movsf_internal): Add movi pattern that loads literal.
12971         (movsf, movdf): Don't force constants to memory in the presence
12972         of TARGET_AUTO_LITPOOLS.
12973         (movdf_internal): Add 'Y' constraint.
12974         * config/xtensa/xtensa.opt (mauto-litpools): New option.
12975         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12977 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12979         * config/arm/arm-fpus.def: Replace booleans with feature flags.
12980         Update comment.
12981         * config/arm/arm.c (ARM_FPU): Update macro.
12982         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12983         (TARGET_FP16): Likewise.
12984         (TARGET_CRYPTO): Likewise.
12985         (TARGET_NEON): Likewise.
12986         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
12987         field features.
12989 2015-08-12  Tom de Vries  <tom@codesourcery.com>
12991         PR other/67092
12992         PR other/67098
12993         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
12994         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12995         accordingly.  Mention default for --with-stage1-ldflags.
12997 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12999         * config/arm/arm.h (arm_fpu_feature_set): New.
13000         (ARM_FPU_FSET_HAS): New.
13001         (FPU_FL_NONE): New.
13002         (FPU_FL_NEON): New.
13003         (FPU_FL_FP16): New.
13004         (FPU_FL_CRYPTO): New.
13006 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13008         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13009         after -mcmodel=large -fPIC sorry.
13011 2015-08-12  Richard Biener  <rguenther@suse.de>
13013         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13014         comparison operand order and commutative ternary op operand order.
13015         (sccvn_dom_walker::cond_stack): New state to track temporary
13016         expressions.
13017         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13018         no longer valid.
13019         (sccvn_dom_walker::record_cond): Add a single temporary conditional
13020         expression.
13021         (sccvn_dom_walker::record_conds): Add a temporary conditional
13022         expressions and all related expressions also true/false.
13023         (sccvn_dom_walker::before_dom_children): Record temporary
13024         expressions based on the controlling condition of a single
13025         predecessor.  When trying to simplify a conditional statement
13026         lookup expressions we might have inserted earlier.
13028 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
13030         PR target/67127
13031         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13032         to ARM core registers.
13034 2015-08-12  Nathan Sidwell  <nathan@acm.org>
13036         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13037         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13039 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
13041         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13042         line with comments.
13043         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13045 2015-08-12  Richard Biener  <rguenther@suse.de>
13047         * gimple.h (remove_pointer): New trait.
13048         (GIMPLE_CHECK2): New inline template function.
13049         (gassign::code_): New constant static member.
13050         (is_a_helper<const gassign *>): Add.
13051         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13052         and forward to a new gassign overload with less checking and a
13053         cheaper way to access the operand.
13054         (gimple_assign_lhs_ptr): Likewise.
13055         (gimple_assign_set_lhs): Likewise.
13056         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13057         Likewise.
13058         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13059         Likewise.
13060         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13061         Likewise.
13062         (gimple_assign_rhs_code): Likewise.
13063         * gimple.c (gassign::code_): Define.
13065 2015-08-12  Richard Biener  <rguenther@suse.de>
13067         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13068         Eliminate edges marked as not executable by SCCVN.
13069         * tree-ssa-sccvn.c: Include gimple-iterator.h.
13070         (cond_dom_walker): Rename to sccvn_dom_walker.
13071         (sccvn_dom_walker::before_dom_children): Value-number defs
13072         of all stmts.
13073         (run_scc_vn): Remove loop value-numbering all SSA names.
13074         Drop not visited SSA names to varying.
13076 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13078         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13079         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13080         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13081         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13082         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13083         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13084         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13085         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13086         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13088 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
13090         PR target/66954
13091         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13092         to enum feature_priority and feature_list.
13093         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13094         and isa_names_table.
13096 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
13098         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13099         vect_induction_def.
13101 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13103         PR c/66098
13104         PR c/66711
13105         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13106         account when deciding what was the command-line status.
13108 2015-08-11  Nathan Sidwell  <nathan@acm.org>
13110         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13112         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13113         we're not the only contributor to target phi.
13115 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
13117         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13118         FIXED_REG0.
13120 2015-08-11  Tom de Vries  <tom@codesourcery.com>
13122         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13124 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
13126         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13127         with CPU_SLM.
13128         * config/i386/i386.md (cpu): Remove knl.
13130 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13132         PR libgomp/65742
13133         PR middle-end/66332
13134         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13135         open-coded sequence.
13136         * omp-low.c (oacc_process_reduction_data): Remove handline of
13137         GOMP_DEVICE_HOST_NONSHM.
13139         * lto-streamer-in.c (lto_input_mode_table): Adjust to
13140         GET_MODE_INNER changes.
13142 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13143             Ilya Verbin  <ilya.verbin@intel.com>
13145         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13147 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13149         * doc/options.texi (EnabledBy): Document that the argument must be
13150         a Common option.
13151         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13152         Not enabled by -Wall.
13153         * optc-gen.awk: Give nicer error messages. Detect if the argument
13154         of EnabledBy is not a Common option.
13155         * common.opt (Wnull-dereference): Not enabled by -Wall.
13156         * opt-functions.awk (lang_enabled_by): Nicer error messages.
13158 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13160         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13161         model == 0x4f as Broadwell.
13163 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
13165         PR rtl-optimization/67028
13166         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
13167         Add test to see if a const_int fits in the new mode.
13169 2015-08-07  DJ Delorie  <dj@redhat.com>
13171         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13173 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
13175         PR rtl-optimization/67029
13176         * ira-color.c: Include "recog.h" before including "ira-int.h".
13177         * target-globals.c: Likewise.
13178         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13179         adds an alternative_mask argument and use it instead of
13180         preferred_alternatives.
13181         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13182         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13183         * sched-deps.c: Include "ira-int.h" after including "ira.h".
13184         (sched_analyze_insn): Update call to
13185         ira_implicitly_set_insn_hard_regs.
13186         * sel-sched.c: Include "ira-int.h" after including "ira.h".
13187         (implicit_clobber_conflict_p): Update call to
13188         ira_implicitly_set_insn_hard_regs.
13190 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13192         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13194 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13196         PR target/67002
13197         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13198         currently_expanding_to_rtl is set.
13200 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
13202         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13203         * configure: Regenerate.
13205 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13206             Jiong Wang  <jiong.wang@arm.com>
13208         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13209         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13210         (REG_CLASS_NAMES): Likewise.
13211         (REG_CLASS_CONTENTS): Likewise.
13212         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13213         (aarch64_register_move_cost): Likewise.
13214         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13215         possible.
13216         * config/aarch64/constraints.md (Uc0): New constraint.
13218 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13220         * config/aarch64/constraints.md (Usf): Add the test of
13221         aarch64_is_noplt_call_p.
13223 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13225         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13226         declaration.
13227         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13228         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13229         (call_symbol): Likewise.
13231 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13233         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13234         for vectorizing multiplication patterns.
13235         * tree-vectorizer.h: Adjust the number of patterns.
13237 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13239         * config/i386/sse.md (*vec_concatv2df): Declare added
13240         alternatives as sselog type.
13242 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13244         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13245         all GPRs.
13247 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13249         * config/s390/s390.c (s390_expand_tbegin): Expand either
13250         tbegin_1_z13 or tbegin_1 depending on VX flag.
13251         * config/s390/s390.md ("tbegin_1_z13"): New expander.
13253 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13255         * config/s390/s390.opt: Clarify description for -mzvector
13256         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13257         -mzvector.
13259 2015-08-06  Richard Biener  <rguenther@suse.de>
13261         * gimple.h (gimple_call_set_fn): Access op member directly.
13262         (gimple_call_chain_ptr): Likewise.
13263         (gimple_call_set_chain): Likewise.
13264         (gimple_cond_lhs_ptr): Likewise.
13265         (gimple_cond_set_lhs): Likewise.
13266         (gimple_cond_rhs_ptr): Likewise.
13267         (gimple_cond_set_rhs): Likewise.
13268         (gimple_cond_true_label): Likewise.
13269         (gimple_cond_set_true_label): Likewise.
13270         (gimple_cond_set_false_label): Likewise.
13271         (gimple_cond_false_label): Likewise.
13272         (gimple_label_label): Likewise.
13273         (gimple_label_set_label): Likewise.
13274         (gimple_goto_set_dest): Likewise.
13275         (gimple_asm_input_op): Likewise.
13276         (gimple_asm_input_op_ptr): Likewise.
13277         (gimple_asm_set_input_op): Likewise.
13278         (gimple_asm_output_op): Likewise.
13279         (gimple_asm_output_op_ptr): Likewise.
13280         (gimple_asm_set_output_op): Likewise.
13281         (gimple_asm_clobber_op): Likewise.
13282         (gimple_asm_set_clobber_op): Likewise.
13283         (gimple_asm_label_op): Likewise.
13284         (gimple_asm_set_label_op): Likewise.
13285         (gimple_switch_index): Likewise.
13286         (gimple_switch_index_ptr): Likewise.
13287         (gimple_return_retval_ptr): Likewise.
13288         (gimple_return_retval): Likewise.
13289         (gimple_return_set_retval): Likewise.
13290         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
13291         (gimple_switch_label): Likewise.
13292         (gimple_switch_set_label): Likewise.
13294 2015-08-06  Richard Biener  <rguenther@suse.de>
13296         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13297         bool comparison canonicalization and restrict to integers.
13299 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
13301         * coretypes.h (enum symbol_visibility): Relocate here.
13302         * flag-types.h (enum symbol_visibility): Remove.
13303         * tree-core.h (enum symbol_visibility): Remove.
13305 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
13307         PR target/66870
13308         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13309         for no_split_stack function attribute along with
13310         flag_split_stack.
13311         (rs6000_expand_split_stack_prologue): Likewise.
13313 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13314             Jeff Law  <law@redhat.com>
13316         PR c/16351
13317         * doc/invoke.texi (Wnull-dereference): New.
13318         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13319         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13320         Warn for potential NULL dereferences.
13321         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13322         * ubsan.c (instrument_nonnull_arg): Call
13323         infer_nonnull_range_by_attribute.
13324         (instrument_nonnull_return): Likewise.
13325         * common.opt (Wnull-dereference); New.
13326         * gimple.c (infer_nonnull_range): Remove bool arguments.
13327         (infer_nonnull_range_by_dereference): New.
13328         (infer_nonnull_range_by_attribute): New.
13329         * gimple.h: Update declarations.
13331 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13333         * gensupport.c (sequence_num): Replace with...
13334         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13335         ...these new variables.
13336         (init_rtx_reader_args_cb): Update accordingly.
13337         (get_num_code_insns): Likewise.
13338         (read_md_rtx): Rework to use a while loop and get_c_test.
13339         Use the new counters.  Remove redundant DEFINE_SUBST case.
13340         * genoutput.c (gen_split): Delete.
13341         (main): Don't call it.
13343 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13345         * gensupport.h (get_c_test): Declare.
13346         * gensupport.c (get_c_test): New function.
13347         * genconditions.c (main): Use it.
13348         * genrecog.c (validate_pattern): Likewise.
13349         (match_pattern_1): Likewise.  Remove c_test argument.
13350         (match_pattern): Update accordingly and remove c_test argument.
13351         (main): Update accordingly.
13353 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13355         * gensupport.h (get_num_insn_codes): Declare.
13356         * gensupport.c (get_num_insn_codes): New function.
13357         * genattrtab.c (optimize_attrs): Rename max_insn_code to
13358         num_insn_codes.
13359         (main): Likewise.  Use get_num_insn_codes.
13360         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13362 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13364         PR middle-end/66311
13365         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13366         is zero- rather than sign-extended.
13368 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13370         * target-insns.def (can_extend): Delete.
13372 2015-08-05  Richard Biener  <rguenther@suse.de>
13374         PR tree-optimization/67121
13375         * tree-if-conv.c (combine_blocks): Clear range-info produced
13376         by stmts no longer executed conditionally.
13378 2015-08-05  Nick Clifton  <nickc@redhat.com>
13380         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13381         to allow identical far pointers to remain.
13383 2015-08-05  Richard Biener  <rguenther@suse.de>
13385         PR middle-end/67120
13386         * match.pd: Compare address bases with == if they are decls
13387         or SSA names, not operand_equal_p.  Otherwise fail.
13389 2015-08-05  Richard Biener  <rguenther@suse.de>
13391         PR tree-optimization/67055
13392         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13393         NULL gimple_block.
13395         * g++.dg/torture/pr67055.C: New testcase.
13397 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13399         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13400         noavx512vl.
13401         (define_attr "enabled"): Handle avx521vl and noavx512vl.
13402         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13403         AVX-512 alternative out of SSE.
13404         (define_insn "*vec_concatv2df"): Ditto.
13406 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13408         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13409         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13410         CODE_FOR_avx_ptestv4di.
13411         * config/i386/sse.md (define_mode_iterator V_AVX): New.
13412         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13413         (define_insn "avx_ptest256"): Merge this ...
13414         (define_insn "sse4_1_ptest"): And this ...
13415         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13417 2015-08-05  Richard Biener  <rguenther@suse.de>
13419         PR tree-optimization/67109
13420         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13421         against too big groups.  Print whether this is a load or store
13422         group.  Rename from ...
13423         (vect_analyze_group_access): ... this which is now a wrapper
13424         dissolving an invalid group.
13425         (vect_analyze_data_ref_accesses): Print whether this is a load
13426         or store group.
13428 2015-08-05  Richard Biener  <rguenther@suse.de>
13430         PR middle-end/67107
13431         * match.pd: Guard const_binop result checking against NULL_TREE
13432         result.
13434 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
13436         * cse.c (cse_insn): Restoring old behaviour for src_eqv
13437          when dest and value in the REG_EQUAL are same and dest
13438          is STRICT_LOW_PART.
13440 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
13442         * config/moxie/moxie.h (PRINT_OPERAND,
13443           PRINT_OPERAND_ADDRESS): Remove macros.
13444         * config/moxie/moxie-protos.h (moxie_print_operand,
13445           moxie_print_operand_address): Remove declaration.
13446         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13447           TARGET_PRINT_OPERAND_ADDRESS): Define.
13448           (moxie_print_operand, moxie_print_operand_address): Make static.
13450 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13452         PR target/66731
13453         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13454         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13456 2015-08-04  Richard Biener  <rguenther@suse.de>
13458         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13459         generated code.
13460         (dt_operand::gen_gimple_expr): Adjust.
13462 2015-08-04  Richard Biener  <rguenther@suse.de>
13464         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13465         bool compares on RHS.
13466         * match.pd: Add X ==/!= !X is false/true pattern.
13468 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
13470         * config/aarch64/aarch64.c: Change inner loop statement cost
13471         to be consistent with other targets.
13473 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
13475         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13476         targets.
13478 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
13480         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13481         (machine_function): Remove pseudos field.
13483 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13485         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13486         Exit early and use target_option_current_node if processing current
13487         pragma.
13489 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13491         * doc/extend.texi (AArch64 Function Attributes): New node.
13492         (AArch64 Pragmas): Likewise.
13494 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13496         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13497         Initialize simd builtins if TARGET_SIMD.
13498         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13499         Make sure that the builtins are initialized only once no matter how
13500         many times the function is called.
13501         (aarch64_init_builtins): Unconditionally initialize crc builtins.
13502         (aarch64_relayout_simd_param): New function.
13503         (aarch64_simd_expand_args): Use above during argument expansion.
13504         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13505         simd builtins if TARGET_SIMD.
13506         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13507         prototype.
13508         (aarch64_relayout_simd_types): Likewise.
13510 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13512         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13513         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13514         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13515         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13516         static keyword.
13517         (aarch64_reset_previous_fndecl): New function.
13518         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13519         the string.
13520         * config/aarch64/aarch64-c.c: New file.
13521         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13522         Push and pop options at beginning and end.  Remove ifdef
13523         __ARM_FEATURE_CRC32.
13524         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13525         Add pragma +nothing+simd and +nothing+crypto where appropriate.
13526         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13527         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13528         Define prototype.
13529         (aarch64_register_pragmas): Likewise.
13530         (aarch64_reset_previous_fndecl): Likewise.
13531         (aarch64_process_target_attr): Likewise.
13532         (aarch64_override_options_internal): Likewise.
13534 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13536         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13537         New function.
13538         (aarch64_can_inline_p): Likewise.
13539         (TARGET_CAN_INLINE_P): Define.
13541 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13543         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13544         Remove static.  Handle OPT_mgeneral_regs_only,
13545         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13546         OPT_momit_leaf_frame_pointer.
13547         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13548         (aarch64_attr_opt_type): New enum.
13549         (aarch64_attribute_info): New struct.
13550         (aarch64_handle_attr_arch): New function.
13551         (aarch64_handle_attr_cpu): Likewise.
13552         (aarch64_handle_attr_tune): Likewise.
13553         (aarch64_handle_attr_isa_flags): Likewise.
13554         (aarch64_attributes): New table.
13555         (aarch64_process_one_target_attr): New function.
13556         (num_occurences_in_str): Likewise.
13557         (aarch64_process_target_attr): Likewise.
13558         (aarch64_option_valid_attribute_p): Likewise.
13559         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13560         * config/aarch64/aarch64-protos.h: Include input.h
13561         (aarch64_handle_option): Declare prototype.
13563 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13565         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13566         * config/aarch64/aarch64.c: Include target-globals.h
13567         (aarch64_previous_fndecl): New variable.
13568         (aarch64_set_current_function): New function.
13569         (TARGET_SET_CURRENT_FUNCTION): Define.
13571 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13573         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13574         (explicit_arch): Likewise.
13575         (x_aarch64_isa_flags): Likewise.
13576         (mgeneral-regs-only): Mark as Save.
13577         (mfix-cortex-a53-835769): Likewise.
13578         (mcmodel=): Likewise.
13579         (mstrict-align): Likewise.
13580         (momit-leaf-frame-pointer): Likewise.
13581         (mtls-dialect): Likewise.
13582         (master=): Likewise.
13583         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13584         (aarch64_isa_flags): Remove extern declaration.
13585         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13586         to indicate success or failure.
13587         (aarch64_validate_march): Likewise.
13588         (aarch64_validate_mtune): Likewise.
13589         (aarch64_isa_flags): Delete.
13590         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13591         instead of aarch64_isa_flags.
13592         (aarch64_get_tune_cpu): New function.
13593         (aarch64_get_arch): Likewise.
13594         (aarch64_override_options): Use above and set up explicit_tune_core
13595         and explicit_arch.
13596         (aarch64_print_extension): Move earlier in file.  Add isa_flags
13597         argument and use that instead of the global aarch64_isa_flags.
13598         (aarch64_option_save): New function.
13599         (aarch64_option_restore): Likewise.
13600         (aarch64_option_print): Likewise.
13601         (aarch64_declare_function_name): Likewise.
13602         (aarch64_start_file): Delete.
13603         (TARGET_ASM_FILE_START): Do not define.
13604         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13605         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13606         Declare prototype.
13608 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13610         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13611         flag_omit_leaf_frame_pointer to 2.
13613 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13615         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13616         define to 0 or 1.
13617         (TARGET_FIX_ERR_A53_835769): New macro.
13618         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13619         handling of opts->x_aarch64_fix_a53_err835769.
13620         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13621         than aarch64_fix_a53_err835769.
13622         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13623         * config/aarch64/aarch64-linux.h: Likewise.
13625 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
13627         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13628         ix86_expand_int_movcc as boolean.
13630 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13632         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13633         (aarch64_cpu_string): Likewise.
13634         (aarch64_tune_string): Likewise.
13635         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13636         (aarch64_parse_extension): Return aarch64_parse_opt_result.
13637         Add extra argument to put result into.
13638         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
13639         (aarch64_parse_cpu): Add arguments to put results into. Return
13640         aarch64_parse_opt_result.
13641         (aarch64_parse_tune): Likewise.
13642         (aarch64_override_options_after_change_1): New function.
13643         (aarch64_override_options_internal): New function.
13644         (aarch64_validate_mcpu): Likewise.
13645         (aarch64_validate_march): Likewise.
13646         (aarch64_validate_mtune): Likewise.
13647         (aarch64_override_options): Update to reflect above changes.
13648         Move some logic into aarch64_override_options_internal.
13649         Initialize target_option_default_node and target_option_current_node.
13650         (aarch64_override_options_after_change): Move logic into
13651         aarch64_override_options_after_change_1 and call it with global_options.
13652         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13653         flag values from that.
13655 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13657         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13658         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13659         * config/aarch64/aarch64.c (struct processor): Add arch field.
13660         (all_architectures): Handle above, move above all_cores.
13661         (all_cores): Handle above.
13662         (aarch64_parse_arch): Handle above changes.
13663         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13664         above.  Update comments.
13665         (armv8.1-a): Likewise.
13666         * config/aarch64/aarch64-cores.def: Update according to above.
13667         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13668         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13669         aarch64_arch_driver_info.
13671 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13673         * config/aarch64/aarch64.c (struct processor): Add ident field.
13674         Rename core sched_core.
13675         (all_cores): Handle above changes.
13676         (all_architectures): Likewise.
13677         (aarch64_parse_arch): Likewise.
13678         (aarch64_override_options): Likewise.
13680 2015-08-04  Richard Biener  <rguenther@suse.de>
13682         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13683         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13684         comparisons embedded in [VEC_]COND_EXPRs.
13686 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
13688         * tree-if-conv.c: Fix various typos in comments.
13689         * tree-vect-stmts.c: Likewise.
13691 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13693         PR tree-optimization/67043
13694         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13695         preheader after hoisting invariant in it.
13696         (find_defs): Force recomputation of all luids.
13698 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
13700         * config/rs6000/htm.md (tabort.): Restrict the source operand to
13701         using a base register.
13703 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
13705         * main.c (main): Pass in NULL for toplev's external_timer.
13706         * timevar.c: Include coretypes.h.
13707         (class timer::named_items): New.
13708         (timer::named_items::named_items): New.
13709         (timer::named_items::~named_items): New.
13710         (timer::named_items::push): New.
13711         (timer::named_items::pop): New.
13712         (timer::named_items::print): New.
13713         (timer::timer): Initialize field "m_jit_client_items".
13714         (timer::~timer): New.
13715         (timer::push): Move bulk of implementation to...
13716         (timer::push_internal): ...here.  New function.
13717         (timer::pop): Move bulk of implementation to...
13718         (timer::pop_internal): ...here.  New function.
13719         (timer::push_client_item): New.
13720         (timer::pop_client_item): New.
13721         (timer::print_row): New function, taken from timer::print.
13722         (timer::print): Print "GCC items" header if we also have client
13723         items.  Move row-printing to timer::print_row.  Print any client
13724         items.
13725         (timer::get_topmost_item_name): New method.
13726         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13727         (TV_JIT_CLIENT_CODE): New.
13728         * timevar.h (timer::push_client_item): New declaration.
13729         (timer::pop_client_item): New declaration.
13730         (timer::get_topmost_item_name): New method.
13731         (timer::push_internal): New declaration.
13732         (timer::pop_internal): New declaration.
13733         (timer::print_row): New declaration.
13734         (timer::named_items): New declaration.
13735         (timer::m_jit_client_items): New field.
13736         (timer): Add friend class named_items.
13737         (auto_timevar::auto_timevar): Add timer param.
13738         (auto_timevar::~auto_timevar): Use field "m_timer".
13739         (auto_timevar::m_timer): New field.
13740         * toplev.c (initialize_rtl): Add g_timer as param when
13741         constructing auto_timevar instance.
13742         (toplev::toplev): Add "external_timer" param, and use it to
13743         initialize the "g_timer" global if non-NULL.
13744         (toplev::~toplev): If this created "g_timer", delete it.
13745         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13746         with "external_timer" timer *.
13748 2015-08-03  Alexander Basov <coohpt@gmail.com>
13750         PR middle-end/64744
13751         PR middle-end/48470
13752         PR middle-end/43404
13753         * cfgexpand.c (expand_one_var): Add check if stack is going to
13754         be used in naked function.
13755         * expr.c (expand_expr_addr_expr_1): Remove excess checking
13756         whether expression should not reside in MEM.
13757         * function.c (use_register_for_decl): Do not use registers for
13758         non-register things (volatile, float, BLKMode) in naked functions.
13760 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
13762         PR target/67060
13763         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13764         Adjust splits to match new pattern.
13766 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13768         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13769         (VEC_M): Likewise.
13770         (VEC_N): Likewise.
13771         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13772         point in VSX registers.
13774         * config/rs6000/constraints.md (wb constraint): Document unused
13775         w<x> constraint.
13776         (we constraint): Likewise.
13777         (wo constraint): Likewise.
13778         (wp constraint): New constraint for IEEE 128-bit floating point in
13779         VSX registers.
13780         (wq constraint): Likewise.
13782         * config/rs6000/predicates.md (easy_fp_constant): Add support for
13783         IEEE 128-bit floating point in VSX registers.
13784         (easy_scalar_constant): Likewise.
13786         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13787         constraints (wp, wq) for IEEE 128-bit floating point in VSX
13788         registers.
13789         (rs6000_init_hard_regno_mode_ok): Likewise.
13791         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13792         floating point in VSX registers.
13793         (VSX_L): Likewise.
13794         (VSX_M): Likewise.
13795         (VSX_M2): Likewise.
13796         (VSm): Likewise.
13797         (VSs): Likewise.
13798         (VSr): Likewise.
13799         (VSa): Likewise.
13800         (VSv): Likewise.
13801         (vsx_le_permute_<mode>): Add support to properly swap bytes for
13802         IEEE 128-bit floating point in VSX registers on little endian.
13803         (vsx_le_undo_permute_<mode>): Likewise.
13804         (vsx_le_perm_load_<mode>): Likewise.
13805         (vsx_le_perm_store_<mode>): Likewise.
13806         (splitters for IEEE 128-bit fp moves): Likewise.
13808         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13809         wq constraints.
13811         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13812         floating point in VSX registers.
13813         (VM2): Likewise.
13815         * doc/md.text (Machine Constraints): Document wp and wq
13816         constraints on PowerPC.
13818 2015-08-03  Jeff Law  <law@redhat.com>
13820         PR middle-end/66314
13821         PR gcov-profile/66899
13822         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13823         iterate over the jump threading paths when an element in the
13824         jump threading paths array is eliminated.
13826 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
13828         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13830 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
13832         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13833         is_use_properly_guarded the variable def_preds.  Free its
13834         contents before returning.
13835         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13836         (is_use_properly_guarded): Replace local variable def_preds with
13837         a parameter.  Adjust accordingly.  Only update *def_preds if it's
13838         the empty vector.
13840 2015-08-03  Richard Biener  <rguenther@suse.de>
13842         * genmatch.c (simplify::for_subst_vec): New member.
13843         (binary_ok): New helper for for lowering.
13844         (lower_for): Delay substituting operators into result expressions
13845         if we can merge the results eventually again.
13846         (capture_info::walk_result): Adjust for user_id appearing as
13847         result expression operator.
13848         (expr::gen_transform): Likewise.
13849         (dt_simplify::gen_1): Likewise.
13850         (dt_simplify::gen): Pass not substituted operators to tail
13851         functions or initialize local variable with it.
13852         (decision_tree::gen): Adjust function signature.
13853         * match.pd: Fix tests against global code and add default
13854         cases to switch stmts.
13856 2015-08-03  Richard Biener  <rguenther@suse.de>
13858         * genmatch.c (dt_simplify::gen): Create captures array
13859         with an initializer.
13861 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13863         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13864         the host compiler is affected by placement new aliasing bug.
13865         * configure: Regenerate.
13866         * Makefile.in (ALIASING_FLAGS): New variable.
13867         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13869 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13871         PR target/66731
13872         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13873         (negmulsf3_vfp): Likewise.
13874         (muldf3negdf_vfp): Disable for -frounding-math.
13875         (mulsf3negsf_vfp): Likewise.
13876         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13877         fix MULT cost with -frounding-math.
13879 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13881         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13882         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13883         explicit.  Prefer to add the flag whenever possible.
13884         (noce_process_if_block): Try noce_try_store_flag_constants before
13885         noce_try_cmove.
13887 2015-08-03  Richard Biener  <rguenther@suse.de>
13889         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13890         New hash-map to record equivalent transforms.
13891         (dt_node::analyze): Populate the equivalent transforms hash-map.
13892         (dt_simplify::info): Add reference to hash-map entry.
13893         (dt_simplify::gen): If we have split out a function for the
13894         transform, generate a call to it.
13895         (sinfo_hashmap_traits::hash): New function.
13896         (compare_op): New helper function for ...
13897         (sinfo_hashmap_traits::equal_keys): ... this new function.
13898         (decision_tree::gen): Split out common equivalent transforms
13899         into functions.
13901 2015-08-03  Richard Biener  <rguenther@suse.de>
13903         * gimple-fold.c (fold_gimple_assign): Remove folding of
13904         the comparison in COND_EXPRs.
13906 2015-08-03  Richard Biener  <rguenther@suse.de>
13908         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13909         on the rhs of assignments first simplify the embedded
13910         GENERIC condition.
13912 2015-08-03  Richard Biener  <rguenther@suse.de>
13914         PR tree-optimization/66917
13915         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13916         field.
13917         (DR_VECT_AUX): New macro.
13918         (set_dr_misalignment): Adjust.
13919         (dr_misalignment): Likewise.
13920         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13921         Compute whether the base is at least element aligned.
13922         * tree-vect-stmts.c (ensure_base_align): Adjust.
13923         (vectorizable_store): If the base is not element aligned
13924         preserve alignment of the original access if misalignment is unknown.
13925         (vectorizable_load): Likewise.
13927 2015-08-02  Martin Sebor  <msebor@redhat.com>
13929         * c-family/c.opt (-Wframe-address): New warning option.
13930         * doc/invoke.texi (Wframe-address): Document it.
13931         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13932         Clarify possible effects of calling the functions with non-zero
13933         arguments and mention -Wframe-address.
13934         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13936 2015-08-01  Michael Collison  <michael.collison@linaro.org
13937             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13939         * config/arm/arm.md (*arm_smin_cmp): New pattern.
13940         (*arm_umin_cmp): Likewise.
13942 2015-08-01  Caroline Tice  <cmtice@google.com>
13944         PR 66521
13945         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13946         global variables.
13947         (vtbl_find_mangled_name):  New function.
13948         (vtbl_register_mangled_name):  New function.
13949         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
13950         mangled name in mangled name vectors.
13951         (find_or_create_vtbl_map_node):  Ditto.
13952         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
13953         update recursion_depth on function entry; pass it to every recursive
13954         call; automatically exit if depth > 25 (give up looking at that point).
13955         (verify_bb_vtables):  Initialize recursion_depth and pass it to
13956         var_is_used_for_virtual_call_p.
13957         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13958         global variable decls.
13959         (vtbl_register_mangled_name): New extern function decl.
13961 2015-08-01  Tom de Vries  <tom@codesourcery.com>
13963         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13964         function.
13965         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13966         Declare.
13967         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13968         operation_no_trapping_overflow.  Allow non-overflow operations.
13969         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13970         operations.
13972 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13974         PR target/67049
13975         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13977 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13979         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13980         Enable for TARGET_32BIT.
13981         (*if_move_neg): Likewise.
13983 2015-07-31  Nick Clifton  <nickc@redhat.com>
13985         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13986         Returns true for __model__.
13987         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13989 2015-07-31  Alan Modra  <amodra@gmail.com>
13991         PR target/66870
13992         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13993         (rs6000_emit_prologue): Set it.
13994         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13996 2015-07-31  Richard Biener  <rguenther@suse.de>
13998         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13999         -> X == (C1 ^ C2) which is already implemented in match.pd.
14000         Remove redundant dispatching to fold_relational_const.
14001         Move unordered self and NaN compares ...
14002         * match.pd: ... as patterns here.  Remove some stray captures
14003         and add a comment.
14005 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
14007         * config/i386/i386.c
14008         (bdesc_special_args): Convert mask type from signed to unsigned for
14009         masked builtins.
14010         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14011         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14012         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14013         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14014         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14015         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14016         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14017         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14018         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14019         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14020         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14021         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14022         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14023         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14024         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14025         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14026         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14027         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14028         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14029         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14030         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14031         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14032         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14033         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14034         * config/i386/i386-builtin-types.def
14035         (V16QI_FTYPE_V16SI): Remove.
14036         (V8DF_FTYPE_V8SI): Ditto.
14037         (V8HI_FTYPE_V8DI): Ditto.
14038         (V8SI_FTYPE_V8DI): Ditto.
14039         (V8SF_FTYPE_V8DF): Ditto.
14040         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14041         (V16HI_FTYPE_V16SI): Ditto.
14042         (V16SF_FTYPE_V16HI): Ditto.
14043         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14044         (V16SF_FTYPE_V16SI): Ditto.
14045         (V4DI_FTYPE_V4DI): Ditto.
14046         (V16SI_FTYPE_V16SF): Ditto.
14047         (V16SF_FTYPE_FLOAT): Ditto.
14048         (V8DF_FTYPE_DOUBLE): Ditto.
14049         (V8DI_FTYPE_INT64): Ditto.
14050         (V8DI_FTYPE_V4DI): Ditto.
14051         (V16QI_FTYPE_V8DI): Ditto.
14052         (UINT_FTYPE_V4SF): Ditto.
14053         (UINT64_FTYPE_V4SF): Ditto.
14054         (UINT_FTYPE_V2DF): Ditto.
14055         (UINT64_FTYPE_V2DF): Ditto.
14056         (V16SI_FTYPE_V16SI): Ditto.
14057         (V8DI_FTYPE_V8DI): Ditto.
14058         (V16SI_FTYPE_PV4SI): Ditto.
14059         (V16SF_FTYPE_PV4SF): Ditto.
14060         (V8DI_FTYPE_PV2DI): Ditto.
14061         (V8DF_FTYPE_PV2DF): Ditto.
14062         (V4DI_FTYPE_PV2DI): Ditto.
14063         (V4DF_FTYPE_PV2DF): Ditto.
14064         (V16SI_FTYPE_PV2SI): Ditto.
14065         (V16SF_FTYPE_PV2SF): Ditto.
14066         (V8DI_FTYPE_PV4DI): Ditto.
14067         (V8DF_FTYPE_PV4DF): Ditto.
14068         (V8SF_FTYPE_FLOAT): Ditto.
14069         (V4SF_FTYPE_FLOAT): Ditto.
14070         (V4DF_FTYPE_DOUBLE): Ditto.
14071         (V8SF_FTYPE_PV4SF): Ditto.
14072         (V8SI_FTYPE_PV4SI): Ditto.
14073         (V4SI_FTYPE_PV2SI): Ditto.
14074         (V8SF_FTYPE_PV2SF): Ditto.
14075         (V8SI_FTYPE_PV2SI): Ditto.
14076         (V16SF_FTYPE_PV8SF): Ditto.
14077         (V16SI_FTYPE_PV8SI): Ditto.
14078         (V8DI_FTYPE_V8SF): Ditto.
14079         (V4DI_FTYPE_V4SF): Ditto.
14080         (V2DI_FTYPE_V4SF): Ditto.
14081         (V64QI_FTYPE_QI): Ditto.
14082         (V32HI_FTYPE_HI): Ditto.
14083         (V8UHI_FTYPE_V8UHI): Ditto.
14084         (V16UHI_FTYPE_V16UHI): Ditto.
14085         (V32UHI_FTYPE_V32UHI): Ditto.
14086         (V2UDI_FTYPE_V2UDI): Ditto.
14087         (V4UDI_FTYPE_V4UDI): Ditto.
14088         (V8UDI_FTYPE_V8UDI): Ditto.
14089         (V4USI_FTYPE_V4USI): Ditto.
14090         (V8USI_FTYPE_V8USI): Ditto.
14091         (V16USI_FTYPE_V16USI): Ditto.
14092         (V2DF_FTYPE_V2DF_UINT64): Ditto.
14093         (V2DI_FTYPE_V2DF_V2DF): Ditto.
14094         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14095         (V8DF_FTYPE_V8DF_V8DI): Ditto.
14096         (V4SF_FTYPE_V4SF_UINT64): Ditto.
14097         (V4SI_FTYPE_V4SF_V4SF): Ditto.
14098         (V16SF_FTYPE_V16SF_V16SI): Ditto.
14099         (V64QI_FTYPE_V32HI_V32HI): Ditto.
14100         (V32HI_FTYPE_V16SI_V16SI): Ditto.
14101         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14102         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14103         (V32HI_FTYPE_V64QI_V64QI): Ditto.
14104         (V32HI_FTYPE_V32HI_V32HI): Ditto.
14105         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14106         (V16SI_FTYPE_V16SI_V4SI): Ditto.
14107         (V16SI_FTYPE_V16SI_V16SI): Ditto.
14108         (V16SI_FTYPE_V32HI_V32HI): Ditto.
14109         (V16SI_FTYPE_V16SI_SI): Ditto.
14110         (V8DI_FTYPE_V8DI_V8DI): Ditto.
14111         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14112         (V8DI_FTYPE_V16SI_V16SI): Ditto.
14113         (V8DI_FTYPE_V8DI_V2DI): Ditto.
14114         (QI_FTYPE_QI): Ditto.
14115         (SI_FTYPE_SI): Ditto.
14116         (DI_FTYPE_DI): Ditto.
14117         (QI_FTYPE_QI_QI): Ditto.
14118         (QI_FTYPE_QI_INT): Ditto.
14119         (HI_FTYPE_HI_INT): Ditto.
14120         (SI_FTYPE_SI_INT): Ditto.
14121         (DI_FTYPE_DI_INT): Ditto.
14122         (HI_FTYPE_V16QI_V16QI): Ditto.
14123         (SI_FTYPE_V32QI_V32QI): Ditto.
14124         (DI_FTYPE_V64QI_V64QI): Ditto.
14125         (QI_FTYPE_V8HI_V8HI): Ditto.
14126         (HI_FTYPE_V16HI_V16HI): Ditto.
14127         (SI_FTYPE_V32HI_V32HI): Ditto.
14128         (QI_FTYPE_V4SI_V4SI): Ditto.
14129         (QI_FTYPE_V8SI_V8SI): Ditto.
14130         (QI_FTYPE_V2DI_V2DI): Ditto.
14131         (QI_FTYPE_V4DI_V4DI): Ditto.
14132         (QI_FTYPE_V8DI_V8DI): Ditto.
14133         (HI_FTYPE_V16SI_V16SI): Ditto.
14134         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14135         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14136         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14137         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14138         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14139         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14140         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14141         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14142         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14143         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14144         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14145         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14146         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14147         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14148         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14149         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14150         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14151         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14152         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14153         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14154         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14155         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14156         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14157         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14158         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14159         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14160         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14161         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14162         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14163         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14164         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14165         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14166         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14167         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14168         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14169         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14170         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14171         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14172         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14173         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14174         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14175         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14176         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14177         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14178         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14179         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14180         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14181         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14182         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14183         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14184         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14185         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14186         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14187         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14188         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14189         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14190         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14191         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14192         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14193         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14194         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14195         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14196         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14197         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14198         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14199         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14200         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14201         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14202         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14203         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14204         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14205         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14206         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14207         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14208         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14209         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14210         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14211         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14212         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14213         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14214         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14215         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14216         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14217         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14218         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14219         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14220         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14221         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14222         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14223         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14224         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14225         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14226         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14227         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14228         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14229         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14230         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14231         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14232         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14233         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14234         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14235         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14236         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14237         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14238         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14239         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14240         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14241         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14242         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14243         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14244         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14245         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14246         (HI_FTYPE_HI): Ditto.
14247         (HI_FTYPE_V16QI): Ditto.
14248         (SI_FTYPE_V32QI): Ditto.
14249         (DI_FTYPE_V64QI): Ditto.
14250         (QI_FTYPE_V8HI): Ditto.
14251         (HI_FTYPE_V16HI): Ditto.
14252         (SI_FTYPE_V32HI): Ditto.
14253         (QI_FTYPE_V4SI): Ditto.
14254         (QI_FTYPE_V8SI): Ditto.
14255         (HI_FTYPE_V16SI): Ditto.
14256         (QI_FTYPE_V2DI): Ditto.
14257         (QI_FTYPE_V4DI): Ditto.
14258         (QI_FTYPE_V8DI): Ditto.
14259         (V16QI_FTYPE_HI): Ditto.
14260         (V32QI_FTYPE_SI): Ditto.
14261         (V64QI_FTYPE_DI): Ditto.
14262         (V8HI_FTYPE_QI): Ditto.
14263         (V16HI_FTYPE_HI): Ditto.
14264         (V32HI_FTYPE_SI): Ditto.
14265         (V4SI_FTYPE_QI): Ditto.
14266         (V4SI_FTYPE_HI): Ditto.
14267         (V8SI_FTYPE_QI): Ditto.
14268         (V8SI_FTYPE_HI): Ditto.
14269         (V2DI_FTYPE_QI): Ditto.
14270         (V4DI_FTYPE_QI): Ditto.
14271         (HI_FTYPE_HI_HI): Ditto.
14272         (SI_FTYPE_SI_SI): Ditto.
14273         (DI_FTYPE_DI_DI): Ditto.
14274         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14275         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14276         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14277         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14278         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14279         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14280         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14281         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14282         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14283         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14284         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14285         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14286         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14287         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14288         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14289         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14290         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14291         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14292         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14293         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14294         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14295         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14296         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14297         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14298         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14299         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14300         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14301         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14302         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14303         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14304         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14305         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14306         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14307         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14308         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14309         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14310         (V16SI_FTYPE_HI): Ditto.
14311         (V8DI_FTYPE_QI): Ditto.
14312         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14313         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14314         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14315         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14316         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14317         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14318         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14319         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14320         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14321         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14322         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14323         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14324         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14325         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14326         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14327         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14328         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14329         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14330         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14331         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14332         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14333         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14334         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14335         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14336         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14337         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14338         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14339         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14340         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14341         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14342         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14343         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14344         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14345         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14346         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14347         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14348         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14349         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14350         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14351         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14352         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14353         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14354         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14355         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14356         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14357         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14358         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14359         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14360         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14361         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14362         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14363         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14364         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14365         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14366         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14367         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14368         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14369         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14370         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14371         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14372         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14373         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14374         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14375         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14376         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14377         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14378         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14379         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14380         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14381         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14382         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14383         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14384         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14385         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14386         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14387         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14388         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14389         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14390         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14391         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14392         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14393         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14394         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14395         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14396         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14397         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14398         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14399         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14400         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14401         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14402         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14403         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14404         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14405         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14406         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14407         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14408         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14409         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14410         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14411         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14412         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14413         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14414         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14415         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14416         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14417         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14418         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14419         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14420         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14421         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14422         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14423         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14424         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14425         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14426         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14427         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14428         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14429         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14430         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14431         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14432         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14433         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14434         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14435         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14436         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14437         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14438         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14439         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14440         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14441         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14442         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14443         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14444         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14445         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14446         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14447         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14448         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14449         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14450         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14451         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14452         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14453         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14454         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14455         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14456         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14457         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14458         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14459         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14460         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14461         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14462         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14463         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14464         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14465         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14466         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14467         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14468         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14469         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14470         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14471         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14472         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14473         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14474         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14475         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14476         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14477         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14478         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14479         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14480         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14481         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14482         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14483         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14484         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14485         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14486         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14487         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14488         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14489         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14490         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14491         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14492         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14493         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14494         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14495         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14496         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14497         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14498         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14499         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14500         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14501         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14502         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14503         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14504         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14505         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14506         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14507         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14508         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14509         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14510         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14511         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14512         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14513         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14514         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14515         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14516         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14517         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14518         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14519         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14520         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14521         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14522         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14523         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14524         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14525         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14526         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14527         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14528         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14529         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14530         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14531         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14532         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14533         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14534         (QI_FTYPE_V8DF_INT_QI): Ditto.
14535         (QI_FTYPE_V4DF_INT_QI): Ditto.
14536         (QI_FTYPE_V2DF_INT_QI): Ditto.
14537         (HI_FTYPE_V16SF_INT_HI): Ditto.
14538         (QI_FTYPE_V8SF_INT_QI): Ditto.
14539         (QI_FTYPE_V4SF_INT_QI): Ditto.
14540         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14542 2015-07-31  Richard Biener  <rguenther@suse.de>
14544         * gimple-fold.c (fold_gimple_assign): Remove folding of
14545         GIMPLE_BINARY_RHS.
14547 2015-07-31  Tom de Vries  <tom@codesourcery.com>
14549         PR tree-optimization/66846
14550         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14551         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14552         (expand_omp_target) [ENABLE_CHECKING]: Same.
14553         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14554         cfun if !LOOPS_NEED_FIXUP.
14555         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
14556         that omp_for already has its own loop struct.
14557         * tree-parloops.c (create_phi_for_local_result)
14558         (create_call_for_reduction): Handle simple latch bb.
14559         (create_parallel_loop): Add simple latch bb to preserve
14560         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
14561         (gen_parallel_loop): Remove call to cancel_loop_tree.
14562         (parallelize_loops): Skip loops that are inner loops of parallelized
14563         loops.
14564         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14565         verify_loop_structure.
14567 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14569         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14570         * config/v850/v850.md (RV_REGNUM): New constants.
14571         * config/v850/v850.c (v850_libcall_value): New functions.
14572         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14573         (TARGET_LIBCALL_VALUE): Define.
14575 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14577         * rtl.h (lowpart_subreg): Move in file.
14578         * loop-iv.c (lowpart_subreg): Move to...
14579         * simplify-rtx.c (lowpart_subreg): ...here.
14580           (simplify_binary_operation_1): Use lowpart_subreg instead of
14581           simplify_gen_subreg.
14582         * expr.c (expand_expr_real_2): Ditto.
14583         * emit-rtl.c (gen_lowpart_common): Ditto.
14584         * combine.c (gen_lowpart_for_combine): Ditto.
14585         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14586           expand_debug_source_expr): Ditto.
14588 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
14590         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14591         (expand_builtin_atomic_clear): Remove support for atomic_clear
14592         pattern.
14594 2015-07-30  Richard Biener  <rguenther@suse.de>
14596         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14597         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14598         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
14599         redundant operand canonicalization.
14601 2015-07-30  David Sherwood  <david.sherwood@arm.com>
14603         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14604         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14605         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14606         * config/arm/arm.c (neon_valid_immediate): Likewise.
14607         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14608         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14609         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14610         (expand_vec_perm_vpshufb2_vpermq): Likewise.
14611         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14612         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14613         * config/i386/sse.md
14614         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14615         (*ssse3_palignr<mode>_perm): Likewise.
14616         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14617         * config/spu/spu.c (arith_immediate_p): Likewise.
14618         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14619         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14621 2015-07-30  Richard Biener  <rguenther@suse.de>
14623         * genmatch.c (decision_tree::gen_gimple): Merge with ...
14624         (decision_tree::gen_generic): ... this into ...
14625         (decision_tree::gen): ... this.
14626         (main): Adjust callers.
14628 2015-07-30  Richard Biener  <rguenther@suse.de>
14630         * genmatch.c (verbose): New global.
14631         (warning_at): Add overload with source_location.
14632         (capture_info::capture_info): Add bool whether generating gimple
14633         or generic.  Add gimple member.
14634         (capture_info::cinfo): Add capture member.
14635         (capture_info::walk_match): Record capture.  Warn on
14636         non-captured leafs.
14637         (capture_info::walk_c_expr): Add more fragments captures cannot
14638         escape through.  Warn on escaped captures.
14639         (dt_simplify::gen_1): Warn on operands we force to have no
14640         side-effects.
14641         (main): Initialize verbose.
14642         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14644 2015-07-30  Richard Biener  <rguenther@suse.de>
14646         PR middle-end/67053
14647         * match.pd: Allow both operands to independently have conversion
14648         when simplifying compares of addresses.
14650 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
14652         PR target/66217
14653         PR target/67045
14654         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14655         around those cases that need one.
14657 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
14659         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14661 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14663         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14664         New.  Copied from config/i386/gnu-user.h.
14665         (ASM_COMMENT_START): Likewise.
14666         (DBX_REGISTER_NUMBER): Likewise.
14668 2015-07-29  Richard Biener  <rguenther@suse.de>
14670         * gimple-fold.c (fold_gimple_cond): Remove.
14671         (fold_stmt_1): Do not call it.
14673 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
14675         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14676         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14678         * config/aarch64/aarch64-modes.def: Add HFmode.
14680         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14681         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14683         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14684         aarch64_promoted_type): New.
14686         (aarch64_float_const_representable_p): Disable HFmode.
14687         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14688         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14689         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14691         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14692         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14694         * config/aarch64/iterators.md (GPF_F16): New.
14696 2015-07-29  Richard Biener  <rguenther@suse.de>
14698         * match.pd: Merge address comparison patterns and make them
14699         handle some more cases.
14701 2015-07-29  Richard Biener  <rguenther@suse.de>
14703         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14704         (parser::parse_capture): Add bool argument on whether to reject
14705         unknown captures.
14706         (parser::parse_expr): Adjust.
14707         (parser::parse_op): Likewise.
14708         (parser::parse_pattern): Likewise.
14710 2015-07-29  Richard Biener  <rguenther@suse.de>
14712         * gimple-fold.c (has_use_on_stmt): New function.
14713         (replace_stmt_with_simplification): Use it to allow
14714         abnormals originally referenced in the stmt.
14715         (fold_stmt_1): Canonicalize operand order.
14717 2015-07-28  David Sherwood  <david.sherwood@arm.com>
14719         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14720         GET_MODE_INNER unconditionally.
14721         * config/spu/spu.c (arith_immediate_p): Likewise.
14722         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14723         * expmed.c (synth_mult): Remove check for VOIDmode result from
14724         GET_MODE_INNER.
14725         (expand_mult_const): Likewise.
14726         * fold-const.c (fold_binary_loc): Replace call to element_precision
14727         with call to GET_MODE_PRECISION.
14728         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14729         m->name.
14730         (emit_mode_inner): Likewise.
14731         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14732         result check.
14733         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14734         (GET_MODE_UNIT_PRECISION): Likewise.
14735         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14736         * simplify-rtx.c (simplify_immed_subreg): Likewise.
14737         * stor-layout.c (bitwise_type_for_mode): Update assert.
14738         (element_precision): Remove.
14740 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14742         * target-insns.def (reload_load_address): New targetm instruction
14743         pattern.
14744         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14746 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14748         * target-insns.def (atomic_test_and_set): New targetm instruction
14749         pattern.
14750         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14751         HAVE_*/gen_* interface.
14753 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14755         * target-insns.def (can_extend, ptr_extend): New targetm instruction
14756         patterns.
14757         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14758         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14759         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14760         * rtlanal.c (nonzero_bits1): Likewise.
14761         (num_sign_bit_copies1): Likewise.
14763 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14765         * target-insns.def (eh_return): New targetm instruction pattern.
14766         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14767         interface.
14768         * function.c (thread_prologue_and_epilogue_insns): Remove
14769         preprocessor condition.
14771 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14773         * target-insns.def (indirect_jump): New targetm instruction pattern.
14774         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14775         interface.
14777 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14779         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14780         instead of nonimmediate_operand.  Remove C condiition.
14782 2015-07-28  Richard Biener  <rguenther@suse.de>
14784         * match.pd: Add more simplification of address comparisons.
14786 2015-07-28  Richard Biener  <rguenther@suse.de>
14788         * match.pd: Re-order two cases in comparison with max/min
14789         value simplification to make it apply for bools.
14791 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14793         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14794         Handle simple SIGN_EXTEND or ZERO_EXTEND.
14795         (aarch64_rtx_costs): Properly strip extend or extract before
14796         passing down to rtx costs again.
14798 2015-07-28  Nick Clifton  <nickc@redhat.com>
14800         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14801         Optimizes the case where -mes0 is active and a constant symbolic
14802         address is used.
14803         * config/rl78/rl78-protos.h: Prototype the new function.
14804         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14806 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14808         * tree-parloops.c (reduc_stmt_res): New function.
14809         (initialize_reductions, add_field_for_reduction)
14810         (create_phi_for_local_result, create_loads_for_reductions)
14811         (create_stores_for_reduction, build_new_reduction): Handle case that
14812         reduc_stmt is a phi.
14813         (gather_scalar_reductions): Allow double_reduc reductions.
14815 2015-07-28  Richard Biener  <rguenther@suse.de>
14817         * fold-const.c (fold_comparison): Remove equality folding
14818         of decl addresses ...
14819         * match.pd: ... here and merge with existing pattern.
14821 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14823         PR tree-optimization/66828
14824         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14825         from int64_t to uint64_t.
14827 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14829         * opts-common.c (read_cmdline_option): List DriverOnly enum values
14830         as valid only in the error message of the driver, not in the
14831         messages of the language compilers.
14833 2015-07-27  Tom de Vries  <tom@codesourcery.com>
14835         * tree-parloops.c (gather_scalar_reductions): Simplify function
14836         structure.
14838 2015-07-27  Marek Polacek  <polacek@redhat.com>
14840         * ipa-devirt.c (types_same_for_odr): Fix typo.
14842 2015-07-27  Jason Merrill  <jason@redhat.com>
14844         PR debug/66468
14845         * dwarf2out.c (gen_inlined_subroutine_die): Check
14846         cgraph_function_possibly_inlined_p.
14848 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14850         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14851         Place integer variant first.
14852         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14854 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14856         PR/63870
14857         * config/arm/arm-builtins.c (enum arm_builtins):
14858         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14859         (ARM_BUILTIN_NEON_BASE): Rename macro to....
14860         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14861         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14862         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14864 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14866         PR/63870
14867         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14868         Add qualifier_lane_index.
14869         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14870         (arm_getlane_qualifiers): Use qualifier_lane_index.
14871         (arm_lanemac_qualifiers): Rename to...
14872         (arm_mac_n_qualifiers): ...this.
14873         (LANEMAC_QUALIFIERS): Rename to...
14874         (MAC_N_QUALIFIERS): ...this.
14875         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14876         (arm_setlane_qualifiers): Use qualifier_lane_index.
14877         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14878         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14879         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14880         (arm_expand_neon_builtin): Handle qualifier_lane_index.
14882         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14883         * config/arm/arm.c (bounds_check): Likewise, improve error message.
14884         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14885         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14886         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14887         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14888         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14889         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14890         qualifiers to TERNOP_IMM.
14891         (vdup_lane): Change qualifiers to GETLANE.
14892         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14893         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14894         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14895         vqdmlsl_n): Change qualifiers to MAC_N.
14897         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14898         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14899         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14900         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14901         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14902         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14903         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14904         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14905         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14906         Remove call to neon_lane_bounds.
14908 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14910         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14911         Place integer variant first.
14913 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
14915         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14916         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14917         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14918         for armv6kz targets.
14919         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14920         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14921         (FL_FOR_ARCH6ZK): Remove.
14922         (FL_FOR_ARCH6KZ): New.
14923         (arm_arch6zk): New declaration.
14924         * config/arm/arm-tables.opt: Regenerate.
14925         * config/arm/arm.c (arm_arch6kz): New.
14926         (arm_option_override): Set arm_arch6kz.
14927         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14928         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14929         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14931 2015-07-27  Marek Polacek  <polacek@redhat.com>
14933         PR c++/66555
14934         PR c/54979
14935         * doc/invoke.texi: Document -Wtautological-compare.
14937 2015-07-27  Richard Biener  <rguenther@suse.de>
14939         * genmatch.c (decision_tree::gen_gimple): Split out large
14940         subtrees into separate functions.
14941         (decision_tree::gen_generic): Likewise.
14943 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
14945         * config/alpha/alpha.c: Use SUBREG_P predicate.
14946         * config/alpha/predicates.md: Ditto.
14948 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14950         * config.host (s390*-*-*): Include driver-native.c only when
14951         building with s390* as host *and* target.
14953 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
14955         PR target/66930
14956         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14957         T bit register modified_between_p check.
14959 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14961         * config/i386/i386.c: Use SUBREG_P predicate.
14962         * config/i386/i386.md: Ditto.
14963         * config/i386/sse.md: Ditto.
14964         * config/i386/predicates.md: Ditto.
14966 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14968         PR target/67004
14969         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14970         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14972 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14974         * Makefile.in: Remove use of TREEBROWSER.
14975         * config.in: Regenerated.
14976         * configure: Regenerated.
14977         * configure.ac: Remove definition of TREEBROWSER.
14978         * tree-browser.c: Removed.
14979         * tree-browser.def: Removed.
14981 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14983         * graphite-scop-detection.c: Include gimple-pretty-print.h.
14984         (stmt_simple_for_scop_p): Print when a stmt is not handled in
14985         Graphite.
14986         (scopdet_basic_block_info): Print when a loop or bb cannot be
14987         represented in Graphite.
14989 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14991         PR target/66648
14992         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14993         execution guard when min_size is less than size_needed.
14995 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14997         * doc/install.texi: Document supported versions of ISL.
14999 2015-07-25  Jeff Law  <law@redhat.com>
15001         Revert:
15002         PR lto/66752
15003         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15004         unable to find X NE 0 in the tables, return X as the simplified
15005         condition.
15006         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15007         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15008         to VISISTED_BBS.  */
15009         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15010         after removing the control flow statement and unnecessary edges.
15012 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
15014         Revert:
15015         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15017         PR rtl-optimization/64164
15018         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15019         * tree-ssa-copyrename.c: Removed.
15020         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15021         -ftree-coalesce-vars.
15022         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15023         * common.opt (ftree-copyrename): Ignore.
15024         (ftree-coalesce-inlined-vars): Likewise.
15025         * doc/invoke.texi: Remove the ignored options above.
15026         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15027         * tree-ssa-coalesce.h: ... here.
15028         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15029         headers required by it.
15030         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15031         across variables when flag_tree_coalesce_vars.  Check register
15032         use and promoted modes to allow coalescing.  Moved to
15033         tree-ssa-coalesce.c.
15034         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15035         with its member functions to tree-ssa-coalesce.c.
15036         (var_map_base_init): Likewise.  Renamed to
15037         compute_samebase_partition_bases.
15038         (partition_view_normal): Drop want_bases parameter.
15039         (partition_view_bitmap): Likewise.
15040         * tree-ssa-live.h: Adjust declarations.
15041         * tree-ssa-coalesce.c: Include explow.h.
15042         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15043         default defs at the entry point.
15044         (dump_part_var_map): New.
15045         (compute_optimized_partition_bases): New, called by...
15046         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15047         of compute_samebase_partition_bases.  Adjust.
15048         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15049         * cfgexpand.c (leader_merge): New.
15050         (get_rtl_for_parm_ssa_default_def): New.
15051         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15052         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15053         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15054         redundant MEM attr setting.
15055         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15056         from...
15057         (expand_one_stack_var): ... this.  New wrapper to check and
15058         skip already expanded SSA partitions.
15059         (record_alignment_for_reg_var): New, factored out of...
15060         (expand_one_var): ... this.
15061         (expand_one_ssa_partition): New.
15062         (adjust_one_expanded_partition_var): New.
15063         (expand_one_register_var): Check and skip already expanded SSA
15064         partitions.
15065         (expand_used_vars): Don't create DECLs for anonymous SSA
15066         names.  Expand all SSA partitions, then adjust all SSA names.
15067         (pass::execute): Replace the loops that set
15068         SA.partition_to_pseudo from partition leaders and cleared
15069         DECL_RTL for multi-location variables, and that which used to
15070         rename vars and set attrs, with one that clears DECL_RTL and
15071         checks that PARMs and RESULTs default_defs match DECL_RTL.
15072         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15073         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15074         * explow.c (promote_ssa_mode): New.
15075         * explow.h (promote_ssa_mode): Declare.
15076         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15077         * function.c: Include cfgexpand.h.
15078         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15079         (use_register_for_parm_decl): Wrapper for the above to
15080         special-case the result_ptr.
15081         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15082         (split_complex_args): Take assign_parm_data_all argument.
15083         Pass it to rtl_for_parm.  Set up rtl and context for split
15084         args.
15085         (assign_parms_augmented_arg_list): Adjust.
15086         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15087         multiple locations.  Recognize split complex args.
15088         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15089         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15090         (assign_parm_setup_block): Prefer SSA-assigned location.
15091         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15092         if stack_parm is NULL.
15093         (assign_parm_setup_stack): Prefer SSA-assigned location.
15094         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15095         rtl before testing for pointer bounds.  Special-case result_ptr.
15096         (expand_function_start): Maybe reset DECL_RTL of result.
15097         Prefer SSA-assigned location for result and static chain.
15098         Factor out DECL_RESULT and SET_DECL_RTL.
15099         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15100         anonymous SSA names.  Use promote_ssa_mode.
15101         (get_temp_reg): Likewise.
15102         (remove_ssa_form): Adjust.
15103         * stor-layout.c (layout_decl): Don't set mem attributes of
15104         non-MEMs.
15105         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15106         and get its reg_usage for reg invalidation.
15107         (compute_bb_dataflow): Pass it insn.
15108         (emit_notes_in_bb): Likewise.
15110 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15112         * config/i386/i386.c (ix86_va_start): Remove
15113         unneeded !TARGET_64BIT check.
15114         (ix86_gimplify_va_arg): Ditto.
15116 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15118         * graphite-sese-to-poly.c (build_poly_scop): Always call
15119         rewrite_commutative_reductions_out_of_ssa.
15121 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15123         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15124         flag_associative_math to FLOAT_TYPE_P.  Honour
15125         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15127 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15129         PR c++/64079
15130         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15131         and "%qD" in warning_at instead of "%q+D" in warning.
15133 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15135         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15136         (ix86_function_abi): Cleanup.
15138 2015-07-24  Michael Darling  <darlingm@gmail.com>
15140         PR other/66259
15141         * acinclude.m4: Reflects renaming of configure.in to configure.ac
15142         * configure: Likewise
15143         * configure.ac: Likewise
15144         * doc/install.texi: Likewise
15145         * doc/tm.texi: Likewise
15146         * doc/tm.texi.in: Likewise
15148 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15150         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15151         manually swapping values.
15152         * cse.c (fold_rtx): Likewise.
15153         * lra-eliminations.c (form_sum): Likewise.
15155 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15157         PR target/64003
15158         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15159         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15160         (*jcc_1, *jcc_2, jump, simple_return_internal)
15161         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15162         Set length_nobnd attribute instead of length attribute.
15163         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15164         (length_nobnd): Remove attribute.
15165         (length): Remove length_nobnd processing.
15167 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
15169         * gimplify.c (omp_default_clause): New function.  Reorganize flow
15170         for clarity. Broken out of ...
15171         (omp_notice_variable): ... here.
15173 2015-07-24  Gary Funck  <gary@intrepid.com>
15175         PR middle-end/66984
15176         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15177         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15179 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15181         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15182         exit-first loop transform.
15184 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15186         PR 66714
15187         * tree-cfg.c (struct replace_decls_d): New struct.
15188         (replace_block_vars_by_duplicates_1): New function.
15189         (replace_block_vars_by_duplicates): Use it to replace the decls
15190         in the value exprs by duplicates.
15192 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15194         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15195         -shared, -symbolic, -rdynamic.
15197 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15199         PR target/65711
15200         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15201         -dynamic-linker within %{!static %{!shared, and -rdynamic within
15202         %{!static.
15204 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15206         PR ipa/66566
15207         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15208         edge summary is available.
15210 2015-07-24  Richard Biener  <rguenther@suse.de>
15212         * genmatch.c (struct dt_node): Add statistic fields.
15213         (dt_node::analyze): New method.
15214         (decision_tree::gen_gimple): Call analyze on the root node
15215         and print statistics to stderr.
15216         (decision_tree::gen_generic): Likewise.
15218 2015-07-24  Richard Biener  <rguenther@suse.de>
15220         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15221         against the highest or lowest possible integer ...
15222         * match.pd: ... as patterns here.
15224 2015-07-24  Richard Biener  <rguenther@suse.de>
15226         * genmatch.c (struct capture_info): Add same_as field.
15227         (capture_info::capture_info): Initialize same_as.
15228         (capture_info::walk_match): Compute same_as.
15229         (capture_info::walk_result): Compute stuff for the leader.
15230         (capture_info::walk_c_expr): Likewise.
15231         (dt_simplify::gen_1): Only look at leaders when deciding
15232         to force no side-effects or emit side-effects of omitted operands.
15234 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15236         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15237         reg note to the GPR -> FPR save instructions.
15239 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15241         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15242         cheaper.
15243         (s390_expand_insv): Don't generate risbg pattern for constant zero
15244         sources.
15245         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15246         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
15247         splitters.
15249 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15251         * config/s390/s390.c (s390_reorg): Clean up handling of processors
15252         with
15253         -mtune=
15254         (s390_issue_rate): Likewise.
15255         (s390_sched_reorder): Likewise.
15256         (s390_sched_variable_issue): Likewise.
15257         (s390_loop_unroll_adjust): Likewise.
15258         (s390_option_override):  Likewise.
15260 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15262         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15263         processor capabilities with -march=native.
15264         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15265         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
15266         (S390_TARGET_BITS_STRING): Macro to simplify specs.
15268 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15270         * config/s390/s390.c (s390_issue_rate): Handle
15271         PROCESSOR_2094_Z9_EC.
15272         (s390_option_override): Likewise.
15273         (s390_adjust_priority): Likewise.
15275 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15277         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15278         when cross compiling.
15280 2015-07-24  Richard Biener  <rguenther@suse.de>
15282         * fold-const.c (maybe_canonicalize_comparison_1): Move
15283         A code CST canonicalization ...
15284         * match.pd: ... to a pattern here.
15286 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
15288         Revert:
15289         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15290         PR target/63521
15291         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15292         (HONOR_REG_ALLOC_ORDER): Define.
15294 2015-07-24  Richard Biener  <rguenther@suse.de>
15296         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15297         * fold-const.c (fold_comparison): Move parameter does not
15298         alias &local simplification ...
15299         * match.pd: ... as a pattern here.
15301 2015-07-24  Richard Biener  <rguenther@suse.de>
15303         * gimple-fold.c (replace_stmt_with_simplification): Special-case
15304         valueizing call operands.
15305         * gimple-match-head.c (maybe_push_res_to_seq): Take
15306         number of call arguments from ops array.
15307         (do_valueize): New function.
15308         (gimple_simplify): Return true if valueization changed
15309         any operand even if the result didn't simplify further.
15311 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15313         PR middle-end/25530
15314         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15316 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15318         PR middle-end/25529
15319         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15321 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15323         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15324         instruction.
15326 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15328         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15329         clean up.
15331 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
15333         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15334         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
15335         targets here.
15336         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15337         ms_va_list_type_node initialization.
15339 2015-07-23  Jeff Law  <law@redhat.com>
15341         PR lto/66752
15342         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15343         unable to find X NE 0 in the tables, return X as the simplified
15344         condition.
15345         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15346         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15347         to VISISTED_BBS.  */
15348         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15349         after removing the control flow statement and unnecessary edges.
15351 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15353         * tree-pass.h (get_current_pass_name): Removed.
15355 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15357         PR rtl-optimization/64164
15358         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15359         * tree-ssa-copyrename.c: Removed.
15360         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15361         -ftree-coalesce-vars.
15362         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15363         * common.opt (ftree-copyrename): Ignore.
15364         (ftree-coalesce-inlined-vars): Likewise.
15365         * doc/invoke.texi: Remove the ignored options above.
15366         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15367         * tree-ssa-coalesce.h: ... here.
15368         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15369         headers required by it.
15370         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15371         across variables when flag_tree_coalesce_vars.  Check register
15372         use and promoted modes to allow coalescing.  Moved to
15373         tree-ssa-coalesce.c.
15374         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15375         with its member functions to tree-ssa-coalesce.c.
15376         (var_map_base_init): Likewise.  Renamed to
15377         compute_samebase_partition_bases.
15378         (partition_view_normal): Drop want_bases parameter.
15379         (partition_view_bitmap): Likewise.
15380         * tree-ssa-live.h: Adjust declarations.
15381         * tree-ssa-coalesce.c: Include explow.h.
15382         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15383         default defs at the entry point.
15384         (dump_part_var_map): New.
15385         (compute_optimized_partition_bases): New, called by...
15386         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15387         of compute_samebase_partition_bases.  Adjust.
15388         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15389         * cfgexpand.c (leader_merge): New.
15390         (get_rtl_for_parm_ssa_default_def): New.
15391         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15392         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15393         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15394         redundant MEM attr setting.
15395         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15396         from...
15397         (expand_one_stack_var): ... this.  New wrapper to check and
15398         skip already expanded SSA partitions.
15399         (record_alignment_for_reg_var): New, factored out of...
15400         (expand_one_var): ... this.
15401         (expand_one_ssa_partition): New.
15402         (adjust_one_expanded_partition_var): New.
15403         (expand_one_register_var): Check and skip already expanded SSA
15404         partitions.
15405         (expand_used_vars): Don't create DECLs for anonymous SSA
15406         names.  Expand all SSA partitions, then adjust all SSA names.
15407         (pass::execute): Replace the loops that set
15408         SA.partition_to_pseudo from partition leaders and cleared
15409         DECL_RTL for multi-location variables, and that which used to
15410         rename vars and set attrs, with one that clears DECL_RTL and
15411         checks that PARMs and RESULTs default_defs match DECL_RTL.
15412         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15413         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15414         * explow.c (promote_ssa_mode): New.
15415         * explow.h (promote_ssa_mode): Declare.
15416         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15417         * function.c: Include cfgexpand.h.
15418         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15419         (use_register_for_parm_decl): Wrapper for the above to
15420         special-case the result_ptr.
15421         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15422         (split_complex_args): Take assign_parm_data_all argument.
15423         Pass it to rtl_for_parm.  Set up rtl and context for split
15424         args.
15425         (assign_parms_augmented_arg_list): Adjust.
15426         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15427         multiple locations.  Recognize split complex args.
15428         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15429         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15430         (assign_parm_setup_block): Prefer SSA-assigned location.
15431         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15432         if stack_parm is NULL.
15433         (assign_parm_setup_stack): Prefer SSA-assigned location.
15434         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15435         rtl before testing for pointer bounds.  Special-case result_ptr.
15436         (expand_function_start): Maybe reset DECL_RTL of result.
15437         Prefer SSA-assigned location for result and static chain.
15438         Factor out DECL_RESULT and SET_DECL_RTL.
15439         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15440         anonymous SSA names.  Use promote_ssa_mode.
15441         (get_temp_reg): Likewise.
15442         (remove_ssa_form): Adjust.
15443         * stor-layout.c (layout_decl): Don't set mem attributes of
15444         non-MEMs.
15445         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15446         and get its reg_usage for reg invalidation.
15447         (compute_bb_dataflow): Pass it insn.
15448         (emit_notes_in_bb): Likewise.
15450 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15452         PR target/66217
15453         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15454         prototype.
15455         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15456         (rs6000_emit_2insn_and): Handle dot forms.
15457         * config/rs6000/rs6000.md (and<mode>3): Adjust.
15458         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
15459         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15461 2015-07-23  Richard Biener  <rguenther@suse.de>
15463         * generic-match-head.c: Include cgraph.h.
15464         * gimple-match-head.c: Likewise.
15465         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15466         SSA names.
15467         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15468         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
15469         pattern.
15471 2015-07-23  Richard Biener  <rguenther@suse.de>
15473         * gimple-fold.c (fold_gimple_cond): Do not require folding
15474         results to pass valid_gimple_rhs_p.
15475         * tree-cfg.h (fold_cond_expr_cond): Remove.
15476         * tree-cfg.c (fold_cond_expr_cond): Likewise.
15477         (make_edges): Do not call it.
15478         * tree-inline.c (tree_function_versioning): Likewise.
15480 2015-07-23  Tom de Vries  <tom@codesourcery.com>
15482         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15483         vect_force_simple_reduction.
15484         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15485         (vect_is_simple_reduction_1): Add and handle
15486         need_wrapping_integral_overflow parameter.
15487         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15488         need_wrapping_integral_overflow parameter.
15489         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15490         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15491         decl.
15493 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
15495         PR tree-optimization/66926,66951
15496         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15497         INNER_LOOP and fix up condition for renaming virtual operands.
15499 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15501         * combine.c (try_combine): Use std::swap instead of manually
15502         swapping.
15504 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
15506         * config/mips/i6400.md: New file.
15507         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15508         (mips64r6): Likewise.
15509         (i6400): Define.
15510         * config/mips/mips-tables.opt: Regenerate.
15511         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15512         (mips_issue_rate): Add support for i6400.
15513         (mips_multipass_dfa_lookahead): Likewise.
15514         * config/mips/mips.h (TUNE_I6400): Define.
15515         * config/mips/mips.md: Include i6400.md.
15516         (processor): Add i6400.
15517         * doc/invoke.texi (-march=@var{arch}): Add i6400.
15519 2015-07-23  Richard Biener  <rguenther@suse.de>
15521         PR middle-end/66916
15522         * match.pd: Guard widen and sign-change comparison simplification
15523         with single_use.
15525 2015-07-23  Richard Biener  <rguenther@suse.de>
15527         PR tree-optimization/66945
15528         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15529         ::before_dom_children): Force the propagators idea of
15530         non-executable edges to materialize, not what the folder
15531         chooses.
15533 2015-07-23  Richard Biener  <rguenther@suse.de>
15535         * gimple.h (gimple_cond_make_false): Use 0 != 0.
15536         (gimple_cond_make_true): Use 1 != 0.
15538 2015-07-22  DJ Delorie  <dj@redhat.com>
15540         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15541         slashes.
15543         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15544         (ashrhi3): Likewise.
15545         (lshrhi3): Likewise.
15546         (movhi): Take advantage of zero-extend to load small constants.
15547         (movpsi): Likewise.
15548         (and<mode>3): Likewise.
15549         (zero_extendqihi2): Likewise.
15550         (zero_extendqisi2): New.
15551         * config/msp430/constraints.md (N,O): New.
15552         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15554 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
15556         PR target/66954
15557         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15558         to enum feature_priority and feature_list.
15559         (fold_builtin_cpu): Add F_AES to enum processor_features
15560         and isa_names_table.
15562 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
15564         PR driver/66737
15565         * config/i386/linux-common.h (MPX_SPEC): Use linker option
15566         for 64bit target only.
15568 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15570         * config/nvptx/nvptx.c: Expand some comments.
15572 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
15574         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15575         (cortex_a53_advsimd): ...This.
15577 2015-07-22  Richard Biener  <rguenther@suse.de>
15579         * genmatch.c (expr::gen_transform): Clarify error message
15580         and display location.
15582 2015-07-22  Richard Biener  <rguenther@suse.de>
15584         * genmatch.c (struct operand): Add location member.
15585         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15586         constructors.
15587         (struct simplify): Remove match_location and result_location
15588         members.
15589         (elsehwere): Adjust.
15591 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
15593         * config/mips/m5100.md: New file.
15594         * config/mips/mips-cpus.def (m5100, m5101): Define.
15595         * config/mips/mips-tables.opt: Regenerate.
15596         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15597         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15598         -march=m5101 to -mips32r5.
15599         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15600         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15601         !-msoft-float.
15602         * config/mips/mips.md: Include m5100.md.
15603         (processor): Add m5100.
15604         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15606 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
15608         * config/mips/mips-cpus.def (interaptiv): Define.
15609         * config/mips/mips-tables.opt: Regenerate.
15610         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15611         -mips32r2.
15612         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15613         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15615 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15617         PR target/63521
15618         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15619         (HONOR_REG_ALLOC_ORDER): Define.
15621 2015-07-22  Richard Biener  <rguenther@suse.de>
15623         PR tree-optimization/66952
15624         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15625         blocks we end up executing unconditionally reset all SSA
15626         info such as range and alignment.
15627         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15628         * tree-ssanames.c (reset_flow_sensitive_info): New function.
15630 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15632         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15633         typo in attribute.
15635 2015-07-22  Richard Biener  <rguenther@suse.de>
15637         * genmatch.c (parser::parse_result): Properly handle
15638         match with result operands and conditions.
15640 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15642         PR target/63870
15643         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15644         Add qualifier_struct_load_store_lane_index.
15645         (aarch64_types_loadstruct_lane_qualifiers): Use
15646         qualifier_struct_load_store_lane_index for lane index argument for
15647         last argument.
15648         (aarch64_types_storestruct_lane_qualifiers): Ditto.
15649         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15650         (aarch64_simd_expand_args): Add new argument describing mode of
15651         builtin. Check lane bounds for arguments with
15652         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15653         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15654         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15655         (aarch64_simd_expand_builtin): Handle arguments with
15656         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15657         aarch64_simd_expand_args.
15658         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15659         vst[234]_lane with BUILTIN_VALLDIF.
15660         * config/aarch64/aarch64-simd.md:
15661         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15662         endianness reversal on lane index.
15663         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15664         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15665         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15666         (vec_store_lanesci_lane<mode>): Ditto.
15667         (vec_store_lanesxi_lane<mode>): Ditto.
15668         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15669         reversal of lane index.
15670         (aarch64_ld3_lane<mode>): Ditto.
15671         (aarch64_ld4_lane<mode>): Ditto.
15672         (aarch64_st2_lane<mode>): Ditto.
15673         (aarch64_st3_lane<mode>): Ditto.
15674         (aarch64_st4_lane<mode>): Ditto.
15675         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15676         to qmode. Add new mode parameter. Update uses.
15677         (__LD3_LANE_FUNC): Ditto.
15678         (__LD4_LANE_FUNC): Ditto.
15679         (__ST2_LANE_FUNC): Ditto.
15680         (__ST3_LANE_FUNC): Ditto.
15681         (__ST4_LANE_FUNC): Ditto.
15683 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
15685         * doc/invoke.texi (Language Independent Options): Rename node to
15686         Diagnostic Message Formatting Options.
15688 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
15690         PR ipa/66424.
15691         * lra-remat.c (operand_to_remat): Prevent using insns with input
15692         subregs processed separately by IRA.
15694 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
15696         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15697         straight loops.
15698         (single_imm_use): Check for iterator node.
15699         (num_imm_uses): Likewise.
15700         * tree-ssa-operands.c (has_zero_uses_1): Delete.
15701         (single_imm_use_1): Check for iterator node.
15703 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15704             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15706         * configure.ac: Add check for new options in isl-0.15.
15707         * config.in, configure: Rebuilt.
15708         * graphite-blocking.c: Include <isl/constraint.h>
15709         * graphite-interchange.c,  graphite-poly.c: Likewise.
15710         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15711         * graphite.c: Likewise.
15712         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15713         <isl/union_set.h>.
15714         * graphite-dependences.c: Include <isl/constraint.h>.
15715         (max_number_of_out_dimensions): Returns isl_stat.
15716         (extend_schedule_1): Likewise
15717         (extend_schedule): Corresponding changes.
15718         * graphite-optimize-isl.c: Include <isl/constraint.h> and
15719         <isl/union_set.h>.
15720         (getSingleMap): Change return type of isl_stat.
15721         (optimize_isl): Conditionally use
15722         isl_options_set_schedule_serialize_sccs.
15723         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15724         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15726 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
15728         PR target/66956
15729         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15730         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15732 2015-07-21  Richard Biener  <rguenther@suse.de>
15734         PR tree-optimization/66948
15735         * genmatch.c (capture_info::walk_match): Also recurse to
15736         captures.  Properly compute expr state from captures of
15737         captures.
15738         * match.pd: Add single-use guards to
15739         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15741 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15743         * config/nvptx/mkoffload.c (process): Add static destructor call.
15745 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15747         PR middle-end/66915
15748         * match.pd (A - B -> A + (-B)): Don't allow folding
15749         when type if a fixed-point type.
15751 2015-07-20  DJ Delorie  <dj@redhat.com>
15753         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15754         (iorqi3_real): Likewise for set1.
15756 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
15758         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15759         for !TARGET_64BIT.
15761 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
15763         * graphite-isl-ast-to-gimple.c:
15764         Refactor so that each function can access 'region'. This will help
15765         maintain a parameter rename_map within a region.
15767 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15769         * config/rs6000/rs6000.md (*lt0_disi): New.
15771 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15773         PR target/66217
15774         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
15775         "available letters" comment.
15776         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15777         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15778         and_2rld_operand):  Delete.
15779         (and_operand): Adjust.
15780         (rotate_mask_operator): New.
15781         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15782         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15783         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15784         extract_ME): Delete.
15785         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15786         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15787         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15788         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15789         rs6000_emit_2insn_and): New.
15790         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15791         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15792         includes_rldic_lshift_p, includes_rldicr_lshift_p,
15793         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15794         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15795         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15796         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15797         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15798         rs6000_emit_2insn_and): New.
15799         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15800         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15801         handling.
15802         <NOT>: Don't fall through to next case.
15803         <AND>: Handle the various rotate-and-mask cases directly.
15804         <IOR>: Always cost as one insn.
15805         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15806         (and<mode>3): Adjust expander for the new patterns.
15807         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15808         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15809         (*and<mode>3_imm_dot_shifted): New.
15810         (*and<mode>3_mask): Delete, rewrite as ...
15811         (and<mode>3_mask): ... New.
15812         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15813         (andsi3_internal0_nomc): Delete.
15814         (*andsi3_internal6): Delete.
15815         (*and<mode>3_2insn): New.
15816         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15817         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15818         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15819         *insvdi_internal3): Delete.
15820         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15821         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15822         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15823         *ior<mode>_mask): New.
15824         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15825         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15826         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15827         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15828         Delete.
15829         (ashr<mode>3): Delete expander.
15830         (*ashr<mode>3): Rename to ...
15831         (ashr<mode>3): ... This.
15832         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15833         (*rotldi3_internal4, *rotldi3_internal5 and split,
15834         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15835         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15836         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15837         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15838         (splitter for loading a mask): Adjust.
15839         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15841 2015-07-20  Marek Polacek  <polacek@redhat.com>
15843         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15844         output_add_clobbers, output_added_clobbers_hard_reg_p,
15845         gen_rtx_scratch): Remove declarations.
15847 2015-07-20  Marek Polacek  <polacek@redhat.com>
15849         PR c++/55095
15850         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15852 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15854         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15855         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15857 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15859         * combine.c (combine_simplify_rtx): Move simplification step
15860         before various transformations/substitutions.
15862 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
15864         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15865         (struct int_traits): Likewise.
15867 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15869         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15870         function to vmsdbgout_function_decl.
15872 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15874         PR target/66922
15875         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15876         from misaligned positions.
15877         (ix86_expand_pinsr): Reject insertions to misaligned positions.
15879 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
15881         PR middle-end/46851
15882         PR middle-end/60340
15883         * Makefile.in: Removed omega.o.
15884         * common.opt: Document flag fcheck-data-deps as deprecated.
15885         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15886         its associated params: omega-max-vars, omega-max-geqs,
15887         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15888         omega-max-keys, omega-eliminate-redundant-constraints.
15889         * doc/loop.texi: Remove all the section on Omega.
15890         * graphite-blocking.c: Include missing params.h: it used to be
15891         included through tree-data-ref.h and omega.h.
15892         * graphite-isl-ast-to-gimple.c: Same.
15893         * graphite-optimize-isl.c: Same.
15894         * graphite-sese-to-poly.c: Same.
15895         * graphite.c: Same.
15896         * omega.c: Remove.
15897         * omega.h: Remove.
15898         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15899         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15900         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15901         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15902         * passes.def: Remove pass_check_data_deps.
15903         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15904         (dump_conflict_function): Same.
15905         (dump_subscript): Same.
15906         (print_direction_vector): Same.
15907         (print_dir_vectors): Same.
15908         (print_lambda_vector): Same.
15909         (print_dist_vectors): Same.
15910         (dump_data_dependence_relation): Same.
15911         (dump_data_dependence_relations): Same.
15912         (dump_dist_dir_vectors): Same.
15913         (dump_ddrs): Same.
15914         (init_omega_eq_with_af): Removed.
15915         (omega_extract_distance_vectors): Removed.
15916         (omega_setup_subscript): Removed.
15917         (init_omega_for_ddr_1): Removed.
15918         (init_omega_for_ddr): Removed.
15919         (ddr_consistent_p): Removed.
15920         (compute_affine_dependence): Do not use omega to check data
15921         dependences.
15922         (compute_data_dependences_for_bb): Removed.
15923         (analyze_all_data_dependences): Removed.
15924         (tree_check_data_deps): Removed.
15925         * tree-data-ref.h: Do not include omega.h.
15926         (compute_data_dependences_for_bb): Removed.
15927         (tree_check_data_deps): Removed.
15928         * tree-ssa-loop.c (pass_check_data_deps): Removed.
15929         (make_pass_check_data_deps): Removed.
15930         * tree-ssa-phiopt.c: Include params.h.
15931         * tree-vect-data-refs.c: Same.
15932         * tree-vect-slp.c: Same.
15934 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15936         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15937         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
15938         (mem->fpreg splitters): Ditto.
15939         (general_operand->nonimmediate_operand splitter): Use explicit modes.
15940         Disable DFmode for TARGET_64BIT.
15942 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15944         PR target/66906
15945         * config/i386/i386.c (ix86_expand_prologue): Replicate static
15946         chain on the stack.
15948 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15950         * config/nvptx/mkoffload.c (process): Constify host data.
15951         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15952         Constify host data.
15953         (generate_host_descr_file): Likewise.
15955 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
15956             Sebastian Pop  <s.pop@samsung.com>
15958         PR middle-end/61929
15959         * graphite-dependences.c (add_pdr_constraints): Renamed
15960         pdr->extent to pdr->subscript_sizes.
15961         * graphite-interchange.c (build_linearized_memory_access): Add
15962         back all gcc_assert's that the "isl_int to isl_val conversion"
15963         patch has removed.  Refactored.
15964         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15965         * graphite-poly.c (new_poly_dr): Same.
15966         (free_poly_dr): Same.
15967         * graphite-poly.h (struct poly_dr): Same.
15968         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15969         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15970         * graphite-scop-detection.h: Fix space.
15971         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15972         back all gcc_assert's removed by a previous patch.
15973         (wrap): Remove the_isl_ctx global variable that the same patch has
15974         added.
15975         (build_loop_iteration_domains): Same.
15976         (add_param_constraints): Same.
15977         (pdr_add_data_dimensions): Same.  Refactored.
15978         (build_poly_dr): Renamed extent to subscript_sizes.
15980 2015-07-17  Marek Polacek  <polacek@redhat.com>
15982         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15983         * match.pd: ... here.
15985 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15987         * config/nvptx/mkoffload.c (process): Constify target data.
15988         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15989         Constify target data.
15990         (generate_target_offloadend_file): Likewise.
15992 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
15994         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15995         to allow renaming of PHI arguments on edges incoming from outer
15996         loop header, add corresponding check before start PHI iterator.
15997         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15998         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15999         with true force_vectorize.  Set-up dominator for outer loop too.
16000         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16001         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16002         was marked with force_vectorize and has restricted cfg.
16003         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16004         inner loop.
16005         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16006         do peeling for outer loops.
16008 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
16009             Matthias Klose  <doko@ubuntu.com>
16011         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16012         build-sysroot, sysroot from the `Miscenalleous configure options' to
16013         the `Directories' section and strip trailing `/' from with_sysroot.
16014         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16015         * configure: Regenerated.
16017 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16019         PR target/66824
16020         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16021         (TARGET_HARD_DF_REGS): Ditto.
16022         (TARGET_HARD_XF_REGS): Ditto.
16023         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16024         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16025         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16026         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16027         (*movsf_internal): Add alternatives 16 and 17. Enable
16028         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16030 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16032         PR rtl-optimization/66891
16033         * calls.c (expand_call): Wrap precompute_register_parameters with
16034         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16036 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
16038         * config/nvptx/mkoffload.c (process): Constify mapping variables.
16039         Define target data struct and initialize it.
16041 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
16043         PR rtl-optimization/66626
16044         * ira.h (emit-rtl.h): Include.
16045         (non_spilled_static_chain_regno_p): New.
16046         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16047         unless it is non spilled static chain pseudo.
16048         (assign_hard_rego): Spill memory profitable allocno unless it is
16049         non spilled static chain pseudo.
16050         (allocno_spill_priority_compare): Put non spilled static chain
16051         pseudo at the end of sorted array.
16052         (improve_allocation): Do nothing if we have static chain and
16053         non-local goto.
16054         (allocno__priority_compare_func): Put non spilled static chain
16055         pseudo at the beginning of sorted array.
16056         (move_spill_restore): Ignore non spilled static chain pseudo.
16057         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16058         to non spilled static chain pseudo.
16059         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16060         pseudo at the beginning of sorted array.
16061         (spill_for): Spill non spilled static chain pseudo last.
16062         * lra-constraints.c (lra_constraints): Remove static chain pseudo
16063         check for equivalence.
16065 2015-07-16  Martin Liska  <mliska@suse.cz>
16067         PR ipa/66896.
16068         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16069         dst_ctx if it does not exist.
16071 2015-07-16  Martin Liska  <mliska@suse.cz>
16073         * hash-set.h (remove): New function.
16074         (iterator): New iteration class for hash_set.
16076 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16078         * genattrtab.c (make_canonical): Add a file_location parameter.
16079         Use fatal_at rather than fatal.
16080         (get_attr_value): Likewise.  Update call to make_canonical.
16081         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16082         (make_internal_attr): Update calls accordingly.
16084 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16086         * read-md.h (message_with_line, error_with_line): Delete.
16087         * read-md.c (message_with_line, error_with_line): Delete.
16088         * gensupport.h: Include read-md.h.
16089         (md_rtx_info): New structure.
16090         (read_md_rtx): Use it.  Return a bool success value.
16091         * gensupport.c (read_md_rtx): Likewise.
16092         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16093         (main): Update after interface changes.
16094         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16095         (main): Update after interface changes.
16096         * genattrtab.c (insn_code_number): Delete.
16097         (optimize_attrs): Add a max_insn_code parameter and use it instead
16098         of insn_code_number.
16099         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16100         Use *_at rather than *_with_line functions.
16101         (gen_insn): Likewise.
16102         (gen_delay): Likewise.
16103         (gen_insn_reserv): Likewise.
16104         (gen_bypass): Take an md_rtx_info rather than an rtx.
16105         (main): Update after interface changes.  Use a local max_insn_code
16106         variable instead of insn_code_number.
16107         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16108         an rtx.  Use fatal_at rather than fatal.
16109         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16110         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16111         (gen_absence_set, gen_final_absence_set, gen_automaton)
16112         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16113         (main): Update after interface changes.
16114         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16115         and code number.
16116         (main): Update after interface changes.
16117         * genconditions.c (main): Use new read_md_rtx interface.
16118         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16119         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16120         (main): Update after interface changes.
16121         * genemit.c (insn_code_number, insn_index_number): Delete.
16122         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16123         Use fatal_at rather than fatal.
16124         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
16125         rather than fatal.
16126         (gen_split): Likewise.
16127         (main): Update after interface changes.
16128         * genextract.c (line_no): Delete.
16129         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16130         Update call to walk_rtx.
16131         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
16132         rather than message_with_line.
16133         (walk_rtx): Add an md_rtx_info argument.  Update call to
16134         VEC_safe_set_locstr.
16135         (main): Update after interface changes.
16136         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16137         and lineno.  Use error_at rather than separate message_with_line
16138         calls and have_error assignments.
16139         (main): Update after interface changes.
16140         * genmddump.c (main): Use new read_md_rtx interface.
16141         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16142         (main): Update after interface changes.
16143         * genoutput.c (next_code_number): Delete.
16144         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16145         (gen_peephole, gen_expand, gen_split): Likewise.
16146         (note_constraint): Likewise.  Use *_at rather than *_with_line
16147         functions.
16148         (main): Update after interface changes.
16149         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16150         rtx and lineno.
16151         (main): Update after interface changes.
16152         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16153         than an rtx and lineno.
16154         (process_define_constraint): Likewise.
16155         (process_define_register_constraint): Likewise.
16156         (main): Update after interface changes.
16157         * genrecog.c (next_insn_code, pattern_lineno): Delete.
16158         (validate_pattern): Replace top-level rtx with an md_rtx_info.
16159         Use *_at rather than *_with_line functions.
16160         (match_pattern_2): Likewise.
16161         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16162         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16163         Use *_at rather than *_with_line functions.
16164         * gentarget-def.c (add_insn): New function.
16165         (main): Use it.  Use new read_md_rtx interface.
16167 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16169         * gensupport.h (compute_test_codes): Take a file_location rather
16170         than a line number.
16171         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
16172         rather than *_with_line functions.
16173         (process_define_predicate): Update call to compute_test_codes.
16174         * genpreds.c (validate_exp): Take a file_location rather than a
16175         line number.  Use *_at functions rather than *_with_line functions.
16176         (process_define_predicate): Update call to validate_exp.
16177         (constraint_data): Replace lineno field with a file_location.
16178         (add_constraint): Take a file_location rather than a line number.
16179         Use *_at functions rather than *_with_line functions.  Fix error
16180         message for address constraints.  Update after changes to
16181         validate_exp, constraint_data and compute_test_codes.
16182         (process_define_constraint): Update accordingly.
16183         (process_define_register_constraint): Likewise.
16185 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16187         * genoutput.c (data): Use a file_location to record the source
16188         position.
16189         (nothing): Delete.
16190         (idata, idata_end): Remove initialization.
16191         (constraint_data): Replace lineno with a file_location.
16192         (output_insn_data): Update after changes to data.
16193         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16194         (scan_operands): Likewise, using *_at rather than *_with_line
16195         functions.
16196         (process_template): Likewise.
16197         (validate_insn_alternatives): Likewise.
16198         (validate_insn_operands): Likewise.
16199         (validate_optab_operands): Likewise.
16200         (init_insn_for_nothing): Initialize idata and idata_end.
16201         (note_constraint): Update after changes to constraint_data,
16202         using at rather than with_line functions.
16203         (mdep_constraint_len): Take a file_location rather than a
16204         line number.  Use at rather than with_line functions.
16206 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16208         * read-md.h (fatal_at): Declare.
16209         * read-md.c (fatal_at): New function.
16210         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16211         to record the source position.
16212         (check_attr_test): Take a file_location instead of a line number.
16213         Use fatal_at instead of fatal.
16214         (check_attr_value): Update after above changes, using "at"
16215         rather than "with_line" reporting functions.
16216         (convert_set_attr_alternative): Likewise.
16217         (gen_attr): Likewise.
16218         (check_defs): Likewise.  Don't assign to read_md_filename.
16219         (gen_insn): Update initialization after above changes.
16220         (gen_delay): Likewise.
16221         (write_insn_cases): Print the filename for a define_peephole.
16222         (gen_insn_reserv): Take a line number as argument and update
16223         the call to check_attr_test.
16224         (main): Pass a line number to gen_insn_reserv.
16226 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16228         * read-md.h (file_location): New structure.
16229         (directive_handler_t): Take a file_location rather than a line number.
16230         (message_at, error_at): Declare.
16231         (read_skip_construct): Delete.
16232         * read-md.c (message_with_line_1): Replace with...
16233         (message_at_1): ...this new function.
16234         (message_at, error_at): New functions.
16235         (message_with_line, error_with_line): Update to use message_at_1.
16236         (handle_enum): Take a file_location rather than a line number
16237         and use error_at for error reporting.
16238         (handle_include): Likewise.
16239         (read_skip_construct): Likewise.  Make static.
16240         (handle_file): Update after above changes.  Pass a file_location
16241         rather than a line number to handle_directive.
16242         * gensupport.c (queue_elem): Replace separate filename and lineno
16243         with a file_location.
16244         (queue_pattern): Replace filename and lineno arguments with a
16245         file_location.  Update after change to queue_elem.
16246         (process_define_predicate): Replace lineno argument with a
16247         file_location and use error_at for error reporting.  Update
16248         after above changes.
16249         (process_rtx): Likewise.
16250         (subst_pattern_match): Likewise.
16251         (get_alternatives_number): Likewise.
16252         (alter_predicate_for_insn): Likewise.
16253         (rtx_handle_directive): Likewise.
16254         (is_predicable): Update after above changes, using error_at rather
16255         than error_with_line.
16256         (has_subst_attribute): Likewise.
16257         (identify_predicable_attribute): Likewise.
16258         (alter_attrs_for_subst_insn): Likewise.
16259         (process_one_cond_exec): Likewise.
16260         (process_substs_on_one_elem): Likewise.
16261         (process_define_subst): Likewise.
16262         (check_define_attr_duplicates): Likewise.
16263         (read_md_rtx): Update after change to queue_elem.
16265 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16267         * genoutput.c (next_index_number): Delete.
16268         (data): Remove index_number.
16269         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16270         (main): Remove manipulation of next_index_number.
16272 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16274         * genattrtab.c (check_attr_value): Remove handling of null attrs.
16275         (make_canonical): Likewise.
16277 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
16279         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16280         instead of adjust_address_nv.
16281         (restore_stack_nonlocal): Likewise.
16282         (nonlocal_goto): Likewise.
16284 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16286         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16287         not have a corresponding loop header phi.
16289 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16291         * tree-parloops.c (create_loads_for_reductions): Handle case that
16292         reduction is unused.
16294 2015-07-16  Richard Biener  <rguenther@suse.de>
16296         PR tree-optimization/66894
16297         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16298         about deriving NE_EXPR from truncated values.
16300 2015-07-16  Martin Liska  <mliska@suse.cz>
16302         * alloc-pool.h
16303         (object_allocator): Add new class.
16304         (pool_allocator::initialize): Use the underlying class.
16305         (pool_allocator::allocate): Likewise.
16306         (pool_allocator::remove): Likewise.
16307         (operator new): A new generic allocator.
16308         * asan.c (struct asan_mem_ref): Remove unused members.
16309         (asan_mem_ref_new): Replace new operator with
16310         object_allocator::allocate.
16311         (free_mem_ref_resources): Change deallocation.
16312         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16313         with object_allocator.
16314         * config/sh/sh.c (add_constant): Replace new operator with
16315         object_allocator::allocate.
16316         (sh_reorg): Change call to a release method.
16317         * cselib.c (struct elt_list): Remove unused members.
16318         (new_elt_list): Replace new operator with
16319         object_allocator::allocate.
16320         (new_elt_loc_list): Likewise.
16321         (new_cselib_val): Likewise.
16322         (unchain_one_elt_list): Change delete operator with remove method.
16323         (unchain_one_elt_loc_list): Likewise.
16324         (unchain_one_value): Likewise.
16325         (cselib_finish): Release newly added static allocators.
16326         * cselib.h (struct cselib_val): Remove unused members.
16327         (struct elt_loc_list): Likewise.
16328         * df-problems.c (df_chain_alloc): Replace pool_allocator with
16329         object_allocator.
16330         * df-scan.c (struct df_scan_problem_data): Likewise.
16331         (df_scan_alloc): Likewise.
16332         * df.h (struct dataflow): Likewise.
16333         * dse.c (struct read_info_type): Likewise.
16334         (struct insn_info_type): Likewise.
16335         (struct dse_bb_info_type): Likewise.
16336         (struct group_info): Likewise.
16337         (struct deferred_change): Likewise.
16338         (get_group_info): Likewise.
16339         (delete_dead_store_insn): Likewise.
16340         (free_read_records): Likewise.
16341         (replace_read): Likewise.
16342         (check_mem_read_rtx): Likewise.
16343         (scan_insn): Likewise.
16344         (dse_step1): Likewise.
16345         (dse_step7): Likewise.
16346         * et-forest.c (struct et_occ): Remove unused members.
16347         (et_new_occ): Use allocate instead of new operator.
16348         (et_new_tree): Likewise.
16349         (et_free_tree): Call release method explicitly.
16350         (et_free_tree_force): Likewise.
16351         (et_free_pools): Likewise.
16352         (et_split): Use remove instead of delete operator.
16353         * et-forest.h (struct et_node): Remove unused members.
16354         * ipa-cp.c: Change pool_allocator to object_allocator.
16355         * ipa-inline-analysis.c: Likewise.
16356         * ipa-profile.c: Likewise.
16357         * ipa-prop.c: Likewise.
16358         * ipa-prop.h: Likewise.
16359         * ira-build.c (initiate_cost_vectors): Cast return value.
16360         (ira_allocate_cost_vector): Likewise.
16361         * ira-color.c (struct update_cost_record): Remove unused members.
16362         * lra-int.h (struct lra_live_range): Likewise.
16363         (struct lra_copy): Likewise.
16364         (struct lra_insn_reg): Likewise.
16365         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16366         * lra.c (new_insn_reg): Replace new operator with allocate method.
16367         (free_insn_regs): Same for operator delete.
16368         (finish_insn_regs): Release new static allocator.
16369         (finish_insn_recog_data): Likewise.
16370         (lra_free_copies): Replace delete operator with remove method.
16371         (lra_create_copy): Replace operator new with allocate method.
16372         (invalidate_insn_data_regno_info): Same for remove method.
16373         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16374         (free_debug_insn_changes): Replace delete operator with remove method.
16375         (replace_oldest_value_reg): Replace operator new with allocate method.
16376         (pass_cprop_hardreg::execute): Release new static variable.
16377         * sched-deps.c (sched_deps_init): Change pool_allocator to
16378         object_allocator.
16379         * sel-sched-ir.c: Likewise.
16380         * sel-sched-ir.h: Likewise.
16381         * stmt.c (expand_case): Likewise.
16382         (expand_sjlj_dispatch_table): Likewise.
16383         * tree-sra.c (struct access): Remove unused members.
16384         (struct assign_link): Likewise.
16385         (sra_deinitialize): Release newly added static pools.
16386         (create_access_1):Replace operator new with allocate method.
16387         (build_accesses_from_assign): Likewise.
16388         (create_artificial_child_access): Likewise.
16389         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16390         pool_allocator to object_allocator.
16391         * tree-ssa-pre.c: Likewise.
16392         * tree-ssa-reassoc.c: Likewise.
16393         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16394         * tree-ssa-strlen.c: Likewise.
16395         * tree-ssa-structalias.c: Likewise.
16396         * var-tracking.c (onepart_pool_allocate): New function.
16397         (unshare_variable): Use the newly added function.
16398         (variable_merge_over_cur): Likewise.
16399         (variable_from_dropped): Likewise.
16400         (variable_was_changed): Likewise.
16401         (set_slot_part): Likewise.
16402         (emit_notes_for_differences_1): Likewise.
16403         (vt_finalize): Release newly added static pools.
16405 2015-07-16  Martin Jambor  <mjambor@suse.cz>
16407         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
16408         all uses.  Fix two typos in its general comment.
16409         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
16411 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
16413         * config/i386/linux-common.h (LINK_MPX): New.
16414         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16415         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16416         indicating '-z bndplt' support by linker.
16417         * configure: Regenerate.
16418         * config.in: Regenerate.
16420 2015-07-16  Richard Biener  <rguenther@suse.de>
16422         * fold-const.c (fold_widened_comparison): Remove.
16423         (fold_sign_changed_comparison): Likewise.
16424         (fold_comparison): Move widened and sign-changed comparison
16425         simplification ...
16426         * match.pd: ... to patterns here.
16427         * generic-match-head.c: Include target.h.
16428         * gimple-match-head.c: Likewise.
16430 2015-07-16  Richard Biener  <rguenther@suse.de>
16432         * tree-ssa-dom.c (dom_valueize): New function.
16433         (record_temporary_equivalences): Also record equivalences
16434         for dominating stmts that have uses of equivalences we are
16435         about to record.
16437 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
16439         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16440         add_autoinc_candidates.
16441         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16442         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16443         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16444         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16445         Call new function.
16446         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16447         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16448         Remove parameter struct iv*.  Call add_autoinc_candidates here.
16449         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16450         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16451         Call new function.
16452         (find_iv_candidates): Call new functions.
16454 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
16456         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16457         uninitialized-variable warning.
16459 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16461         PR target/65249
16462         * config/sh/sh.md (movdi): Split simple reg move to two movsi
16463         when the destination is R0.
16465 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
16467         PR target/66866
16468         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16469         * config/i386/i386.c (ix86_expand_pextr): New function.
16470         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
16471         for non-lowpart subregs.
16472         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16473         (insv<mode>): Use SWI248 mode iterator.
16474         (insv<mode>_1): Ditto.
16476 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16477             Sebastian Pop  <s.pop@samsung.com>
16479         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16480         iterator to use_stmt.
16482 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16483             Sebastian Pop <s.pop@samsung.com>
16485         * graphite-scop-detection.c (build_scops_1): Discard scops for
16486         which entry==exit.
16488 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16489             Sebastian Pop <s.pop@samsung.com>
16491         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16492         case of a return statement in scop.
16494 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16495             Sebastian Pop <s.pop@samsung.com>
16497         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16498         INTEGER_TYPE parameters.
16499         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16500         VECTOR_CST in scan_tree_for_params.
16501         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16503 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16505         * gimple-pretty-print.h: Don't include pretty-print.h.
16506         * tree-streamer.h: Don't include lto-streamer.h.
16507         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16508         * gimple-streamer-in.c: Remove redundant includes.
16509         * gimple-streamer-out.c: Likewise.
16510         * ipa-devirt.c: Likewise.
16511         * ipa-icf.c: Likewise.
16512         * ipa-inline-analysis.c: Likewise.
16513         * ipa-polymorphic-call.c: Likewise.
16514         * ipa-profile.c: Likewise.
16515         * ipa-prop.c: Likewise.
16516         * ipa-pure-const.c: Likewise.
16517         * lto-cgraph.c: Likewise.
16518         * lto-streamer-in.c: Likewise.
16519         * lto-streamer-out.c: Likewise.
16520         * lto-streamer.c: Likewise.
16521         * tree-streamer-in.c: Likewise.
16522         * tree-streamer-out.c: Likewise.
16523         * tree-streamer.c: Likewise.
16525 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16527         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16528         include input.h.
16529         * opts.c: Remove multiline #include comment.
16531 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
16533         * config/nvptx/mkoffload.c (process): Add C++ protection to
16534         emitted code.
16536 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16538         PR target/66854
16539         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16540         null before IEEE 128-bit floating point support patch.
16542 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16544         * simplify-rtx.c (simplify_ternary_operation): Add simplification
16545         for (!c) != {0,...,0} ? a : b for vector modes.
16547 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
16548             Martin Jambor  <mjambor@suse.cz>
16550         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16551         struct func_body_info* instead of struct ipa_node_params*, expecting
16552         fbi->info to be filled in.  Replace throughout.  Adjust call to
16553         ipa_load_from_parm_agg.
16554         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16555         instead of struct ipa_node_params*.  Adjust calls to other functions
16556         so that they pass either fbi or fbi->info.
16557         (set_switch_stmt_execution_predicate): Likewise.
16558         (will_be_nonconstant_predicate): Likewise.
16559         (compute_bb_predicates): Likewise.
16560         (estimate_function_body_sizes): Move asserts earlier.  Fill in
16561         struct func_body_info, replace parms_info with fbi.info.  Adjust
16562         calls to functions that now accept struct func_body_info.
16563         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16564         (struct func_body_info): Likewise.
16565         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16566         remove static.  Adjust callers.
16567         (ipa_load_from_parm_agg): Remove.
16568         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16569         (func_body_info): Likewise.
16570         (ipa_load_from_parm_agg): Adjust prototype.
16572 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16574         * gensupport.c (rtx_handle_directive): Adjust.
16575         * read-rtl.c (apply_iterators): Take vector to add rtxs to
16576         instead of expr list rtx.
16577         (add_define_attr_for_define_subst): Likewise.
16578         (add_define_subst_attr): Likewise.
16579         (read_subst_mapping): Likewise.
16580         (read_rtx): Likewise.
16581         * rtl.h (read_rtx): Adjust.
16583 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16585         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16587 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16589         PR target/58066
16590         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16591         (*tls_local_dynamic_base_64_<mode>): Ditto.
16592         (*tls_local_dynamic_base_64_largepic): Ditto.
16593         (tls_global_dynamic_64_<mode>): Update expander pattern.
16594         (tls_local_dynamic_base_64_<mode>): Ditto.
16596 2015-07-15  Richard Biener  <rguenther@suse.de>
16598         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16599         and bool_var == 1 -> bool_var simplifications ...
16600         * match.pd: ... to patterns here.  Factor out negate_expr_p
16601         cases from the A - B -> A + (-B) patterns as negate_expr_p
16602         predicate and add a -(A + B) -> (-B) - A pattern.
16604 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16606         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16608 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
16609             Robert Suchanek  <robert.suchanek@imgtec.com>
16611         * config/mips/mips.c (mips_int_mask): New enum.
16612         (mips_shadow_set): Likewise.
16613         (int_mask): New variable.
16614         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16615         (machine_function): Add int_mask and use_shadow_register_set.
16616         (mips_attribute_table): Add attribute handlers for interrupt and
16617         use_shadow_register_set.
16618         (mips_interrupt_mask): New static function.
16619         (mips_handle_interrupt_attr): Likewise.
16620         (mips_handle_use_shadow_register_set_attr): Likewise.
16621         (mips_use_shadow_register_set): Change return type to enum
16622         mips_shadow_set.  Add argument handling for use_shadow_register_set
16623         attribute.
16624         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16625         compare with mips_shadow_set enum.
16626         (mips_compute_frame_info): Add interrupt mask and
16627         use_shadow_register_set to per-function information structure.
16628         Add a stack slot for EPC unconditionally.
16629         (mips_expand_prologue): Compare use_shadow_register_set value
16630         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
16631         masked interrupt register but in EIC mode use K0 and save Cause in K0.
16632         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
16633         copying the stack pointer from the shadow register set.
16634         * config/mips/mips.h (SR_IM0): New define.
16635         * config/mips/mips.md (mips_rdpgpr): Rename to...
16636         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
16637         * doc/extend.texi (Declaring Attributes of Functions): Document
16638         optional arguments for interrupt and use_shadow_register_set
16639         attributes.
16641 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16643         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16644         interrupt attribute.
16645         (mips_expand_prologue): Disable the floating point unit in an ISR.
16646         * config/mips/mips.h (SR_COP1): New define.
16648 2015-07-15  Richard Biener  <rguenther@suse.de>
16650         * genmatch.c (parser::peek, parser::peek_ident): Add argument
16651         to tell how many tokens to peek ahead (default 1).
16652         (parser::eat_token, parser::eat_ident): Return token consumed.
16653         (parser::parse_result): Parse new switch statement.
16654         * match.pd: Use case statements where appropriate.
16656 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16658         PR rtl-optimization/58066
16659         * calls.c (expand_call): Precompute register parameters before stack
16660         alignment is performed.
16662 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16664         PR rtl-optimization/66838
16665         * postreload.c (reload_cse_move2add): Also process
16666         CALL_INSN_FUNCTION_USAGE when resetting information of
16667         call-clobbered registers.
16669 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16670             Cesar Philippidis  <cesar@codesourcery.com>
16671             Chung-Lin Tang  <cltang@codesourcery.com>
16673         * config/nios2/constraints.md (U, v): New constraints.
16674         * config/nios2/predicates.md (rdprs_dcache_operand): New.
16675         (ldstex_memory_operand): New.
16676         * config/nios2/sync.md: New file.
16677         * config/nios2/nios2.md (unspecv): Add new builtin function
16678         UNSPECV codes.
16679         (rdprs, flushd, flushda, wrpie, eni): New patterns.
16680         (top-level): Include sync.md.
16681         * config/nios2/nios2.c (N2_FTYPES): Add function types for
16682         new builtins.
16683         (N2_BUILTINS): Add arch field setting, add new builtins.
16684         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16685         for arch field.
16686         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16687         Also handle ldex/stex/ldsex/stsex builtins.
16688         (nios2_expand_rdprs_builtin): New function.
16689         (nios2_expand_cache_builtin): New function.
16690         (nios2_expand_wrpie_builtin): New function.
16691         (nios2_expand_eni_builtin): New function.
16692         (nios2_expand_builtin): Add arch field handling and new builtin
16693         cases.
16694         * doc/extend.texi (Altera Nios II Built-in Functions): Document
16695         new builtins.
16696         * doc/md.texi (Machine Constraints): Document U and v constraints.
16698 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16699             Cesar Philippidis  <cesar@codesourcery.com>
16700             Chung-Lin Tang  <cltang@codesourcery.com>
16702         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16703         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16704         callee_save_reg_size and uses_anonymous_args fields.
16705         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16706         (nios2_create_cfa_notes): New function.
16707         (nios2_adjust_stack): New function for adjusting stack.
16708         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16709         Use nios2_adjust_stack.
16710         (nios2_expand_epilogue): Likewise.
16711         (nios2_expand_return): New function.
16712         (nios2_can_use_return_insn): Update for CDX pop.n usage.
16713         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16714         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16715         * config/nios2/nios2.md (return): Use nios2_expand_return.
16717 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16718             Cesar Philippidis  <cesar@codesourcery.com>
16719             Chung-Lin Tang  <cltang@codesourcery.com>
16721         * config/nios2/predicates.md (pop_operation): New.
16722         (ldwm_operation, stwm_operation): New.
16723         (nios2_hard_register_operand): New.
16724         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16725         (ldstwm_operation_p): Declare.
16726         (gen_ldstwm_peep): Declare.
16727         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16728         (base_reg_adjustment_p): New.
16729         (pop_operation_p): New.
16730         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16731         (nios2_ldstwm_regset_p): New.
16732         (ldstwm_operation_p): New.
16733         (gen_ldst): New.
16734         (nios2_ldst_parallel): New.
16735         (struct ldswm_operand): Declare.
16736         (compare_ldstwm_operands): New.
16737         (can_use_cdx_ldstw): New.
16738         (gen_ldstwm_peep): New.
16739         * config/nios2/nios2-ldstwm.sml: New.
16740         * config/nios2/nios2.md: Include ldstwm.md.
16741         * config/nios2/ldstwm.md: Generated.
16743 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16744             Cesar Philippidis  <cesar@codesourcery.com>
16745             Chung-Lin Tang  <cltang@codesourcery.com>
16747         * config/nios2/nios2.h (LABEL_ALIGN): Define.
16748         (REG_ALLOC_ORDER): Define.
16749         (ADJUST_REG_ALLOC_ORDER): Define.
16750         (HONOR_REG_ALLOC_ORDER): Define.
16751         (CDX_REG_P): Define.
16752         (ANDCLEAR_INT): Define.
16753         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16754         (nios2_label_align): Declare.
16755         (nios2_cdx_narrow_form_p): Declare.
16756         (nios2_adjust_reg_alloc_order): Declare.
16757         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16758         operation.
16759         (nios2_large_unspec_reloc_p): New function, split from...
16760         (nios2_legitimate_pic_operand_p): ...here.
16761         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16762         (nios2_print_operand_punct_valid_p): New.
16763         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
16764         (split_mem_address): New.
16765         (split_alu_insn): New.
16766         (cdxreg): New.
16767         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16768         (enum nios2_add_insn_kind): New.
16769         (nios2_add_insn_names, nios2_add_insn_narrow): New.
16770         (nios2_add_insn_classify): New.
16771         (nios2_add_insn_asm): New.
16772         (nios2_cdx_narrow_form_p): New.
16773         (label_align, min_labelno, max_labelno): New.
16774         (nios2_reorg): New.
16775         (nios2_label_align): New.
16776         (nios2_adjust_reg_alloc_order): New.
16777         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16778         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16779         * config/nios2/constraints.md (P): New constraint.
16780         * config/nios2/predicates.md (const_and_operand): New.
16781         (and_operand): New.
16782         (stack_memory_operand): New.
16783         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16784         (length): Update to use nios2_cdx_narrow_form_p().
16785         (type): Add new insn type values.
16786         (control, alu, st, ld, shift): Update insn reservations with
16787         new insn type values.
16788         (*high, *lo_sum): Define new insn patterns for constant generation.
16789         (movqi_internal, movhi_internal, movsi_internal): Reduce
16790         alternatives, update asm template to handle CDX variants, update
16791         type attributes.
16792         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16793         template, update type attributes.
16794         (extendhisi2, extendqi<mode>2): Likewise.
16795         (addsi3): Change to use function for asm string.
16796         (subsi3): Add CDX notation to asm template, update type attributes.
16797         (negsi3, one_cmplsi3): Likewise.
16798         (andsi3): New pattern, specialized from logical patterns.
16799         (<code>si3): Remove and case, combine alternatives, update asm
16800         template.
16801         (<shift_op>si3): Add CDX notation, update type attributes.
16802         (rotrsi3): Update type attribute.
16803         (*merge, extzv, insv): New insn patterns.
16804         (return): Change to define_expand.
16805         (simple_return): Add CDX notation, update type attributes.
16806         (indirect_jump): Add CDX notation.
16807         (jump): Update asm cases, update length attribute expression.
16808         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16809         (nios2_cbranch): Update asm cases and length attribute expression
16810         to handle CDX variants.
16811         (nios2_cmp<code>): Update asm template.
16812         (nop): Add CDX notation, update type attributes.
16813         (trap): Add CDX notation.
16814         (ctrapsi4): Update asm cases and length attribute expression to
16815         handle CDX variant.
16816         * doc/md.texi (Machine Constraints): Document P constraint.
16818 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16819             Cesar Philippidis  <cesar@codesourcery.com>
16820             Chung-Lin Tang  <cltang@codesourcery.com>
16822         * config/nios2/nios2.h (SMALL_INT12): New macro.
16823         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16824         (nios2_valid_addr_expr_p): Use it.
16825         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16826         with implicit "io" instructions on R2.
16827         * config/nios2/constraints.md (w): New constraint.
16828         * config/nios2/predicates.md (ldstio_memory_operand): New.
16829         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16830         operand predicate and constraint.
16831         (ld<bh>io_signed, st<bhw>io>): Likewise.
16832         * doc/md.texi (Machine Constraints): Document w constraint.
16834 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16835             Cesar Philippidis  <cesar@codesourcery.com>
16836             Chung-Lin Tang  <cltang@codesourcery.com>
16838         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16839         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16840         Nios II architecture level.
16841         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16842         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16843         (OPTION_DEFAULT_SPECS): Define.
16844         (ASM_SPEC): Add -march= spec strings.
16845         * config/nios2/nios2.c (nios2_option_override): Check for
16846         conflicts involving new options.
16847         * config.gcc (nios2*-*-*): Support --with-arch=.
16848         * doc/invoke.texi (Option Summary, Nios II Options): Document
16849         -march=, -mbmx, and -mcdx.
16851 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
16853         PR rtl-optimization/66626
16854         * lra-constraints.c (lra_constraints): Prevent equivalence
16855         substitution for static chain pseudo in functions with nonlocal
16856         goto.
16858 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16860         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16861         (nios2_emit_stack_limit_check): Add size parameter.  Handle
16862         -fstack-limit-symbol as well as -fstack-limit-register.
16863         (nios2_expand_prologue): Emit only a single stack limit check,
16864         even if multiple stack adjustments are required.
16865         (nios2_option_override): Diagnose unsupported combination of -fpic
16866         and -stack-limit-symbol.
16868 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
16870         * Makefile.in (top_srcdir): New.
16871         * configure.ac: Use AM_ZLIB.
16872         * configure: Regeneated.
16874 2015-07-14  Matthias Klose  <doko@ubuntu.com>
16876         PR target/66840
16877         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16879 2015-07-14  Richard Biener  <rguenther@suse.de>
16881         PR tree-optimization/66863
16882         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16883         what we record for conversion use stmt lhs inequalities.
16885 2015-07-14  Richard Biener  <rguenther@suse.de>
16887         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16888         (decision_tree::gen_gimple): Likewise.
16890 2015-07-14  Tom de Vries  <tom@codesourcery.com>
16892         * gcc.c (greater_than_spec_func): Declare forward.
16893         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16894         -ftree-parallelize-loops={0,1}.
16895         (static_spec_functions): Add greater_than_spec_func function with name
16896         "gt".
16897         (greater_than_spec_func): New function.
16899 2015-07-14  Richard Biener  <rguenther@suse.de>
16901         * tree-ssa-dom.c (record_temporary_equivalences): Merge
16902         wideing type conversion case from record_equivalences_from_incoming_edge
16903         and use record_equality to record equivalences.
16904         (record_equivalences_from_incoming_edge): Call
16905         record_temporary_equivalences.
16907 2015-07-14  Richard Biener  <rguenther@suse.de>
16909         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16910         (struct if_expr): New.
16911         (struct with_expr): Likewise.
16912         (is_a_helper): Add helpers for if_expr and with_expr.
16913         (struct simplify): Add simplify_kind enum and member.  Remove
16914         ifexpr_vec member.
16915         (simplify::simplify): Adjust.
16916         (lower_commutative): Adjust.
16917         (lower_opt_convert): Likewise.
16918         (lower_cond): Likewise.
16919         (replace_id): Handle with_expr and if_expr.
16920         (lower_for): Adjust.
16921         (dt_simplify::gen_1): New recursive worker, split out from ...
16922         (dt_simplify::gen): ... here.  Deal with if and with expansion
16923         recursively.
16924         (capture_info::capture_info): Take context argument
16925         (capture_info::walk_result): Only analyze specific result.
16926         (parser::parse_result): New function.
16927         (parser::parse_simplify): Adjust to parse ifs with then end
16928         else case.
16929         (parser::parse_if): Simplify.
16930         (parser::parse_pattern): Pass down simplify kind.
16931         * match.pd: Convert if structure to new syntax.
16933 2015-07-13  Marek Polacek  <polacek@redhat.com>
16935         * rtl.c (rtx_equal_p_cb): Fix typo.
16937 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
16939         * omega.h: Don't include config.h, don't include params.h again if
16940         omega.h has already been included.
16941         * graphite-poly.h: Include sese.h.
16942         * graphite.c: Don't include sese.h, remove needless includes and
16943         minimize includes outside #ifdef HAVE_isl block.
16944         * graphite-blocking.c: Don't include sese.h, remove needless includes,
16945         and wrap entire file in #ifdef HAVE_isl
16946         * graphite-dependences.c: Likewise.
16947         * graphite-interchange.c: Likewise.
16948         * graphite-isl-ast-to-gimple.c: Likewise.
16949         * graphite-optimize-isl.c: Likewise.
16950         * graphite-poly.c: Likewise.
16951         * graphite-scop-detection.c: Likewise.
16952         * graphite-sese-to-poly.c: Likewise.
16954 2015-07-13  Tom de Vries  <tom@codesourcery.com>
16956         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16958 2015-07-13  Renlin Li  <renlin.li@arm.com>
16960         PR rtl/66556
16961         * simplify-rtx.c (simplify_const_relational_operation): Add
16962         side_effects_p checks.
16964 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
16966         * bitmap.h: Fix double word typos.
16967         * builtins.c: Same.
16968         * calls.c: Same.
16969         * cfgloopmanip.c: Same.
16970         * cgraph.c: Same.
16971         * cgraph.h: Same.
16972         * cgraphclones.c: Same.
16973         * combine.c: Same.
16974         * config/aarch64/aarch64-protos.h: Same.
16975         * config/aarch64/aarch64.c: Same.
16976         * config/aarch64/aarch64.md: Same.
16977         * config/arm/arm.md: Same.
16978         * config/arm/arm1020e.md: Same.
16979         * config/arm/arm1026ejs.md: Same.
16980         * config/arm/arm926ejs.md: Same.
16981         * config/arm/fa526.md: Same.
16982         * config/arm/fa606te.md: Same.
16983         * config/arm/fa626te.md: Same.
16984         * config/arm/fa726te.md: Same.
16985         * config/arm/fmp626.md: Same.
16986         * config/darwin.c: Same.
16987         * config/epiphany/epiphany.c: Same.
16988         * config/frv/frv.c: Same.
16989         * config/ft32/ft32.c: Same.
16990         * config/gnu-user.h: Same.
16991         * config/h8300/constraints.md: Same.
16992         * config/i386/i386.c: Same.
16993         * config/i386/i386.md: Same.
16994         * config/iq2000/iq2000.md: Same.
16995         * config/mips/mips.c: Same.
16996         * config/mmix/mmix.md: Same.
16997         * config/moxie/moxie.c: Same.
16998         * config/nds32/nds32.md: Same.
16999         * config/pa/pa.h: Same.
17000         * config/rs6000/aix.h: Same.
17001         * config/rs6000/rs6000.h: Same.
17002         * config/sh/sh.c: Same.
17003         * config/tilegx/tilegx.md: Same.
17004         * config/tilepro/gen-mul-tables.cc: Same.
17005         * cse.c: Same.
17006         * dbxout.c: Same.
17007         * doc/invoke.texi: Same.
17008         * dse.c: Same.
17009         * dwarf2out.c: Same.
17010         * final.c: Same.
17011         * gcc.c: Same.
17012         * genmatch.c: Same.
17013         * gimplify.c: Same.
17014         * hash-table.h: Same.
17015         * internal-fn.c: Same.
17016         * ipa-cp.c: Same.
17017         * ipa-devirt.c: Same.
17018         * ipa-icf.c: Same.
17019         * ipa-icf.h: Same.
17020         * ipa-profile.c: Same.
17021         * ipa-prop.c: Same.
17022         * ipa-prop.h: Same.
17023         * ira.c: Same.
17024         * omp-low.c: Same.
17025         * reg-stack.c: Same.
17026         * regcprop.c: Same.
17027         * reorg.c: Same.
17028         * rtl.h: Same.
17029         * sbitmap.h: Same.
17030         * tree-eh.c: Same.
17031         * tree-inline.c: Same.
17032         * tree-sra.c: Same.
17033         * tree-ssa-dom.c: Same.
17034         * tree-ssa-loop-ivopts.c: Same.
17035         * tree-ssa-structalias.c: Same.
17036         * tree-ssa-tail-merge.c: Same.
17037         * tree-ssa-ter.c: Same.
17038         * tree-ssa-threadupdate.c: Same.
17039         * tree-ssa-uninit.c: Same.
17040         * tree-ssanames.c: Same.
17041         * tree-vect-loop-manip.c: Same.
17042         * tree-vrp.c: Same.
17043         * tree.c: Same.
17044         * valtrack.c: Same.
17045         * vec.h: Same.
17047 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17049         PR middle-end/66726
17050         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17051         tree_ssa_phiopt_worker): Call it.
17053 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17055         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17056         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17057         REG_EQUAL note.
17059 2015-07-11  Marek Polacek  <polacek@redhat.com>
17061         PR middle-end/66353
17062         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17063         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17064         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17065         rather than bb_has_abnormal_call_pred.
17066         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17067         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17068         rather than bb_has_abnormal_call_pred.
17070 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
17072         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17073         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17074         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17075         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17076         v850_legitimate_address_p): New functions.
17077         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17079 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
17081         PR target/66819
17082         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17083         indirect sibcall with register arguments if register available
17084         for argument passing.
17085         (init_cumulative_args): Set cfun->machine->arg_reg_available
17086         to (cum->nregs > 0) or to true if function has a variable
17087         argument list.
17088         (function_arg_advance_32): Set cfun->machine->arg_reg_available
17089         to false if cum->nregs <= 0.
17090         * config/i386/i386.h (machine_function): Add arg_reg_available.
17092 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17094         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17095         and gen_higpart instead of gen_rtx_SUBREG.
17096         * config/i386/i386.md
17097         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17098         (read-modify peephole2): Use gen_lowpart instead of
17099         gen_rtx_SUBREG for operand 5.
17101 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17103         * config/tilepro/gen-mul-tables.cc (main): Change include list for
17104         generated files.
17105         * config/tilepro/mul-tables.c: Regenerate.
17106         * config/tilegx/mul-tables.c: Regenerate.
17108 2015-07-10  Richard Biener  <rguenther@suse.de>
17110         * fold-const.c (distribute_bit_expr): Remove.
17111         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17112         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17113         to A & (B | C) and simplifying A << C1 << C2 to ...
17114         * match.pd: ... patterns here.
17116 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
17118         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17119         Mark mem as READONLY and NOTRAP for PIC symbol.
17121 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17123         * gimple-predict.h: New file.
17124         (gimple_predict_predictor, gimple_predict_set_predictor,
17125         gimple_predict_outcome, gimple_predict_set_outcome,
17126         gimple_build_predict): Relocate here.
17127         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17128         gimple_predict_outcome, gimple_predict_set_outcome): Move to
17129         gimple-predict.h.
17130         * gimple.c (gimple_build_predict): Move to gimple-predict.h
17131         * basic-block.h: Don't include cfghooks.h.
17132         * backend.h: Don't include predict.h.
17133         * cfghooks.h: Include predict.h.
17134         * gimple-pretty-print.c: Include gimple-predict.h.
17135         * gimplify.c: Likwise.
17136         * predict.c: Adjust includes.
17137         * tree-inline.c: Likewise.
17138         * asan.c: Likewise.
17139         * auto-inc-dec.c: Likewise.
17140         * auto-profile.c: Likewise.
17141         * bb-reorder.c: Likewise.
17142         * builtins.c: Likewise.
17143         * caller-save.c: Likewise.
17144         * calls.c: Likewise.
17145         * cfganal.c: Likewise.
17146         * cfgbuild.c: Likewise.
17147         * cfg.c: Likewise.
17148         * cfgcleanup.c: Likewise.
17149         * cfgexpand.c: Likewise.
17150         * cfghooks.c: Likewise.
17151         * cfgloopanal.c: Likewise.
17152         * cfgloop.c: Likewise.
17153         * cfgloopmanip.c: Likewise.
17154         * cfgrtl.c: Likewise.
17155         * cgraph.c: Likewise.
17156         * cgraphunit.c: Likewise.
17157         * combine.c: Likewise.
17158         * cprop.c: Likewise.
17159         * cse.c: Likewise.
17160         * dce.c: Likewise.
17161         * dojump.c: Likewise.
17162         * dse.c: Likewise.
17163         * except.c: Likewise.
17164         * expmed.c: Likewise.
17165         * expr.c: Likewise.
17166         * final.c: Likewise.
17167         * fold-const.c: Likewise.
17168         * function.c: Likewise.
17169         * fwprop.c: Likewise.
17170         * gcc-plugin.h: Likewise.
17171         * gcse.c: Likewise.
17172         * genattrtab.c: Likewise.
17173         * genemit.c: Likewise.
17174         * gengtype.c: Likewise.
17175         * genopinit.c: Likewise.
17176         * genoutput.c: Likewise.
17177         * genpreds.c: Likewise.
17178         * genrecog.c: Likewise.
17179         * gimple-fold.c: Likewise.
17180         * gimple-iterator.c: Likewise.
17181         * gimple-ssa-isolate-paths.c: Likewise.
17182         * gimple-ssa-strength-reduction.c: Likewise.
17183         * graph.c: Likewise.
17184         * graphite-blocking.c: Likewise.
17185         * graphite.c: Likewise.
17186         * graphite-dependences.c: Likewise.
17187         * graphite-interchange.c: Likewise.
17188         * graphite-isl-ast-to-gimple.c: Likewise.
17189         * graphite-optimize-isl.c: Likewise.
17190         * graphite-poly.c: Likewise.
17191         * graphite-scop-detection.c: Likewise.
17192         * graphite-sese-to-poly.c: Likewise.
17193         * haifa-sched.c: Likewise.
17194         * ifcvt.c: Likewise.
17195         * internal-fn.c: Likewise.
17196         * ipa-cp.c: Likewise.
17197         * ipa-profile.c: Likewise.
17198         * ipa-split.c: Likewise.
17199         * ipa-utils.c: Likewise.
17200         * ira-build.c: Likewise.
17201         * ira-color.c: Likewise.
17202         * ira-conflicts.c: Likewise.
17203         * ira-costs.c: Likewise.
17204         * ira-emit.c: Likewise.
17205         * ira-lives.c: Likewise.
17206         * jump.c: Likewise.
17207         * loop-doloop.c: Likewise.
17208         * loop-init.c: Likewise.
17209         * loop-invariant.c: Likewise.
17210         * loop-unroll.c: Likewise.
17211         * lower-subreg.c: Likewise.
17212         * lra-assigns.c: Likewise.
17213         * lra.c: Likewise.
17214         * lra-coalesce.c: Likewise.
17215         * lra-constraints.c: Likewise.
17216         * lra-lives.c: Likewise.
17217         * lto-cgraph.c: Likewise.
17218         * lto-streamer-in.c: Likewise.
17219         * mode-switching.c: Likewise.
17220         * modulo-sched.c: Likewise.
17221         * omp-low.c: Likewise.
17222         * optabs.c: Likewise.
17223         * passes.c: Likewise.
17224         * postreload.c: Likewise.
17225         * postreload-gcse.c: Likewise.
17226         * profile.c: Likewise.
17227         * recog.c: Likewise.
17228         * regstat.c: Likewise.
17229         * reload1.c: Likewise.
17230         * reorg.c: Likewise.
17231         * rtlanal.c: Likewise.
17232         * sched-ebb.c: Likewise.
17233         * sel-sched-ir.c: Likewise.
17234         * sese.c: Likewise.
17235         * shrink-wrap.c: Likewise.
17236         * simplify-rtx.c: Likewise.
17237         * stmt.c: Likewise.
17238         * store-motion.c: Likewise.
17239         * tracer.c: Likewise.
17240         * trans-mem.c: Likewise.
17241         * tree-call-cdce.c: Likewise.
17242         * tree-cfg.c: Likewise.
17243         * tree-cfgcleanup.c: Likewise.
17244         * tree-chkp.c: Likewise.
17245         * tree-complex.c: Likewise.
17246         * tree-eh.c: Likewise.
17247         * tree-if-conv.c: Likewise.
17248         * tree-loop-distribution.c: Likewise.
17249         * tree-outof-ssa.c: Likewise.
17250         * tree-parloops.c: Likewise.
17251         * tree-predcom.c: Likewise.
17252         * tree-pretty-print.c: Likewise.
17253         * tree-profile.c: Likewise.
17254         * tree-sra.c: Likewise.
17255         * tree-ssa.c: Likewise.
17256         * tree-ssa-coalesce.c: Likewise.
17257         * tree-ssa-dce.c: Likewise.
17258         * tree-ssa-dom.c: Likewise.
17259         * tree-ssa-forwprop.c: Likewise.
17260         * tree-ssa-ifcombine.c: Likewise.
17261         * tree-ssa-loop-ch.c: Likewise.
17262         * tree-ssa-loop-im.c: Likewise.
17263         * tree-ssa-loop-ivcanon.c: Likewise.
17264         * tree-ssa-loop-ivopts.c: Likewise.
17265         * tree-ssa-loop-manip.c: Likewise.
17266         * tree-ssa-loop-prefetch.c: Likewise.
17267         * tree-ssa-loop-unswitch.c: Likewise.
17268         * tree-ssa-math-opts.c: Likewise.
17269         * tree-ssa-phiopt.c: Likewise.
17270         * tree-ssa-pre.c: Likewise.
17271         * tree-ssa-reassoc.c: Likewise.
17272         * tree-ssa-sink.c: Likewise.
17273         * tree-ssa-tail-merge.c: Likewise.
17274         * tree-ssa-threadedge.c: Likewise.
17275         * tree-ssa-threadupdate.c: Likewise.
17276         * tree-switch-conversion.c: Likewise.
17277         * tree-tailcall.c: Likewise.
17278         * tree-vect-data-refs.c: Likewise.
17279         * tree-vect-loop.c: Likewise.
17280         * tree-vect-loop-manip.c: Likewise.
17281         * tree-vectorizer.c: Likewise.
17282         * tree-vrp.c: Likewise.
17283         * ubsan.c: Likewise.
17284         * value-prof.c: Likewise.
17285         * varasm.c: Likewise.
17286         * var-tracking.c: Likewise.
17287         * config/aarch64/aarch64-builtins.c: Likewise.
17288         * config/aarch64/aarch64.c: Likewise.
17289         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17290         * config/alpha/alpha.c: Likewise.
17291         * config/arc/arc.c: Likewise.
17292         * config/arm/arm.c: Likewise.
17293         * config/avr/avr.c: Likewise.
17294         * config/bfin/bfin.c: Likewise.
17295         * config/c6x/c6x.c: Likewise.
17296         * config/cr16/cr16.c: Likewise.
17297         * config/cris/cris.c: Likewise.
17298         * config/darwin.c: Likewise.
17299         * config/darwin-c.c: Likewise.
17300         * config/epiphany/epiphany.c: Likewise.
17301         * config/epiphany/mode-switch-use.c: Likewise.
17302         * config/epiphany/resolve-sw-modes.c: Likewise.
17303         * config/fr30/fr30.c: Likewise.
17304         * config/frv/frv.c: Likewise.
17305         * config/ft32/ft32.c: Likewise.
17306         * config/h8300/h8300.c: Likewise.
17307         * config/i386/i386.c: Likewise.
17308         * config/i386/winnt.c: Likewise.
17309         * config/ia64/ia64.c: Likewise.
17310         * config/iq2000/iq2000.c: Likewise.
17311         * config/lm32/lm32.c: Likewise.
17312         * config/m32c/m32c.c: Likewise.
17313         * config/m32r/m32r.c: Likewise.
17314         * config/m68k/m68k.c: Likewise.
17315         * config/mcore/mcore.c: Likewise.
17316         * config/mep/mep.c: Likewise.
17317         * config/microblaze/microblaze.c: Likewise.
17318         * config/mips/mips.c: Likewise.
17319         * config/mmix/mmix.c: Likewise.
17320         * config/mn10300/mn10300.c: Likewise.
17321         * config/moxie/moxie.c: Likewise.
17322         * config/msp430/msp430.c: Likewise.
17323         * config/nds32/nds32.c: Likewise.
17324         * config/nds32/nds32-cost.c: Likewise.
17325         * config/nds32/nds32-fp-as-gp.c: Likewise.
17326         * config/nds32/nds32-intrinsic.c: Likewise.
17327         * config/nds32/nds32-isr.c: Likewise.
17328         * config/nds32/nds32-md-auxiliary.c: Likewise.
17329         * config/nds32/nds32-memory-manipulation.c: Likewise.
17330         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17331         * config/nds32/nds32-predicates.c: Likewise.
17332         * config/nios2/nios2.c: Likewise.
17333         * config/nvptx/nvptx.c: Likewise.
17334         * config/pa/pa.c: Likewise.
17335         * config/pdp11/pdp11.c: Likewise.
17336         * config/rl78/rl78.c: Likewise.
17337         * config/rs6000/rs6000.c: Likewise.
17338         * config/rx/rx.c: Likewise.
17339         * config/s390/s390.c: Likewise.
17340         * config/sh/sh.c: Likewise.
17341         * config/sh/sh-mem.cc: Likewise.
17342         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17343         * config/sh/sh_treg_combine.cc: Likewise.
17344         * config/sparc/sparc.c: Likewise.
17345         * config/spu/spu.c: Likewise.
17346         * config/stormy16/stormy16.c: Likewise.
17347         * config/tilegx/tilegx.c: Likewise.
17348         * config/tilepro/tilepro.c: Likewise.
17349         * config/v850/v850.c: Likewise.
17350         * config/vax/vax.c: Likewise.
17351         * config/visium/visium.c: Likewise.
17352         * config/xtensa/xtensa.c: Likewise.
17354 2015-07-10  Richard Biener  <rguenther@suse.de>
17356         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17357         (decision_tree::gen_gimple): Likewise.
17358         (decision_tree::gen_generic): Likewise.
17360 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17362         PR target/66813
17363         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17364         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17366 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
17368         PR middle-end/66820
17369         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17370         or ORT_TASK contexts.
17371         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17372         is non-zero.
17374 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17376         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17377         above function.
17379 2015-07-10  Tom de Vries  <tom@codesourcery.com>
17381         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17382         insert nit + 1 bound.
17384 2015-07-10  Richard Biener  <rguenther@suse.de>
17386         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17387         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17388         (if_convertible_loop_p_1): For this always compute bb predicates.
17389         (if_convertible_loop_p): And free them.
17391 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17393         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17394         in dump message.
17396 2015-07-10  Richard Biener  <rguenther@suse.de>
17398         PR tree-optimization/66823
17399         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17400         inverted predicate.
17402 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
17404         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17405         to handle mips[32|64]r3 and mips[32|64]r5.
17407 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
17409         PR middle-end/66633
17410         * tree-nested.c (get_static_chain): Or in a flag into
17411         info->static_chain_added.
17412         (get_frame_field, get_nonlocal_debug_decl): Likewise.
17413         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17414         2015-07-01 changes.
17415         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17416         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17417         add it to clauses.
17419         PR tree-optimization/66718
17420         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17421         field.
17422         (vect_simd_lane_linear): New function.
17423         (vectorizable_simd_clone_call): Support using linear arguments for
17424         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17426 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17428         PR target/66821
17429         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17431 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
17433         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17434         Use machine mode, not enum machine_mode in the prototype.
17436         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17437         classify 128-bit floating point support.
17438         (FLOAT128_IBM_P): Likewise.
17439         (FLOAT128_VECTOR_P): Likewise.
17440         (FLOAT128_2REG_P): Likewise.
17441         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17442         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17443         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17444         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17446         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17447         tests against TFmode/TDmode, since those modes do not use VSX
17448         addresses.
17449         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17450         support.
17451         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17452         tests against TFmode, etc.
17453         (invalid_e500_subreg): Add tests against IFmode/KFmode.
17454         (reg_offset_addressing_ok_p): Likewise.
17455         (rs6000_legitimate_offset_address_p): Likewise.
17456         (rs6000_legitimize_address): Likewise.
17457         (rs6000_legitimize_reload_address): Likewise.
17458         (rs6000_legitimate_address_p): Clean up tests against TFmode and
17459         TDmode to use the new helper macros, which will include IFmode and
17460         KFmode.
17461         (rs6000_emit_move): Likewise.
17462         (rs6000_darwin64_record_arg_recurse): Likewise.
17463         (print_operand): Likewise.
17464         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17465         that uses a single vector register as a vector and not as a
17466         floating point register in terms of the calling sequence.
17467         (rs6000_discover_homogeneous_aggregate): Likewise.
17468         (rs6000_return_in_memory): Likewise.
17469         (init_cumulative_args): Likewise.
17470         (rs6000_function_arg_boundary): Likewise.
17471         (rs6000_function_arg_advance_1): Likewise.
17472         (rs6000_function_arg): Likewise.
17473         (rs6000_pass_by_reference): Likewise.
17474         (rs6000_gimplify_va_arg): Likewise.
17475         (rs6000_secondary_reload_memory): Use machine_mode not enum
17476         machine mode.
17477         (rs6000_split_multireg_move): Use new helper macros.
17478         (spe_func_has_64bit_regs_p): Likewise.
17479         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17480         (output_toc): Use new helper macros.
17481         (rs6000_register_move_cost): Likewise.
17482         (rs6000_function_value): Add IEEE 128-bit floating point calling
17483         sequence support.
17484         (rs6000_libcall_value): Likewise.
17485         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17486         floating point support.
17487         (rs6000_vector_mode_supported_p): Likewise.
17489 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
17491         PR rtl-optimization/66782
17492         * lra-int.h (struct lra_insn_recog_data): Add comment about
17493         clobbered hard regs for arg_hard_regs.
17494         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17495         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17496         Add condition for processing used hard regs.
17497         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17498         Process clobbered hard regs.
17500 2015-07-09  Michael Matz  <matz@suse.de>
17502         * genmatch.c (fprintf_indent): New function.
17503         (operand::gen_transform): Add indent parameter.
17504         (expr::gen_transform, c_expr::gen_transform,
17505         capture::gen_transform): Ditto and use fprintf_indent.
17506         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17507         (dt_operand::gen, dt_operand::gen_predicate,
17508         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17509         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17510         (decision_tree::gen_gimple): Adjust calls and indent generated
17511         code.
17512         (decision_tree::gen_generic): Ditto.
17513         (write_predicate): Ditto.
17515 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17517         PR target/66814
17518         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17519         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17520         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17521         {GENERAL,SSE,MMX}_REG_P where appropriate.
17523 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17525         * lto-streamer.h: Don't include target.h and alloc-pool.h.
17526         * builtins.c: Adjust includes.
17527         * gimple.c: Likewise.
17528         * ipa-icf.c: Likewise.
17529         * lto-opts.c: Likewise.
17530         * ipa-reference.c: Likewise.
17531         * lto-section-out.c: Likewise.
17532         * lto-streamer-in.c: Likewise.
17533         * lto-streamer-out.c: Likewise.
17534         * opts-global.c: Likewise.
17535         * symtab.c: Likewise.
17536         * tree-chkp.c: Likewise.
17537         * tree-ssa-live.c: Likewise.
17538         * tree-streamer-in.c: Likewise.
17539         * tree-streamer-out.c: Likewise.
17540         * config/darwin.c: Likewise.
17541         * config/i386/winnt.c: Likewise.
17543 2015-07-09  Richard Biener  <rguenther@suse.de>
17545         * genmatch.c (struct expr): Add force_single_use flag.
17546         (expr::expr): Add copy constructor.
17547         (capture_info::walk_match): Gather force_single_use captures.
17548         (expr::gen_transform): Use possibly NULLified sequence.
17549         (dt_simplify::gen): Apply single-use restrictions by NULLifying
17550         seq if any constrained expr is not single-use.
17551         (parser::parse_expr): Refactor to allow multiple flags.  Handle
17552         's' flag to force an expression have a single-use if the pattern
17553         simplifies to more than one statement.
17554         * match.pd: Convert most single_use conditionals to :s flags.
17556 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17558         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17559         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17560         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17562 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17564         * flags.h: Don't include flag-types.h or options.h.
17565         * opts-common.c: Adjust includes.
17566         * opts-global.c: Likewise.
17567         * common/config/epiphany/epiphany-common.c: Likewise.
17569 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17571         PR target/66818
17572         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17573         for IA MCU.
17575 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17577         PR target/66817
17578         * config/i386/i386.c (ix86_return_in_memory): Return true
17579         if int_size_in_bytes returns negative for IA MCU.
17581 2015-07-09  Marek Polacek  <polacek@redhat.com>
17583         PR tree-optimization/66718
17584         * Makefile.in (OBJS): Add gimple-laddress.o.
17585         * passes.def: Schedule pass_laddress.
17586         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17587         * tree-pass.h (make_pass_laddress): Declare.
17588         * gimple-laddress.c: New file.
17590 2015-07-09  Richard Biener  <rguenther@suse.de>
17592         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17594 2015-07-09  Richard Biener  <rguenther@suse.de>
17596         PR tree-optimization/66807
17597         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17599 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
17601         * function.c (stack_protect_epilogue): Use if rather than switch for
17602         check targetm.have_stack_protect_test.
17604 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17606         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17607         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17608         * config/arc/arc.h: Likewise.
17609         * config/arm/arm.h: Likewise.
17610         * config/bfin/bfin.h: Likewise.
17611         * config/epiphany/epiphany.h: Likewise.
17612         * config/frv/frv.h: Likewise.
17613         * config/ia64/ia64.h: Likewise.
17614         * config/iq2000/iq2000.h: Likewise.
17615         * config/lm32/lm32.h: Likewise.
17616         * config/m32r/m32r.h: Likewise.
17617         * config/mcore/mcore.h: Likewise.
17618         * config/mep/mep.h: Likewise.
17619         * config/microblaze/microblaze.h: Likewise.
17620         * config/mips/mips.h: Likewise.
17621         * config/mmix/mmix.h: Likewise.
17622         * config/mn10300/mn10300.h: Likewise.
17623         * config/nds32/nds32.h: Likewise.
17624         * config/nios2/nios2.h: Likewise.
17625         * config/pa/pa.h: Likewise.
17626         * config/rl78/rl78.h: Likewise.
17627         * config/sh/sh.h: Likewise.
17628         * config/sparc/sparc.h: Likewise.
17629         * config/stormy16/stormy16.h: Likewise.
17630         * config/tilegx/tilegx.h: Likewise.
17631         * config/tilepro/tilepro.h: Likewise.
17632         * config/v850/v850.h: Likewise.
17633         * config/xtensa/xtensa.h: Likewise.
17634         * doc/tm.texi: Regenerate.
17635         * doc/tm.texi.in: Adjust.
17636         * combine.c (simplify_set): Likewise.
17637         (simplify_comparison): Likewise.
17638         * expr.c (store_constructor): Likewise.
17639         * internal-fn.c (expand_arith_overflow): Likewise.
17640         * reload.c (push_reload): Likewise.
17641         (find_reloads): Likewise.
17642         (find_reloads_subreg_address): Likewise.
17643         * reload1.c (eliminate_regs_1): Likewise.
17644         * rtlanal.c (nonzero_bits1): Likewise.
17645         (num_sign_bit_copies1): Likewise.
17646         * simplify-rtx.c (simplify_truncation): Likewise.
17648 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17650         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17651         of AUTO_INC_DEC with the preprocessor.
17652         * combine.c (combine_instructions): Likewise.
17653         (can_combine_p): Likewise.
17654         (try_combine): Likewise.
17655         * emit-rtl.c (try_split): Likewise.
17656         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17657         * lower-subreg.c (resolve_simple_move): Likewise.
17658         * lra.c (update_inc_notes): Likewise.
17659         * recog.c (asm_operand_ok): Likewise.
17660         (constrain_operands): Likewise.
17661         * regrename.c (scan_rtx_address): Likewise.
17662         * reload.c (update_auto_inc_notes): Likewise.
17663         (reg_inc_found_and_valid_p): Likewise.
17664         * reload1.c (reload): Likewise.
17665         (emit_input_reload_insns): Likewise.
17666         (delete_output_reload): Likewise.
17667         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17668         * valtrack.c (cleanup_auto_inc_dec): Likewise.
17670 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17672         * rtl.h: Always define AUTO_INC_DEC.
17673         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17674         * combine.c (combine_instructions): Likewise.
17675         (can_combine_p): Likewise.
17676         (try_combine): Likewise.
17677         * emit-rtl.c (try_split): Likewise.
17678         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17679         * lower-subreg.c (resolve_simple_move): Likewise.
17680         * lra.c (update_inc_notes): Likewise.
17681         * recog.c (asm_operand_ok): Likewise.
17682         (constrain_operands): Likewise.
17683         * regrename.c (scan_rtx_address): Likewise.
17684         * reload.c (update_auto_inc_notes): Likewise.
17685         (find_equiv_reg): Likewise.
17686         * reload1.c (reload): Likewise.
17687         (reload_as_needed): Likewise.
17688         (choose_reload_regs): Likewise.
17689         (emit_input_reload_insns): Likewise.
17690         (delete_output_reload): Likewise.
17691         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17692         * valtrack.c (cleanup_auto_inc_dec): Likewise.
17694 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17696         * combine.c (can_combine_def_p): Don't check the value of
17697         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17698         (combinable_i3pat): Likewise.
17699         (mark_used_regs_combine): Likewise.
17700         * regrename.c (rename_chains): Likewise.
17701         * reload.c (find_reloads_address): Likewise.
17702         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17704 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17706         * combine.c (update_rsp_from_reg_equal): Don't check if
17707         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17708         (reg_nonzero_bits_for_combine): Likewise.
17709         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17710         1.
17711         * config/frv/frv.h: Likewise.
17712         * config/lm32/lm32.h: Likewise.
17713         * config/mep/mep.h: Likewise.
17714         * config/mips/mips.h: Likewise.
17715         * config/rs6000/rs6000.h: Likewise.
17716         * config/sh/sh.h: Likewise.
17717         * config/tilegx/tilegx.h (enum reg_class): Likewise.
17718         * config/tilepro/tilepro.h: Likewise.
17719         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17720         * doc/tm.texi: Regenerate.
17721         * doc/tm.texi.in: Adjust.
17722         * rtlanal.c (nonzero_bits1): Likewise.
17724 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17726         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17727         with the preprocessor.
17728         (combine_instructions): Likewise.
17729         (try_combine): Likewise.
17730         (subst): Likewise.
17731         (distribute_notes): Likewise.
17733 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17735         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17736         defined.
17737         (simplify_set): Likewise.
17738         * cse.c (cse_insn): Likewise.
17739         * fold-const.c (fold_single_bit_test): Likewise.
17740         (fold_unary_loc): Likewise.
17741         * postreload.c (reload_cse_simplify_set): Likewise.
17742         (reload_cse_simplify_operands): Likewise.
17744 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
17746         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17747         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17749 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17751         PR target/66746
17752         * config/i386/x86intrin.h: Include <adxintrin.h> even if
17753         __iamcu__ is defined.
17755 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17757         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17759 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
17761         PR target/66523
17762         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17763         names from preservation.
17765 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17767         PR target/66806
17768         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17769         change for IAMCU.
17770         (function_arg_advance_32): Don't pass vectors in registers for
17771         IAMCU.
17772         (function_arg_32): Likewise.
17773         (ix86_return_in_memory): Don't return vectors in registers for
17774         IAMCU.
17776 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
17778         PR middle-end/66334
17779         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17780         hard regno live at the start of BB with incoming abnormal edges.
17781         * lra-lives.c (process_bb_lives): Ditto.
17783 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
17785         PR libgomp/65099
17786         * config/nvptx/mkoffload.c (main): Create an offload image only in
17787         64-bit configurations.
17789 2015-07-08  Martin Liska  <mliska@suse.cz>
17791         PR bootstrap/66744
17792         * tree-sra.c (create_access_1): Call ctor without brackets.
17793         (create_artificial_child_access): Likewise.
17795 2015-07-08  Richard Biener  <rguenther@suse.de>
17797         PR tree-optimization/66793
17798         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17799         Properly split the block after stmts ending it.
17801 2015-07-08  Richard Biener  <rguenther@suse.de>
17803         PR tree-optimization/66794
17804         * passes.c (execute_function_todo): Assert that post-dominators
17805         are not computed.
17806         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17807         Free post-dominators.
17809 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17811         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17812         with early exit.
17814 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17816         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17817         more than or equal 8 and less than 32 when optimizing for size.
17819 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17821         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17822         COSTS_N_INSNS (1) and increment it appropriately throughout the
17823         function.
17825 2015-07-08  Richard Biener  <rguenther@suse.de>
17827         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17829 2015-07-08  Alan Modra  <amodra@gmail.com>
17831         * target.def (rtx_costs): Remove "code" param, add "mode".
17832         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17833         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
17834         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17835         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
17836         call.  Track mode when given in rtx.
17837         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
17838         (default_address_cost): Pass Pmode to rtx_cost.
17839         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17840         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17841         with NULL set.
17842         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
17843         (notreg_cost): Add mode param.  Use it.
17844         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
17845         mode param and pass to set_src_cost.  Update all calls.
17846         (hash_scan_set): Formatting.
17847         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17848         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17849         * hooks.h: Ditto.
17850         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17851         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17852         emit_store_flag): Update set_src_cost and rtx_cost calls.
17853         * auto-inc-dec.c (attempt_change): Likewise.
17854         * calls.c (precompute_register_parameters): Likewise.
17855         * combine.c (expand_compound_operation, make_extraction,
17856         force_to_mode, distribute_and_simplify_rtx): Likewise.
17857         * dojump.c (prefer_and_bit_test): Likewise.
17858         * dse.c (find_shift_sequence): Likewise.
17859         * expr.c (compress_float_constant): Likewise.
17860         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17861         * ifcvt.c (noce_try_sign_mask): Likewise.
17862         * loop-doloop.c (doloop_optimize): Likewise.
17863         * loop-invariant.c (create_new_invariant): Likewise.
17864         * lower-subreg.c (shift_cost, compute_costs): Likewise.
17865         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17866         lshift_cheap_p): Likewise.
17867         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17868         try_replace_in_use, reload_cse_move2add): Likewise.
17869         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17870         Likewise.
17871         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17872         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17873         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17874         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17875         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17876         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
17877         to rtx_cost calls.
17878         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17879         * config/arc/arc.c (arc_rtx_costs): Likewise.
17880         * config/arm/arm.c (arm_rtx_costs): Likewise.
17881         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17882         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17883         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17884         * config/cris/cris.c (cris_rtx_costs): Likewise.
17885         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17886         * config/frv/frv.c (frv_rtx_costs): Likewise.
17887         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17888         * config/i386/i386.c (ix86_rtx_costs): Likewise.
17889         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17890         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17891         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17892         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17893         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17894         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17895         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17896         * config/mep/mep.c (mep_rtx_cost): Likewise.
17897         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17898         * config/mips/mips.c (mips_rtx_costs): Likewise.
17899         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17900         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17901         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17902         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17903         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17904         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17905         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17906         * config/pa/pa.c (hppa_rtx_costs): Likewise.
17907         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17908         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17909         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17910         * config/s390/s390.c (s390_rtx_costs): Likewise.
17911         * config/sh/sh.c (sh_rtx_costs): Likewise.
17912         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17913         * config/spu/spu.c (spu_rtx_costs): Likewise.
17914         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17915         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17916         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17917         * config/v850/v850.c (v850_rtx_costs): Likewise.
17918         * config/vax/vax.c (vax_rtx_costs): Likewise.
17919         * config/visium/visium.c (visium_rtx_costs): Likewise.
17920         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17921         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17922         "code" param, and pass as outer_code to first rtx_cost call.  Pass
17923         mode to rtx_cost calls.
17924         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17925         calls.
17926         (aarch64_rtx_costs_wrapper): Update.
17927         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17928         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17929         rtx_cost calls.
17930         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17931         and rtx_cost calls.
17932         (avr_operand_rtx_cost): Similarly.
17933         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17934         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17935         * config/mips/mips.c (mips_stack_address_p): Comment typo.
17936         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17937         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17938         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17939         rtx_cost.
17940         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17941         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17942         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17943         * doc/tm.texi: Regenerate.
17945 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
17947         * tree-core.h: Include symtab.h.
17948         * rtl.h: Include hard-reg-set.h but not flags.h.
17949         (HARD_CONST): Remove condition compilation involving HARD_CONST since
17950         hard-reg-set.h is always included.
17951         * regs.h: Don't include hard-reg-set.h or rtl.h.
17952         * cfg.h: Include dominance.h.
17953         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17954         * backend.h: New.  Aggregate commonly used backend header files.
17955         * gimple-ssa.h: Don't include tree-hasher.h.
17956         * ssa.h: New.  Aggregate commonly used SSA header files.
17957         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17958         * sel-sched-ir.h: Flatten includes.
17959         * lra-int.h: Flatten completely.
17960         * sel-sched-dump.h: Flatten includes.
17961         * ira-int.h: Flatten includes.
17962         * gimple-streamer.h: Remove all includes.
17963         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17964         * resource.h: Flatten hard-reg-set.h and df.h.
17965         * sched-int.h: Flatten insn-arrt.h and df.h.
17966         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17967         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17968         * genattrtab.c (write_header): Adjust generated includes.
17969         * genautomata.c (main): Likewise.
17970         * genconditions.c (write-header): Likewise.
17971         * genemit.c (main): Likewise.
17972         * gengtype.c (open_base_files): Likewise.
17973         * genopinit.c (main): Likewise.
17974         * genoutput.c (output_prologue): Likewise.
17975         * genpeep.c (main): Likewise.
17976         * genpreds.c (write_insn_preds_c): Likewise.
17977         * genrecog.c (write_header): Likewise.
17978         * alias.c: Adjust includes.
17979         * asan.c: Likewise.
17980         * attribs.c: Likewise.
17981         * auto-inc-dec.c: Likewise.
17982         * auto-profile.c: Likewise.
17983         * bb-reorder.c: Likewise.
17984         * bt-load.c: Likewise.
17985         * builtins.c: Likewise.
17986         * caller-save.c: Likewise.
17987         * calls.c: Likewise.
17988         * ccmp.c: Likewise.
17989         * cfg.c: Likewise.
17990         * cfganal.c: Likewise.
17991         * cfgbuild.c: Likewise.
17992         * cfgcleanup.c: Likewise.
17993         * cfgexpand.c: Likewise.
17994         * cfghooks.c: Likewise.
17995         * cfgloop.c: Likewise.
17996         * cfgloopanal.c: Likewise.
17997         * cfgloopmanip.c: Likewise.
17998         * cfgrtl.c: Likewise.
17999         * cgraph.c: Likewise.
18000         * cgraphbuild.c: Likewise.
18001         * cgraphclones.c: Likewise.
18002         * cgraphunit.c: Likewise.
18003         * cilk-common.c: Likewise.
18004         * combine-stack-adj.c: Likewise.
18005         * combine.c: Likewise.
18006         * compare-elim.c: Likewise.
18007         * convert.c: Likewise.
18008         * coverage.c: Likewise.
18009         * cppbuiltin.c: Likewise.
18010         * cprop.c: Likewise.
18011         * cse.c: Likewise.
18012         * cselib.c: Likewise.
18013         * data-streamer-in.c: Likewise.
18014         * data-streamer-out.c: Likewise.
18015         * data-streamer.c: Likewise.
18016         * dbxout.c: Likewise.
18017         * dce.c: Likewise.
18018         * ddg.c: Likewise.
18019         * debug.c: Likewise.
18020         * df-core.c: Likewise.
18021         * df-problems.c: Likewise.
18022         * df-scan.c: Likewise.
18023         * dfp.c: Likewise.
18024         * dojump.c: Likewise.
18025         * dominance.c: Likewise.
18026         * domwalk.c: Likewise.
18027         * double-int.c: Likewise.
18028         * dse.c: Likewise.
18029         * dumpfile.c: Likewise.
18030         * dwarf2asm.c: Likewise.
18031         * dwarf2cfi.c: Likewise.
18032         * dwarf2out.c: Likewise.
18033         * emit-rtl.c: Likewise.
18034         * et-forest.c: Likewise.
18035         * except.c: Likewise.
18036         * explow.c: Likewise.
18037         * expmed.c: Likewise.
18038         * expr.c: Likewise.
18039         * final.c: Likewise.
18040         * fixed-value.c: Likewise.
18041         * fold-const.c: Likewise.
18042         * function.c: Likewise.
18043         * fwprop.c: Likewise.
18044         * gcc-plugin.h: Likewise.
18045         * gcse-common.c: Likewise.
18046         * gcse.c: Likewise.
18047         * generic-match-head.c: Likewise.
18048         * ggc-page.c: Likewise.
18049         * gimple-builder.c: Likewise.
18050         * gimple-expr.c: Likewise.
18051         * gimple-fold.c: Likewise.
18052         * gimple-iterator.c: Likewise.
18053         * gimple-low.c: Likewise.
18054         * gimple-match-head.c: Likewise.
18055         * gimple-pretty-print.c: Likewise.
18056         * gimple-ssa-isolate-paths.c: Likewise.
18057         * gimple-ssa-strength-reduction.c: Likewise.
18058         * gimple-streamer-in.c: Likewise.
18059         * gimple-streamer-out.c: Likewise.
18060         * gimple-walk.c: Likewise.
18061         * gimple.c: Likewise.
18062         * gimplify-me.c: Likewise.
18063         * gimplify.c: Likewise.
18064         * godump.c: Likewise.
18065         * graph.c: Likewise.
18066         * graphite-blocking.c: Likewise.
18067         * graphite-dependences.c: Likewise.
18068         * graphite-interchange.c: Likewise.
18069         * graphite-isl-ast-to-gimple.c: Likewise.
18070         * graphite-optimize-isl.c: Likewise.
18071         * graphite-poly.c: Likewise.
18072         * graphite-scop-detection.c: Likewise.
18073         * graphite-sese-to-poly.c: Likewise.
18074         * graphite.c: Likewise.
18075         * haifa-sched.c: Likewise.
18076         * hw-doloop.c: Likewise.
18077         * ifcvt.c: Likewise.
18078         * init-regs.c: Likewise.
18079         * internal-fn.c: Likewise.
18080         * ipa-chkp.c: Likewise.
18081         * ipa-comdats.c: Likewise.
18082         * ipa-cp.c: Likewise.
18083         * ipa-devirt.c: Likewise.
18084         * ipa-icf-gimple.c: Likewise.
18085         * ipa-icf.c: Likewise.
18086         * ipa-inline-analysis.c: Likewise.
18087         * ipa-inline-transform.c: Likewise.
18088         * ipa-inline.c: Likewise.
18089         * ipa-polymorphic-call.c: Likewise.
18090         * ipa-profile.c: Likewise.
18091         * ipa-prop.c: Likewise.
18092         * ipa-pure-const.c: Likewise.
18093         * ipa-ref.c: Likewise.
18094         * ipa-reference.c: Likewise.
18095         * ipa-split.c: Likewise.
18096         * ipa-utils.c: Likewise.
18097         * ipa-visibility.c: Likewise.
18098         * ipa.c: Likewise.
18099         * ira-build.c: Likewise.
18100         * ira-color.c: Likewise.
18101         * ira-conflicts.c: Likewise.
18102         * ira-costs.c: Likewise.
18103         * ira-emit.c: Likewise.
18104         * ira-lives.c: Likewise.
18105         * ira.c: Likewise.
18106         * jump.c: Likewise.
18107         * langhooks.c: Likewise.
18108         * lcm.c: Likewise.
18109         * loop-doloop.c: Likewise.
18110         * loop-init.c: Likewise.
18111         * loop-invariant.c: Likewise.
18112         * loop-iv.c: Likewise.
18113         * loop-unroll.c: Likewise.
18114         * lower-subreg.c: Likewise.
18115         * lra-assigns.c: Likewise.
18116         * lra-coalesce.c: Likewise.
18117         * lra-constraints.c: Likewise.
18118         * lra-eliminations.c: Likewise.
18119         * lra-lives.c: Likewise.
18120         * lra-remat.c: Likewise.
18121         * lra-spills.c: Likewise.
18122         * lra.c: Likewise.
18123         * lto-cgraph.c: Likewise.
18124         * lto-compress.c: Likewise.
18125         * lto-opts.c: Likewise.
18126         * lto-section-in.c: Likewise.
18127         * lto-section-out.c: Likewise.
18128         * lto-streamer-in.c: Likewise.
18129         * lto-streamer-out.c: Likewise.
18130         * lto-streamer.c: Likewise.
18131         * mcf.c: Likewise.
18132         * mode-switching.c: Likewise.
18133         * modulo-sched.c: Likewise.
18134         * omega.c: Likewise.
18135         * omp-low.c: Likewise.
18136         * optabs.c: Likewise.
18137         * opts-global.c: Likewise.
18138         * passes.c: Likewise.
18139         * plugin.c: Likewise.
18140         * postreload-gcse.c: Likewise.
18141         * postreload.c: Likewise.
18142         * predict.c: Likewise.
18143         * print-rtl.c: Likewise.
18144         * print-tree.c: Likewise.
18145         * profile.c: Likewise.
18146         * real.c: Likewise.
18147         * realmpfr.c: Likewise.
18148         * recog.c: Likewise.
18149         * ree.c: Likewise.
18150         * reg-stack.c: Likewise.
18151         * regcprop.c: Likewise.
18152         * reginfo.c: Likewise.
18153         * regrename.c: Likewise.
18154         * regstat.c: Likewise.
18155         * reload.c: Likewise.
18156         * reload1.c: Likewise.
18157         * reorg.c: Likewise.
18158         * resource.c: Likewise.
18159         * rtl-chkp.c: Likewise.
18160         * rtlanal.c: Likewise.
18161         * rtlhooks.c: Likewise.
18162         * sanopt.c: Likewise.
18163         * sched-deps.c: Likewise.
18164         * sched-ebb.c: Likewise.
18165         * sched-rgn.c: Likewise.
18166         * sched-vis.c: Likewise.
18167         * sdbout.c: Likewise.
18168         * sel-sched-dump.c: Likewise.
18169         * sel-sched-ir.c: Likewise.
18170         * sel-sched.c: Likewise.
18171         * sese.c: Likewise.
18172         * shrink-wrap.c: Likewise.
18173         * simplify-rtx.c: Likewise.
18174         * stack-ptr-mod.c: Likewise.
18175         * stmt.c: Likewise.
18176         * stor-layout.c: Likewise.
18177         * store-motion.c: Likewise.
18178         * stringpool.c: Likewise.
18179         * symtab.c: Likewise.
18180         * target-globals.c: Likewise.
18181         * targhooks.c: Likewise.
18182         * toplev.c: Likewise.
18183         * tracer.c: Likewise.
18184         * trans-mem.c: Likewise.
18185         * tree-affine.c: Likewise.
18186         * tree-browser.c: Likewise.
18187         * tree-call-cdce.c: Likewise.
18188         * tree-cfg.c: Likewise.
18189         * tree-cfgcleanup.c: Likewise.
18190         * tree-chkp-opt.c: Likewise.
18191         * tree-chkp.c: Likewise.
18192         * tree-chrec.c: Likewise.
18193         * tree-complex.c: Likewise.
18194         * tree-data-ref.c: Likewise.
18195         * tree-dfa.c: Likewise.
18196         * tree-diagnostic.c: Likewise.
18197         * tree-dump.c: Likewise.
18198         * tree-eh.c: Likewise.
18199         * tree-emutls.c: Likewise.
18200         * tree-if-conv.c: Likewise.
18201         * tree-inline.c: Likewise.
18202         * tree-into-ssa.c: Likewise.
18203         * tree-iterator.c: Likewise.
18204         * tree-loop-distribution.c: Likewise.
18205         * tree-nested.c: Likewise.
18206         * tree-nrv.c: Likewise.
18207         * tree-object-size.c: Likewise.
18208         * tree-outof-ssa.c: Likewise.
18209         * tree-parloops.c: Likewise.
18210         * tree-phinodes.c: Likewise.
18211         * tree-predcom.c: Likewise.
18212         * tree-pretty-print.c: Likewise.
18213         * tree-profile.c: Likewise.
18214         * tree-scalar-evolution.c: Likewise.
18215         * tree-sra.c: Likewise.
18216         * tree-ssa-address.c: Likewise.
18217         * tree-ssa-alias.c: Likewise.
18218         * tree-ssa-ccp.c: Likewise.
18219         * tree-ssa-coalesce.c: Likewise.
18220         * tree-ssa-copy.c: Likewise.
18221         * tree-ssa-copyrename.c: Likewise.
18222         * tree-ssa-dce.c: Likewise.
18223         * tree-ssa-dom.c: Likewise.
18224         * tree-ssa-dse.c: Likewise.
18225         * tree-ssa-forwprop.c: Likewise.
18226         * tree-ssa-ifcombine.c: Likewise.
18227         * tree-ssa-live.c: Likewise.
18228         * tree-ssa-loop-ch.c: Likewise.
18229         * tree-ssa-loop-im.c: Likewise.
18230         * tree-ssa-loop-ivcanon.c: Likewise.
18231         * tree-ssa-loop-ivopts.c: Likewise.
18232         * tree-ssa-loop-manip.c: Likewise.
18233         * tree-ssa-loop-niter.c: Likewise.
18234         * tree-ssa-loop-prefetch.c: Likewise.
18235         * tree-ssa-loop-unswitch.c: Likewise.
18236         * tree-ssa-loop.c: Likewise.
18237         * tree-ssa-math-opts.c: Likewise.
18238         * tree-ssa-operands.c: Likewise.
18239         * tree-ssa-phiopt.c: Likewise.
18240         * tree-ssa-phiprop.c: Likewise.
18241         * tree-ssa-pre.c: Likewise.
18242         * tree-ssa-propagate.c: Likewise.
18243         * tree-ssa-reassoc.c: Likewise.
18244         * tree-ssa-sccvn.c: Likewise.
18245         * tree-ssa-scopedtables.c: Likewise.
18246         * tree-ssa-sink.c: Likewise.
18247         * tree-ssa-strlen.c: Likewise.
18248         * tree-ssa-structalias.c: Likewise.
18249         * tree-ssa-tail-merge.c: Likewise.
18250         * tree-ssa-ter.c: Likewise.
18251         * tree-ssa-threadedge.c: Likewise.
18252         * tree-ssa-threadupdate.c: Likewise.
18253         * tree-ssa-uncprop.c: Likewise.
18254         * tree-ssa-uninit.c: Likewise.
18255         * tree-ssa.c: Likewise.
18256         * tree-ssanames.c: Likewise.
18257         * tree-stdarg.c: Likewise.
18258         * tree-streamer-in.c: Likewise.
18259         * tree-streamer-out.c: Likewise.
18260         * tree-streamer.c: Likewise.
18261         * tree-switch-conversion.c: Likewise.
18262         * tree-tailcall.c: Likewise.
18263         * tree-vect-data-refs.c: Likewise.
18264         * tree-vect-generic.c: Likewise.
18265         * tree-vect-loop-manip.c: Likewise.
18266         * tree-vect-loop.c: Likewise.
18267         * tree-vect-patterns.c: Likewise.
18268         * tree-vect-slp.c: Likewise.
18269         * tree-vect-stmts.c: Likewise.
18270         * tree-vectorizer.c: Likewise.
18271         * tree-vrp.c: Likewise.
18272         * tree.c: Likewise.
18273         * tsan.c: Likewise.
18274         * ubsan.c: Likewise.
18275         * valtrack.c: Likewise.
18276         * value-prof.c: Likewise.
18277         * var-tracking.c: Likewise.
18278         * varasm.c: Likewise.
18279         * varpool.c: Likewise.
18280         * vmsdbgout.c: Likewise.
18281         * vtable-verify.c: Likewise.
18282         * web.c: Likewise.
18283         * wide-int.cc: Likewise.
18284         * xcoffout.c: Likewise.
18285         * config/aarch64/aarch64-builtins.c: Likewise.
18286         * config/aarch64/aarch64.c: Likewise.
18287         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18288         * config/alpha/alpha.c: Likewise.
18289         * config/arc/arc.c: Likewise.
18290         * config/arm/aarch-common.c: Likewise.
18291         * config/arm/arm-builtins.c: Likewise.
18292         * config/arm/arm-c.c: Likewise.
18293         * config/arm/arm.c: Likewise.
18294         * config/avr/avr-c.c: Likewise.
18295         * config/avr/avr-log.c: Likewise.
18296         * config/avr/avr.c: Likewise.
18297         * config/bfin/bfin.c: Likewise.
18298         * config/c6x/c6x.c: Likewise.
18299         * config/cr16/cr16.c: Likewise.
18300         * config/cris/cris.c: Likewise.
18301         * config/darwin-c.c: Likewise.
18302         * config/darwin.c: Likewise.
18303         * config/epiphany/epiphany.c: Likewise.
18304         * config/epiphany/mode-switch-use.c: Likewise.
18305         * config/epiphany/resolve-sw-modes.c: Likewise.
18306         * config/fr30/fr30.c: Likewise.
18307         * config/frv/frv.c: Likewise.
18308         * config/ft32/ft32.c: Likewise.
18309         * config/h8300/h8300.c: Likewise.
18310         * config/i386/i386-c.c: Likewise.
18311         * config/i386/i386.c: Likewise.
18312         * config/i386/msformat-c.c: Likewise.
18313         * config/i386/winnt-cxx.c: Likewise.
18314         * config/i386/winnt-stubs.c: Likewise.
18315         * config/i386/winnt.c: Likewise.
18316         * config/ia64/ia64-c.c: Likewise.
18317         * config/ia64/ia64.c: Likewise.
18318         * config/iq2000/iq2000.c: Likewise.
18319         * config/lm32/lm32.c: Likewise.
18320         * config/m32c/m32c-pragma.c: Likewise.
18321         * config/m32c/m32c.c: Likewise.
18322         * config/m32r/m32r.c: Likewise.
18323         * config/m68k/m68k.c: Likewise.
18324         * config/mcore/mcore.c: Likewise.
18325         * config/mep/mep-pragma.c: Likewise.
18326         * config/mep/mep.c: Likewise.
18327         * config/microblaze/microblaze-c.c: Likewise.
18328         * config/microblaze/microblaze.c: Likewise.
18329         * config/mips/mips.c: Likewise.
18330         * config/mmix/mmix.c: Likewise.
18331         * config/mn10300/mn10300.c: Likewise.
18332         * config/moxie/moxie.c: Likewise.
18333         * config/msp430/msp430-c.c: Likewise.
18334         * config/msp430/msp430.c: Likewise.
18335         * config/nds32/nds32-cost.c: Likewise.
18336         * config/nds32/nds32-fp-as-gp.c: Likewise.
18337         * config/nds32/nds32-intrinsic.c: Likewise.
18338         * config/nds32/nds32-isr.c: Likewise.
18339         * config/nds32/nds32-md-auxiliary.c: Likewise.
18340         * config/nds32/nds32-memory-manipulation.c: Likewise.
18341         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18342         * config/nds32/nds32-predicates.c: Likewise.
18343         * config/nds32/nds32.c: Likewise.
18344         * config/nios2/nios2.c: Likewise.
18345         * config/nvptx/nvptx.c: Likewise.
18346         * config/pa/pa.c: Likewise.
18347         * config/pdp11/pdp11.c: Likewise.
18348         * config/rl78/rl78-c.c: Likewise.
18349         * config/rl78/rl78.c: Likewise.
18350         * config/rs6000/rs6000-c.c: Likewise.
18351         * config/rs6000/rs6000.c: Likewise.
18352         * config/rx/rx.c: Likewise.
18353         * config/s390/s390-c.c: Likewise.
18354         * config/s390/s390.c: Likewise.
18355         * config/sh/sh-c.c: Likewise.
18356         * config/sh/sh-mem.cc: Likewise.
18357         * config/sh/sh.c: Likewise.
18358         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18359         * config/sh/sh_treg_combine.cc: Likewise.
18360         * config/sol2-c.c: Likewise.
18361         * config/sol2-cxx.c: Likewise.
18362         * config/sol2-stubs.c: Likewise.
18363         * config/sol2.c: Likewise.
18364         * config/sparc/sparc-c.c: Likewise.
18365         * config/sparc/sparc.c: Likewise.
18366         * config/spu/spu-c.c: Likewise.
18367         * config/spu/spu.c: Likewise.
18368         * config/stormy16/stormy16.c: Likewise.
18369         * config/tilegx/mul-tables.c: Likewise.
18370         * config/tilegx/tilegx-c.c: Likewise.
18371         * config/tilegx/tilegx.c: Likewise.
18372         * config/tilepro/mul-tables.c: Likewise.
18373         * config/tilepro/tilepro-c.c: Likewise.
18374         * config/tilepro/tilepro.c: Likewise.
18375         * config/v850/v850-c.c: Likewise.
18376         * config/v850/v850.c: Likewise.
18377         * config/vax/vax.c: Likewise.
18378         * config/visium/visium.c: Likewise.
18379         * config/vms/vms-c.c: Likewise.
18380         * config/vms/vms.c: Likewise.
18381         * config/vxworks.c: Likewise.
18382         * config/xtensa/xtensa.c: Likewise.
18384 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
18386         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18387         Remove operand constraints.  Change operand 2 predicate to
18388         nonmemory operand.  Limit const_int values to mode bitsize.  Only
18389         allow const_int values less than 32 when optimizing for size.
18390         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18391         Remove operand constraints.
18392         (*bt<mode>): Use SImode for const_int values less than 32.
18393         (regmode): Remove mode attribute.
18395 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
18397         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18398         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18399           moxie_legitimate_address_p): New functions.
18400           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18402 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18404         PR tree-optimization/66642
18405         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18406         header comment.  Rename split_edge variable to edge_at_split.  Split
18407         exit edge to create new loop exit bb.  Insert loop exit phis in new
18408         loop exit bb.
18410 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18412         * tree-cfg.c (get_virtual_phi): New function.
18413         * tree-cfg.h (get_virtual_phi): Declare.
18414         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18415         (rewrite_virtuals_into_loop_closed_ssa): New function.
18416         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18417         Declare.
18418         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18419         (transform_to_exit_first_loop_alt): Use
18420         rewrite_virtuals_into_loop_closed_ssa.
18422 2015-07-07  Richard Biener  <rguenther@suse.de>
18424         * fold-const.c (fold_binary_loc): Move
18425         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18426         * match.pd: ... here.
18427         Add (X * C1) % C2 -> 0 simplification pattern derived from
18428         extract_muldiv_1.
18430 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18432         PR target/66780
18433         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18434         change for target/65249.
18436 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
18438         * symtab.c (address_matters_1): Fix typo in comment above.
18439         (can_increase_alignment_p): Likewise.
18441 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18443         * function.c (free_after_compilation): Clear PROP_cfg in
18444         f->curr_properties.
18446 2015-07-07  Richard Biener  <rguenther@suse.de>
18448         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18449         add which use to.
18450         (add_control_edge): Remove excessive vertical space in dumping.
18451         (process_ssa_edge_worklist): Simulate at most one statement and
18452         return whether we did.  Do not simulate PHIs if they are in a
18453         BB not yet simulated.
18454         (ssa_propagate): Adjust to always drain the BB worklist whenever
18455         a BB is available there, likewise the VARYING edges list before
18456         the interesting edge list.
18458 2015-07-07  Christian Bruel  <christian.bruel@st.com>
18460         PR target/52144
18461         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18463 2015-07-07  Richard Biener  <rguenther@suse.de>
18465         PR middle-end/66739
18466         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18467         A - B.
18469 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18471         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
18472         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
18473         Copy operand 0 to a temporary if !ext_register_operand.  Remove
18474         ancient extract_bit_field workaround.
18475         (insv<mode>_1): Rename from mov<mode>_insv_1.
18476         (*insvqi): Rename from *movqi_insv_2.
18477         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18478         for renamed insvsi_1.
18479         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18481 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
18483         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
18484         call to nvptx_reorg_subreg.
18486 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
18488         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18489         * graphite-dependencies.c, graphite-interchange.c,
18490         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18491         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18492         Likewise.
18494 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
18496         * match.pd: Remove element_mode inside HONOR_*.
18497         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18498         (~X | X -> -1, ~X ^ X -> -1): Merge.
18499         * tree.c (build_each_one_cst): New function.
18500         * tree.h (build_each_one_cst): Likewise.
18502 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18504         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18505         PROCESSOR_IAMCU.
18507 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
18509         * config.gcc <mips*-*-*>: Add fused-madd.opt.
18510         * config/mips/mips.opt (mfused-madd): Remove.
18511         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18512         * config/mips/mips.h (TARGET_MIPS8000): New.
18513         (ISA_HAS_FP_MADD4_MSUB4): Remove.
18514         (ISA_HAS_FP_MADDF_MSUBF): Remove.
18515         (ISA_HAS_FP_MADD3_MSUB3): Remove.
18516         (ISA_HAS_NMADD4_NMSUB4): Remove.
18517         (ISA_HAS_NMADD3_NMSUB3): Remove.
18518         (ISA_HAS_FUSED_MADD4): New.
18519         (ISA_HAS_UNFUSED_MADD4): New.
18520         (ISA_HAS_FUSED_MADDF): New.
18521         (ISA_HAS_FUSED_MADD3): New.
18522         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18523         (*fma<mode>4_madd3) New.
18524         (*fma<mode>4_madd4) New.
18525         (*fma<mode>4_maddf) New.
18526         (fms<mode>4) New.
18527         (*fms<mode>4_msub3) New.
18528         (*fms<mode>4_msub4) New.
18529         (fnma<mode>4) New.
18530         (*fnma<mode>4_nmadd3) New.
18531         (*fnma<mode>4_nmadd4) New.
18532         (fnms<mode>4) New.
18533         (*fnms<mode>4_nmsub3) New.
18534         (*fnms<mode>4_nmsub4) New.
18535         (*madd4<mode>) Modify to be unfused only.
18536         (*msub4<mode>) Modify to be unfused only.
18537         (*nmadd4<mode>) Modify to be unfused only.
18538         (*nmsub4<mode>) Modify to be unfused only.
18539         (*madd3<mode>) Remove.
18540         (*msub3<mode>) Remove.
18541         (*nmadd3<mode>) Remove.
18542         (*nmsub3<mode>) Remove.
18543         (*nmadd3<mode>_fastmath) Remove.
18544         (*nmsub3<mode>_fastmath) Remove.
18545         (*nmadd4<mode>_fastmath) Update condition.
18546         (*nmsub4<mode>_fastmath) Update condition.
18548 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18550         PR target/65956
18551         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18552         alignment attribute, exploring one level down for records and arrays.
18554 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18556         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
18557         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
18558         Copy operand 1 to a temporary if !ext_register_operand.  Remove
18559         ancient extract_bit_field workaround.
18560         (*extv<mode>): Rename from *mov<mode>_extv_1.
18561         (*extvqi): Rename from *movqi_extv_1.
18562         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
18563         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
18564         to a temporary if !ext_register_operand.  Remove ancient
18565         extract_bit_field workaround.
18566         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18567         (*extzvqi): Rename from *movqi_extzv_2.
18568         (*testqi_ext_3): Remove modes from const_int_operand predicated
18569         operands.  Add "n" constraint.
18570         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18571         operand.  Add "J" constraint.
18572         (*btsq, *btrq, *btcq peephole2s): Remove mode from
18573         const_0_to_63 predicated operand.
18574         (regmode): New insn attribute.
18575         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
18576         to nonmemory_operand.  Use regmode insn attribute.
18577         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18578         (*jcc_bt<mode>_mask): Remove mode from operand 3.
18579         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18580         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18581         operands.  Use "N" constraint instead of "n".
18583 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18585         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18587 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18589         PR target/66749
18590         * config/i386/i386.c (iamcu_cost): New.
18591         (m_IAMCU): Likewise.
18592         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18593         (processor_target_table): Add an entry for "iamcu".
18594         (processor_alias_table): Likewise.
18595         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18596         (ix86_adjust_cost): Likewise.
18597         (ia32_multipass_dfa_lookahead): Likewise.
18598         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18599         * config/i386/x86-tune.def: Updated for m_IAMCU.
18601 2015-07-06  Richard Biener  <rguenther@suse.de>
18603         PR tree-optimization/66772
18604         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18605         values are available in the PHI node BB when there are
18606         still unexecutable edges.
18608 2015-07-06  Richard Biener  <rguenther@suse.de>
18610         PR tree-optimization/66767
18611         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18612         Make sure to build the alignment test on a SSA name without
18613         final alignment info valid only if the alignment test
18614         evaluates to true.
18616 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18618         PR target/66620
18619         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18620         loop start when inserting LSETUP.
18622 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18624         PR target/53383
18625         * config/i386/i386.c (ix86_option_override_internal): Allow
18626         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18628 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18630         * read-md.c (decimal_string): Rename to ...
18631         (md_decimal_string): ... this.
18632         (handle_enum): Reflect this.
18634 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18636         PR target/66731
18637         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18639 2015-07-06  Richard Biener  <rguenther@suse.de>
18641         PR middle-end/66759
18642         * match.pd: Add missing constraint of y to REAL_CST in
18643         REAL_CST - x CMP y to y - CST CMP x simplification.
18645 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
18647         PR tree-optimization/66757
18648         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18650 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
18651             Sandra Loosemore <sandra@codesourcery.com>
18653         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18654         Delete extern declaration.
18655         (gprel_constant_p): Add extern declaration.
18656         * config/nios2/constraints.md ("S"): Use gprel_constant_p
18657         instead of nios2_symbol_ref_in_small_data_p.
18658         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18659         (nios2_symbol_ref_in_small_data_p): Make static.
18660         (gprel_constant_p): Make non-static.
18662 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18664         * doc/fragments.texi (Target Fragment): Convert debian.org
18665         link to use https.
18666         * doc/install.texi (Configuration): Ditto.
18668 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
18670         PR tree-optimization/66718
18671         * tree-vect-stmts.c (vectorizable_call): Replace uses of
18672         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18674         PR tree-optimization/66718
18675         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18676         vectorizable_load, vectorizable_condition): Move vectype,
18677         nunits, ncopies computation after checking what kind of statement
18678         stmt is.
18680 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18682         * target-insns.def (extv, extzv, insv): New targetm instruction
18683         patterns.
18684         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18685         interface.
18686         * recog.c (simplify_while_replacing): Likewise.
18688 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18690         * target-insns.def (doloop_begin, doloop_end): New targetm
18691         instruction patterns.
18692         * loop-init.c: Include target.h.
18693         (pass_loop2::gate): Use the new targetm patterns instead of
18694         HAVE_*/gen_* interface.
18695         (pass_rtl_doloop::gate): Likewise.
18696         (pass_rtl_doloop::execute): Remove preprocessor condition.
18697         * hw-doloop.c: Build unconditionally.
18698         * loop-doloop.c: Likewise.
18699         (doloop_optimize): Use the new targetm patterns instead of
18700         HAVE_*/gen_* interface.
18701         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18702         * modulo-sched.c (doloop_register_get): Likewise.
18704 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18706         * target-insns.def (clear_cache): New targetm instruction pattern.
18707         * builtins.c (expand_builtin___clear_cache): Use it instead of
18708         HAVE_*/gen_* interface.
18710 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18712         * target-insns.def (allocate_stack, check_stack, probe_stack)
18713         (probe_stack_address, split_stack_prologue, split_stack_space_check):
18714         New targetm instruction patterns.
18715         * explow.c (allocate_dynamic_stack_space): Use them instead of
18716         HAVE_*/gen_* interface.
18717         (emit_stack_probe): Likewise.
18718         (probe_stack_range): Likewise.
18719         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18721 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18723         * target-insns.def (stack_protect_set, stack_protect_test): New
18724         targetm instruction patterns.
18725         * cfgexpand.c (stack_protect_prologue): Use them instead of
18726         HAVE_*/gen_* interface.
18727         * function.c (stack_protect_epilogue): Likewise.
18729 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18731         * expr.h (gen_move_insn_uncast): Delete.
18732         * expr.c (gen_move_insn_uncast): Delete.
18734 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18736         * target-insns.def (restore_stack_block, restore_stack_function)
18737         (restore_stack_nonlocal, save_stack_block, save_stack_function)
18738         (save_stack_nonlocal): New targetm instruction patterns.
18739         * builtins.c (expand_builtin_apply): Use them instead of
18740         HAVE_*/gen_* interface.
18741         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18743 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18745         * target-insns.def (trap): New targetm instruction pattern.
18746         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18747         interface.
18748         * explow.c (allocate_dynamic_stack_space): Likewise.
18749         * ifcvt.c (find_if_header): Likewise.
18751 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18753         * target-insns.def (prefetch): New targetm instruction pattern.
18754         * tree-ssa-loop-prefetch.c: Include targeth.
18755         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18756         of HAVE_*/gen_* interface.
18757         * builtins.c (expand_builtin_prefetch): Likewise.
18758         * toplev.c (process_options): Likewise.
18760 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18762         * target-insns.def (untyped_call, untyped_return): New targetm
18763         instruction patterns.
18764         * builtins.c (expand_builtin_apply): Use them instead of
18765         HAVE_*/gen_* interface.
18766         (result_vector): Define unconditionally.
18768 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18770         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18771         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18772         (nonlocal_goto_receiver): New targetm instruction patterns.
18773         * builtins.c (expand_builtin_setjmp_setup): Use them instead
18774         of HAVE_*/gen_* interface.
18775         (expand_builtin_setjmp_receiver): Likewise.
18776         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18777         * except.c (expand_dw2_landing_pad_for_region): Likewise.
18779 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18781         * target.def: Add code_for_* hooks.
18782         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18783         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18784         * target-insns.def (casesi, tablejump): New targetm instruction
18785         patterns.
18786         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18787         (do_tablejump): Likewise.
18788         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18789         (expand_sjlj_dispatch_table): Likewise.
18790         * targhooks.c (default_case_values_threshold): Likewise.
18792 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
18794         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18795         Use rtx_insn * instead of rtx.
18796         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18797         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18798         (nios2_call_tls_get_addr): Likewise.
18799         (nios2_emit_expensive_div): Likewise.
18800         (nios2_emit_move_sequence): Change return type to bool.
18801         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18802         Change return type to bool.
18804 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18806         PR target/66747
18807         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18809 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
18811         PR target/66114
18812         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18813         of register_operand.  Remove constraint.
18815 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
18817         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18818         the first argument.
18820 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
18822         * attribs.c (decl_attributes): Guard inform with the return value
18823         of the preceding warning.
18825 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18827         * doc/invoke.texi (moverride): Move to correct section.
18829 2015-07-03  Richard Biener  <rguenther@suse.de>
18831         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18832         Copy from tree.c
18833         (dt_operand::gen_gimple_expr): After valueizing operands
18834         re-canonicalize operand order for commutative tree codes.
18836 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
18838         PR target/66746.
18839         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18840         is defined.
18841         (__crc32w): Likewise.
18842         (__crc32d): Likewise.
18843         (__rdpmc): Likewise.
18844         (__rdtscp): Likewise.
18845         (_rdpmc): Likewise.
18846         (_rdtscp): Likewise.
18847         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18848         is defined.
18850 2015-07-03  Richard Biener  <rguenther@suse.de>
18852         * fold-const.c (fold_mathfn_compare): Remove.
18853         (fold_inf_compare): Likewise.
18854         (fold_comparison): Move floating point comparison simplifications...
18855         * match.pd: ... to patterns here.  Introduce simple_comparisons
18856         operator list and use it for patterns formerly in fold_comparison.
18858 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18860         PR tree-optimization/66119
18861         * toplev.c (process_options): Don't set up default values for
18862         the sra_max_scalarization_size_{speed,size} parameters.
18863         * tree-sra (analyze_all_variable_accesses): If no values
18864         have been set for the sra_max_scalarization_size_{speed,size}
18865         parameters, call get_move_ratio to get target defaults.
18867 2015-07-03  Richard Biener  <rguenther@suse.de>
18869         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18870         * match.pd: ... here.
18872 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
18874         PR target/37072
18875         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18876         is not actually the default on FreeBSD.
18878 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18880         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18881         definition.
18882         (CMPGE_8HI): Likewise.
18883         (CMPGE_4SI): Likewise.
18884         (CMPGE_2DI): Likewise.
18885         (CMPGE_U16QI): Likewise.
18886         (CMPGE_U8HI): Likewise.
18887         (CMPGE_U4SI): Likewise.
18888         (CMPGE_U2DI): Likewise.
18889         (CMPLE_16QI): Likewise.
18890         (CMPLE_8HI): Likewise.
18891         (CMPLE_4SI): Likewise.
18892         (CMPLE_2DI): Likewise.
18893         (CMPLE_U16QI): Likewise.
18894         (CMPLE_U8HI): Likewise.
18895         (CMPLE_U4SI): Likewise.
18896         (CMPLE_U2DI): Likewise.
18897         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18898         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18899         ALTIVEC_BUILTIN_VEC_CMPLE.
18900         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18901         floating-point vector modes.
18902         (vector_nlt<mode>): New define_expand.
18903         (vector_nltu<mode>): Likewise.
18904         (vector_ngt<mode>): Likewise.
18905         (vector_ngtu<mode>): Likewise.
18907 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18909         PR rtl-optimization/66706
18910         * combine.c (make_compound_operation): If an AND of SUBREG of
18911         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18913 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
18915         * tree-pass.h (make_pass_ch_vect): New.
18916         * passes.def: Add pass_ch_vect just before pass_if_conversion.
18918         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18919         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18920         make_pass_ch_vect): New.
18921         (pass_ch): Extend ch_base.
18923         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18924         (ch_base::copy_headers): ...here.
18926 2015-07-02  Richard Biener  <rguenther@suse.de>
18928         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18929         * fold-const.c (get_pointer_modulus_and_residue): Remove.
18930         (fold_binary_loc): Implement (T)ptr & CST in terms of
18931         get_pointer_alignment_1.
18932         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18933         Make sure to build the alignment test on a SSA name without
18934         final alignment info valid only after the prologue.
18936 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
18938         * config/cris/cris.md ("epilogue"): Remove condition.
18939         ("prologue"): Ditto.
18941 2015-07-02  Richard Biener  <rguenther@suse.de>
18943         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18944         parameter to record a condition that is false.
18945         (record_conditions): When recording an extra NE_EXPR that is
18946         true also record a EQ_EXPR that is false.
18948 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
18950         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18951         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18952         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
18953         (set_iv, find_interesting_uses_address, add_candidate_1): New
18954         argument to alloc_iv.
18955         (find_interesting_uses_op, find_interesting_uses_cond): Don't
18956         duplicate struct iv.
18957         (free_loop_data): Don't free struct iv explicitly.
18958         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18960 2015-07-01  DJ Delorie  <dj@redhat.com>
18962         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18963         (LIB_SPEC): Add.
18964         (SUPPORTS_DISCRIMINATOR): Define.
18966 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18968         PR bootstrap/66685
18969         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18970         there are no CALLs in the same pattern.
18972 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18974         PR rtl-optimization/61047
18975         * rtlanal.c (get_initial_register_offset): New function.
18976         (rtx_addr_can_trap_p_1): Check offsets of stack references.
18978 2015-07-01  Richard Biener  <rguenther@suse.de>
18980         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18981         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18982         ~X CMP C -> X CMP' ~C to ...
18983         * match.pd: ... patterns here.
18985 2015-07-01  Nick Clifton  <nickc@redhat.com>
18987         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18988         a 16-bit value into a 20-bit memory slot.
18990 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18992         * doc/sourcebuild.texi (AArch64-specific attributes): Document
18993         "aarch64_tiny", "aarch64_small", "aarch64_large",
18994         "aarch64_little_endian", "aarch64_big_endian".
18996 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18998         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18999         Document "aarch64_small_fpic".
19001 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19003         * configure.ac: Add check for aarch64 assembler -fpic relocation
19004         modifier support.
19005         * configure: Regenerate.
19006         * config.in: Regenerate.
19007         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19008         to -fPIC if not support of -fpic relocation modifier in assembler.
19010 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19012         PR bootstrap/66685
19013         * rtl.c (classify_insn): Handle returns in PARALLELs.
19015 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
19017         PR middle-end/66633
19018         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19019         to true if the function is nested and if not optimizing.
19020         (convert_local_omp_clauses): Initialize need_frame to true if the
19021         function contains nested functions and if not optimizing.
19023 2015-07-01  Richard Biener  <rguenther@suse.de>
19025         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19026         (X & Y) ^ Y -> ~X & Y transforms to ...
19027         * match.pd: ... here.
19029 2015-07-01  Richard Biener <rguenther@suse.de>
19031         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19032         of converts to avoid uninteresting noise from the conversion
19033         simplifying patterns.
19035 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
19037         * config/c6x/c6x.c (try_rename_operands): Do not depend on
19038         gcc_assert evaluating its argument for side-effect.
19040 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19042         PR target/64833
19043         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19044         flag_pic is set.
19046 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19048         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19049         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19050         (hash_scc): Add this_ref_p and ref_p parameters and pass them
19051         to the inner DFS walk.
19053 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19055         * target-insns.def (jump): New targetm instruction pattern.
19056         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19057         instead of gen_jump.
19058         (fix_up_crossing_landing_pad): Likewise.
19059         (add_labels_and_missing_jumps): Likewise.
19060         (fix_crossing_conditional_branches): Likewise.
19061         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19062         (force_nonfallthru_and_redirect): Likewise.
19063         * cse.c (cse_insn): Likewise.
19064         * expmed.c (expand_divmod): Likewise.
19065         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19066         * haifa-sched.c (init_before_recovery): Likewise.
19067         (sched_create_recovery_edges): Likewise.
19068         * ifcvt.c (find_cond_trap): Likewise.
19069         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19070         (expand_float, expand_fix): Likewise.
19071         * stmt.c (emit_jump): Likewise.
19073 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19075         * defaults.h (HAVE_load_multiple, gen_load_multiple)
19076         (HAVE_store_multiple, gen_store_multiple): Delete.
19077         * target-insns.def (load_multiple, store_multiple): New targetm
19078         instruction patterns.
19079         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19080         of HAVE_*/gen_* interface.
19082 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19084         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19085         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19086         (gen_mem_signal_fence): Delete.
19087         * target-insns.def (mem_signal_fence, mem_thread_fence)
19088         (memory_barrier): New targetm instruction patterns.
19089         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19090         interface.
19091         (expand_mem_signal_fence): Likewise.
19093 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19095         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19096         * target-insns.def (epilogue, prologue, sibcall_prologue): New
19097         targetm instruction patterns.
19098         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19099         interface.
19100         * calls.c (expand_call): Likewise.
19101         * cfgrtl.c (cfg_layout_finalize): Likewise.
19102         * df-scan.c (df_get_entry_block_def_set): Likewise.
19103         (df_get_exit_block_use_set): Likewise.
19104         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19105         * final.c (final_start_function): Likewise.
19106         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19107         (reposition_prologue_and_epilogue_notes): Likewise.
19108         * reorg.c (find_end_label): Likewise.
19109         * toplev.c (process_options): Likewise.
19111 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
19113         * typed-splay-tree.h: New file.
19115 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
19117         PR debug/66691
19118         * lra-int.h (lra_substitute_pseudo): Add a parameter.
19119         (lra_substitute_pseudo_within_insn): Ditto.
19120         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
19121         of constant.
19122         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
19123         to lra_substitute_pseudo.
19124         * lra-lives.c (process_bb_lives): Add an argument to
19125         lra_substitute_pseudo_within_insn call.
19126         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19127         argument to lra_substitute_pseudo and
19128         lra_substitute_pseudo_within_insn calls.
19129         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19131 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19133         * configure: Regenerated.
19135 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19137         * config.gcc: Support i[34567]86-*-elfiamcu target.
19138         * config/i386/iamcu.h: New.
19139         * config/i386/i386.opt: Add -miamcu.
19140         * doc/invoke.texi: Document -miamcu.
19141         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
19142         off x87/MMX/SSE/AVX codegen for -miamcu.
19143         * config/i386/i386-c.c (ix86_target_macros_internal): Define
19144         __iamcu/__iamcu__ for -miamcu.
19145         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19146         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19147         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19148         * config/i386/i386.c (ix86_option_override_internal): Ignore and
19149         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
19150         MCU by default.  Default long double to 64-bit for Intel MCU.
19151         Turn on -freg-struct-return for Intel MCU.  Issue an error when
19152         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19153         AVX is turned on.
19154         (function_arg_advance_32): Pass value whose size is no larger
19155         than 8 bytes in registers for Intel MCU.
19156         (function_arg_32): Likewise.
19157         (ix86_return_in_memory): Return value whose size is no larger
19158         than 8 bytes in registers for Intel MCU.
19159         (iamcu_alignment): New function.
19160         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19161         true.
19162         (ix86_local_alignment): Don't increase alignment for Intel MCU.
19163         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19164         true.
19166 2015-06-30  Marek Polacek  <polacek@redhat.com>
19168         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
19169         both operands of the resulting expression.
19171         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
19172         the final expression with the operand's type and then convert
19173         it to the type of the expression.
19175 2015-06-30  Richard Biener  <rguenther@suse.de>
19177         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19178         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19179         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19180         * match.pd: ... to patterns here.
19182 2015-06-30  Richard Biener  <rguenther@suse.de>
19184         PR tree-optimization/66704
19185         * tree-vect-data-refs.c (vect_setup_realignment): Use
19186         make_ssa_name for non-SSA name source.
19188 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
19190         PR middle-end/66702
19191         * omp-low.c (simd_clone_adjust): Handle addressable linear
19192         or uniform parameters or non-gimple type uniform parameters.
19194 2015-06-30  Richard Biener  <rguenther@suse.de>
19196         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19197         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19198         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19199         * match.pd: ... here.
19200         Add a few cases of A - B -> A + (-B) when B "easily" negates.
19201         Move (x & y) | x -> x and friends before
19202         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19204 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19206         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19207         -mfix-ut699 is not specified.
19208         (leon3_load): Rename into...
19209         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
19210         is specified.
19212 2015-06-30  Marek Polacek  <polacek@redhat.com>
19214         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19215         * match.pd: ... here.
19217 2015-06-30  Richard Biener  <rguenther@suse.de>
19219         * target-insns.def (canonicalize_funcptr_for_compare): Add.
19220         * fold-const.c (build_range_check): Replace uses of
19221         HAVE_canonicalize_funcptr_for_compare.
19222         (fold_widened_comparison): Likewise.
19223         (fold_sign_changed_comparison): Likewise.
19224         * dojump.c: Include "target.h".
19225         (do_compare_and_jump): Replace uses of
19226         HAVE_canonicalize_funcptr_for_compare and
19227         gen_canonicalize_funcptr_for_compare.
19228         * expr.c (do_store_flag): Likewise.
19230 2015-06-30  Tom de Vries  <tom@codesourcery.com>
19232         PR tree-optimization/66652
19233         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19234         max_loop_iterations to determine if nit + 1 overflows.
19236 2015-06-30  Richard Biener  <rguenther@suse.de>
19238         * tree-vrp.c (register_edge_assert_for_2): Also register
19239         asserts for dominating conversion results.
19241 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
19243         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19244         field in struct iv.
19246 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
19248         PR target/66509
19249         * configure.ac: Fix filds and fildq test for 64-bit.
19250         * configure: Regenerated.
19252 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
19254         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19255         (nvptx_reorg): Here.  Keep the non-subreg pieces.
19257 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
19259         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19260         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19262 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
19264         * config/i386/i386.md (*jcc_1): Use %! in asm template.
19265         Set attribute "length_nobnd" instead of "length".
19266         (*jcc_2): Ditto.
19267         (jump): Ditto.
19268         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19270 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
19272         * config/nios2/nios2.c (nios2_delegitimize_address): Make
19273         assert less restrictive.
19275 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19277         PR fortran/66605
19278         * cgraphunit.c (cgraph_node::finalize_function): Do not call
19279         do_warn_unused_parameter.
19280         * function.c (do_warn_unused_parameter): Move from here.
19281         * function.h (do_warn_unused_parameter): Do not declare.
19283 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19285         PR target/65697
19286         * gcc.target/arm/armv-sync-comp-swap.c: New.
19287         * gcc.target/arm/armv-sync-op-acquire.c: New.
19288         * gcc.target/arm/armv-sync-op-full.c: New.
19289         * gcc.target/arm/armv-sync-op-release.c: New.
19291 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19293         PR target/65697
19294         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19295         initial acquire barrier with final barrier.
19297 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19299         PR target/65697
19300         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19301         initial acquire barrier with final barrier.
19303 2015-06-29  Richard Henderson  <rth@redhat.com>
19305         * config/i386/constraints.md (Bf): New constraint.
19306         * config/i386/i386-c.c (ix86_target_macros): Define
19307         __GCC_ASM_FLAG_OUTPUTS__.
19308         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19309         as flags outputs.
19310         * doc/extend.texi (FlagOutputOperands): Document them.
19312 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
19314         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19315         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19316         unspec name.
19317         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19318         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19319         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19320         (aarch64_symbol_context): Ditto.
19321         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19322         and use new pattern name.
19323         (aarch64_expand_mov_immediate): Ditto.
19324         (aarch64_print_operand): Ditto.
19325         (aarch64_classify_tls_symbol): Ditto.
19327 2015-06-29  Marek Polacek  <polacek@redhat.com>
19328             Marc Glisse  <marc.glisse@inria.fr>
19330         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19331         * match.pd: ... pattern here.
19333 2015-06-29  Tom de Vries  <tom@codesourcery.com>
19335         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19336         function structure.
19338 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19340         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19341         feature description, split out the native option, add a link to
19342         the feature documentation, rearrange and slightly rewrite text.
19343         (Aarch64 options, -mcpu): Likewise.
19344         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
19345         +rdma implies Adv. SIMD.
19347 2015-06-29  Marek Polacek  <polacek@redhat.com>
19349         PR c/66322
19350         * function.c (stack_protect_epilogue): Remove a cast to int.
19351         * doc/invoke.texi: Update -Wswitch-bool description.
19353 2015-06-29  Richard Biener  <rguenther@suse.de>
19355         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19356         * fold-const.c (fold_binary_loc): Move &A - &B simplification
19357         via ptr_difference_const ...
19358         * match.pd: ... here.
19359         When matching (X ^ Y) == Y also match with swapped operands.
19361 2015-06-29  Richard Biener  <rguenther@suse.de>
19363         * lto-streamer.h (LTO_major_version): Bump to 5.
19365 2015-06-29  Richard Biener  <rguenther@suse.de>
19367         PR tree-optimization/66677
19368         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19369         STMT_VINFO_VEC_STMT clobbering less strict.
19371 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19373         PR middle-end/64130
19374         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19375         division, compute max and min when value ranges for dividend and
19376         divisor are available.
19378 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
19379             Sandra Loosemore <sandra@codesourcery.com>
19381         * regrename.h (regrename_do_replace): Change to return bool.
19382         * regrename.c (rename_chains): Check return value of
19383         regname_do_replace.
19384         (regrename_do_replace): Re-validate the modified insns and
19385         return bool status.
19386         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19387         Update to match rename_chains changes.
19388         * config/c6x/c6x.c (try_rename_operands): Assert that
19389         regrename_do_replace returns true.
19391 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
19393         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19394         operand 2 here.  Use copy_addr_to_reg to copy non-index
19395         register operand 2 to a temporary.
19396         (<mode>_stx): Ditto for operand 1.
19397         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19398         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19399         (ix86_store_bounds): Ditto.
19401 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
19403         * print-tree.c (print_node) [TREE_VEC]: Print its length.
19405 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
19407         * gimple.c (gimple_call_set_fndecl): Remove.
19408         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19409         build1_loc directly instead of build_fold_addr_expr_loc.
19411 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19413         * hash-map.h (hash_map::traverse): Use the definition of the
19414         Key typedef rather than the typedef itself.
19416 2015-06-26  Martin Jambor  <mjambor@suse.cz>
19418         PR debug/66301
19419         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19420         NULL instead of calling dump_enabled_p.
19422 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19424         * config/aarch64/aarch64.opt: (override): New.
19425         * doc/invoke.texi (override): Document.
19426         * config/aarch64/aarch64.c (aarch64_flag_desc): New
19427         (aarch64_fusible_pairs): Likewise.
19428         (aarch64_tuning_flags): Likewise.
19429         (aarch64_tuning_override_function): Likewise.
19430         (aarch64_tuning_override_functions): Likewise.
19431         (aarch64_parse_one_option_token): Likewise.
19432         (aarch64_parse_boolean_options): Likewise.
19433         (aarch64_parse_fuse_string): Likewise.
19434         (aarch64_parse_tune_string): Likewise.
19435         (aarch64_parse_one_override_token): Likewise.
19436         (aarch64_parse_override_string): Likewise.
19437         (aarch64_override_options): Parse the -override string if it
19438         is present.
19440 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19442         * config/aarch64/aarch64-protos.h (tune_params): Remove
19443         const from members.
19444         (aarch64_tune_params): Remove const, change to no longer be
19445         a pointer.
19446         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19447         change to no longer be a pointer, initialize to generic_tunings.
19448         (aarch64_min_divisions_for_recip_mul): Change dereference of
19449         aarch64_tune_params to member access.
19450         (aarch64_reassociation_width): Likewise.
19451         (aarch64_rtx_mult_cost): Likewise.
19452         (aarch64_address_cost): Likewise.
19453         (aarch64_branch_cost): Likewise.
19454         (aarch64_rtx_costs): Likewise.
19455         (aarch64_register_move_cost): Likewise.
19456         (aarch64_memory_move_cost): Likewise.
19457         (aarch64_sched_issue_rate): Likewise.
19458         (aarch64_builtin_vectorization_cost): Likewise.
19459         (aarch64_override_options): Take a copy of the selected tuning
19460         struct in to aarch64_tune_params, rather than just setting
19461         a pointer, change dereferences of aarch64_tune_params to member
19462         accesses.
19463         (aarch64_override_options_after_change): Change dereferences of
19464         aarch64_tune_params to member access.
19465         (aarch64_macro_fusion_p): Likewise.
19466         (aarch_macro_fusion_pair_p): Likewise.
19467         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19469 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19471         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19472         (aarch64_tune_flags): Likewise.
19473         (AARCH64_TUNE_FMA_STEERING): Likewise.
19474         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19475         to AARCH64_FL_USE_FMA_STEERING_PASS.
19476         (cortex-a57.cortex-a53): Likewise.
19477         (cortex-a72): Use cortexa72_tunings.
19478         (cortex-a72.cortex-a53): Likewise.
19479         (exynos-m1): Likewise.
19480         * config/aarch64/aarch64-protos.h (tune_params): Add
19481         a field: extra_tuning_flags.
19482         * config/aarch64/aarch64-tuning-flags.def: New.
19483         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19484         (aarch64_extra_tuning_flags): Likewise.
19485         (aarch64_tune_params): Declare here.
19486         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19487         (cortexa53_tunings): Likewise.
19488         (cortexa57_tunings): Likewise.
19489         (thunderx_tunings): Likewise.
19490         (xgene1_tunings): Likewise.
19491         (cortexa72_tunings): New.
19492         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19493          (gate): Check against aarch64_tune_params.
19494         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19495         aarch64-protos.h.
19497 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19499         * config/aarch64/aarch64-fusion-pairs.def: New.
19500         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19501         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19502         aarch64_fusion_pairs.
19503         (AARCH64_FUSE_MOV_MOVK): Likewise.
19504         (AARCH64_FUSE_ADRP_ADD): Likewise.
19505         (AARCH64_FUSE_MOVK_MOVK): Likewise.
19506         (AARCH64_FUSE_ADRP_LDR): Likewise.
19507         (AARCH64_FUSE_CMP_BRANCH): Likewise.
19509 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19511         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19512         SYMBOL_SMALL_GOT_28K.
19513         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19514         relocation modifiers.
19515         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19516         (ldr_got_small_28k_<mode>): New.
19517         (ldr_got_small_28k_sidi): New.
19518         * config/aarch64/iterators.md (got_modifier): New mode iterator.
19519         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19520         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19521         SYMBOL_SMALL_GOT_28K.
19522         (aarch64_rtx_costs): Add costs for new instruction sequences.
19523         (initialize_aarch64_code_model): Initialize new model.
19524         (aarch64_classify_symbol): Recognize new model and new symbol classification.
19525         (aarch64_asm_preferred_eh_data_format): Support new model.
19526         (aarch64_load_symref_appropriately): Generate new instruction
19527         sequences for -fpic.
19528         (TARGET_USE_PSEUDO_PIC_REG): New definition.
19529         (aarch64_use_pseudo_pic_reg): New function.
19531 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19533         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19534         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19535         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19536         (aarch64_expand_mov_immediate): Ditto.
19537         (aarch64_print_operand): Ditto.
19538         (aarch64_classify_symbol): Ditto.
19540 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
19542         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19544 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
19546         PR bootstrap/66638
19547         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19548         assertion failed.  Remove assertion itself.
19550 2015-06-26  Richard Biener  <rguenther@suse.de>
19552         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19553         and -A CMP CST -> A CMP -CST which is redundant with a pattern
19554         in match.pd.
19555         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19556         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19557         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19558         * match.pd: ... patterns here.
19560 2015-06-26  Marek Polacek  <polacek@redhat.com>
19562         * match.pd ((x | y) & ~(x & y) -> x ^ y,
19563         (x | y) & (~x ^ y) -> x & y): New patterns.
19565 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19567         * rtl.h (emit): Add an optional boolean parameter to control
19568         whether barriers are emitted.
19569         * emit-rtl.c (emit): Likewise.
19570         * gensupport.c (get_emit_function): Return null rather than "emit".
19571         * genemit.c (gen_emit_seq): Handle the null return value.
19572         Don't emit barriers after the final instruction in the sequence.
19573         * gentarget-def.c (main): Don't emit barriers after the instruction.
19575 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19577         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19578         TARGET_UNIFIED_ASM.
19580 2015-06-26  Richard Biener  <rguenther@suse.de>
19582         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19584 2015-06-26  Richard Biener  <rguenther@suse.de>
19586         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19587         irrespective on whether the inner operation has a single use
19588         of both off are constant.
19590 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
19591             Segher Boessenkool  <segher@kernel.crashing.org>
19593         PR target/66412
19594         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19595         before doing PUT_MODE or PUT_CODE on operands to avoid
19596         in-place RTX modification.
19598 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19600         * gentarget-def.c (def_target_insn): Cast return of strtol to
19601         unsigned int.
19603 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19605         * gimple.h (gimple_call_set_fn): Move inline function.
19606         * gimple.c (gimple_call_set_fn): Relocate here.
19608 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
19610         PR target/65979
19611         PR target/66611
19612         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19613         the replacement insn will work.
19615 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19617         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19618         by default.
19620 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19622         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19623         * cgraph.h: Include ipa-ref.h and plugin-api.h.
19624         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19625         (symtab_node::address_can_be_compared_p): Move function.
19626         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19627         definition here.
19628         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19629         * auto-profile.c: Likewise.
19630         * bb-reorder.c: Likewise.
19631         * builtins.c: Likewise.
19632         * calls.c: Likewise.
19633         * cfgexpand.c: Likewise.
19634         * cgraphbuild.c: Likewise.
19635         * cgraphclones.c: Likewise.
19636         * cgraphunit.c: Likewise.
19637         * combine.c: Likewise.
19638         * coverage.c: Likewise.
19639         * data-streamer-in.c: Likewise.
19640         * data-streamer-out.c: Likewise.
19641         * data-streamer.c: Likewise.
19642         * dbxout.c: Likewise.
19643         * dwarf2out.c: Likewise.
19644         * except.c: Likewise.
19645         * expr.c: Likewise.
19646         * final.c: Likewise.
19647         * fold-const.c: Likewise.
19648         * ggc-page.c: Likewise.
19649         * gimple-fold.c: Likewise.
19650         * gimple-iterator.c: Likewise.
19651         * gimple-pretty-print.c: Likewise.
19652         * gimple-streamer-in.c: Likewise.
19653         * gimple-streamer-out.c: Likewise.
19654         * gimple.c: Likewise.
19655         * gimplify.c: Likewise.
19656         * ipa-chkp.c: Likewise.
19657         * ipa-comdats.c: Likewise.
19658         * ipa-cp.c: Likewise.
19659         * ipa-devirt.c: Likewise.
19660         * ipa-icf-gimple.c: Likewise.
19661         * ipa-icf.c: Likewise.
19662         * ipa-inline-analysis.c: Likewise.
19663         * ipa-inline-transform.c: Likewise.
19664         * ipa-inline.c: Likewise.
19665         * ipa-polymorphic-call.c: Likewise.
19666         * ipa-profile.c: Likewise.
19667         * ipa-prop.c: Likewise.
19668         * ipa-pure-const.c: Likewise.
19669         * ipa-ref.c: Likewise.
19670         * ipa-reference.c: Likewise.
19671         * ipa-split.c: Likewise.
19672         * ipa-utils.c: Likewise.
19673         * ipa-visibility.c: Likewise.
19674         * ipa.c: Likewise.
19675         * langhooks.c: Likewise.
19676         * lto-cgraph.c: Likewise.
19677         * lto-compress.c: Likewise.
19678         * lto-opts.c: Likewise.
19679         * lto-section-in.c: Likewise.
19680         * lto-section-out.c: Likewise.
19681         * lto-streamer-in.c: Likewise.
19682         * lto-streamer-out.c: Likewise.
19683         * lto-streamer.c: Likewise.
19684         * omp-low.c: Likewise.
19685         * opts-global.c: Likewise.
19686         * passes.c: Likewise.
19687         * predict.c: Likewise.
19688         * print-tree.c: Likewise.
19689         * profile.c: Likewise.
19690         * ree.c: Likewise.
19691         * sanopt.c: Likewise.
19692         * stor-layout.c: Likewise.
19693         * symtab.c: Likewise.
19694         * toplev.c: Likewise.
19695         * trans-mem.c: Likewise.
19696         * tree-cfg.c: Likewise.
19697         * tree-chkp.c: Likewise.
19698         * tree-eh.c: Likewise.
19699         * tree-emutls.c: Likewise.
19700         * tree-inline.c: Likewise.
19701         * tree-nested.c: Likewise.
19702         * tree-parloops.c: Likewise.
19703         * tree-pretty-print.c: Likewise.
19704         * tree-profile.c: Likewise.
19705         * tree-sra.c: Likewise.
19706         * tree-ssa-alias.c: Likewise.
19707         * tree-ssa-live.c: Likewise.
19708         * tree-ssa-loop-ivcanon.c: Likewise.
19709         * tree-ssa-loop-ivopts.c: Likewise.
19710         * tree-ssa-pre.c: Likewise.
19711         * tree-ssa-sccvn.c: Likewise.
19712         * tree-ssa-strlen.c: Likewise.
19713         * tree-ssa-structalias.c: Likewise.
19714         * tree-streamer-in.c: Likewise.
19715         * tree-streamer-out.c: Likewise.
19716         * tree-streamer.c: Likewise.
19717         * tree-switch-conversion.c: Likewise.
19718         * tree-tailcall.c: Likewise.
19719         * tree-vect-data-refs.c: Likewise.
19720         * tree-vect-stmts.c: Likewise.
19721         * tree-vectorizer.c: Likewise.
19722         * tree.c: Likewise.
19723         * tsan.c: Likewise.
19724         * ubsan.c: Likewise.
19725         * value-prof.c: Likewise.
19726         * varasm.c: Likewise.
19727         * varpool.c: Likewise.
19728         * config/arm/arm.c: Likewise.
19729         * config/bfin/bfin.c: Likewise.
19730         * config/c6x/c6x.c: Likewise.
19731         * config/cris/cris.c: Likewise.
19732         * config/darwin-c.c: Likewise.
19733         * config/darwin.c: Likewise.
19734         * config/i386/i386.c: Likewise.
19735         * config/i386/winnt.c: Likewise.
19736         * config/microblaze/microblaze.c: Likewise.
19737         * config/mips/mips.c: Likewise.
19738         * config/rs6000/rs6000.c: Likewise.
19739         * config/rx/rx.c: Likewise.
19740         * config/s390/s390.c: Likewise.
19741         * config/tilegx/mul-tables.c: Likewise.
19743 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19745         * config/aarch64/aarch64.c, config/alpha/alpha.c,
19746         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19747         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19748         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19749         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19750         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19751         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19752         config/microblaze/microblaze.c, config/mips/mips.c,
19753         config/mmix/mmix.c, config/mn10300/mn10300.c,
19754         config/moxie/moxie.c, config/msp430/msp430.c,
19755         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19756         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19757         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19758         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19759         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19760         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19761         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19762         target-def.h include.
19763         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
19765 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19767         * Makefile.in (TARGET_DEF): Add target-insns.def.
19768         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19769         (build/gentarget-def.o): New rule.
19770         (genprogrtl): Add target-def.
19771         * target-insns.def, gentarget-def.c: New files.
19772         * target.def: Add targetm.have_* and targetm.gen_* hooks,
19773         based on the contents of target-insns.def.
19774         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19775         (HAVE_return, gen_return): Delete.
19776         * target-def.h: Include insn-target-def.h.
19777         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19778         instead of direct calls.  Rely on them to do the appropriate assertions.
19779         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
19780         (convert_jumps_to_returns): Use targetm interface instead of
19781         direct calls.
19782         (thread_prologue_and_epilogue_insns): Likewise.
19783         * reorg.c (find_end_label, dbr_schedule): Likewise.
19784         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19785         * shrink-wrap.c (convert_to_simple_return): Likewise.
19786         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19788 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19790         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19791         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19792         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19793         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19794         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19795         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19796         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19797         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19798         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19799         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19800         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19801         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19802         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19803         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19804         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19805         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19806         includes to end.
19808 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19810         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19811         (unbounded_int_hashmap_traits::key_type): Likewise.
19812         * hash-map.h (hash_map): Get the key type from the traits.
19813         * hash-traits.h (default_hash_traits): By default, inherit from the
19814         template parameter.
19815         * alias.c (alias_set_traits): Delete.
19816         (alias_set_entry_d::children): Use alias_set_hash as the first
19817         template parameter.
19818         (record_alias_subset): Update accordingly.
19819         * except.c (tree_hash_traits): Delete.
19820         (type_to_runtime_map): Use tree_hash as the first template parameter.
19821         (init_eh): Update accordingly.
19822         * genmatch.c (capture_id_map_hasher): Delete.
19823         (cid_map_t): Use nofree_string_hash as first template parameter.
19824         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19825         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19826         Use symbol_compare_hash as the first template parameter in
19827         subdivide_hash_map.
19828         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19829         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19830         template parameter.
19831         * passes.c (pass_registry_hasher): Delete.
19832         (name_to_pass_map): Use nofree_string_hash as the first template
19833         parameter.
19834         (register_pass_name): Update accordingly.
19835         * sanopt.c (sanopt_tree_map_traits): Delete.
19836         (sanopt_tree_triplet_map_traits): Delete.
19837         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19838         template parameter.
19839         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19840         the first template parameter.
19841         * sese.c (rename_map_hasher): Delete.
19842         (rename_map_type): Use tree_ssa_name_hash as the first template
19843         parameter.
19844         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19845         (function_summary::m_map): Use map_hash as the first template
19846         parameter.
19847         (function_summary::release): Update accordingly.
19848         * tree-if-conv.c (phi_args_hash_traits): Delete.
19849         (predicate_scalar_phi): Use tree_operand_hash as the first template
19850         parameter to phi_arg_map.
19851         * tree-inline.h (dependence_hasher): Delete.
19852         (copy_body_data::dependence_map): Use dependence_hash as the first
19853         template parameter.
19854         * tree-inline.c (remap_dependence_clique): Update accordingly.
19855         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19856         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19857         parameter.
19858         (addr_stridxptr): Update accordingly.
19859         * value-prof.c (profile_id_traits): Delete.
19860         (cgraph_node_map): Use profile_id_hash as the first template
19861         parameter.
19862         (init_node_map): Update accordingly.
19863         * config/alpha/alpha.c (string_traits): Delete.
19864         (machine_function::links): Use nofree_string_hash as the first
19865         template parameter.
19866         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19867         * config/m32c/m32c.c (pragma_traits): Delete.
19868         (pragma_htab): Use nofree_string_hash as the first template parameter.
19869         (m32c_note_pragma_address): Update accordingly.
19870         * config/mep/mep.c (pragma_traits): Delete.
19871         (pragma_htab): Use nofree_string_hash as the first template parameter.
19872         (mep_note_pragma_flag): Update accordingly.
19873         * config/mips/mips.c (mips16_flip_traits): Delete.
19874         (mflip_mips16_htab): Use nofree_string_hash as the first template
19875         parameter.
19876         (mflip_mips16_use_mips16_p): Update accordingly.
19877         (local_alias_traits): Delete.
19878         (mips16_local_aliases): Use nofree_string_hash as the first template
19879         parameter.
19880         (mips16_local_alias): Update accordingly.
19882 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19884         * hash-map-traits.h (default_hashmap_traits): Delete.
19886 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19888         * hash-map-traits.h (unbounded_hashmap_traits): New class.
19889         (unbounded_int_hashmap_traits): Likewise.
19890         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19892 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19894         * ipa-icf.h (symbol_compare_hash): New class.
19895         (symbol_compare_hashmap_traits): Use it.
19896         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19897         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19898         (mem_alloc_description::reverse_mem_map_t): Remove redundant
19899         default_hashmap_traits.
19900         * sanopt.c (sanopt_tree_triplet_hash): New class.
19901         (sanopt_tree_triplet_map_traits): Use it.
19903 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19905         * gengtype-parse.c (require_template_declaration): Allow '+' in
19906         template parameters.  Consolidate cases.
19907         * hash-traits.h (int_hash): New class.
19908         * alias.c (alias_set_hash): New structure.
19909         (alias_set_traits): Use it.
19910         * symbol-summary.h (function_summary::map_hash): New class.
19911         (function_summary::summary_hashmap_traits): Use it.
19912         * tree-inline.h (dependence_hash): New class.
19913         (dependence_hasher): Use it.
19914         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19915         * value-prof.c (profile_id_hash): New class.
19916         (profile_id_traits): Use it.
19918 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19920         * config/mips/mips.c (mips16_flip_traits): Use it.
19921         (local_alias_traits, mips16_local_aliases): Convert from a map of
19922         rtxes to a map of symbol names.
19923         (mips16_local_alias): Update accordingly.
19925 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19927         * hash-traits.h (string_hash, nofree_string_hash): New classes.
19928         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19929         * passes.c (pass_registry_hasher): Likewise.
19930         * config/alpha/alpha.c (string_traits): Likewise.
19931         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19932         * config/m32c/m32c.c (pragma_traits): Likewise.
19933         * config/mep/mep.c (pragma_traits): Likewise.
19935 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19937         * tree-hash-traits.h (tree_hash): New class.
19938         * except.c: Include tree-hash-traits.h.
19939         (tree_hash_traits): Use tree_hash.
19941 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19943         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19944         * sese.c: Include tree-hash-traits.h.
19945         (rename_map_hasher): Use tree_ssa_name_hasher.
19947 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19949         * tree-hash-traits.h (tree_decl_hash): New class.
19950         * tree-ssa-strlen.c: Include tree-hash-traits.h.
19951         (stridxlist_hash_traits): Use tree_decl_hash.
19953 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19955         * tree-hash-traits.h: New file.
19956         (tree_operand_hash): New class.
19957         * sanopt.c: Include tree-hash-traits.h.
19958         (sanopt_tree_map_traits): Use tree_operand_hash.
19959         * tree-if-conv.c: Include tree-hash-traits.h.
19960         (phi_args_hash_traits): Use tree_operand_hash.
19961         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19962         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19964 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19966         * hash-map-traits.h: Include hash-traits.h.
19967         (simple_hashmap_traits): New class.
19968         * mem-stats.h (hash_map): Change the default traits to
19969         simple_hashmap_traits<default_hash_traits<Key> >.
19971 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19973         * hash-table.h: Update comments.
19975 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19977         * hash-traits.h (default_hash_traits): New structure.
19978         * hash-set.h (default_hashset_traits): Delete.
19979         (hash_set): Use default_hash_traits<Key> instead of
19980         default_hashset_traits.  Delete hash_entry type and use Key directly.
19981         * ipa-devirt.c (pair_traits): Delete.
19982         (default_hash_traits <type_pair>): Override.
19983         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19984         (odr_types_equivalent_p, add_type_duplicate): Likewise.
19986 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19988         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19990 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19992         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19993         (has_is_empty, is_empty_helper): Delete.
19994         (has_mark_deleted, mark_deleted_helper): Delete.
19995         (has_mark_empty, mark_empty_helper): Delete.
19996         (hash_table::is_deleted): Call the Descriptor unconditionally.
19997         (hash_table::is_empty): Likewise.
19998         (hash_table::mark_deleted): Likewise.
19999         (hash_table::mark_empty): Likewise.
20001 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20003         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
20004         redundant typedefs and members.
20005         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
20006         redundant typedefs.
20007         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20008         * ipa-devirt.c (odr_name_hasher): Likewise.
20009         (polymorphic_call_target_hasher): Likewise.
20010         * ira-costs.c (cost_classes_hasher): Likewise.
20011         * statistics.c (stats_counter_hasher): Likewise.
20012         * trans-mem.c (log_entry_hasher): Likewise.
20013         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20014         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20015         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20016         * var-tracking.c (variable_hasher): Likewise.
20017         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20018         Remove redundant typedefs and members.
20020 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20022         * hash-traits.h (ggc_cache_hasher): Rename to...
20023         (ggc_cache_remove): ...this and remove typedefs.
20024         (ggc_cache_ptr_hash): New class.
20025         * hash-table.h: Update commentary.
20026         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20027         rather than ggc_cache_hasher.
20028         (const_wide_int_hasher, reg_attr_hasher): Likewise.
20029         (const_double_hasher, const_fixed_hasher): Likewise.
20030         * function.c (insn_cache_hasher): Likewise.
20031         * trans-mem.c (tm_wrapper_hasher): Likewise.
20032         * tree.h (tree_decl_map_cache_hasher): Likewise.
20033         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20034         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20035         * ubsan.c (tree_type_map_cache_hasher): Likewise.
20036         * varasm.c (tm_clone_hasher): Likewise.
20037         * config/i386/i386.c (dllimport_hasher): Likewise.
20038         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20039         (tree_hasher): Likewise.
20041 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20043         * hash-traits.h (ggc_hasher): Rename to...
20044         (ggc_remover): ...this and remove typedefs.
20045         (ggc_cache_hasher): Update accordingly.  Add typedefs.
20046         (ggc_ptr_hash): New class.
20047         * hash-table.h: Update comment.
20048         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20049         ggc_hasher.
20050         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20051         (tree_descriptor_hasher): Likewise.
20052         * cgraph.c (function_version_hasher): Likewise.
20053         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20054         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20055         (dw_loc_list_hasher, addr_hasher): Likewise.
20056         * function.h (used_type_hasher): Likewise.
20057         * function.c (temp_address_hasher): Likewise.
20058         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20059         * libfuncs.h (libfunc_hasher): Likewise.
20060         * lto-streamer.h (decl_state_hasher): Likewise.
20061         * optabs.c (libfunc_decl_hasher): Likewise.
20062         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20063         * varasm.c (section_hasher, object_block_hasher): Likewise.
20064         (const_rtx_desc_hasher): Likewise.
20065         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20066         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20068 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20070         * hash-traits.h (free_ptr_hash): New class.
20071         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20072         rather than typed_free_remove.  Remove redudant typedefs.
20073         (external_ref_hasher): Likewise.
20074         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20075         (ehspec_hasher): Likewise.
20076         * ggc-common.c (saving_hasher): Likewise.
20077         * gimplify.c (gimplify_hasher): Likewise.
20078         * haifa-sched.c (delay_i2_hasher): Likewise.
20079         * loop-invariant.c (invariant_expr_hasher): Likewise.
20080         * loop-iv.c (biv_entry_hasher): Likewise.
20081         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20082         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20083         * tree-cfg.c (locus_discrim_hasher): Likewise.
20084         * tree-eh.c (finally_tree_hasher): Likewise.
20085         * tree-into-ssa.c (var_info_hasher): Likewise.
20086         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20087         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20088         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20089         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20090         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20091         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20092         (shared_bitmap_hasher): Likewise.
20093         * tree-ssa-threadupdate.c (redirection_data): Likewise.
20094         * tree-vectorizer.h (peel_info_hasher): Likewise.
20095         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20096         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20098 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20100         * hash-table.h: Update comments.
20101         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20102         (nofree_ptr_hash): New class.
20103         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20104         than typed_noop_remove.  Remove redudant typedefs.
20105         * attribs.c (attribute_hasher): Likewise.
20106         * cfg.c (bb_copy_hasher): Likewise.
20107         * cselib.c (cselib_hasher): Likewise.
20108         * dse.c (invariant_group_base_hasher): Likewise.
20109         * dwarf2cfi.c (trace_info_hasher): Likewise.
20110         * dwarf2out.c (macinfo_entry_hasher): Likewise.
20111         (comdat_type_hasher, loc_list_hasher): Likewise.
20112         * gcse.c (pre_ldst_expr_hasher): Likewise.
20113         * genmatch.c (id_base): Likewise.
20114         * genrecog.c (test_pattern_hasher): Likewise.
20115         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20116         * haifa-sched.c (delay_i1_hasher): Likewise.
20117         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20118         * ipa-icf.h (congruence_class_group_hash): Likewise.
20119         * ipa-profile.c (histogram_hash): Likewise.
20120         * ira-color.c (allocno_hard_regs_hasher): Likewise.
20121         * lto-streamer.h (string_slot_hasher): Likewise.
20122         * lto-streamer.c (tree_entry_hasher): Likewise.
20123         * plugin.c (event_hasher): Likewise.
20124         * postreload-gcse.c (expr_hasher): Likewise.
20125         * store-motion.c (st_expr_hasher): Likewise.
20126         * tree-sra.c (uid_decl_hasher): Likewise.
20127         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20128         (ssa_name_var_hash): Likewise.
20129         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20130         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20131         * tree-ssa-pre.c (pre_expr_d): Likewise.
20132         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20133         * vtable-verify.h (registration_hasher): Likewise.
20134         * vtable-verify.c (vtbl_map_hasher): Likewise.
20135         * config/arm/arm.c (libcall_hasher): Likewise.
20136         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20137         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20138         * config/sol2.c (comdat_entry_hasher): Likewise.
20139         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20140         (print_fold_checksum, fold_checksum_tree): Likewise.
20141         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20142         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20143         (fold_build_call_array_loc): Likewise.
20144         * tree-ssa-ccp.c (gimple_htab): Likewise.
20145         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20146         rather than pointer_type.
20148 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20150         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20151         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20153 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20155         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20156         (ggc_hasher::ggc_mx): Likewise.
20157         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
20158         that duplicate ggc_hasher ones.
20160 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20162         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20163         (gt_cleare_cache): Check here for deleted and empty entries.
20164         Replace handle_cache_entry with a call to keep_cache_entry.
20165         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20166         (ggc_cache_hasher::keep_cache_entry): New function.
20167         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20168         (tm_wrapper_hasher::keep_cache_entry): New function.
20169         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20170         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20171         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20172         (type_cache_hasher::keep_cache_entry): New function.
20173         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20174         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20175         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20176         (tree_type_map_cache_hasher::keep_cache_entry): New function.
20177         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20178         (tm_clone_hasher::keep_cache_entry): New function.
20179         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20180         (dllimport_hasher::keep_cache_entry): New function.
20182 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20184         * hash-table.h: Include hash-traits.h.
20185         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20186         (ggc_cache_hasher): Move to...
20187         * hash-traits.h: ...this new file.
20189 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20191         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20192         struct cl_optimization.
20193         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20194         * tree.c (make_node_stat): Allocate cl_optimization struct.
20195         (copy_node_stat): Allocate and copy cl_optimization struct.
20197 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20199         * function.h (struct incoming_args): Move struct.
20200         (pass_by_reference, reference_callee_copied): Remove prototypes.
20201         * emit-rtl.h (struct incoming_args): Relocate struct here.
20202         * calls.h (pass_by_reference, reference_callee_copied): Relocate
20203         prototypes here.
20204         * function.c (pass_by_reference, reference_callee_copied): Move.
20205         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20206         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20207         * ipa-chkp.c: Include calls.h.
20209 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
20211         * alias.h (alias_set_type): Move typedef.
20212         * coretypes.h (alias_set_type): Relocate typedef here.
20213         * rtl.h: Don't include alias.h.
20215 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20217         * cgraph.h (cgraph_rtl_info): Move to rtl.h
20218         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20219         and instance.
20220         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20221         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20222         doesn't exist.
20223         * calls.c: Include hard-reg-set.h before rtl.h.
20224         * ira.c: Likewise.
20226 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20227             Vladimir Makarov  <vmakarov@redhat.com>
20229         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20230         Add assert.
20232 2015-06-25  Richard Biener  <rguenther@suse.de>
20234         * fold-const.c (fold_binary_loc): Move simplification of
20235         (X <<>> C1) & C2 ...
20236         * match.pd: ... here.
20238 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
20240         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20242 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20244         * match.pd: Add patterns for vec_conds between 1 and 0.
20246 2015-06-25  Richard Biener  <rguenther@suse.de>
20248         * tree-vect-stmts.c (vectorizable_conversion): Do not set
20249         STMT_VINFO_VEC_STMT for SLP.
20250         (vectorizable_store): Likewise.
20251         (vectorizable_load): Likewise.
20252         (vect_transform_stmt): Catch SLP vectorization clobbering
20253         STMT_VINFO_VEC_STMT.
20255 2015-06-25  Richard Biener  <rguenther@suse.de>
20257         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20258         dumping.
20259         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20260         cleanup resulting dead code and parameters.
20261         (vect_transform_slp_perm_load): Adjust.
20263 2015-06-25  Nick Clifton  <nickc@redhat.com>
20265         * config/bfin/bfin.c (bfin_expand_prologue): Set
20266         current_function_static_stack_size if flag_stack_usage_info is set.
20267         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20268         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20269         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20270         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20272 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20274         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20275         comment that the generated IV is unsigned.
20277 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20279         PR target/29693
20280         * config/arm/arm.c (arm_dbx_register_number): Return
20281         DWARF_FRAME_REGISTERS by default.
20283 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20285         * dominance.c (calculate_dominance_info): Fix verify_dominators call
20286         argument.  Call verify_dominator when reusing dominator info.
20288 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20290         PR target/66563
20291         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20292         an additional element of the unspec vector.  Modify indices
20293         of operands.
20294         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20295         * config/sh/sh.c (prepare_move_operands): Pass incremented
20296         const_int to gen_GOTaddr2picreg.
20297         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20299 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20301         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20302         Condition on TARGET_FLOAT.
20304 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20306         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20307         and (no)crypto.
20309 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20311         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20313         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20314         aarch64_err_no_fpadvsimd.
20316         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20317         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20318         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20319         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20320         Turn error into assert, test TARGET_FLOAT.
20321         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20322         TARGET_FLOAT.
20324 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
20326         PR debug/66482
20327         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20329 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20331         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20333 2015-06-24  Renlin Li <renlin.li@arm.com>
20335         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20336         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20338 2015-06-24  Richard Biener  <rguenther@suse.de>
20340         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20341         (main): Likewise.
20342         (lower_opt_convert): Support lowering of conditional view_convert.
20343         (parser::parse_operation): Likewise.
20344         (parser::parse_for): Likewise.
20346 2015-06-24  Renlin Li  <renlin.li@arm.com>
20348         * varasm.c (emit_local): Use unsigned int for align variable.
20350 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20352         PR target/63408
20353         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20354         for negative numbers.
20356 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20358         PR rtl-optimization/66306
20359         * reload.c (find_reloads): Swap the match_dup info for
20360         commutative operands.
20362 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20364         * config/s390/vx-builtins.md
20365         ("vec_scatter_element<mode>_<non_vec_int>")
20366         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20367         attribute with bhfgq.
20369 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20371         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20373 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20375         * config/s390/s390-builtin-types.def: Add flag to indicate the
20376         options under which the function type is needed.
20377         * config/s390/s390-builtins.def: Add flag to indicate the options
20378         under which the builtin is enabled.
20379         * config/s390/s390-builtins.h: Add flags parameter to macro
20380         definitions.
20381         (bflags_for_builtin): New function.
20382         (flags_for_builtin): Renamed to ...
20383         (opflags_for_builtin): ... this.
20384         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20385         flags_for_builtin to bflags_for_builtin and
20386         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20387         * config/s390/s390.c: Add initialization of bflags_builtin and
20388         opflags_builtin arrays.
20389         Remove code for flags_builtin.
20390         (s390_init_builtins): Only create builtin function types if one of
20391         their flags is active.
20392         Only create builtins if all of their flags are active.
20393         (s390_expand_builtin): Rename flags_for_builtin to
20394         opflags_for_builtin.
20396 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20398         * config/s390/vecintrin.h: Remove internal builtins.
20400 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20402         * config/s390/s390.c (s390_secondary_reload): Fix check for
20403         GENERAL_REGS register class.
20405 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20407         * config/s390/s390.c (s390_support_vector_misalignment): Call
20408         default implementation for !TARGET_VX.
20410 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20412         * config/s390/s390.c (s390_legitimate_constant_p): Add
20413         TARGET_VX check.
20415 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20417         * config/s390/s390.c (s390_vector_abi): New variable definition.
20418         (s390_check_type_for_vector_abi): New function.
20419         (TARGET_ASM_FILE_END): New macro definition.
20420         (s390_asm_file_end): New function.
20421         (s390_function_arg): Call s390_check_type_for_vector_abi.
20422         (s390_gimplify_va_arg): Likewise.
20423         * configure: Regenerate.
20424         * configure.ac: Check for .gnu_attribute Binutils feature.
20426 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
20428         PR target/65803
20429         * config/bfin/bfin.c (hwloop_optimize): Initialize
20430         JUMP_LABEL for newly created jump.
20432 2015-06-23  Tristan Gingold  <gingold@adacore.com>
20434         * collect-utils.c (collect_wait): Unlink the response file here
20435         instead of...
20436         (do_wait): ...here.
20437         (utils_cleanup): ...and here.
20439 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
20441         * df-scan.c: Don't include target-def.h.
20442         * targhooks.c: Likewise.
20443         * config/arm/arm-c.c: Likewise.
20444         * config/i386/i386-c.c: Likewise.
20445         * config/nds32/nds32-cost.c: Likewise.
20446         * config/nds32/nds32-fp-as-gp.c: Likewise.
20447         * config/nds32/nds32-intrinsic.c: Likewise.
20448         * config/nds32/nds32-isr.c: Likewise.
20449         * config/nds32/nds32-md-auxiliary.c: Likewise.
20450         * config/nds32/nds32-memory-manipulation.c: Likewise.
20451         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20452         * config/nds32/nds32-predicates.c: Likewise.
20454 2015-06-23  Richard Biener  <rguenther@suse.de>
20456         PR tree-optimization/66636
20457         * tree-vect-stmts.c (vectorizable_store): Properly compute the
20458         def type for further defs for strided stores.
20460 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
20462         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20463         conditional selects.
20464         (setcc_int<mode>, setcc_float<mode>): Reformat.
20466 2015-06-23  Marek Polacek  <polacek@redhat.com>
20468         * match.pd ((x + y) - (x | y) -> x & y,
20469         (x + y) - (x & y) -> x | y): New patterns.
20471 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
20473         PR 65711
20474         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20475         '-dynamic-linker' within %{!shared: ...}.
20477 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
20479         PR target/66560
20480         * config/i386/predicates.md (addsub_vm_operator): New predicate.
20481         (addsub_vs_operator): Ditto.
20482         (addsub_vs_parallel): Ditto.
20483         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20484         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20485         Put minus RTX before plus and adjust vec_merge selector.
20486         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20487         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20488         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20489         (addsub vec_merge splitters): New combiner splitters.
20490         (addsub vec_select/vec_concat splitters): Ditto.
20492 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
20494         PR tree-optimization/66449
20495         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20496         POINTER_PLUS_EXPR for pointers.
20498 2015-06-23  Alan Modra  <amodra@gmail.com>
20500         * rtlanal.c (commutative_operand_precedence): Correct comments.
20501         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20502         declaration.  Return an int.  Distinguish REG,REG return from
20503         others.
20504         (struct simplify_plus_minus_op_data): Make local to function.
20505         (simplify_plus_minus): Don't set canonicalized if merely sorting
20506         registers.  Avoid packing ops if nothing changes.  White space fixes.
20508 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
20510         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20511         -fdump-ada-spec is passed but not if -fsyntax-only is.
20513 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
20515         PR bootstrap/63740
20516         * lra-lives.c (process_bb_lives): Check insn copying the same
20517         reload pseudo and don't create a copy for it.
20519 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20521         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20522         for cond_stmt.
20524 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20526         * builtins.def (DEF_GOMP_BUILTIN): Test
20527         'flag_tree_parallelize_loops > 1' instead of
20528         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
20530 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20532         * dominance.c (calculate_dominance_info): Verify dominators if
20533         early-out.
20535 2015-06-22  Marek Polacek  <polacek@redhat.com>
20537         * match.pd ((x ^ y) ^ (x | y) -> x & y,
20538         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20539         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20540         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20542 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
20544         PR target/65871
20545         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20546         cost of embedded comparison.
20548 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20550         PR target/65914
20551         * config/rs6000/predicates.md (altivec_register_operand): Permit
20552         virtual stack registers.
20553         (vsx_register_operand): Likewise.
20554         (vfloat_operand): Likewise.
20555         (vint_operand): Likewise.
20556         (vlogical_operand): Likewise.
20558 2015-06-22  Richard Biener  <rguenther@suse.de>
20560         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20561         and single_scalar_iteration_cost members.
20562         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20563         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20564         (vect_get_single_scalar_iteration_cost): Remove.
20565         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20566         Use LOOP_VINFO_SCALAR_ITERATION_COST.
20567         * tree-vect-loop.c (destroy_loop_vec_info): Free
20568         scalar_cost_vec.
20569         (vect_get_single_scalar_iteration_cost): Compute result into
20570         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20571         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
20572         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20573         (vect_estimate_min_profitable_iters): Use them.
20575 2015-06-22  Christian Bruel  <christian.bruel@st.com>
20577         PR target/52144
20578         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20579         (TARGET_INSERT_ATTRIBUTES): Define.
20580         (thumb_flipper): New var.
20581         * config/arm/arm.opt (-mflip-thumb): New switch.
20583 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20584             Martin Liska  <mliska@suse.cz>
20586         PR ipa/65908
20587         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20588         construction of arg_types.
20589         (sem_function::sem_function): Likewise.
20590         (sem_function::~sem_function): Remove destruction of arg_types.
20591         (sem_function::compatible_parm_types_p): New function.
20592         (sem_function::equals_wpa): Reorg matching of return values
20593         and parameter types.
20594         (sem_function::equals_private): Reorg mathcing of argument types.
20595         (sem_function::parse_tree_args): Remove.
20596         * ipa-icf.h (init_wpa): Do not call it.
20597         (parse_tree_args): Remove.
20598         (compatible_parm_types_p): Declare.
20599         (result_type): Remove.
20600         (arg_types): Remove.
20602 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20604         PR ipa/66351
20605         * ipa-polymorphic-call.c
20606         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20607         initializing alias oracle; fix formating; set base_alias_set if it
20608         is known.
20610 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
20612         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20613         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20614         (find_inc): Likewise.
20615         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20616         swapping.
20617         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20618         * df-scan.c (df_swap_refs): Remove.
20619         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20620         * dominance.c (link_roots): Use std::swap instead of manually swapping.
20621         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20622         * fold-const.c (fold_relational_const): Likewise.
20623         * genattrtab.c (simplify_test_exp): Likewise.
20624         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20625         gimple_simplify): Likewise.
20626         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20627         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20628         * ipa-devirt.c (add_type_duplicate): Likewise.
20629         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20630         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20631         * lra.c (lra_create_copy): Likewise.
20632         * lto-streamer-out.c (DFS::DFS): Likewise.
20633         * modulo-sched.c (get_sched_window): Likewise.
20634         * omega.c (omega_pretty_print_problem): Likewise.
20635         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20636         * reload1.c (reloads_unique_chain_p): Likewise.
20637         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20638         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20639         use std::swap.
20640         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20641         manually swapping.
20642         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20643         predicate_mem_writes): Likewise.
20644         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20645         * tree-predcom.c (combine_chains): Likewise.
20646         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20647         refs_may_alias_p_1): Likewise.
20648         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20649         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20650         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20651         number_of_iterations_cond): Likewise.
20652         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20653         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20654         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20655         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20656         * tree-vrp.c (extract_range_from_binary_expr_1,
20657         extract_range_from_unary_expr_1): Likewise.
20659 2015-06-20  Marek Polacek  <polacek@redhat.com>
20661         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20663 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20665         PR target/66591
20666         * config/sh/sh.c (prepare_move_operands): Replace subreg
20667         index term with R0 for base and index addressing.
20669 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
20671         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20672         op1 is an fp zero.
20673         (movsf_aarch64): Change condition from register_operand to
20674         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
20675         load1.  Change type for alternative 7 to store1.
20676         (movdf_aarch64): Likewise.
20678 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
20680         * config/vax/vax.md: Adjust sign/zero extend patterns to
20681         handle SUBREGs in operands[1].
20683 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20685         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20686         of manually swapping.
20687         (expand_vec_perm_interleave2): Likewise.
20689 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
20691         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20692         reuse bounds created for abnormal ssa names.
20694 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
20696         * config/nvptx/nvptx.md (allocate_stack): Rename to...
20697         (allocate_stack_<mode>): ... this, and add :P on both
20698         match_operand and unspec.
20699         (allocate_stack): New expander.
20701 2015-06-19  Christian Bruel  <christian.bruel@st.com>
20703         PR target/66541
20704         PR target/52144
20705         * config/arm/arm.c (arm_set_current_function): Handle
20706         explicit default options.
20708 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
20710         * config/i386/i386.md (*movsicc_noc_zext): New insn.
20711         (zero-extended cmove with mem peephole2): New pattern.
20712         (cmove with mem peephole2): Merge patterns.
20714 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20716         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20718 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
20720         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20721         * config/mips/mips.md (*madd4<mode>): Ditto.
20722         (*nmadd3<mode>) Ditto.
20723         (*nmadd4<mode>_fastmath): Ditto.
20724         (*nmadd3<mode>_fastmath): Ditto.
20725         (*nmsub4<mode>): Ditto.
20726         (*nmsub3<mode>): Ditto.
20727         (*nmsub4<mode>_fastmath): Ditto.
20728         (*nmsub3<mode>_fastmath): Ditto.
20730 2015-06-18  Michael Matz  <matz@suse.de>
20732         PR middle-end/66253
20733         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20734         grouped strided stores.
20735         (vectorizable_load): Don't use the DR from first_stmt in
20736         the non-SLP grouped strided case.
20738 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20740         PR target/66569
20741         * function.c (assign_bounds): Add arguments assign_regs,
20742         assign_special, assign_bt.
20743         (assign_parms): For vararg functions handle bounds in BT
20744         and special slots after incoming vararg bounds.
20746 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20748         PR middle-end/66568
20749         * cfgexpand.c (expand_return): Handle missing bounds.
20750         (expand_gimple_stmt_1): Likewise.
20751         * tree-chkp.c (chkp_expand_zero_bounds): New.
20752         * tree-chkp.h (chkp_expand_zero_bounds): New.
20754 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20756         PR middle-end/66567
20757         * ipa-chkp.c (chkp_maybe_create_clone): Require
20758         functions to be instrumentable.
20759         * tree-chkp.c (chkp_replace_function_pointer): Use
20760         chkp_instrumentable_p instead of attribute check.
20762 2015-06-18  Richard Biener  <rguenther@suse.de>
20764         PR tree-optimization/66510
20765         * tree-vect-stmts.c (vectorizable_load): Properly compute the
20766         number of vector loads for SLP permuted loads.
20767         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20768         check the stride for loop vectorization.
20769         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20770         vectorization factor.
20771         (vect_analyze_group_access): If the group size is not a power
20772         of two require a epilogue loop.
20773         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20774         compute and optimizing and alias test pruning after final
20775         vectorization factor computation.
20776         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20777         vector alignment.
20778         (vect_transform_slp_perm_load): Properly compute the original
20779         number of vector load stmts.
20781 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
20783         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20784         "unlikely character , in @var" warning.
20786 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
20788         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20789         (ix86_function_arg_advance): Ditto.
20790         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
20792 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20794         * function.h (struct rtl_data): Remove struct and accessor macros.
20795         * emit-rtl.h (struct rtl_data): Relocate to here.
20796         * Makefile.in (GTFILES): Add emit-rtl.h.
20797         * df-core.c: Include emit-rtl.h.
20798         * genattrtab.c: Likewise.
20799         * genconditions.c: Likewise.
20800         * genpreds.c: Likewise.
20801         * genrecog.c: Likewise.
20802         * regcprop.c: Likewise.
20803         * resource.c: Likewise.
20804         * sched-rgn.c: Likewise.
20805         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20806         * config/i386/winnt.c: Likewise.
20808 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
20810         PR middle-end/66429
20811         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20812         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
20813         and has_force_vectorize_loops flags from cfun into
20814         child_cfun.
20815         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20816         if simduid is non-NULL.
20817         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20818         * passes.def (pass_simduid_cleanup): Add new pass after loop
20819         passes.
20820         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20821         indirection from htab argument's type.
20822         (shrink_simd_arrays): New function.
20823         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
20824         Don't call adjust_simduid_builtins if there are no loops.
20825         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20826         (pass_simduid_cleanup::execute): New method.
20827         (make_pass_simduid_cleanup): New function.
20829 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
20831         * tree-core.h (tree_target_option): Make opts field a pointer to a
20832         cl_target_option instead of an instance of the struct.
20833         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20834         the structure.
20835         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20836         TARGET_OPTION_NODE.
20837         (copy_node_stat): Allocate and copy struct cl_target_option.
20839 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20841         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20842         Remove conditional exposure of prototypes.
20843         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20844         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
20845         definitions in tree.h with functions.
20846         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20847         anon_aggrname_p.
20848         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20850 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
20852         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20853         (*cmp<mode>_signed): ... this.
20854         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20855         (*cmp<mode>_unsigned): ... this.  Remove %b.
20857 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20859         * coretypes.h: Include input.h and as-a.h.
20860         * rtl.h: Include input.h and as-a.h for generator files.
20861         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20862         * vec.c: Don't include diagnostic-core.h.
20863         * alias.c: Do not include input.h, line-map.h or is-a.h.
20864         * asan.c: Likewise.
20865         * attribs.c: Likewise.
20866         * auto-inc-dec.c: Likewise.
20867         * auto-profile.c: Likewise.
20868         * bb-reorder.c: Likewise.
20869         * bt-load.c: Likewise.
20870         * builtins.c: Likewise.
20871         * caller-save.c: Likewise.
20872         * calls.c: Likewise.
20873         * ccmp.c: Likewise.
20874         * cfg.c: Likewise.
20875         * cfganal.c: Likewise.
20876         * cfgbuild.c: Likewise.
20877         * cfgcleanup.c: Likewise.
20878         * cfgexpand.c: Likewise.
20879         * cfghooks.c: Likewise.
20880         * cfgloop.c: Likewise.
20881         * cfgloop.h: Likewise.
20882         * cfgloopanal.c: Likewise.
20883         * cfgloopmanip.c: Likewise.
20884         * cfgrtl.c: Likewise.
20885         * cgraph.c: Likewise.
20886         * cgraphbuild.c: Likewise.
20887         * cgraphclones.c: Likewise.
20888         * cgraphunit.c: Likewise.
20889         * cilk-common.c: Likewise.
20890         * combine-stack-adj.c: Likewise.
20891         * combine.c: Likewise.
20892         * compare-elim.c: Likewise.
20893         * convert.c: Likewise.
20894         * coverage.c: Likewise.
20895         * cppbuiltin.c: Likewise.
20896         * cprop.c: Likewise.
20897         * cse.c: Likewise.
20898         * cselib.c: Likewise.
20899         * data-streamer-in.c: Likewise.
20900         * data-streamer-out.c: Likewise.
20901         * data-streamer.c: Likewise.
20902         * dbxout.c: Likewise.
20903         * dce.c: Likewise.
20904         * ddg.c: Likewise.
20905         * debug.c: Likewise.
20906         * df-core.c: Likewise.
20907         * df-problems.c: Likewise.
20908         * df-scan.c: Likewise.
20909         * df.h: Likewise.
20910         * dfp.c: Likewise.
20911         * diagnostic-core.h: Likewise.
20912         * diagnostic.c: Likewise.
20913         * dojump.c: Likewise.
20914         * dominance.c: Likewise.
20915         * domwalk.c: Likewise.
20916         * double-int.c: Likewise.
20917         * dse.c: Likewise.
20918         * dumpfile.c: Likewise.
20919         * dumpfile.h: Likewise.
20920         * dwarf2asm.c: Likewise.
20921         * dwarf2cfi.c: Likewise.
20922         * dwarf2out.c: Likewise.
20923         * emit-rtl.c: Likewise.
20924         * et-forest.c: Likewise.
20925         * except.c: Likewise.
20926         * explow.c: Likewise.
20927         * expmed.c: Likewise.
20928         * expr.c: Likewise.
20929         * final.c: Likewise.
20930         * fixed-value.c: Likewise.
20931         * fold-const.c: Likewise.
20932         * function.c: Likewise.
20933         * fwprop.c: Likewise.
20934         * gcc-plugin.h: Likewise.
20935         * gcse.c: Likewise.
20936         * generic-match-head.c: Likewise.
20937         * ggc-page.c: Likewise.
20938         * gimple-builder.c: Likewise.
20939         * gimple-expr.c: Likewise.
20940         * gimple-fold.c: Likewise.
20941         * gimple-iterator.c: Likewise.
20942         * gimple-low.c: Likewise.
20943         * gimple-match-head.c: Likewise.
20944         * gimple-pretty-print.c: Likewise.
20945         * gimple-ssa-isolate-paths.c: Likewise.
20946         * gimple-ssa-strength-reduction.c: Likewise.
20947         * gimple-streamer-in.c: Likewise.
20948         * gimple-streamer-out.c: Likewise.
20949         * gimple-streamer.h: Likewise.
20950         * gimple-walk.c: Likewise.
20951         * gimple.c: Likewise.
20952         * gimplify-me.c: Likewise.
20953         * gimplify.c: Likewise.
20954         * godump.c: Likewise.
20955         * graph.c: Likewise.
20956         * graphite-blocking.c: Likewise.
20957         * graphite-dependences.c: Likewise.
20958         * graphite-interchange.c: Likewise.
20959         * graphite-isl-ast-to-gimple.c: Likewise.
20960         * graphite-optimize-isl.c: Likewise.
20961         * graphite-poly.c: Likewise.
20962         * graphite-scop-detection.c: Likewise.
20963         * graphite-sese-to-poly.c: Likewise.
20964         * graphite.c: Likewise.
20965         * haifa-sched.c: Likewise.
20966         * hw-doloop.c: Likewise.
20967         * ifcvt.c: Likewise.
20968         * init-regs.c: Likewise.
20969         * input.c: Likewise.
20970         * internal-fn.c: Likewise.
20971         * ipa-chkp.c: Likewise.
20972         * ipa-comdats.c: Likewise.
20973         * ipa-cp.c: Likewise.
20974         * ipa-devirt.c: Likewise.
20975         * ipa-icf-gimple.c: Likewise.
20976         * ipa-icf.c: Likewise.
20977         * ipa-inline-analysis.c: Likewise.
20978         * ipa-inline-transform.c: Likewise.
20979         * ipa-inline.c: Likewise.
20980         * ipa-polymorphic-call.c: Likewise.
20981         * ipa-profile.c: Likewise.
20982         * ipa-prop.c: Likewise.
20983         * ipa-pure-const.c: Likewise.
20984         * ipa-ref.c: Likewise.
20985         * ipa-reference.c: Likewise.
20986         * ipa-split.c: Likewise.
20987         * ipa-utils.c: Likewise.
20988         * ipa-visibility.c: Likewise.
20989         * ipa.c: Likewise.
20990         * ira-build.c: Likewise.
20991         * ira-color.c: Likewise.
20992         * ira-conflicts.c: Likewise.
20993         * ira-costs.c: Likewise.
20994         * ira-emit.c: Likewise.
20995         * ira-lives.c: Likewise.
20996         * ira.c: Likewise.
20997         * jump.c: Likewise.
20998         * langhooks.c: Likewise.
20999         * lcm.c: Likewise.
21000         * loop-doloop.c: Likewise.
21001         * loop-init.c: Likewise.
21002         * loop-invariant.c: Likewise.
21003         * loop-iv.c: Likewise.
21004         * loop-unroll.c: Likewise.
21005         * lower-subreg.c: Likewise.
21006         * lra-assigns.c: Likewise.
21007         * lra-coalesce.c: Likewise.
21008         * lra-constraints.c: Likewise.
21009         * lra-eliminations.c: Likewise.
21010         * lra-lives.c: Likewise.
21011         * lra-remat.c: Likewise.
21012         * lra-spills.c: Likewise.
21013         * lra.c: Likewise.
21014         * lto-cgraph.c: Likewise.
21015         * lto-compress.c: Likewise.
21016         * lto-opts.c: Likewise.
21017         * lto-section-in.c: Likewise.
21018         * lto-section-out.c: Likewise.
21019         * lto-streamer-in.c: Likewise.
21020         * lto-streamer-out.c: Likewise.
21021         * lto-streamer.c: Likewise.
21022         * mcf.c: Likewise.
21023         * mode-switching.c: Likewise.
21024         * modulo-sched.c: Likewise.
21025         * omega.c: Likewise.
21026         * omp-low.c: Likewise.
21027         * optabs.c: Likewise.
21028         * opts-global.c: Likewise.
21029         * opts.h: Likewise.
21030         * passes.c: Likewise.
21031         * plugin.c: Likewise.
21032         * postreload-gcse.c: Likewise.
21033         * postreload.c: Likewise.
21034         * predict.c: Likewise.
21035         * pretty-print.h: Likewise.
21036         * print-rtl.c: Likewise.
21037         * print-tree.c: Likewise.
21038         * profile.c: Likewise.
21039         * real.c: Likewise.
21040         * realmpfr.c: Likewise.
21041         * recog.c: Likewise.
21042         * ree.c: Likewise.
21043         * reg-stack.c: Likewise.
21044         * regcprop.c: Likewise.
21045         * reginfo.c: Likewise.
21046         * regrename.c: Likewise.
21047         * regstat.c: Likewise.
21048         * reload.c: Likewise.
21049         * reload1.c: Likewise.
21050         * reorg.c: Likewise.
21051         * resource.c: Likewise.
21052         * rtl-chkp.c: Likewise.
21053         * rtl-error.c: Likewise.
21054         * rtlanal.c: Likewise.
21055         * rtlhooks.c: Likewise.
21056         * sanopt.c: Likewise.
21057         * sched-deps.c: Likewise.
21058         * sched-ebb.c: Likewise.
21059         * sched-rgn.c: Likewise.
21060         * sched-vis.c: Likewise.
21061         * sdbout.c: Likewise.
21062         * sel-sched-dump.c: Likewise.
21063         * sel-sched-ir.c: Likewise.
21064         * sel-sched.c: Likewise.
21065         * sese.c: Likewise.
21066         * shrink-wrap.c: Likewise.
21067         * simplify-rtx.c: Likewise.
21068         * stack-ptr-mod.c: Likewise.
21069         * statistics.c: Likewise.
21070         * stmt.c: Likewise.
21071         * stor-layout.c: Likewise.
21072         * store-motion.c: Likewise.
21073         * streamer-hooks.c: Likewise.
21074         * stringpool.c: Likewise.
21075         * symtab.c: Likewise.
21076         * target-globals.c: Likewise.
21077         * targhooks.c: Likewise.
21078         * toplev.c: Likewise.
21079         * tracer.c: Likewise.
21080         * trans-mem.c: Likewise.
21081         * tree-affine.c: Likewise.
21082         * tree-browser.c: Likewise.
21083         * tree-call-cdce.c: Likewise.
21084         * tree-cfg.c: Likewise.
21085         * tree-cfgcleanup.c: Likewise.
21086         * tree-chkp-opt.c: Likewise.
21087         * tree-chkp.c: Likewise.
21088         * tree-chrec.c: Likewise.
21089         * tree-complex.c: Likewise.
21090         * tree-data-ref.c: Likewise.
21091         * tree-dfa.c: Likewise.
21092         * tree-diagnostic.c: Likewise.
21093         * tree-dump.c: Likewise.
21094         * tree-eh.c: Likewise.
21095         * tree-emutls.c: Likewise.
21096         * tree-if-conv.c: Likewise.
21097         * tree-inline.c: Likewise.
21098         * tree-into-ssa.c: Likewise.
21099         * tree-iterator.c: Likewise.
21100         * tree-loop-distribution.c: Likewise.
21101         * tree-nested.c: Likewise.
21102         * tree-nrv.c: Likewise.
21103         * tree-object-size.c: Likewise.
21104         * tree-outof-ssa.c: Likewise.
21105         * tree-parloops.c: Likewise.
21106         * tree-phinodes.c: Likewise.
21107         * tree-predcom.c: Likewise.
21108         * tree-pretty-print.c: Likewise.
21109         * tree-profile.c: Likewise.
21110         * tree-scalar-evolution.c: Likewise.
21111         * tree-sra.c: Likewise.
21112         * tree-ssa-address.c: Likewise.
21113         * tree-ssa-alias.c: Likewise.
21114         * tree-ssa-ccp.c: Likewise.
21115         * tree-ssa-coalesce.c: Likewise.
21116         * tree-ssa-copy.c: Likewise.
21117         * tree-ssa-copyrename.c: Likewise.
21118         * tree-ssa-dce.c: Likewise.
21119         * tree-ssa-dom.c: Likewise.
21120         * tree-ssa-dse.c: Likewise.
21121         * tree-ssa-forwprop.c: Likewise.
21122         * tree-ssa-ifcombine.c: Likewise.
21123         * tree-ssa-live.c: Likewise.
21124         * tree-ssa-loop-ch.c: Likewise.
21125         * tree-ssa-loop-im.c: Likewise.
21126         * tree-ssa-loop-ivcanon.c: Likewise.
21127         * tree-ssa-loop-ivopts.c: Likewise.
21128         * tree-ssa-loop-manip.c: Likewise.
21129         * tree-ssa-loop-niter.c: Likewise.
21130         * tree-ssa-loop-prefetch.c: Likewise.
21131         * tree-ssa-loop-unswitch.c: Likewise.
21132         * tree-ssa-loop.c: Likewise.
21133         * tree-ssa-math-opts.c: Likewise.
21134         * tree-ssa-operands.c: Likewise.
21135         * tree-ssa-phiopt.c: Likewise.
21136         * tree-ssa-phiprop.c: Likewise.
21137         * tree-ssa-pre.c: Likewise.
21138         * tree-ssa-propagate.c: Likewise.
21139         * tree-ssa-reassoc.c: Likewise.
21140         * tree-ssa-sccvn.c: Likewise.
21141         * tree-ssa-scopedtables.c: Likewise.
21142         * tree-ssa-sink.c: Likewise.
21143         * tree-ssa-strlen.c: Likewise.
21144         * tree-ssa-structalias.c: Likewise.
21145         * tree-ssa-tail-merge.c: Likewise.
21146         * tree-ssa-ter.c: Likewise.
21147         * tree-ssa-threadedge.c: Likewise.
21148         * tree-ssa-threadupdate.c: Likewise.
21149         * tree-ssa-uncprop.c: Likewise.
21150         * tree-ssa-uninit.c: Likewise.
21151         * tree-ssa.c: Likewise.
21152         * tree-ssanames.c: Likewise.
21153         * tree-stdarg.c: Likewise.
21154         * tree-streamer-in.c: Likewise.
21155         * tree-streamer-out.c: Likewise.
21156         * tree-streamer.c: Likewise.
21157         * tree-switch-conversion.c: Likewise.
21158         * tree-tailcall.c: Likewise.
21159         * tree-vect-data-refs.c: Likewise.
21160         * tree-vect-generic.c: Likewise.
21161         * tree-vect-loop-manip.c: Likewise.
21162         * tree-vect-loop.c: Likewise.
21163         * tree-vect-patterns.c: Likewise.
21164         * tree-vect-slp.c: Likewise.
21165         * tree-vect-stmts.c: Likewise.
21166         * tree-vectorizer.c: Likewise.
21167         * tree-vrp.c: Likewise.
21168         * tree.c: Likewise.
21169         * tsan.c: Likewise.
21170         * ubsan.c: Likewise.
21171         * valtrack.c: Likewise.
21172         * value-prof.c: Likewise.
21173         * var-tracking.c: Likewise.
21174         * varasm.c: Likewise.
21175         * varpool.c: Likewise.
21176         * vmsdbgout.c: Likewise.
21177         * vtable-verify.c: Likewise.
21178         * web.c: Likewise.
21179         * wide-int.cc: Likewise.
21180         * xcoffout.c: Likewise.
21181         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21182         * common/common-targhooks.c: Likewise.
21183         * config/aarch64/aarch64-builtins.c: Likewise.
21184         * config/aarch64/aarch64.c: Likewise.
21185         * config/alpha/alpha.c: Likewise.
21186         * config/arc/arc.c: Likewise.
21187         * config/arm/aarch-common.c: Likewise.
21188         * config/arm/arm-builtins.c: Likewise.
21189         * config/arm/arm-c.c: Likewise.
21190         * config/arm/arm.c: Likewise.
21191         * config/avr/avr-c.c: Likewise.
21192         * config/avr/avr-log.c: Likewise.
21193         * config/avr/avr.c: Likewise.
21194         * config/bfin/bfin.c: Likewise.
21195         * config/c6x/c6x.c: Likewise.
21196         * config/cr16/cr16.c: Likewise.
21197         * config/cris/cris.c: Likewise.
21198         * config/darwin-c.c: Likewise.
21199         * config/darwin.c: Likewise.
21200         * config/default-c.c: Likewise.
21201         * config/epiphany/epiphany.c: Likewise.
21202         * config/epiphany/mode-switch-use.c: Likewise.
21203         * config/epiphany/resolve-sw-modes.c: Likewise.
21204         * config/fr30/fr30.c: Likewise.
21205         * config/frv/frv.c: Likewise.
21206         * config/ft32/ft32.c: Likewise.
21207         * config/glibc-c.c: Likewise.
21208         * config/h8300/h8300.c: Likewise.
21209         * config/i386/i386-c.c: Likewise.
21210         * config/i386/i386.c: Likewise.
21211         * config/i386/msformat-c.c: Likewise.
21212         * config/i386/winnt-cxx.c: Likewise.
21213         * config/i386/winnt-stubs.c: Likewise.
21214         * config/i386/winnt.c: Likewise.
21215         * config/ia64/ia64-c.c: Likewise.
21216         * config/ia64/ia64.c: Likewise.
21217         * config/iq2000/iq2000.c: Likewise.
21218         * config/lm32/lm32.c: Likewise.
21219         * config/m32c/m32c-pragma.c: Likewise.
21220         * config/m32c/m32c.c: Likewise.
21221         * config/m32r/m32r.c: Likewise.
21222         * config/m68k/m68k.c: Likewise.
21223         * config/mcore/mcore.c: Likewise.
21224         * config/mep/mep-pragma.c: Likewise.
21225         * config/mep/mep.c: Likewise.
21226         * config/microblaze/microblaze-c.c: Likewise.
21227         * config/microblaze/microblaze.c: Likewise.
21228         * config/mips/mips.c: Likewise.
21229         * config/mmix/mmix.c: Likewise.
21230         * config/mn10300/mn10300.c: Likewise.
21231         * config/moxie/moxie.c: Likewise.
21232         * config/msp430/msp430-c.c: Likewise.
21233         * config/msp430/msp430.c: Likewise.
21234         * config/nds32/nds32-cost.c: Likewise.
21235         * config/nds32/nds32-fp-as-gp.c: Likewise.
21236         * config/nds32/nds32-intrinsic.c: Likewise.
21237         * config/nds32/nds32-isr.c: Likewise.
21238         * config/nds32/nds32-md-auxiliary.c: Likewise.
21239         * config/nds32/nds32-memory-manipulation.c: Likewise.
21240         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21241         * config/nds32/nds32-predicates.c: Likewise.
21242         * config/nds32/nds32.c: Likewise.
21243         * config/nios2/nios2.c: Likewise.
21244         * config/nvptx/nvptx.c: Likewise.
21245         * config/pa/pa.c: Likewise.
21246         * config/pdp11/pdp11.c: Likewise.
21247         * config/rl78/rl78-c.c: Likewise.
21248         * config/rl78/rl78.c: Likewise.
21249         * config/rs6000/rs6000-c.c: Likewise.
21250         * config/rs6000/rs6000.c: Likewise.
21251         * config/rx/rx.c: Likewise.
21252         * config/s390/s390-c.c: Likewise.
21253         * config/s390/s390.c: Likewise.
21254         * config/sh/sh-c.c: Likewise.
21255         * config/sh/sh-mem.cc: Likewise.
21256         * config/sh/sh.c: Likewise.
21257         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21258         * config/sh/sh_treg_combine.cc: Likewise.
21259         * config/sol2-c.c: Likewise.
21260         * config/sol2-cxx.c: Likewise.
21261         * config/sol2-stubs.c: Likewise.
21262         * config/sol2.c: Likewise.
21263         * config/sparc/sparc-c.c: Likewise.
21264         * config/sparc/sparc.c: Likewise.
21265         * config/spu/spu-c.c: Likewise.
21266         * config/spu/spu.c: Likewise.
21267         * config/stormy16/stormy16.c: Likewise.
21268         * config/tilegx/mul-tables.c: Likewise.
21269         * config/tilegx/tilegx-c.c: Likewise.
21270         * config/tilegx/tilegx.c: Likewise.
21271         * config/tilepro/mul-tables.c: Likewise.
21272         * config/tilepro/tilepro-c.c: Likewise.
21273         * config/tilepro/tilepro.c: Likewise.
21274         * config/v850/v850-c.c: Likewise.
21275         * config/v850/v850.c: Likewise.
21276         * config/vax/vax.c: Likewise.
21277         * config/visium/visium.c: Likewise.
21278         * config/vms/vms-c.c: Likewise.
21279         * config/vms/vms.c: Likewise.
21280         * config/vxworks.c: Likewise.
21281         * config/winnt-c.c: Likewise.
21282         * config/xtensa/xtensa.c: Likewise.
21284 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
21286         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21287         function.
21288         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21290 2015-06-17  Richard Biener  <rguenther@suse.de>
21292         PR tree-optimization/66251
21293         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21294         stmts for SLP strided stores.
21296         Revert
21297         2015-05-22  Richard Biener  <rguenther@suse.de>
21299         PR tree-optimization/66251
21300         * tree-vect-stmts.c (vectorizable_conversion): Properly
21301         set STMT_VINFO_VEC_STMT even for the SLP case.
21303         2015-05-26  Michael Matz  <matz@suse.de>
21305         PR middle-end/66251
21306         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21307         STMT_VINFO_VEC_STMT, also with SLP.
21309 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
21311         PR target/56766
21312         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21313         (*avx_addsubv4df3_1s): Ditto.
21314         (*sse3_addsubv2df3_1): Ditto.
21315         (*sse3_addsubv2df3_1s): Ditto.
21316         (*avx_addsubv8sf3_1): Ditto.
21317         (*avx_addsubv8sf3_1s): Ditto.
21318         (*sse3_addsubv4sf3_1): Ditto.
21319         (*sse3_addsubv4sf3_1s): Ditto.
21321 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
21323         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21324         (SYSROOT_SUFFIX_SPEC): Update.
21325         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21326         (STARTFILE_PREFIX_SPEC): Update.
21327         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21328         (MULTILIB_REQUIRED): New.
21329         (MULTILIB_OSDIRNAMES): New.
21330         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21331         (MULTILIB_REQUIRED): New.
21332         (MULTILIB_OSDIRNAMES): New.
21334 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
21336         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21337         * config/aarch64/aarch64-options-extensions.def: Update "fP",
21338         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
21339         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21340         (AARCH64_FL_PAN): New.
21341         (AARCH64_FL_LOR): New.
21342         (AARCH64_FL_RDMA): New.
21343         (AARCH64_FL_FOR_ARCH8_1): New.
21344         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21345         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21347 2015-06-16  Martin Liska  <mliska@suse.cz>
21349         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21350         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21351         guard.
21353 2015-06-16  Richard Biener  <rguenther@suse.de>
21355         * tree-vect-stmts.c (vectorizable_store): Adjust.
21356         (vectorizable_load): Likewise.
21357         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21358         Simplify.
21359         (vect_create_data_ref_ptr): Likewise.
21360         (bump_vector_ptr): Adjust.
21362 2015-06-16  Richard Biener  <rguenther@suse.de>
21364         * tree-vect-stmts.c (vectorizable_load): Properly start loads
21365         with the first element if this is grouped loads.
21367 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
21369         * config/arm/arm-protos.h (struct tune_params): Rename
21370         log_op_non_sc to log_op_non_short_circuit, and rename enum
21371         values to expand SC to SHORT_CIRCUIT.
21372         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21373         to LOG_OP_NON_SHORT_CIRCUIT.
21374         (arm_fastmul_tune):Likewise
21375         (arm_strongarm_tune): Likewise.
21376         (arm_xscale_tune): Likewise.
21377         (arm_9e_tune): Likewise.
21378         (arm_marvell_pj4_tune): Likewise.
21379         (arm_v6t2_tune): Likewise.
21380         (arm_cortex_tune): Likewise.
21381         (arm_cortex_a8_tune): Likewise.
21382         (arm_cortex_a7_tune): Likewise.
21383         (arm_cortex_a15_tune): Likewise.
21384         (arm_cortex_a53_tune): Likewise.
21385         (arm_cortex_a57_tune): Likewise.
21386         (arm_xgene1_tune): Likewise.
21387         (arm_cortex_a5_tune): Likewise.
21388         (arm_cortex_a9_tune): Likewise.
21389         (arm_cortex_a12_tune): Likewise.
21390         (arm_v7m_tune): Likewise.
21391         (arm_cortex_m7_tune): Likewise.
21392         (arm_v6m_tune): Likewise.
21393         (arm_fa726te_tune): Likewise.
21395 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
21397         * altivec.md: Delete UNSPEC_VMLADDUHM.
21398         (mulv4si3_p8): New pattern.
21399         (mulv4si3): Use it for POWER8.
21400         (mulv8hi3): Use vmladduhm with zero addend.
21401         (altivec_vmladduhm): Descriptive RTL.
21403 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
21405         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21406         to use neon_move instead of mov_imm.
21407         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21408         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21410         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21411         aarch64_float_const_zero_rtx_p check before TFmode check.
21412         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21413         an fp zero.
21414         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
21415         code and attributes to match.  Change condition from register_operand
21416         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
21417         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
21418         to store2.
21420 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
21422         PR debug/66535
21423         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21424         there is no parent.
21426 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
21428         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21429         HOST_WIDE_INT parameter.
21431 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
21433         PR ipa/66181
21434         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21435         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21436         TYPE_NO_FORCE_BLK.
21437         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21439 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
21441         * rtl.h (classify_insn): Declare.
21442         * emit-rtl.c (classify_insn): Move to...
21443         * rtl.c: ...here and add generator support.
21444         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21445         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21446         * genemit.c (gen_emit_seq): New function.
21447         (gen_expand, gen_split): Use it.
21449 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
21451         * tree.c (make_vector_stat): Fix comment to state that the
21452         function returns a VECTOR_CST.
21454 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
21456         * gensupport.h (add_implicit_parallel): Declare.
21457         * genrecog.c (add_implicit_parallel): Move to...
21458         * gensupport.c (add_implicit_parallel): ...here.
21459         (process_one_cond_exec): Use it.
21460         * genemit.c (gen_insn): Likewise.
21462 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
21464         PR bootstrap/66448
21465         * passes.c (rest_of_decl_compilation): Do not register globals for
21466         early debug if they are declared in built-ins.
21468 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
21470         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21472 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21474         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21475         manually swapping.
21476         (noce_try_cmove_arith): Likewise.
21477         (noce_get_alt_condition): Likewise.
21479 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21481         * common/config/i386/i386-common.c
21482         (OPTION_MASK_ISA_MWAITX_SET): New.
21483         (ix86_handle_option): Handle mwaitx.
21484         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21485         (x86_64-*-*): Likewise.
21486         * config/i386/mwaitxintrin.h: New header.
21487         * config/i386/cpuid.h (bit_MWAITX):  Define.
21488         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21489         MWAITX support.
21490         * config/i386/i386.opt (mwaitx): New.
21491         * config/i386/i386-builtin-types.def
21492         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21493         * config/i386/i386-c.c: Define __MWAITX__ if needed.
21494         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21495         (PTA_MWAITX): New.
21496         (ix86_option_override_internal): Handle new option.
21497         (processor_alias_table): Added PTA_MWAITX.
21498         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21499         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21500         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21501         IX86_BUILTIN_MONITORX  built-ins.
21502         * config/i386/i386.h (TARGET_MWAITX): New.
21503         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21504         UNSPEC_MONITORX.
21505         (mwaitx):  New pattern.
21506         (monitorx_<mode>): New pattern.
21507         * config/i386/x86intrin.h: Include mwaitxintrin.h.
21508         * doc/extend.texi: Document monitorx and mwaitx builtins.
21509         * doc/invoke.texi: Document -mmwaitx option.
21511 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
21513         * emit-rtl.c (need_atomic_barrier_p): Mask model with
21514         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
21516 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21518         * dbxout.c (xcoff_debug_hooks): Provide a function for
21519         register_main_translation_unit hook.
21521 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21523         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21524         variants cases from switch.
21525         (rs6000_post_atomic_barrier): Same.
21526         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21527         (rs6000_expand_atomic_exchange): Same.
21528         (rs6000_expand_atomic_op): Same.
21529         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21530         SYNC variants cases from switch.
21531         (atomic_load): Same.
21532         (atomic_store): Same.
21534 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
21536         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21537         CONST_INT for goto.
21539 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
21541         PR bootstrap/66448
21542         * dwarf2out.c (check_die): Check for common duplicate attributes.
21543         (add_location_or_const_value_attribute): Do not add duplicate
21544         attributes.
21545         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21546         time around.
21547         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21548         (gen_type_die_with_usage): Call check_die.
21549         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21551 2015-06-11  Jason Merrill  <jason@redhat.com>
21553         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21554         dies.
21556 2015-06-11  Marek Polacek  <polacek@redhat.com>
21558         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21560 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
21562         PR bootstrap/66252
21563         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21564         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21565         (*addx_extend_sp32): Fix pasto.
21566         (*subx_extend): Rename into...
21567         (*subx_extend_sp32): ...this.
21568         (*adddi3_extend_sp32): Add earlyclobber.
21569         (*subdi3_insn_sp32): Likewise.
21570         (*subdi3_extend_sp32): Likewise.
21571         (*and_not_di_sp32): Likewise.
21572         (*or_not_di_sp32): Likewise.
21573         (*xor_not_di_sp32): Likewise.
21574         (*negdi2_sp32): Likewise.
21575         (*one_cmpldi2_sp32): Likewise.
21577 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
21579         * debug.h (struct gcc_debug_hooks): Add a
21580         register_main_translation_unit hook.
21581         * debug.c (do_nothing_debug_hooks): Provide a function for this
21582         new hook.
21583         * dbxout.c (dbx_debug_hooks): Likewise.
21584         * sdbout.c (sdb_debug_hooks): Likewise.
21585         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21586         * dwarf2out.c (main_translation_unit): New global variable.
21587         (dwarf2out_register_main_translation_unit): New function
21588         implementing the new hook.
21589         (dwarf2_debug_hooks): Assign
21590         dwarf2out_register_main_translation_unit to this new hook.
21591         (dwarf2out_init): Associate any main translation unit to
21592         comp_unit_die ().
21594 2015-06-11  Marek Polacek  <polacek@redhat.com>
21596         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21598 2015-06-11  Marek Polacek  <polacek@redhat.com>
21600         * match.pd: Use single_use throughout.
21602 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21604         * config/arm/arm.c (arm_option_params_internal): When optimising
21605         for speed set max_insns_skipped when arm_restrict_it.
21607 2015-06-11  Christian Bruel  <christian.bruel@st.com>
21609         PR target/52144
21610         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21611          macros in ...
21612         (arm_cpu_builtins): New function.
21613         (arm_pragma_target_parse): Call arm_cpu_builtins.
21614         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21615         (arm_register_target_pragmas): Likewise.
21616         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21617          Call arm_register_target_pragmas.
21618         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21619         (arm_pragma_target_parse): Likewise.
21621 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21623         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21624         of the second operand.
21626 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
21628         PR target/66473
21629         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21630         to prepare mask operand for AVX512 modes.
21632 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21634         PR target/66474
21635         * doc/md.texi (Machine Constraints): Document that on the PowerPC
21636         if you use a constraint that targets a VSX register, you must use
21637         %x<n> in the template.
21639 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
21641         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21642         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21643         (define_insn "trap"): New definition.
21645 2015-06-10  Richard Biener  <rguenther@suse.de>
21647         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21648         out from ...
21649         (vect_supported_load_permutation_p): ... here.  Handle
21650         supportable permutations in reductions.
21651         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21652         for vectorizing strided group loads.
21654 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
21656         PR target/66470
21657         * config/i386/i386.c (ix86_split_long_move): For collisions
21658         involving direct tls segment refs, move the UNSPEC_TP possibly
21659         wrapped in ZERO_EXTEND out of the address for lea, to each of
21660         the memory loads.
21662 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21664         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21665         dmb sy. Adjust tabs.
21667 2015-06-10  Tom de Vries  <tom@codesourcery.com>
21669         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21671 2015-06-10  Martin Liska  <mliska@suse.cz>
21673         PR bootstrap/66471
21674         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21675         all enum values in mem_alloc_origin.
21676         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21677         name.
21678         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21679         * bitmap.c (bitmap_register): Likewise.
21680         (dump_bitmap_statistics): Likewise.
21681         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21682         (ggc_record_overhead): Likewise.
21683         * hash-map.h: Likewise.
21684         * hash-set.h: Likewise.
21685         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21686         * hash-table.h: Likewise.
21687         * vec.c (vec_prefix::register_overhead): Likewise.
21688         (vec_prefix::release_overhead): Likewise.
21689         (dump_vec_loc_statistics): Likewise.
21691 2015-06-09  Christian Bruel  <christian.bruel@st.com>
21693         PR target/52144
21694         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21695         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21696         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21697         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21698         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21699         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21700         (arm_valid_target_attribute_p): Likewise.
21701         (arm_set_current_function, arm_can_inline_p): Likewise.
21702         (arm_valid_target_attribute_rec): Likewise.
21703         (arm_previous_fndecl): New variable.
21704         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21705         (TARGET_CAN_INLINE_P): Define.
21706         (arm_asm_trampoline_template): Emit mode.
21707         (arm_file_start): Don't set unified syntax.
21708         (arm_declare_function_name): Set unified syntax and mode.
21709         (arm_option_override): Init target_option_default_node.
21710         and target_option_current_node.
21711         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21712         (*call_symbol): Likewise.
21713         * doc/extend.texi: Document ARM/Thumb target attribute.
21714         * doc/invoke.texi: Likewise.
21716 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21718         Revert:
21719         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21720         PR rtl-optimization/64164
21721         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21722         * tree-ssa-copyrename.c: Removed.
21723         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21724         -ftree-coalesce-vars.
21725         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21726         * common.opt (ftree-copyrename): Ignore.
21727         (ftree-coalesce-inlined-vars): Likewise.
21728         * doc/invoke.texi: Remove the ignored options above.
21729         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21730         * tree-ssa-coalesce.h: ... here.
21731         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21732         headers required by it.
21733         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21734         across variables when flag_tree_coalesce_vars.  Check register
21735         use and promoted modes to allow coalescing.  Moved to
21736         tree-ssa-coalesce.c.
21737         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21738         with its member functions to tree-ssa-coalesce.c.
21739         (var_map_base_init): Likewise.  Renamed to
21740         compute_samebase_partition_bases.
21741         (partition_view_normal): Drop want_bases parameter.
21742         (partition_view_bitmap): Likewise.
21743         * tree-ssa-live.h: Adjust declarations.
21744         * tree-ssa-coalesce.c: Include explow.h.
21745         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21746         default defs at the entry point.
21747         (dump_part_var_map): New.
21748         (compute_optimized_partition_bases): New, called by...
21749         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21750         of compute_samebase_partition_bases.  Adjust.
21751         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21752         * cfgexpand.c (leader_merge): New.
21753         (get_rtl_for_parm_ssa_default_def): New.
21754         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21755         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21756         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21757         redundant MEM attr setting.
21758         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21759         from...
21760         (expand_one_stack_var): ... this.  New wrapper to check and
21761         skip already expanded SSA partitions.
21762         (record_alignment_for_reg_var): New, factored out of...
21763         (expand_one_var): ... this.
21764         (expand_one_ssa_partition): New.
21765         (adjust_one_expanded_partition_var): New.
21766         (expand_one_register_var): Check and skip already expanded SSA
21767         partitions.
21768         (expand_used_vars): Don't create DECLs for anonymous SSA
21769         names.  Expand all SSA partitions, then adjust all SSA names.
21770         (pass::execute): Replace the loops that set
21771         SA.partition_to_pseudo from partition leaders and cleared
21772         DECL_RTL for multi-location variables, and that which used to
21773         rename vars and set attrs, with one that clears DECL_RTL and
21774         checks that PARMs and RESULTs default_defs match DECL_RTL.
21775         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21776         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21777         * explow.c (promote_ssa_mode): New.
21778         * explow.h (promote_ssa_mode): Declare.
21779         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21780         * function.c: Include cfgexpand.h.
21781         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21782         (use_register_for_parm_decl): Wrapper for the above to
21783         special-case the result_ptr.
21784         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21785         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21786         multiple locations.
21787         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21788         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21789         (assign_parm_setup_block): Prefer SSA-assigned location.
21790         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21791         if stack_parm is NULL.
21792         (assign_parm_setup_stack): Prefer SSA-assigned location.
21793         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21794         rtl before testing for pointer bounds.  Special-case result_ptr.
21795         (expand_function_start): Maybe reset DECL_RTL of result.
21796         Prefer SSA-assigned location for result and static chain.
21797         Factor out DECL_RESULT and SET_DECL_RTL.
21798         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21799         anonymous SSA names.  Use promote_ssa_mode.
21800         (get_temp_reg): Likewise.
21801         (remove_ssa_form): Adjust.
21802         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21803         and get its reg_usage for reg invalidation.
21804         (compute_bb_dataflow): Pass it insn.
21805         (emit_notes_in_bb): Likewise.
21806         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21807         fail assert on conversion between unsigned types.
21809 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21811         PR tree-optimization/65460
21812         * omp-low.c (expand_omp_target): Set parallelized_function on
21813         cgraph_node for child_fn.
21815 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21817         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21818         parallelized_function before add_new_function.
21820 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
21822         * gcc-plugin.h: Move decls to plugin.h and include it.
21823         * plugin.h: Relocate decls from gcc-plugin.h
21824         * ggc-page.c: Include required header files.
21825         * passes.c: Likewise.
21826         * cgraphunit.c: Likewise.
21828 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21830         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21832 2015-06-09  Jason Merrill  <jason@redhat.com>
21834         PR bootstrap/66448
21835         * toplev.c (check_global_declaration): Don't warn about a clone.
21837 2015-06-09  Marek Polacek  <polacek@redhat.com>
21839         PR tree-optimization/66299
21840         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21841         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21842         patterns.
21844 2015-06-09  Richard Biener  <rguenther@suse.de>
21846         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21847         (vect_analyze_slp_instance): Instead do not falsely drop
21848         load permutations.
21850 2015-06-09  Richard Biener  <rguenther@suse.de>
21852         PR middle-end/66423
21853         * match.pd: Handle A % (unsigned)(1 << B).
21855 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
21857         * varasm.c (output_object_block_htab): Remove.
21858         (output_object_block_compare): New.
21859         (output_object_blocks): Sort named object_blocks before outputting
21860         them.
21862 2015-06-09  Richard Biener  <rguenther@suse.de>
21864         PR tree-optimization/66419
21865         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21866         consider GROUP_GAP when detecting a perfect subchain.
21868 2015-06-09  Nick Clifton  <nickc@redhat.com>
21870         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21871         place read only data in the .frodata section.
21873 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
21875         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21876         (atomic_store<mode>): Likewise.
21878 2015-06-09  Richard Biener  <rguenther@suse.de>
21880         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21882 2015-06-09  Richard Biener  <rguenther@suse.de>
21884         PR middle-end/66413
21885         * tree-inline.c (insert_init_debug_bind): Unshare value.
21887 2015-06-09  Richard Biener  <rguenther@suse.de>
21889         PR tree-optimization/66396
21890         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21891         Rename virtual operands.
21893 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21895         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21896         always return false.
21898 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21900         PR rtl-optimization/64164
21901         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21902         * tree-ssa-copyrename.c: Removed.
21903         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21904         -ftree-coalesce-vars.
21905         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21906         * common.opt (ftree-copyrename): Ignore.
21907         (ftree-coalesce-inlined-vars): Likewise.
21908         * doc/invoke.texi: Remove the ignored options above.
21909         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21910         * tree-ssa-coalesce.h: ... here.
21911         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21912         headers required by it.
21913         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21914         across variables when flag_tree_coalesce_vars.  Check register
21915         use and promoted modes to allow coalescing.  Moved to
21916         tree-ssa-coalesce.c.
21917         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21918         with its member functions to tree-ssa-coalesce.c.
21919         (var_map_base_init): Likewise.  Renamed to
21920         compute_samebase_partition_bases.
21921         (partition_view_normal): Drop want_bases parameter.
21922         (partition_view_bitmap): Likewise.
21923         * tree-ssa-live.h: Adjust declarations.
21924         * tree-ssa-coalesce.c: Include explow.h.
21925         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21926         default defs at the entry point.
21927         (dump_part_var_map): New.
21928         (compute_optimized_partition_bases): New, called by...
21929         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21930         of compute_samebase_partition_bases.  Adjust.
21931         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21932         * cfgexpand.c (leader_merge): New.
21933         (get_rtl_for_parm_ssa_default_def): New.
21934         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21935         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21936         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21937         redundant MEM attr setting.
21938         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21939         from...
21940         (expand_one_stack_var): ... this.  New wrapper to check and
21941         skip already expanded SSA partitions.
21942         (record_alignment_for_reg_var): New, factored out of...
21943         (expand_one_var): ... this.
21944         (expand_one_ssa_partition): New.
21945         (adjust_one_expanded_partition_var): New.
21946         (expand_one_register_var): Check and skip already expanded SSA
21947         partitions.
21948         (expand_used_vars): Don't create DECLs for anonymous SSA
21949         names.  Expand all SSA partitions, then adjust all SSA names.
21950         (pass::execute): Replace the loops that set
21951         SA.partition_to_pseudo from partition leaders and cleared
21952         DECL_RTL for multi-location variables, and that which used to
21953         rename vars and set attrs, with one that clears DECL_RTL and
21954         checks that PARMs and RESULTs default_defs match DECL_RTL.
21955         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21956         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21957         * explow.c (promote_ssa_mode): New.
21958         * explow.h (promote_ssa_mode): Declare.
21959         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21960         * function.c: Include cfgexpand.h.
21961         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21962         (use_register_for_parm_decl): Wrapper for the above to
21963         special-case the result_ptr.
21964         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21965         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21966         multiple locations.
21967         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21968         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21969         (assign_parm_setup_block): Prefer SSA-assigned location.
21970         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21971         if stack_parm is NULL.
21972         (assign_parm_setup_stack): Prefer SSA-assigned location.
21973         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21974         rtl before testing for pointer bounds.  Special-case result_ptr.
21975         (expand_function_start): Maybe reset DECL_RTL of result.
21976         Prefer SSA-assigned location for result and static chain.
21977         Factor out DECL_RESULT and SET_DECL_RTL.
21978         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21979         anonymous SSA names.  Use promote_ssa_mode.
21980         (get_temp_reg): Likewise.
21981         (remove_ssa_form): Adjust.
21982         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21983         and get its reg_usage for reg invalidation.
21984         (compute_bb_dataflow): Pass it insn.
21985         (emit_notes_in_bb): Likewise.
21986         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21987         fail assert on conversion between unsigned types.
21989 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21991         PR debug/58315
21992         * tree-inline.c (reset_debug_binding): New.
21993         (reset_debug_bindings): Likewise.
21994         (expand_call_inline): Call it.
21996 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21998         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21999         TYPE_STRING_FLAG.
22001 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22003         * lto-streamer-out.c (lto_output_location): Stream
22004         reserved locations correctly.
22005         * lto-streamer-in.c (lto_output_location): Likewise.
22007 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
22009         * coretypes.h: Include hash-table.h and hash-set.h for host files.
22010         * ggc.h: Don't include statistics.h>
22011         * hash-map.h: Remove all includes.
22012         * hash-set.h: Likewise.
22013         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22014         the include list. Remove <new>.
22015         * inchash.h: Remove all includes.
22016         * mem-stats.h: Likewise.
22017         * vec.h: No special processing for generators or ggc.
22018         * alias.c : Adjust include files.
22019         * alloc-pool.c : Likewise.
22020         * alloc-pool.h : Likewise.
22021         * asan.c : Likewise.
22022         * attribs.c : Likewise.
22023         * auto-inc-dec.c : Likewise.
22024         * auto-profile.c : Likewise.
22025         * bb-reorder.c : Likewise.
22026         * bitmap.c : Likewise.
22027         * bitmap.h : Likewise.
22028         * bt-load.c : Likewise.
22029         * builtins.c : Likewise.
22030         * caller-save.c : Likewise.
22031         * calls.c : Likewise.
22032         * ccmp.c : Likewise.
22033         * cfg.c : Likewise.
22034         * cfganal.c : Likewise.
22035         * cfgbuild.c : Likewise.
22036         * cfgcleanup.c : Likewise.
22037         * cfgexpand.c : Likewise.
22038         * cfghooks.c : Likewise.
22039         * cfgloop.c : Likewise.
22040         * cfgloop.h : Likewise.
22041         * cfgloopanal.c : Likewise.
22042         * cfgloopmanip.c : Likewise.
22043         * cfgrtl.c : Likewise.
22044         * cgraph.c : Likewise.
22045         * cgraphbuild.c : Likewise.
22046         * cgraphclones.c : Likewise.
22047         * cgraphunit.c : Likewise.
22048         * cilk-common.c : Likewise.
22049         * combine-stack-adj.c : Likewise.
22050         * combine.c : Likewise.
22051         * compare-elim.c : Likewise.
22052         * context.c : Likewise.
22053         * convert.c : Likewise.
22054         * coverage.c : Likewise.
22055         * cppbuiltin.c : Likewise.
22056         * cprop.c : Likewise.
22057         * cse.c : Likewise.
22058         * cselib.c : Likewise.
22059         * data-streamer-in.c : Likewise.
22060         * data-streamer-out.c : Likewise.
22061         * data-streamer.c : Likewise.
22062         * data-streamer.h : Likewise.
22063         * dbxout.c : Likewise.
22064         * dce.c : Likewise.
22065         * ddg.c : Likewise.
22066         * debug.c : Likewise.
22067         * df-core.c : Likewise.
22068         * df-problems.c : Likewise.
22069         * df-scan.c : Likewise.
22070         * df.h : Likewise.
22071         * dfp.c : Likewise.
22072         * dojump.c : Likewise.
22073         * dominance.c : Likewise.
22074         * domwalk.c : Likewise.
22075         * double-int.c : Likewise.
22076         * dse.c : Likewise.
22077         * dumpfile.c : Likewise.
22078         * dwarf2asm.c : Likewise.
22079         * dwarf2cfi.c : Likewise.
22080         * dwarf2out.c : Likewise.
22081         * emit-rtl.c : Likewise.
22082         * et-forest.c : Likewise.
22083         * except.c : Likewise.
22084         * except.h : Likewise.
22085         * explow.c : Likewise.
22086         * expmed.c : Likewise.
22087         * expr.c : Likewise.
22088         * final.c : Likewise.
22089         * fixed-value.c : Likewise.
22090         * fold-const.c : Likewise.
22091         * function.c : Likewise.
22092         * fwprop.c : Likewise.
22093         * gcc-plugin.h : Likewise.
22094         * gcc.c : Likewise.
22095         * gcse-common.c : Likewise.
22096         * gcse.c : Likewise.
22097         * genattrtab.c : Likewise.
22098         * genautomata.c : Likewise.
22099         * genconditions.c : Likewise.
22100         * genemit.c : Likewise.
22101         * generic-match-head.c : Likewise.
22102         * genextract.c : Likewise.
22103         * gengtype-state.c : Likewise.
22104         * gengtype.c : Likewise.
22105         * genhooks.c : Likewise.
22106         * genmatch.c : Likewise.
22107         * genmodes.c : Likewise.
22108         * genrecog.c : Likewise.
22109         * gensupport.c : Likewise.
22110         * ggc-common.c : Likewise.
22111         * ggc-internal.h : Likewise.
22112         * ggc-none.c : Likewise.
22113         * ggc-page.c : Likewise.
22114         * gimple-builder.c : Likewise.
22115         * gimple-expr.c : Likewise.
22116         * gimple-fold.c : Likewise.
22117         * gimple-iterator.c : Likewise.
22118         * gimple-low.c : Likewise.
22119         * gimple-match-head.c : Likewise.
22120         * gimple-pretty-print.c : Likewise.
22121         * gimple-ssa-isolate-paths.c : Likewise.
22122         * gimple-ssa-strength-reduction.c : Likewise.
22123         * gimple-ssa.h : Likewise.
22124         * gimple-streamer-in.c : Likewise.
22125         * gimple-streamer-out.c : Likewise.
22126         * gimple-streamer.h : Likewise.
22127         * gimple-walk.c : Likewise.
22128         * gimple.c : Likewise.
22129         * gimplify-me.c : Likewise.
22130         * gimplify.c : Likewise.
22131         * godump.c : Likewise.
22132         * graph.c : Likewise.
22133         * graphds.c : Likewise.
22134         * graphite-blocking.c : Likewise.
22135         * graphite-dependences.c : Likewise.
22136         * graphite-interchange.c : Likewise.
22137         * graphite-isl-ast-to-gimple.c : Likewise.
22138         * graphite-optimize-isl.c : Likewise.
22139         * graphite-poly.c : Likewise.
22140         * graphite-scop-detection.c : Likewise.
22141         * graphite-sese-to-poly.c : Likewise.
22142         * graphite.c : Likewise.
22143         * haifa-sched.c : Likewise.
22144         * hard-reg-set.h : Likewise.
22145         * hw-doloop.c : Likewise.
22146         * ifcvt.c : Likewise.
22147         * inchash.c : Likewise.
22148         * incpath.c : Likewise.
22149         * init-regs.c : Likewise.
22150         * input.c : Likewise.
22151         * internal-fn.c : Likewise.
22152         * ipa-chkp.c : Likewise.
22153         * ipa-comdats.c : Likewise.
22154         * ipa-cp.c : Likewise.
22155         * ipa-devirt.c : Likewise.
22156         * ipa-icf-gimple.c : Likewise.
22157         * ipa-icf.c : Likewise.
22158         * ipa-inline-analysis.c : Likewise.
22159         * ipa-inline-transform.c : Likewise.
22160         * ipa-inline.c : Likewise.
22161         * ipa-polymorphic-call.c : Likewise.
22162         * ipa-profile.c : Likewise.
22163         * ipa-prop.c : Likewise.
22164         * ipa-pure-const.c : Likewise.
22165         * ipa-ref.c : Likewise.
22166         * ipa-reference.c : Likewise.
22167         * ipa-split.c : Likewise.
22168         * ipa-utils.c : Likewise.
22169         * ipa-visibility.c : Likewise.
22170         * ipa.c : Likewise.
22171         * ira-build.c : Likewise.
22172         * ira-color.c : Likewise.
22173         * ira-conflicts.c : Likewise.
22174         * ira-costs.c : Likewise.
22175         * ira-emit.c : Likewise.
22176         * ira-lives.c : Likewise.
22177         * ira.c : Likewise.
22178         * jump.c : Likewise.
22179         * langhooks.c : Likewise.
22180         * lcm.c : Likewise.
22181         * libfuncs.h : Likewise.
22182         * lists.c : Likewise.
22183         * loop-doloop.c : Likewise.
22184         * loop-init.c : Likewise.
22185         * loop-invariant.c : Likewise.
22186         * loop-iv.c : Likewise.
22187         * loop-unroll.c : Likewise.
22188         * lower-subreg.c : Likewise.
22189         * lra-assigns.c : Likewise.
22190         * lra-coalesce.c : Likewise.
22191         * lra-constraints.c : Likewise.
22192         * lra-eliminations.c : Likewise.
22193         * lra-lives.c : Likewise.
22194         * lra-remat.c : Likewise.
22195         * lra-spills.c : Likewise.
22196         * lra.c : Likewise.
22197         * lto-cgraph.c : Likewise.
22198         * lto-compress.c : Likewise.
22199         * lto-opts.c : Likewise.
22200         * lto-section-in.c : Likewise.
22201         * lto-section-out.c : Likewise.
22202         * lto-streamer-in.c : Likewise.
22203         * lto-streamer-out.c : Likewise.
22204         * lto-streamer.c : Likewise.
22205         * lto-streamer.h : Likewise.
22206         * mcf.c : Likewise.
22207         * mode-switching.c : Likewise.
22208         * modulo-sched.c : Likewise.
22209         * omega.c : Likewise.
22210         * omp-low.c : Likewise.
22211         * optabs.c : Likewise.
22212         * opts-global.c : Likewise.
22213         * opts.h : Likewise.
22214         * passes.c : Likewise.
22215         * plugin.c : Likewise.
22216         * postreload-gcse.c : Likewise.
22217         * postreload.c : Likewise.
22218         * predict.c : Likewise.
22219         * print-rtl.c : Likewise.
22220         * print-tree.c : Likewise.
22221         * profile.c : Likewise.
22222         * read-md.c : Likewise.
22223         * read-md.h : Likewise.
22224         * read-rtl.c : Likewise.
22225         * real.c : Likewise.
22226         * realmpfr.c : Likewise.
22227         * recog.c : Likewise.
22228         * ree.c : Likewise.
22229         * reg-stack.c : Likewise.
22230         * regcprop.c : Likewise.
22231         * reginfo.c : Likewise.
22232         * regrename.c : Likewise.
22233         * regstat.c : Likewise.
22234         * reload.c : Likewise.
22235         * reload1.c : Likewise.
22236         * reorg.c : Likewise.
22237         * resource.c : Likewise.
22238         * rtl-chkp.c : Likewise.
22239         * rtl.c : Likewise.
22240         * rtl.h : Likewise.
22241         * rtlanal.c : Likewise.
22242         * rtlhash.c : Likewise.
22243         * rtlhash.h : Likewise.
22244         * rtlhooks.c : Likewise.
22245         * sanopt.c : Likewise.
22246         * sched-deps.c : Likewise.
22247         * sched-ebb.c : Likewise.
22248         * sched-rgn.c : Likewise.
22249         * sched-vis.c : Likewise.
22250         * sdbout.c : Likewise.
22251         * sel-sched-dump.c : Likewise.
22252         * sel-sched-ir.c : Likewise.
22253         * sel-sched-ir.h : Likewise.
22254         * sel-sched.c : Likewise.
22255         * sese.c : Likewise.
22256         * shrink-wrap.c : Likewise.
22257         * shrink-wrap.h : Likewise.
22258         * simplify-rtx.c : Likewise.
22259         * stack-ptr-mod.c : Likewise.
22260         * statistics.c : Likewise.
22261         * stmt.c : Likewise.
22262         * stor-layout.c : Likewise.
22263         * store-motion.c : Likewise.
22264         * stringpool.c : Likewise.
22265         * symtab.c : Likewise.
22266         * target-globals.c : Likewise.
22267         * targhooks.c : Likewise.
22268         * tlink.c : Likewise.
22269         * toplev.c : Likewise.
22270         * tracer.c : Likewise.
22271         * trans-mem.c : Likewise.
22272         * tree-affine.c : Likewise.
22273         * tree-affine.h : Likewise.
22274         * tree-browser.c : Likewise.
22275         * tree-call-cdce.c : Likewise.
22276         * tree-cfg.c : Likewise.
22277         * tree-cfgcleanup.c : Likewise.
22278         * tree-chkp-opt.c : Likewise.
22279         * tree-chkp.c : Likewise.
22280         * tree-chrec.c : Likewise.
22281         * tree-complex.c : Likewise.
22282         * tree-data-ref.c : Likewise.
22283         * tree-dfa.c : Likewise.
22284         * tree-diagnostic.c : Likewise.
22285         * tree-dump.c : Likewise.
22286         * tree-eh.c : Likewise.
22287         * tree-eh.h : Likewise.
22288         * tree-emutls.c : Likewise.
22289         * tree-hasher.h : Likewise.
22290         * tree-if-conv.c : Likewise.
22291         * tree-inline.c : Likewise.
22292         * tree-inline.h : Likewise.
22293         * tree-into-ssa.c : Likewise.
22294         * tree-iterator.c : Likewise.
22295         * tree-loop-distribution.c : Likewise.
22296         * tree-nested.c : Likewise.
22297         * tree-nrv.c : Likewise.
22298         * tree-object-size.c : Likewise.
22299         * tree-outof-ssa.c : Likewise.
22300         * tree-parloops.c : Likewise.
22301         * tree-phinodes.c : Likewise.
22302         * tree-predcom.c : Likewise.
22303         * tree-pretty-print.c : Likewise.
22304         * tree-profile.c : Likewise.
22305         * tree-scalar-evolution.c : Likewise.
22306         * tree-sra.c : Likewise.
22307         * tree-ssa-address.c : Likewise.
22308         * tree-ssa-alias.c : Likewise.
22309         * tree-ssa-ccp.c : Likewise.
22310         * tree-ssa-coalesce.c : Likewise.
22311         * tree-ssa-copy.c : Likewise.
22312         * tree-ssa-copyrename.c : Likewise.
22313         * tree-ssa-dce.c : Likewise.
22314         * tree-ssa-dom.c : Likewise.
22315         * tree-ssa-dse.c : Likewise.
22316         * tree-ssa-forwprop.c : Likewise.
22317         * tree-ssa-ifcombine.c : Likewise.
22318         * tree-ssa-live.c : Likewise.
22319         * tree-ssa-loop-ch.c : Likewise.
22320         * tree-ssa-loop-im.c : Likewise.
22321         * tree-ssa-loop-ivcanon.c : Likewise.
22322         * tree-ssa-loop-ivopts.c : Likewise.
22323         * tree-ssa-loop-manip.c : Likewise.
22324         * tree-ssa-loop-niter.c : Likewise.
22325         * tree-ssa-loop-prefetch.c : Likewise.
22326         * tree-ssa-loop-unswitch.c : Likewise.
22327         * tree-ssa-loop.c : Likewise.
22328         * tree-ssa-math-opts.c : Likewise.
22329         * tree-ssa-operands.c : Likewise.
22330         * tree-ssa-phiopt.c : Likewise.
22331         * tree-ssa-phiprop.c : Likewise.
22332         * tree-ssa-pre.c : Likewise.
22333         * tree-ssa-propagate.c : Likewise.
22334         * tree-ssa-reassoc.c : Likewise.
22335         * tree-ssa-sccvn.c : Likewise.
22336         * tree-ssa-scopedtables.c : Likewise.
22337         * tree-ssa-sink.c : Likewise.
22338         * tree-ssa-strlen.c : Likewise.
22339         * tree-ssa-structalias.c : Likewise.
22340         * tree-ssa-tail-merge.c : Likewise.
22341         * tree-ssa-ter.c : Likewise.
22342         * tree-ssa-threadedge.c : Likewise.
22343         * tree-ssa-threadupdate.c : Likewise.
22344         * tree-ssa-uncprop.c : Likewise.
22345         * tree-ssa-uninit.c : Likewise.
22346         * tree-ssa.c : Likewise.
22347         * tree-ssanames.c : Likewise.
22348         * tree-stdarg.c : Likewise.
22349         * tree-streamer-in.c : Likewise.
22350         * tree-streamer-out.c : Likewise.
22351         * tree-streamer.c : Likewise.
22352         * tree-streamer.h : Likewise.
22353         * tree-switch-conversion.c : Likewise.
22354         * tree-tailcall.c : Likewise.
22355         * tree-vect-data-refs.c : Likewise.
22356         * tree-vect-generic.c : Likewise.
22357         * tree-vect-loop-manip.c : Likewise.
22358         * tree-vect-loop.c : Likewise.
22359         * tree-vect-patterns.c : Likewise.
22360         * tree-vect-slp.c : Likewise.
22361         * tree-vect-stmts.c : Likewise.
22362         * tree-vectorizer.c : Likewise.
22363         * tree-vectorizer.h : Likewise.
22364         * tree-vrp.c : Likewise.
22365         * tree.c : Likewise.
22366         * tsan.c : Likewise.
22367         * ubsan.c : Likewise.
22368         * valtrack.c : Likewise.
22369         * valtrack.h : Likewise.
22370         * value-prof.c : Likewise.
22371         * var-tracking.c : Likewise.
22372         * varasm.c : Likewise.
22373         * varpool.c : Likewise.
22374         * vec.c: Likewise.
22375         * vmsdbgout.c : Likewise.
22376         * vtable-verify.c : Likewise.
22377         * vtable-verify.h : Likewise.
22378         * web.c : Likewise.
22379         * wide-int.cc : Likewise.
22380         * xcoffout.c : Likewise.
22381         * config/aarch64/aarch64-builtins.c : Likewise.
22382         * config/aarch64/aarch64.c : Likewise.
22383         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22384         * config/alpha/alpha.c : Likewise.
22385         * config/arc/arc.c : Likewise.
22386         * config/arm/aarch-common.c : Likewise.
22387         * config/arm/arm-builtins.c : Likewise.
22388         * config/arm/arm-c.c : Likewise.
22389         * config/arm/arm.c : Likewise.
22390         * config/avr/avr-c.c : Likewise.
22391         * config/avr/avr-log.c : Likewise.
22392         * config/avr/avr.c : Likewise.
22393         * config/bfin/bfin.c : Likewise.
22394         * config/c6x/c6x.c : Likewise.
22395         * config/cr16/cr16.c : Likewise.
22396         * config/cris/cris.c : Likewise.
22397         * config/darwin-c.c : Likewise.
22398         * config/darwin.c : Likewise.
22399         * config/default-c.c : Likewise.
22400         * config/epiphany/epiphany.c : Likewise.
22401         * config/epiphany/mode-switch-use.c : Likewise.
22402         * config/epiphany/resolve-sw-modes.c : Likewise.
22403         * config/fr30/fr30.c : Likewise.
22404         * config/frv/frv.c : Likewise.
22405         * config/ft32/ft32.c : Likewise.
22406         * config/glibc-c.c : Likewise.
22407         * config/h8300/h8300.c : Likewise.
22408         * config/i386/i386-c.c : Likewise.
22409         * config/i386/i386.c : Likewise.
22410         * config/i386/msformat-c.c : Likewise.
22411         * config/i386/winnt-cxx.c : Likewise.
22412         * config/i386/winnt-stubs.c : Likewise.
22413         * config/i386/winnt.c : Likewise.
22414         * config/ia64/ia64-c.c : Likewise.
22415         * config/ia64/ia64.c : Likewise.
22416         * config/iq2000/iq2000.c : Likewise.
22417         * config/lm32/lm32.c : Likewise.
22418         * config/m32c/m32c-pragma.c : Likewise.
22419         * config/m32c/m32c.c : Likewise.
22420         * config/m32r/m32r.c : Likewise.
22421         * config/m68k/m68k.c : Likewise.
22422         * config/mcore/mcore.c : Likewise.
22423         * config/mep/mep-pragma.c : Likewise.
22424         * config/mep/mep.c : Likewise.
22425         * config/microblaze/microblaze-c.c : Likewise.
22426         * config/microblaze/microblaze.c : Likewise.
22427         * config/mips/mips.c : Likewise.
22428         * config/mmix/mmix.c : Likewise.
22429         * config/mn10300/mn10300.c : Likewise.
22430         * config/moxie/moxie.c : Likewise.
22431         * config/msp430/msp430-c.c : Likewise.
22432         * config/msp430/msp430.c : Likewise.
22433         * config/nds32/nds32-cost.c : Likewise.
22434         * config/nds32/nds32-fp-as-gp.c : Likewise.
22435         * config/nds32/nds32-intrinsic.c : Likewise.
22436         * config/nds32/nds32-isr.c : Likewise.
22437         * config/nds32/nds32-md-auxiliary.c : Likewise.
22438         * config/nds32/nds32-memory-manipulation.c : Likewise.
22439         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22440         * config/nds32/nds32-predicates.c : Likewise.
22441         * config/nds32/nds32.c : Likewise.
22442         * config/nios2/nios2.c : Likewise.
22443         * config/nvptx/nvptx.c : Likewise.
22444         * config/pa/pa.c : Likewise.
22445         * config/pdp11/pdp11.c : Likewise.
22446         * config/rl78/rl78-c.c : Likewise.
22447         * config/rl78/rl78.c : Likewise.
22448         * config/rs6000/rs6000-c.c : Likewise.
22449         * config/rs6000/rs6000.c : Likewise.
22450         * config/rx/rx.c : Likewise.
22451         * config/s390/s390-c.c : Likewise.
22452         * config/s390/s390.c : Likewise.
22453         * config/sh/sh-c.c : Likewise.
22454         * config/sh/sh-mem.cc : Likewise.
22455         * config/sh/sh.c : Likewise.
22456         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22457         * config/sh/sh_treg_combine.cc : Likewise.
22458         * config/sol2-c.c : Likewise.
22459         * config/sol2-cxx.c : Likewise.
22460         * config/sol2-stubs.c : Likewise.
22461         * config/sol2.c : Likewise.
22462         * config/sparc/sparc-c.c : Likewise.
22463         * config/sparc/sparc.c : Likewise.
22464         * config/spu/spu-c.c : Likewise.
22465         * config/spu/spu.c : Likewise.
22466         * config/stormy16/stormy16.c : Likewise.
22467         * config/tilegx/mul-tables.c : Likewise.
22468         * config/tilegx/tilegx-c.c : Likewise.
22469         * config/tilegx/tilegx.c : Likewise.
22470         * config/tilepro/mul-tables.c : Likewise.
22471         * config/tilepro/tilepro-c.c : Likewise.
22472         * config/tilepro/tilepro.c : Likewise.
22473         * config/v850/v850-c.c : Likewise.
22474         * config/v850/v850.c : Likewise.
22475         * config/vax/vax.c : Likewise.
22476         * config/visium/visium.c : Likewise.
22477         * config/vms/vms-c.c : Likewise.
22478         * config/vms/vms.c : Likewise.
22479         * config/vxworks.c : Likewise.
22480         * config/winnt-c.c : Likewise.
22481         * config/xtensa/xtensa.c : Likewise.
22483 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22485         PR lto/65378
22486         * ipa-utils.h (warn_types_mismatch): Update prototype.
22487         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22488         parameters.
22489         (type_mismatch_p): New function.
22490         (warn_types_mismatch): Reorg to work better on non-C++ types.
22491         (odr_types_equivalent_p): Add loc1/loc2 parameters.
22492         (add_type_duplicate): Update.
22494 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22496         PR rtl-optimization/66444
22497         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22498         call_used_regs.
22500 2015-06-08  Richard Biener  <rguenther@suse.de>
22502         PR tree-optimization/66422
22503         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22504         block after inserted gcc_unreachable.
22506 2015-06-08  Nick Clifton  <nickc@redhat.com>
22508         * config/rx/rx.c (rx_function_value): Do not promote vector types.
22509         (rx_promote_function_mode): Likewise.
22510         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22512 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
22514         * genattrtab.c (insn_alternatives): Change type from int *
22515         to uint64_t *.
22516         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22517         (get_attr_value): Change type of num_alt to uint64_t.
22518         (compute_alternative_mask): Change return type from
22519         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22520         (make_alternative_compare, mk_attr_alt): Change argument type
22521         from int to uint64_t.
22522         (simplify_test_exp): Change type of i from int to uint64_t.
22523         Shift ((uint64_t) 1) instead of 1 up.
22524         (main): Adjust oballocvec first argument from int to uint64_t.
22525         Shift ((uint64_t) 1) instead of 1 up.
22527 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
22529         PR other/65366
22530         * gdbhooks.py: Import sys.
22531         (intptr): New function.  Replace int(...) by intptr(...).
22533 2015-06-08  Richard Biener  <rguenther@suse.de>
22535         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22536         adjustment for gaps at the end of a SLP load group properly.
22537         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22538         all permutations we can generate.
22539         (vect_transform_slp_perm_load): Use the correct group-size.
22541 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
22543         * genmatch.c (expr::gen_transform): For conditions, guess the type
22544         from the second operand.
22546 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22548         PR tree-optimization/66442
22549         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22550         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22551         if the loop latch is not a singleton.  Use
22552         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22554 2015-06-08  Marek Polacek  <polacek@redhat.com>
22556         PR sanitizer/66452
22557         * toplev.c (check_global_declaration): Don't warn about artificial
22558         decls.
22560 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22562         PR tree-optimization/66436
22563         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22564         dump file.
22565         * gimplify.c: Add tree-dump.h include.
22566         (gimplify_function_tree): Dump function to gimple dump file.
22567         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22568         dump file.
22570 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22572         PR tree-optimization/66435
22573         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22574         function.
22576 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
22578         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22579         of ptr_type_node to not be ptr_to_node.
22580         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22581         TREE_TYPE of pointers.
22582         * gimple-expr.c (useless_type_conversion): Reorder the check for
22583         function pointers and TYPE_CANONICAL.
22585 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
22587         PR bootstrap/66319
22588         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22589         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22590         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22591         later.
22592         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22593         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22594         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22595         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22596         and non iso if unix2003.
22598 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
22600         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22602 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
22604         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22605         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22606         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22607         except.c, final.c, function.c, gcse-common.c, genemit.c,
22608         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22609         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22610         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22611         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22612         more derived ones.
22614 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
22616         * combine.c (combine_split_insns): Remove cast.
22617         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22618         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22619         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22620         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22621         * genemit.c (gen_split): Change return type of generated functions to
22622         rtx_insn.
22623         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22624         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22625         gen_peephole2_* functions.
22626         (print_subroutine, main): Likewise.
22627         * recog.c (peephole2_optimize): Remove cast.
22628         (peep2_next_insn): Promote return type to rtx_insn.
22629         * recog.h (peep2_next_insn): Fix prototype.
22630         * rtl.h (try_split, split_insns): Likewise.
22632 2015-06-06  DJ Delorie  <dj@redhat.com>
22634         * config/msp430/msp430.c (msp430_asm_integer): Support addition
22635         and subtraction too.
22637 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
22639         PR target/66410
22640         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22641         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22642         instead of Snd.  Disparage Sid/z alternative with '^'.
22644 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
22646         * dwarf2out.c: Remove deferred_locations*.
22647         (dwarf2_debug_hooks): Add early_finish hook.
22648         Remove global_decl hook.
22649         Add early_global_decl and late_global_decl hook.
22650         New global early_dwarf.
22651         New structure set_early_dwarf.
22652         (output_die): Indicate whether a DIE was generated early
22653         when generating assembly with -dA.
22654         (struct limbo_die_struct): Document created_for field.
22655         Remove file_table_last_lookup.
22656         (remove_AT): Return TRUE if successful.
22657         (remove_child_TAG): Clear die_parent.
22658         (reparent_child): New function abstracted from...
22659         (splice_child_die): ...here.
22660         (new_die): ICE if a DIE ends up in limbo too late.
22661         (check_die): New.
22662         (defer_location): Remove.
22663         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22664         (fill_variable_array_bounds): New.
22665         (decl_start_label): Call fill_variable_array_bounds.
22666         (gen_formal_parameter_die): Rewrite to reuse previously generated
22667         DIEs.
22668         (gen_subprogram_die): Same.
22669         (gen_variable_die): Same.
22670         (gen_const_die): Same.
22671         (gen_label_die): Same.
22672         (gen_lexical_block_die): Same.
22673         (decl_will_get_specification_p): New.
22674         (local_function_static): New.
22675         (gen_struct_or_union_type_die): Fill in variable-length fields.
22676         (gen_typedef_die): Fill in variable-length typedefs.
22677         (gen_tagged_type_die): Gracefully return on error_mark_node.
22678         Handle re-entrancy.
22679         (gen_type_die_with_usage): Handle variable-length types.
22680         Remove duplicate code for ARRAY_TYPE case.
22681         (process_scope_var): Only process imported modules during early
22682         dwarf.
22683         (dwarf2out_early_global_decl): New.
22684         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22685         (dwarf2out_type_decl): Set early_dwarf while calling
22686         dwarf2out_decl.
22687         (dwarf2out_decl): Verify that we did not recreate a previously
22688         generated DIE.
22689         Do not return on DECL_EXTERNALs in VAR_DECLs.
22690         Abstract some code to local_function_static.
22691         (lookup_filename): Remove use of file_table_last_lookup.
22692         Gracefully exit on missing file_name.
22693         (dwarf2out_finish): Verify limbo list.
22694         Remove deferred_locations_list use.
22695         Move deferred_asm_name and limbo flushing to...
22696         (dwarf2out_early_finish): ...here.  New.
22697         (dwarf2out_c_finalize): Remove set of deferred_location_list,
22698         deferred_asm_name, and file_table_last_lookup.
22699         * cgraph.h (referred_to_p): Add default argument.
22700         * cgraphunit.c (referred_to_p): Add and handle include_self
22701         argument.
22702         (analyze_functions): Add first_time argument.
22703         Call check_global_declaration for all symbols.
22704         Call late_global_decl for nodes for moribund nodes.
22705         (finalize_compilation_unit): Add new argument to
22706         analyze_functions.
22707         Call early_global_decl for functions.
22708         Call early_finish debug hook.
22709         * dbxout.c (dbxout_early_global_decl): New.
22710         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
22711         (dbx_debug_hooks): Add new hooks.
22712         (xcoff_debug_hooks): Same.
22713         * debug.c (do_nothing_debug_hooks): Add early_finish field.
22714         Add early and late debug hooks.
22715         Remove global_decl hook.
22716         * debug.h (struct gcc_debug_hooks): Add early_finish,
22717         early_global_decl, and late_global_decl fields.
22718         Remove global_decl field.
22719         Document gcc_debug_hooks.
22720         * gengtype.c (output_typename): Remove.
22721         * godump.c (go_early_global_decl): New.
22722         (go_late_global_decl): New.
22723         (go_global_decl): Remove.
22724         (dump_go_spec_init): Remove global_decl.  Add
22725         {early,late}_global_decl.
22726         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22727         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22728         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22729         (write_global_declarations): Remove.
22730         (global_decl_processing): New.
22731         * langhooks.h (struct lang_hooks_for_decls): Remove
22732         final_write_globals field.
22733         Add post_compilation_parsing_cleanups field.
22734         * passes.c (rest_of_decl_compilation): Call early_global_decl.
22735         * sdbout.c: Add early and late_global_decl hooks.  Remove
22736         sdbout_global_decl hook.
22737         Add early_finish field for sdb_debug_hooks.
22738         (sdbout_global_decl): Remove.
22739         (sdbout_early_global_decl): New.
22740         (sdbout_late_global_decl): New.
22741         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22742         * toplev.c (check_global_declaration): Rename from
22743         check_global_declaration_1.
22744         Adapt to use symtab infrastructure.
22745         (check_global_declarations): Remove.
22746         (emit_debug_global_declarations): Remove.
22747         (compile_file): Remove call to final_write_globals langhook.
22748         Run the actual compilation process.
22749         Perform any post compilation parser cleanups.
22750         Generate late debug info.
22751         * toplev.h (check_global_declaration): New.
22752         (check_global_declaration_1): Remove.
22753         (check_global_declarations): Remove.
22754         (write_global_declarations): Remove.
22755         (emit_debug_global_declarations): Remove.
22756         (global_decl_processing): New.
22757         * tree-core.h (struct tree_block): Add DIE field.
22758         * tree.h (BLOCK_DIE): New.
22759         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22760         throughout.
22761         (vmsdbgout_early_global_decl): New.
22762         (vmsdbgout_late_global_decl): New.
22763         Add early_finish debug hook field to vmsdbg_debug_hooks.
22764         Remove vmsdbgout_decl to vmsdbgout_function_decl.
22765         Add early and late_global_decl debug hooks.
22767 2015-06-05  Julian Brown  <julian@codesourcery.com>
22768             Sandra Loosemore  <sandra@codesourcery.com>
22770         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22771         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22772         to print-sysroot-suffix.sh script.
22774 2015-06-05  Tom de Vries  <tom@codesourcery.com>
22776         merge from gomp4 branch:
22777         2015-05-28  Tom de Vries  <tom@codesourcery.com>
22779         PR tree-optimization/65443
22780         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22781         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22782         (try_transform_to_exit_first_loop_alt): New function.
22783         (transform_to_exit_first_loop): Use
22784         try_transform_to_exit_first_loop_alt.
22786 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
22788         * builtins.c (expand_builtin_atomic_compare_exchange): Call
22789         emit_cmp_and_jump_insns with the mode of target.
22791 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22793         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22795 2015-06-04  DJ Delorie  <dj@redhat.com>
22797         * config/msp430/msp430.md (movsi_s): New.  Special case for
22798         storing a 20-bit symbol into a 32-bit register.
22799         * config/msp430/msp430.c (msp430_subreg): Add support for it.
22800         * config/msp430/predicates.md (msp430_symbol_operand): New.
22802 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
22804         * c-family/c-common.c (noplt): New attribute.
22805         (handle_noplt_attribute): New handler.
22806         * calls.c (prepare_call_address): Check for noplt
22807         attribute.
22808         * config/i386/i386.c (ix86_expand_call): Check
22809         for noplt attribute.
22810         (ix86_nopic_noplt_attribute_p): New function.
22811         (ix86_output_call_insn): Output indirect call for non-pic
22812         no plt calls.
22813         * doc/extend.texi (noplt): Document new attribute.
22814         * doc/invoke.texi: Document new attribute.
22816 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
22818         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22819         real.h, and fixed-value.h when included in host source files.
22820         * double-int.h: Remove redundant #includes listed above.
22821         * fixed-value.h: Likewise.
22822         * real.h: Likewise.
22823         * wide-int.h: Likewise.
22824         * inchash.h: Likewise.
22825         * rtl.h: Add some include files When included from a generator file.
22826         * target.h: Remove wide-int.h and insn-modes.h from the include list.
22827         * internal-fn.h: Don't include coretypes.h.
22828         * alias.c: Adjust includes for restructured coretypes.h.
22829         * asan.c: Likewise.
22830         * attribs.c: Likewise.
22831         * auto-inc-dec.c: Likewise.
22832         * auto-profile.c: Likewise.
22833         * bb-reorder.c: Likewise.
22834         * bt-load.c: Likewise.
22835         * builtins.c: Likewise.
22836         * caller-save.c: Likewise.
22837         * calls.c: Likewise.
22838         * ccmp.c: Likewise.
22839         * cfg.c: Likewise.
22840         * cfganal.c: Likewise.
22841         * cfgbuild.c: Likewise.
22842         * cfgcleanup.c: Likewise.
22843         * cfgexpand.c: Likewise.
22844         * cfghooks.c: Likewise.
22845         * cfgloop.c: Likewise.
22846         * cfgloop.h: Likewise.
22847         * cfgloopanal.c: Likewise.
22848         * cfgloopmanip.c: Likewise.
22849         * cfgrtl.c: Likewise.
22850         * cgraph.c: Likewise.
22851         * cgraphbuild.c: Likewise.
22852         * cgraphclones.c: Likewise.
22853         * cgraphunit.c: Likewise.
22854         * cilk-common.c: Likewise.
22855         * combine-stack-adj.c: Likewise.
22856         * combine.c: Likewise.
22857         * compare-elim.c: Likewise.
22858         * convert.c: Likewise.
22859         * coverage.c: Likewise.
22860         * cppbuiltin.c: Likewise.
22861         * cprop.c: Likewise.
22862         * cse.c: Likewise.
22863         * cselib.c: Likewise.
22864         * data-streamer-in.c: Likewise.
22865         * data-streamer-out.c: Likewise.
22866         * data-streamer.c: Likewise.
22867         * dbxout.c: Likewise.
22868         * dce.c: Likewise.
22869         * ddg.c: Likewise.
22870         * debug.c: Likewise.
22871         * df-core.c: Likewise.
22872         * df-problems.c: Likewise.
22873         * df-scan.c: Likewise.
22874         * df.h: Likewise.
22875         * dfp.c: Likewise.
22876         * dojump.c: Likewise.
22877         * dominance.c: Likewise.
22878         * domwalk.c: Likewise.
22879         * double-int.c: Likewise.
22880         * dse.c: Likewise.
22881         * dumpfile.c: Likewise.
22882         * dwarf2asm.c: Likewise.
22883         * dwarf2cfi.c: Likewise.
22884         * dwarf2out.c: Likewise.
22885         * dwarf2out.h: Likewise.
22886         * emit-rtl.c: Likewise.
22887         * et-forest.c: Likewise.
22888         * except.c: Likewise.
22889         * explow.c: Likewise.
22890         * expmed.c: Likewise.
22891         * expr.c: Likewise.
22892         * final.c: Likewise.
22893         * fixed-value.c: Likewise.
22894         * fold-const.c: Likewise.
22895         * function.c: Likewise.
22896         * fwprop.c: Likewise.
22897         * gcc-plugin.h: Likewise.
22898         * gcse.c: Likewise.
22899         * generic-match-head.c: Likewise.
22900         * ggc-page.c: Likewise.
22901         * gimple-builder.c: Likewise.
22902         * gimple-expr.c: Likewise.
22903         * gimple-fold.c: Likewise.
22904         * gimple-iterator.c: Likewise.
22905         * gimple-low.c: Likewise.
22906         * gimple-match-head.c: Likewise.
22907         * gimple-pretty-print.c: Likewise.
22908         * gimple-ssa-isolate-paths.c: Likewise.
22909         * gimple-ssa-strength-reduction.c: Likewise.
22910         * gimple-streamer-in.c: Likewise.
22911         * gimple-streamer-out.c: Likewise.
22912         * gimple-streamer.h: Likewise.
22913         * gimple-walk.c: Likewise.
22914         * gimple.c: Likewise.
22915         * gimplify-me.c: Likewise.
22916         * gimplify.c: Likewise.
22917         * godump.c: Likewise.
22918         * graph.c: Likewise.
22919         * graphite-blocking.c: Likewise.
22920         * graphite-dependences.c: Likewise.
22921         * graphite-interchange.c: Likewise.
22922         * graphite-isl-ast-to-gimple.c: Likewise.
22923         * graphite-optimize-isl.c: Likewise.
22924         * graphite-poly.c: Likewise.
22925         * graphite-scop-detection.c: Likewise.
22926         * graphite-sese-to-poly.c: Likewise.
22927         * graphite.c: Likewise.
22928         * haifa-sched.c: Likewise.
22929         * hooks.h: Likewise.
22930         * hw-doloop.c: Likewise.
22931         * ifcvt.c: Likewise.
22932         * incpath.c: Likewise.
22933         * init-regs.c: Likewise.
22934         * internal-fn.c: Likewise.
22935         * ipa-chkp.c: Likewise.
22936         * ipa-comdats.c: Likewise.
22937         * ipa-cp.c: Likewise.
22938         * ipa-devirt.c: Likewise.
22939         * ipa-icf-gimple.c: Likewise.
22940         * ipa-icf.c: Likewise.
22941         * ipa-inline-analysis.c: Likewise.
22942         * ipa-inline-transform.c: Likewise.
22943         * ipa-inline.c: Likewise.
22944         * ipa-polymorphic-call.c: Likewise.
22945         * ipa-profile.c: Likewise.
22946         * ipa-prop.c: Likewise.
22947         * ipa-pure-const.c: Likewise.
22948         * ipa-ref.c: Likewise.
22949         * ipa-reference.c: Likewise.
22950         * ipa-split.c: Likewise.
22951         * ipa-utils.c: Likewise.
22952         * ipa-visibility.c: Likewise.
22953         * ipa.c: Likewise.
22954         * ira-build.c: Likewise.
22955         * ira-color.c: Likewise.
22956         * ira-conflicts.c: Likewise.
22957         * ira-costs.c: Likewise.
22958         * ira-emit.c: Likewise.
22959         * ira-lives.c: Likewise.
22960         * ira.c: Likewise.
22961         * jump.c: Likewise.
22962         * langhooks.c: Likewise.
22963         * lcm.c: Likewise.
22964         * loop-doloop.c: Likewise.
22965         * loop-init.c: Likewise.
22966         * loop-invariant.c: Likewise.
22967         * loop-iv.c: Likewise.
22968         * loop-unroll.c: Likewise.
22969         * lower-subreg.c: Likewise.
22970         * lra-assigns.c: Likewise.
22971         * lra-coalesce.c: Likewise.
22972         * lra-constraints.c: Likewise.
22973         * lra-eliminations.c: Likewise.
22974         * lra-lives.c: Likewise.
22975         * lra-remat.c: Likewise.
22976         * lra-spills.c: Likewise.
22977         * lra.c: Likewise.
22978         * lto-cgraph.c: Likewise.
22979         * lto-compress.c: Likewise.
22980         * lto-opts.c: Likewise.
22981         * lto-section-in.c: Likewise.
22982         * lto-section-out.c: Likewise.
22983         * lto-streamer-in.c: Likewise.
22984         * lto-streamer-out.c: Likewise.
22985         * lto-streamer.c: Likewise.
22986         * mcf.c: Likewise.
22987         * mode-switching.c: Likewise.
22988         * modulo-sched.c: Likewise.
22989         * omega.c: Likewise.
22990         * omp-low.c: Likewise.
22991         * optabs.c: Likewise.
22992         * opts-global.c: Likewise.
22993         * passes.c: Likewise.
22994         * plugin.c: Likewise.
22995         * postreload-gcse.c: Likewise.
22996         * postreload.c: Likewise.
22997         * predict.c: Likewise.
22998         * print-rtl.c: Likewise.
22999         * print-tree.c: Likewise.
23000         * profile.c: Likewise.
23001         * real.c: Likewise.
23002         * realmpfr.c: Likewise.
23003         * realmpfr.h: Likewise.
23004         * recog.c: Likewise.
23005         * ree.c: Likewise.
23006         * reg-stack.c: Likewise.
23007         * regcprop.c: Likewise.
23008         * reginfo.c: Likewise.
23009         * regrename.c: Likewise.
23010         * regs.h: Likewise.
23011         * regstat.c: Likewise.
23012         * reload.c: Likewise.
23013         * reload1.c: Likewise.
23014         * reorg.c: Likewise.
23015         * resource.c: Likewise.
23016         * rtl-chkp.c: Likewise.
23017         * rtlanal.c: Likewise.
23018         * rtlhooks.c: Likewise.
23019         * sanopt.c: Likewise.
23020         * sched-deps.c: Likewise.
23021         * sched-ebb.c: Likewise.
23022         * sched-rgn.c: Likewise.
23023         * sched-vis.c: Likewise.
23024         * sdbout.c: Likewise.
23025         * sel-sched-dump.c: Likewise.
23026         * sel-sched-ir.c: Likewise.
23027         * sel-sched.c: Likewise.
23028         * sese.c: Likewise.
23029         * shrink-wrap.c: Likewise.
23030         * shrink-wrap.h: Likewise.
23031         * simplify-rtx.c: Likewise.
23032         * stack-ptr-mod.c: Likewise.
23033         * statistics.c: Likewise.
23034         * stmt.c: Likewise.
23035         * stor-layout.c: Likewise.
23036         * store-motion.c: Likewise.
23037         * stringpool.c: Likewise.
23038         * symtab.c: Likewise.
23039         * target-globals.c: Likewise.
23040         * targhooks.c: Likewise.
23041         * toplev.c: Likewise.
23042         * tracer.c: Likewise.
23043         * trans-mem.c: Likewise.
23044         * tree-affine.c: Likewise.
23045         * tree-affine.h: Likewise.
23046         * tree-browser.c: Likewise.
23047         * tree-call-cdce.c: Likewise.
23048         * tree-cfg.c: Likewise.
23049         * tree-cfgcleanup.c: Likewise.
23050         * tree-chkp-opt.c: Likewise.
23051         * tree-chkp.c: Likewise.
23052         * tree-chrec.c: Likewise.
23053         * tree-complex.c: Likewise.
23054         * tree-data-ref.c: Likewise.
23055         * tree-dfa.c: Likewise.
23056         * tree-diagnostic.c: Likewise.
23057         * tree-dump.c: Likewise.
23058         * tree-eh.c: Likewise.
23059         * tree-emutls.c: Likewise.
23060         * tree-if-conv.c: Likewise.
23061         * tree-inline.c: Likewise.
23062         * tree-into-ssa.c: Likewise.
23063         * tree-iterator.c: Likewise.
23064         * tree-loop-distribution.c: Likewise.
23065         * tree-nested.c: Likewise.
23066         * tree-nrv.c: Likewise.
23067         * tree-object-size.c: Likewise.
23068         * tree-outof-ssa.c: Likewise.
23069         * tree-parloops.c: Likewise.
23070         * tree-phinodes.c: Likewise.
23071         * tree-predcom.c: Likewise.
23072         * tree-pretty-print.c: Likewise.
23073         * tree-pretty-print.h: Likewise.
23074         * tree-profile.c: Likewise.
23075         * tree-scalar-evolution.c: Likewise.
23076         * tree-sra.c: Likewise.
23077         * tree-ssa-address.c: Likewise.
23078         * tree-ssa-alias.c: Likewise.
23079         * tree-ssa-ccp.c: Likewise.
23080         * tree-ssa-coalesce.c: Likewise.
23081         * tree-ssa-copy.c: Likewise.
23082         * tree-ssa-copyrename.c: Likewise.
23083         * tree-ssa-dce.c: Likewise.
23084         * tree-ssa-dom.c: Likewise.
23085         * tree-ssa-dse.c: Likewise.
23086         * tree-ssa-forwprop.c: Likewise.
23087         * tree-ssa-ifcombine.c: Likewise.
23088         * tree-ssa-live.c: Likewise.
23089         * tree-ssa-loop-ch.c: Likewise.
23090         * tree-ssa-loop-im.c: Likewise.
23091         * tree-ssa-loop-ivcanon.c: Likewise.
23092         * tree-ssa-loop-ivopts.c: Likewise.
23093         * tree-ssa-loop-manip.c: Likewise.
23094         * tree-ssa-loop-niter.c: Likewise.
23095         * tree-ssa-loop-prefetch.c: Likewise.
23096         * tree-ssa-loop-unswitch.c: Likewise.
23097         * tree-ssa-loop.c: Likewise.
23098         * tree-ssa-loop.h: Likewise.
23099         * tree-ssa-math-opts.c: Likewise.
23100         * tree-ssa-operands.c: Likewise.
23101         * tree-ssa-phiopt.c: Likewise.
23102         * tree-ssa-phiprop.c: Likewise.
23103         * tree-ssa-pre.c: Likewise.
23104         * tree-ssa-propagate.c: Likewise.
23105         * tree-ssa-reassoc.c: Likewise.
23106         * tree-ssa-sccvn.c: Likewise.
23107         * tree-ssa-scopedtables.c: Likewise.
23108         * tree-ssa-sink.c: Likewise.
23109         * tree-ssa-strlen.c: Likewise.
23110         * tree-ssa-structalias.c: Likewise.
23111         * tree-ssa-tail-merge.c: Likewise.
23112         * tree-ssa-ter.c: Likewise.
23113         * tree-ssa-threadedge.c: Likewise.
23114         * tree-ssa-threadupdate.c: Likewise.
23115         * tree-ssa-uncprop.c: Likewise.
23116         * tree-ssa-uninit.c: Likewise.
23117         * tree-ssa.c: Likewise.
23118         * tree-ssanames.c: Likewise.
23119         * tree-stdarg.c: Likewise.
23120         * tree-streamer-in.c: Likewise.
23121         * tree-streamer-out.c: Likewise.
23122         * tree-streamer.c: Likewise.
23123         * tree-switch-conversion.c: Likewise.
23124         * tree-tailcall.c: Likewise.
23125         * tree-vect-data-refs.c: Likewise.
23126         * tree-vect-generic.c: Likewise.
23127         * tree-vect-loop-manip.c: Likewise.
23128         * tree-vect-loop.c: Likewise.
23129         * tree-vect-patterns.c: Likewise.
23130         * tree-vect-slp.c: Likewise.
23131         * tree-vect-stmts.c: Likewise.
23132         * tree-vectorizer.c: Likewise.
23133         * tree-vrp.c: Likewise.
23134         * tree.c: Likewise.
23135         * tsan.c: Likewise.
23136         * ubsan.c: Likewise.
23137         * valtrack.c: Likewise.
23138         * value-prof.c: Likewise.
23139         * var-tracking.c: Likewise.
23140         * varasm.c: Likewise.
23141         * varpool.c: Likewise.
23142         * vmsdbgout.c: Likewise.
23143         * vtable-verify.c: Likewise.
23144         * web.c: Likewise.
23145         * wide-int-print.cc: Likewise.
23146         * wide-int-print.h: Likewise.
23147         * wide-int.cc: Likewise.
23148         * xcoffout.c: Likewise.
23149         * config/aarch64/aarch64-builtins.c: Likewise.
23150         * config/aarch64/aarch64.c: Likewise.
23151         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23152         * config/alpha/alpha.c: Likewise.
23153         * config/arc/arc.c: Likewise.
23154         * config/arm/aarch-common.c: Likewise.
23155         * config/arm/arm-builtins.c: Likewise.
23156         * config/arm/arm-c.c: Likewise.
23157         * config/arm/arm.c: Likewise.
23158         * config/avr/avr-c.c: Likewise.
23159         * config/avr/avr-log.c: Likewise.
23160         * config/avr/avr.c: Likewise.
23161         * config/bfin/bfin.c: Likewise.
23162         * config/c6x/c6x.c: Likewise.
23163         * config/cr16/cr16.c: Likewise.
23164         * config/cris/cris.c: Likewise.
23165         * config/darwin-c.c: Likewise.
23166         * config/darwin.c: Likewise.
23167         * config/default-c.c: Likewise.
23168         * config/epiphany/epiphany.c: Likewise.
23169         * config/epiphany/mode-switch-use.c: Likewise.
23170         * config/epiphany/resolve-sw-modes.c: Likewise.
23171         * config/fr30/fr30.c: Likewise.
23172         * config/frv/frv.c: Likewise.
23173         * config/ft32/ft32.c: Likewise.
23174         * config/glibc-c.c: Likewise.
23175         * config/h8300/h8300.c: Likewise.
23176         * config/i386/i386-c.c: Likewise.
23177         * config/i386/i386.c: Likewise.
23178         * config/i386/msformat-c.c: Likewise.
23179         * config/i386/winnt-cxx.c: Likewise.
23180         * config/i386/winnt-stubs.c: Likewise.
23181         * config/i386/winnt.c: Likewise.
23182         * config/ia64/ia64-c.c: Likewise.
23183         * config/ia64/ia64.c: Likewise.
23184         * config/iq2000/iq2000.c: Likewise.
23185         * config/lm32/lm32.c: Likewise.
23186         * config/m32c/m32c-pragma.c: Likewise.
23187         * config/m32c/m32c.c: Likewise.
23188         * config/m32r/m32r.c: Likewise.
23189         * config/m68k/m68k.c: Likewise.
23190         * config/mcore/mcore.c: Likewise.
23191         * config/mep/mep-pragma.c: Likewise.
23192         * config/mep/mep.c: Likewise.
23193         * config/microblaze/microblaze-c.c: Likewise.
23194         * config/microblaze/microblaze.c: Likewise.
23195         * config/mips/mips.c: Likewise.
23196         * config/mmix/mmix.c: Likewise.
23197         * config/mn10300/mn10300.c: Likewise.
23198         * config/moxie/moxie.c: Likewise.
23199         * config/msp430/msp430-c.c: Likewise.
23200         * config/msp430/msp430.c: Likewise.
23201         * config/nds32/nds32-cost.c: Likewise.
23202         * config/nds32/nds32-fp-as-gp.c: Likewise.
23203         * config/nds32/nds32-intrinsic.c: Likewise.
23204         * config/nds32/nds32-isr.c: Likewise.
23205         * config/nds32/nds32-md-auxiliary.c: Likewise.
23206         * config/nds32/nds32-memory-manipulation.c: Likewise.
23207         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23208         * config/nds32/nds32-predicates.c: Likewise.
23209         * config/nds32/nds32.c: Likewise.
23210         * config/nios2/nios2.c: Likewise.
23211         * config/nvptx/nvptx.c: Likewise.
23212         * config/pa/pa.c: Likewise.
23213         * config/pdp11/pdp11.c: Likewise.
23214         * config/rl78/rl78-c.c: Likewise.
23215         * config/rl78/rl78.c: Likewise.
23216         * config/rs6000/rs6000-c.c: Likewise.
23217         * config/rs6000/rs6000.c: Likewise.
23218         * config/rx/rx.c: Likewise.
23219         * config/s390/s390-c.c: Likewise.
23220         * config/s390/s390.c: Likewise.
23221         * config/sh/sh-c.c: Likewise.
23222         * config/sh/sh-mem.cc: Likewise.
23223         * config/sh/sh.c: Likewise.
23224         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23225         * config/sh/sh_treg_combine.cc: Likewise.
23226         * config/sol2-c.c: Likewise.
23227         * config/sol2-cxx.c: Likewise.
23228         * config/sol2-stubs.c: Likewise.
23229         * config/sol2.c: Likewise.
23230         * config/sparc/sparc-c.c: Likewise.
23231         * config/sparc/sparc.c: Likewise.
23232         * config/spu/spu-c.c: Likewise.
23233         * config/spu/spu.c: Likewise.
23234         * config/stormy16/stormy16.c: Likewise.
23235         * config/tilegx/mul-tables.c: Likewise.
23236         * config/tilegx/tilegx-c.c: Likewise.
23237         * config/tilegx/tilegx.c: Likewise.
23238         * config/tilepro/mul-tables.c: Likewise.
23239         * config/tilepro/tilepro-c.c: Likewise.
23240         * config/tilepro/tilepro.c: Likewise.
23241         * config/v850/v850-c.c: Likewise.
23242         * config/v850/v850.c: Likewise.
23243         * config/vax/vax.c: Likewise.
23244         * config/visium/visium.c: Likewise.
23245         * config/vms/vms-c.c: Likewise.
23246         * config/vms/vms.c: Likewise.
23247         * config/vxworks.c: Likewise.
23248         * config/winnt-c.c: Likewise.
23249         * config/xtensa/xtensa.c: Likewise.
23250         * common/config/bfin/bfin-common.c: Likewise.
23252 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
23254         * tree.h (tree_code_for_canonical_type_merging): New function.
23255         * tree.c (gimple_canonical_types_compatible_p): Use
23256         tree_code_for_canonical_type_merging..
23258 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23260         PR c++/66192
23261         PR target/66200
23262         * doc/tm.texi: Regenerate.
23263         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23264         * target.def (TARGET_RELAXED_ORDERING): Likewise.
23265         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23266         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23267         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23268         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23269         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23270         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23271         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23273 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23275         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23276         register fma steering pass.
23277         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23278         AARCH64_TUNE_FMA_STEERING.
23280 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
23282         * tree.c (verify_type_variant): Verify that type and variant is
23283         compatible.
23284         (gimple_canonical_types_compatible_p): Look for main variants.
23286 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23288         * config.gcc (powerpc*-*-*): Add support for a new configure
23289         option --with-advance-toolchain=<xxx> which overrides using the
23290         default header files, libraries and dynamic linker.
23292         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23293         specs to support the configure --with-advance-toolchain=<xxx>
23294         option.
23295         (INCLUDE_EXTRA_SPEC): Likewise.
23296         (LINK_OS_EXTRA_SPEC32): Likewise.
23297         (LINK_OK_EXTRA_SPEC64): Likewise.
23298         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23299         (DYNAMIC_LINKER_PREFIX): Likewise.
23300         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23301         toolchain support.
23302         (GLIBC_DYNAMIC_LINKER32): Likewise.
23303         (GLIBC_DYNAMIC_LINKER64): Likewise.
23304         (LINK_OS_LINUX_SPEC32): Likewise.
23305         (LINK_OS_LINUX_SPEC64): Likewise.
23307         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23308         configuration option.
23310 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
23312         PR target/66275
23313         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23314         to determine current function ABI.
23315         (ix86_function_value_regno_p): Ditto.
23317 2015-06-03  Martin Liska  <mliska@suse.cz>
23319         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23320         * bitmap.h (struct bitmap_usage): Likewise.
23321         * ggc-common.c (struct ggc_usage): Likewise.
23322         * mem-stats.h (struct mem_location): Likewise.
23323         (struct mem_usage): Likewise.
23324         * vec.c (struct vec_usage): Likewise.
23326 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
23328         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23329         -Bsymbolic.
23331 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
23333         * doc/plugins.texi (enum plugin_event): New event.
23334         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23335         and PLUGIN_FINISH_FUNCTION.
23336         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23337         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23339 2015-06-03  Richard Biener  <rguenther@suse.de>
23341         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23342         compute GROUP_GAP for the first element.
23343         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23344         on in-group gaps.
23346 2015-06-03  Nick Clifton  <nickc@redhat.com>
23348         * config/rl78/rl78-real.md: Add peepholes to avoid a register
23349         copy when calling a function.
23350         * config/rl78/rl78.c (need_to_save): Do not push the frame
23351         pointer in an interrupt handler prologue if it is never used.
23353 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23355         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23357 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23359         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23360         reference when cloning alias node.
23362 2015-06-03  Martin Liska  <mliska@suse.cz>
23364         * alloc-pool.h (struct pool_usage): Correct space padding.
23365         * ggc-page.c (ggc_print_statistics): Align columns in a report.
23366         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23367         * tree.c (dump_tree_statistics): Align columns in a report.
23369 2015-06-03  Martin Liska  <mliska@suse.cz>
23371         * alloc-pool.c (allocate_pool_descriptor): Remove.
23372         (struct pool_output_info): Likewise.
23373         (print_alloc_pool_statistics): Likewise.
23374         (dump_alloc_pool_statistics): Likewise.
23375         * alloc-pool.h (struct pool_usage): New struct.
23376         (pool_allocator::initialize): Change usage of memory statistics
23377         to a new interface.
23378         (pool_allocator::release): Likewise.
23379         (pool_allocator::allocate): Likewise.
23380         (pool_allocator::remove): Likewise.
23381         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23382         for a pool allocator.
23383         * mem-stats.h (struct mem_location): Add new ctor.
23384         (struct mem_usage): Add counter for number of
23385         instances.
23386         (mem_alloc_description::register_descriptor): New overload of
23387         * mem-stats.h (mem_location::to_string): New function.
23388         * bitmap.h (struct bitmap_usage): Use this new function.
23389         * ggc-common.c (struct ggc_usage): Likewise.
23390         the function.
23392 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23394         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23395         of GCC_INSN_FLAGS_H block.
23397 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23399         * explow.c (plus_constant): Update check after force_const_mem call
23400         to see if the value returned is not a NULL_RTX.
23402 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23404         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23405         remove instumentation thunks calling reachable functions.
23406         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23407         * lto/lto-partition.c (privatize_symbol_name_1): New.
23408         (privatize_symbol_name): Privatize both decl and orig_decl
23409         names for instrumented functions.
23410         * cgraph.c (cgraph_node::verify_node): Add transparent
23411         alias chain check for instrumented node.
23413 2015-06-03  Marek Polacek  <polacek@redhat.com>
23415         PR c/64223
23416         PR c/29358
23417         * tree.c (attribute_value_equal): Handle attribute format.
23418         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23420 2015-06-03  Richard Biener  <rguenther@suse.de>
23422         PR tree-optimization/63916
23423         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23424         Forward-propagate non-invariant addresses by splicing their
23425         reference ops if the result isn't going to be used by PRE.
23426         (vn_reference_lookup_3): Remove pointless assert.
23428 2015-06-03  Richard Biener  <rguenther@suse.de>
23430         PR tree-optimization/66375
23431         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23432         add to the evolution before following SSA edges.
23434 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
23436         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23437         (dump_use, dump_cand, find_induction_variables): Pass new argument
23438         to dump_iv.
23439         (record_use): Preserve the ssa name information in IV.
23441 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23443         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23444         NO_MODE_TEST.
23445         (add_mode_tests): Don't add mode tests if the predicate only
23446         accepts scalar constant integers.  Otherwise, allow the mode
23447         of "op" to be VOIDmode if the predicate does accept such integers.
23449 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
23451         PR target/66258
23452         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23453         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23454         (aarch64_secondary_reload): Likewise
23455         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23456         to !TARGET_FLOAT.
23457         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23458         Likewise.
23460 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
23461             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23463         PR target/65768
23464         * cprop.c (try_replace_reg): Check cost of constants before propagating.
23466 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23468         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23469         provide access to the IBM extended double floating point mode if
23470         long double is IEEE 128-bit floating point.
23471         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23472         point if long double is the IBM extended double type.
23474         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23475         enable adding IEEE 128-bit floating point support.
23476         (-mfloat128-software): Likewise.
23477         (-mfloat128-sw): Likewise.
23479         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23480         128-bit floating point types to occupy any register if
23481         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
23482         -mfloat128-software is enabled.
23483         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23484         support.
23485         (rs6000_option_override_internal): Add -mfloat128-* support.
23486         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23488         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23489         and float128 type nodes.
23490         (ieee128_float_type_node): Likewise.
23491         (ibm128_float_type_node): Likewise.
23493 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23495         PR target/66136
23496         * config/aarch64/geniterators.sh: Rewrite in awk.
23498 2015-06-02  Martin Liska  <mliska@suse.cz>
23500         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23501         values to avoid -Wmaybe-uninitialized errors.
23503 2015-06-02  Richard Biener  <rguenther@suse.de>
23505         PR debug/65549
23506         * dwarf2out.c (lookup_context_die): New function.
23507         (resolve_addr): Avoid forcing a full DIE for the
23508         target of a DW_TAG_GNU_call_site during late compilation.
23509         Instead create a stub DIE without a type if we have a
23510         context DIE present.
23512 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
23514         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23516 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23518         PR tree-optimization/48052
23519         * cfgloop.h (struct control_iv): New.
23520         (struct loop): New field control_ivs.
23521         * tree-ssa-loop-niter.c : Include "stor-layout.h".
23522         (number_of_iterations_lt): Set no_overflow information.
23523         (number_of_iterations_exit): Init control iv in niter struct.
23524         (record_control_iv): New.
23525         (estimate_numbers_of_iterations_loop): Call record_control_iv.
23526         (loop_exits_before_overflow): New.  Interface factored out of
23527         scev_probably_wraps_p.
23528         (scev_probably_wraps_p): Factor loop niter related code into
23529         loop_exits_before_overflow.
23530         (free_numbers_of_iterations_estimates_loop): Free control ivs.
23531         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23533 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
23535         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23536         the target doesn't belong to the current function.
23538 2015-06-02  Marek Polacek  <polacek@redhat.com>
23540         PR middle-end/66345
23541         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23542         get_maxval_strlen does not produce an INTEGER_CST.
23544 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
23546         * config/arc/constraints.md: Use lower-case names in match_code.
23547         * config/mmix/constraints.md: Likewise.
23549 2015-06-02  Richard Biener  <rguenther@suse.de>
23551         PR tree-optimization/65961
23552         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23553         check and clarify dump message.
23554         (vect_build_slp_tree): If all children are built up from scalars
23555         build up the parent from scalars instead.
23556         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23558 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23560         PR other/65366
23561         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
23562         instead of print ... .
23564 2015-06-02  Alan Modra  <amodra@gmail.com>
23566         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23567         2014-08-11 change.
23569 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23571         PR tree-optimization/52563
23572         PR tree-optimization/62173
23573         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
23574         (alloc_iv, set_iv): New parameter.
23575         (determine_biv_step): Delete.
23576         (find_bivs): Inline original determine_biv_step.  Pass new
23577         argument to set_iv.
23578         (idx_find_step): Use no_overflow information for conversion.
23579         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23580         resolve_mixers handle folded_casts.
23581         (instantiate_scev_name): Change bool parameter to bool pointer.
23582         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23583         (instantiate_array_ref, instantiate_scev_not): Ditto.
23584         (instantiate_scev_3, instantiate_scev_2): Ditto.
23585         (instantiate_scev_1, instantiate_scev_r): Ditto.
23586         (instantiate_scev_convert, ): Change parameter.  Pass argument
23587         to chrec_convert_aggressive.
23588         (instantiate_scev): Change argument.
23589         (resolve_mixers): New parameter and set it.
23590         (scev_const_prop): New argument.
23591         * tree-scalar-evolution.h (resolve_mixers): New parameter.
23592         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23593         of chrec_conert_1.
23594         (chrec_convert): New parameter.  Move definition below.
23595         (chrec_convert_aggressive): New parameter and set it.  Call
23596         convert_affine_scev.
23597         * tree-chrec.h (chrec_convert): New parameter.
23598         (chrec_convert_aggressive): Ditto.
23600 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
23602         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23603         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23604         the LHS of a no-return call if its type has variable size.
23605         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23606         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23608 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
23610         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23611         * config.in: Regenerate.
23613 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
23615         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23616         consecutive accesses within outer-loop with force_vectorize
23617         for references with zero step in inner-loop.
23619 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23621         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23622         rather than from gcc/build directory.
23624 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23626         PR target/65697
23627         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23628         for __sync memory models, emit initial loads and final barriers as
23629         appropriate.
23631 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23633         PR target/65697
23634         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23635         (aarch64_split_atomic_op): Check for __sync memory models, emit
23636         appropriate initial loads and final barriers.
23638 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23640         * Makefile.in: Fix gcov dependencies that should
23641         not point to a build folder.
23643 2015-06-01  Richard Biener  <rguenther@suse.de>
23645         Revert
23646         2015-05-29  Richard Biener  <rguenther@suse.de>
23648         PR tree-optimization/66314
23649         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23650         parameter that says which loop the new block belongs to.
23651         (ssa_create_duplicates): Blocks duplicated for the threaded
23652         path belong to the loop of the thread destination.
23654 2015-06-01  Martin Liska  <mliska@suse.cz>
23656         * sched-deps.c: Include pool-alloc.h before
23657         cselib.h header file is included.
23659 2015-06-01  Richard Biener  <rguenther@suse.de>
23661         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23662         functions.
23664 2015-06-01  Martin Liska  <mliska@suse.cz>
23666         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23667         a function local variable.
23669 2015-06-01  Martin Liska  <mliska@suse.cz>
23671         * alloc-pool.c (create_alloc_pool): Remove.
23672         (empty_alloc_pool): Likewise.
23673         (free_alloc_pool): Likewise.
23674         (free_alloc_pool_if_empty): Likewise.
23675         (pool_alloc): Likewise.
23676         (pool_free): Likewise.
23677         * alloc-pool.h: Remove old declarations.
23679 2015-06-01  Martin Liska  <mliska@suse.cz>
23681         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23682         (ira_create_object): Likewise.
23683         (ira_create_allocno): Likewise.
23684         (ira_create_live_range): Likewise.
23685         (copy_live_range): Likewise.
23686         (ira_finish_live_range): Likewise.
23687         (ira_free_allocno_costs): Likewise.
23688         (finish_allocno): Likewise.
23689         (finish_allocnos): Likewise.
23690         (initiate_prefs): Likewise.
23691         (ira_create_pref): Likewise.
23692         (finish_pref): Likewise.
23693         (finish_prefs): Likewise.
23694         (initiate_copies): Likewise.
23695         (ira_create_copy): Likewise.
23696         (finish_copy): Likewise.
23697         (finish_copies): Likewise.
23698         (finish_prefs): Likewise.
23700 2015-06-01  Martin Liska  <mliska@suse.cz>
23702         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23703         (allocate_and_init_ipcp_value): Likewise.
23704         (ipcp_lattice::add_value): Likewise.
23705         (merge_agg_lats_step): Likewise.
23706         (ipcp_driver): Likewise.
23707         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23708         (ipa_free_all_structures_after_iinln): Likewise.
23709         * ipa-prop.h: Likewise.
23711 2015-06-01  Martin Liska  <mliska@suse.cz>
23713         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23714         pool allocator.
23715         (set_hint_predicate): Likewise.
23716         (inline_summary_alloc): Likewise.
23717         (reset_inline_edge_summary): Likewise.
23718         (reset_inline_summary): Likewise.
23719         (set_cond_stmt_execution_predicate): Likewise.
23720         (set_switch_stmt_execution_predicate): Likewise.
23721         (compute_bb_predicates): Likewise.
23722         (estimate_function_body_sizes): Likewise.
23723         (inline_free_summary): Likewise.
23725 2015-06-01  Martin Liska  <mliska@suse.cz>
23727         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23728         (ipa_edge_duplication_hook): Likewise.
23729         (ipa_free_all_structures_after_ipa_cp): Likewise.
23730         (ipa_free_all_structures_after_iinln): Likewise.
23732 2015-06-01  Martin Liska  <mliska@suse.cz>
23734         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23735         (ipa_profile_generate_summary): Likewise.
23736         (ipa_profile_read_summary): Likewise.
23737         (ipa_profile): Likewise.
23739 2015-06-01  Martin Liska  <mliska@suse.cz>
23741         * tree-ssa-structalias.c (new_var_info): Use new type-based
23742         pool allocator.
23743         (new_constraint): Likewise.
23744         (init_alias_vars): Likewise.
23745         (delete_points_to_sets): Likewise.
23747 2015-06-01  Martin Liska  <mliska@suse.cz>
23749         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23750         (free_strinfo): Likewise.
23751         (pass_strlen::execute): Likewise.
23753 2015-06-01  Martin Liska  <mliska@suse.cz>
23755         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23756         pool allocator.
23757         (vn_reference_insert_pieces): Likewise.
23758         (vn_phi_insert): Likewise.
23759         (visit_reference_op_call): Likewise.
23760         (copy_phi): Likewise.
23761         (copy_reference): Likewise.
23762         (process_scc): Likewise.
23763         (allocate_vn_table): Likewise.
23764         (free_vn_table): Likewise.
23766 2015-06-01  Martin Liska  <mliska@suse.cz>
23768         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23769         pool allocator.
23770         (add_repeat_to_ops_vec): Likewise.
23771         (get_ops): Likewise.
23772         (maybe_optimize_range_tests): Likewise.
23773         (init_reassoc): Likewise.
23774         (fini_reassoc): Likewise.
23776 2015-06-01  Martin Liska  <mliska@suse.cz>
23778         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23779         pool allocator.
23780         (bitmap_set_new): Likewise.
23781         (get_or_alloc_expr_for_constant): Likewise.
23782         (get_or_alloc_expr_for): Likewise.
23783         (phi_translate_1): Likewise.
23784         (compute_avail): Likewise.
23785         (init_pre): Likewise.
23786         (fini_pre): Likewise.
23788 2015-06-01  Martin Liska  <mliska@suse.cz>
23790         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23791         (delete_dep_node): Likewise.
23792         (create_deps_list): Likewise.
23793         (free_deps_list): Likewise.
23794         (sched_deps_init): Likewise.
23795         (sched_deps_finish): Likewise.
23797 2015-06-01  Martin Liska  <mliska@suse.cz>
23799         * regcprop.c (free_debug_insn_changes): Use new type-based
23800         pool allocator.
23801         (replace_oldest_value_reg): Likewise.
23802         (pass_cprop_hardreg::execute): Likewise.
23804 2015-06-01  Martin Liska  <mliska@suse.cz>
23806         * ira-build.c (initiate_cost_vectors): Use new type-based
23807         pool allocator.
23808         (ira_allocate_cost_vector): Likewise.
23809         (ira_free_cost_vector): Likewise.
23810         (finish_cost_vectors): Likewise.
23812 2015-06-01  Martin Liska  <mliska@suse.cz>
23814         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23815         pool allocator.
23816         (free_sched_pools): Likewise.
23817         * sel-sched-ir.h (_list_alloc): Likewise.
23818         (_list_remove): Likewise.
23820 2015-06-01  Martin Liska  <mliska@suse.cz>
23822         * stmt.c (add_case_node): Use new type-based pool allocator.
23823         (expand_case): Likewise.
23824         (expand_sjlj_dispatch_table): Likewise.
23826 2015-06-01  Martin Liska  <mliska@suse.cz>
23828         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23829         (free_bb): Likewise.
23830         (pass_cse_reciprocals::execute): Likewise.
23832 2015-06-01  Martin Liska  <mliska@suse.cz>
23834         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23835         (sra_deinitialize) Likewise.
23836         (create_access_1) Likewise.
23837         (build_accesses_from_assign) Likewise.
23838         (create_artificial_child_access) Likewise.
23840 2015-06-01  Martin Liska  <mliska@suse.cz>
23842         * dse.c (get_group_info):Use new type-based pool allocator.
23843         (dse_step0) Likewise.
23844         (free_store_info) Likewise.
23845         (delete_dead_store_insn) Likewise.
23846         (free_read_records) Likewise.
23847         (record_store) Likewise.
23848         (replace_read) Likewise.
23849         (check_mem_read_rtx) Likewise.
23850         (scan_insn) Likewise.
23851         (dse_step1) Likewise.
23852         (dse_step7) Likewise.
23854 2015-06-01  Martin Liska  <mliska@suse.cz>
23856         * df-scan.c (struct df_scan_problem_data):Use new type-based
23857         pool allocator.
23858         (df_scan_free_internal) Likewise.
23859         (df_scan_alloc) Likewise.
23860         (df_grow_reg_info) Likewise.
23861         (df_free_ref) Likewise.
23862         (df_insn_create_insn_record) Likewise.
23863         (df_mw_hardreg_chain_delete) Likewise.
23864         (df_insn_info_delete) Likewise.
23865         (df_free_collection_rec) Likewise.
23866         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23867         (df_sort_and_compress_mws) Likewise.
23868         (df_ref_create_structure) Likewise.
23869         (df_ref_record) Likewise.
23871 2015-06-01  Martin Liska  <mliska@suse.cz>
23873         * df-problems.c (df_chain_create):Use new type-based pool allocator.
23874         (df_chain_unlink_1) Likewise.
23875         (df_chain_unlink) Likewise.
23876         (df_chain_remove_problem) Likewise.
23877         (df_chain_alloc) Likewise.
23878         (df_chain_free) Likewise.
23879         * df.h (struct dataflow) Likewise.
23881 2015-06-01  Martin Liska  <mliska@suse.cz>
23883         * cselib.c (new_elt_list):Use new type-based pool allocator.
23884         (new_elt_loc_list) Likewise.
23885         (unchain_one_elt_list) Likewise.
23886         (unchain_one_elt_loc_list) Likewise.
23887         (unchain_one_value) Likewise.
23888         (new_cselib_val) Likewise.
23889         (cselib_init) Likewise.
23890         (cselib_finish) Likewise.
23892 2015-06-01  Martin Liska  <mliska@suse.cz>
23894         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23895         (sh_reorg) Likewise.
23897 2015-06-01  Martin Liska  <mliska@suse.cz>
23899         * cfg.c (initialize_original_copy_tables):Use new type-based
23900         pool allocator.
23901         (free_original_copy_tables) Likewise.
23902         (copy_original_table_clear) Likewise.
23903         (copy_original_table_set) Likewise.
23905 2015-06-01  Martin Liska  <mliska@suse.cz>
23907         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23908         pool allocator.
23909         (asan_mem_ref_new) Likewise.
23910         (free_mem_ref_resources) Likewise.
23912 2015-06-01  Martin Liska  <mliska@suse.cz>
23914         * var-tracking.c (variable_htab_free):Use new type-based
23915         pool allocator.
23916         (attrs_list_clear) Likewise.
23917         (attrs_list_insert) Likewise.
23918         (attrs_list_copy) Likewise.
23919         (shared_hash_unshare) Likewise.
23920         (shared_hash_destroy) Likewise.
23921         (unshare_variable) Likewise.
23922         (var_reg_delete_and_set) Likewise.
23923         (var_reg_delete) Likewise.
23924         (var_regno_delete) Likewise.
23925         (drop_overlapping_mem_locs) Likewise.
23926         (variable_union) Likewise.
23927         (insert_into_intersection) Likewise.
23928         (canonicalize_values_star) Likewise.
23929         (variable_merge_over_cur) Likewise.
23930         (dataflow_set_merge) Likewise.
23931         (remove_duplicate_values) Likewise.
23932         (variable_post_merge_new_vals) Likewise.
23933         (dataflow_set_preserve_mem_locs) Likewise.
23934         (dataflow_set_remove_mem_locs) Likewise.
23935         (variable_from_dropped) Likewise.
23936         (variable_was_changed) Likewise.
23937         (set_slot_part) Likewise.
23938         (clobber_slot_part) Likewise.
23939         (delete_slot_part) Likewise.
23940         (loc_exp_insert_dep) Likewise.
23941         (notify_dependents_of_changed_value) Likewise.
23942         (emit_notes_for_differences_1) Likewise.
23943         (vt_emit_notes) Likewise.
23944         (vt_initialize) Likewise.
23945         (vt_finalize) Likewise.
23947 2015-06-01  Martin Liska  <mliska@suse.cz>
23949         * ira-color.c (init_update_cost_records):Use new type-based
23950         pool allocator.
23951         (get_update_cost_record) Likewise.
23952         (free_update_cost_record_list) Likewise.
23953         (finish_update_cost_records) Likewise.
23954         (initiate_cost_update) Likewise.
23956 2015-06-01  Martin Liska  <mliska@suse.cz>
23958         * lra.c (init_insn_regs): Use new type-based pool allocator.
23959         (new_insn_reg) Likewise.
23960         (free_insn_reg) Likewise.
23961         (free_insn_regs) Likewise.
23962         (finish_insn_regs) Likewise.
23963         (init_insn_recog_data) Likewise.
23964         (init_reg_info) Likewise.
23965         (finish_reg_info) Likewise.
23966         (lra_free_copies) Likewise.
23967         (lra_create_copy) Likewise.
23968         (invalidate_insn_data_regno_info) Likewise.
23970 2015-06-01  Martin Liska  <mliska@suse.cz>
23972         * lra-lives.c (free_live_range): Use new type-based pool allocator.
23973         (free_live_range_list) Likewise.
23974         (create_live_range) Likewise.
23975         (copy_live_range) Likewise.
23976         (lra_merge_live_ranges) Likewise.
23977         (remove_some_program_points_and_update_live_ranges) Likewise.
23978         (lra_live_ranges_init) Likewise.
23979         (lra_live_ranges_finish) Likewise.
23981 2015-06-01  Martin Liska  <mliska@suse.cz>
23983         * et-forest.c (et_new_occ): Use new type-based pool allocator.
23984         (et_new_tree): Likewise.
23985         (et_free_tree): Likewise.
23986         (et_free_tree_force): Likewise.
23987         (et_free_pools): Likewise.
23988         (et_split): Likewise.
23990 2015-06-01  Martin Liska  <mliska@suse.cz>
23992         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23993         to header file.
23994         * alloc-pool.h (pool_allocator::pool_allocator): New function.
23995         (pool_allocator::release): Likewise.
23996         (inline pool_allocator::release_if_empty): Likewise.
23997         (inline pool_allocator::~pool_allocator): Likewise.
23998         (pool_allocator::allocate): Likewise.
23999         (pool_allocator::remove): Likewise.
24001 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24003         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24004         in comment.
24006 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24008         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24009         to fusible_ops.
24010         * config/arm/arm.c (arm_print_tune_info): Likewise.
24011         (arm_macro_fusion_p): Likewise.
24012         (arm_macro_fusion_pair_p): Likewise.
24014 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24016         * config/aarch64/aarch64-protos.h (tune_params): Rename
24017         fuseable_ops to fusible_ops.
24018         * config/aarch64/aarch64.c (generic_tunings): Rename
24019         fuseable_ops to fusible_ops.
24020         (cortexa53_tunings): Likewise.
24021         (cortexa57_tunings): Likewise.
24022         (thunderx_tunings): Likewise.
24023         (xgene1_tunings): Likewise.
24024         (aarch64_macro_fusion_p): Likewise.
24025         (aarch64_macro_fusion_pair_p): Likewise.
24027 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24029         * config/s390/driver-native.c: New file.
24030         * config/s390/x-native: New file.
24031         * config.host: Add new files for s390.
24032         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24033         and -march=native
24034         * config.gcc: Likewise.
24035         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24036         * config/s390/s390-opts.h (enum processor_type): Ditto.
24037         * config/s390/s390.c (s390_option_override): Catch unhandled
24038         PROCESSOR_NATIVE
24040 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
24042         PR target/65527
24043         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24044         redirection for instrumented calls.
24045         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24046         (append_compiler_options): Append -fcheck-pointer-bounds.
24047         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24048         (chkp_redirect_edge): New.
24049         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24050         (chkp_redirect_edge): New.
24052 2015-06-01  Richard Biener  <rguenther@suse.de>
24054         PR tree-optimization/66280
24055         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24056         def-use walking.
24058 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24060         * config/aarch64/aarch64.md
24061         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24062         logic_shift_imm.
24064 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24066         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24067         Remove obsolete kludge.
24069 2015-06-01  Richard Biener  <rguenther@suse.de>
24071         * tree-ssa-reassoc.c (get_rank): Simplify.
24073 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
24075         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24076         * configure: Regenerated.
24078 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
24080         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24081         issue (add space between string literal and macro).
24082         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24084 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
24086         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24087         implict or explicit -fPIE or -fpie.
24089 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
24091         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24093 2015-05-28  DJ Delorie  <dj@redhat.com>
24095         * expmed.c (extract_bit_field_1): Avoid clobbering a
24096         yet-to-be-used base/index register.
24098 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
24100         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24101         (alias_stats): Add num_universal.
24102         (alias_set_subset_of): Special case pointers; be ready for NULL
24103         children.
24104         (alias_sets_conflict_p): Special case pointers; be ready for NULL
24105         children.
24106         (init_alias_set_entry): Break out from ...
24107         (record_alias_subset): ... here; propagate new fields;
24108         allocate children only when really needed.
24109         (get_alias_set): Do less generous pointer globbing.
24110         (dump_alias_stats_in_alias_c): Update statistics.
24112 2015-05-30  Alan Modra  <amodra@gmail.com>
24114         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24115         correct block for use of r12.
24116         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24118 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24120         PR target/66215
24121         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24122         with -mhotpatch=.
24124 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
24126         PR tree-optimization/66142
24127         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24128         virtual phis that feed themselves.
24130 2015-05-29  Richard Biener  <rguenther@suse.de>
24132         PR tree-optimization/66314
24133         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24134         parameter that says which loop the new block belongs to.
24135         (ssa_create_duplicates): Blocks duplicated for the threaded
24136         path belong to the loop of the thread destination.
24138 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24140         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24141         to cleanup-saved-temps.
24142         * doc/sourcebuild.texi (Clean up generated test files): Expand
24143         introduction.
24144         (dg-keep-saved-temps): Document new proc.
24145         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24146         cleanup-saved-temps): Remove.
24148 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
24150         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24151         gcc_AC_CHECK_DECLS.
24152         * configure: Regenerate.
24154 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24156         * config/nios2/linux.h (CPP_SPEC): Define.
24158 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24160         * config/microblaze/linux.h (CPP_SPEC): Define.
24162 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24164         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24165         -pthread is specified.
24167 2015-05-28  Richard Biener  <rguenther@suse.de>
24169         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24170         (vect_fixup_scalar_cycles_with_patterns): Likewise.
24171         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24172         after pattern recog.
24173         (vect_create_epilog_for_reduction): Properly handle reductions
24174         with patterns.
24175         (vectorizable_reduction): Likewise.
24176         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24177         reduction chains.
24178         (vect_get_constant_vectors): Create the correct number of
24179         initial values for reductions.
24180         (vect_schedule_slp_instance): Handle reduction chains that are
24181         type changing properly.
24182         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24184 2015-05-28  Richard Biener  <rguenther@suse.de>
24186         PR tree-optimization/66142
24187         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24188         values better in memcpy destination handling.  Handle non-aliasing
24189         we discover here.
24191 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
24193         PR target/63810
24194         * config/darwin-c.c (version_components): New global enum.
24195         (parse_version, version_as_legacy_macro)
24196         (version_as_modern_macro, macosx_version_as_macro): New functions.
24197         (version_as_macro): Remove.
24198         (darwin_cpp_builtins): Use new function.
24200 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
24202         * builtins.c (expand_builtin_acc_on_device): Mark parameters
24203         with ATTRIBUTE_UNUSED.
24205 2015-05-28  Julian Brown  <julian@codesourcery.com>
24207         PR libgomp/65742
24209         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24210         sequence for !ACCEL_COMPILER.
24212 2015-05-28  Nick Clifton  <nickc@redhat.com>
24214         * config/rx/rx.c (push_regs): New function.  Extracts code from...
24215         (rx_expand_prologue): ... here.  Use push_regs to push even small
24216         spans of registers.
24217         (pop_regs): New function.
24218         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
24219         registers.
24221 2015-05-28  Richard Biener  <rguenther@suse.de>
24223         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24224         member.
24225         (SLP_INSTANCE_BODY_COST_VEC): Remove.
24226         (vect_update_slp_costs_according_to_vf): Likewise.
24227         (vect_slp_analyze_operations): Update prototype.
24228         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24229         vect_update_slp_costs_according_to_vf, adjust.
24230         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24231         (vect_analyze_slp_cost_1): Likewise.
24232         (vect_analyze_slp_cost): Likewise.  Properly deal with
24233         widening reduction ops.  Commit body costs.
24234         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
24235         cost for loops from here.
24236         (vect_slp_analyze_operations): But do it from here when
24237         the vectorization factor is known and stmts are analyzed.
24238         (vect_bb_vectorization_profitable_p): Simplify.
24239         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24240         (vect_update_slp_costs_according_to_vf): Remove.
24242 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
24243             H.J. Lu  <hongjiu.lu@intel.com>
24245         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24246         (BUILD_CFLAGS): Likewise.
24247         (BUILD_CXXFLAGS): Likewise.
24248         (LINKER): Add @NO_PIE_FLAG@.
24249         (BUILD_LDFLAGS): Likewise.
24250         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24251         --enable-default-pie.
24252         * common.opt (fPIE): Initialize to -1.
24253         (fpie): Likewise.
24254         (no-pie): New option.
24255         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24256         * configure.ac: Add --enable-default-pie.
24257         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
24258         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
24259         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
24260         * gcc.c (NO_PIE_SPEC): New.
24261         (PIE_SPEC): Likewise.
24262         (NO_FPIE1_SPEC): Likewise.
24263         (FPIE1_SPEC): Likewise.
24264         (NO_FPIE2_SPEC): Likewise.
24265         (FPIE2_SPEC): Likewise.
24266         (NO_FPIE2_SPEC): Likewise.
24267         (FPIE_SPEC): Likewise.
24268         (NO_FPIE_SPEC): Likewise.
24269         (NO_FPIC1_SPEC): Likewise.
24270         (FPIC1_SPEC): Likewise.
24271         (NO_FPIC2_SPEC): Likewise.
24272         (FPIC2_SPEC): Likewise.
24273         (NO_FPIC2_SPEC): Likewise.
24274         (FPIC_SPEC): Likewise.
24275         (NO_FPIC_SPEC): Likewise.
24276         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24277         (FPIE1_OR_FPIC1_SPEC): Likewise.
24278         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24279         (FPIE2_OR_FPIC2_SPEC): Likewise.
24280         (NO_FPIE_AND_FPIC_SPEC): Likewise.
24281         (FPIE_OR_FPIC_SPEC): Likewise.
24282         (LD_PIE_SPEC): Likewise.
24283         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
24284         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24285         * config/darwin.h (PIE_SPEC): Renamed to ...
24286         (DARWIN_PIE_SPEC): This.
24287         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24288         * config/darwin9.h (PIE_SPEC): Renamed to ...
24289         (DARWIN_PIE_SPEC): This.
24290         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24291         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24292         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24293         FPIE2_OR_FPIC2_SPEC.
24294         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24295         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24296         * config/sol2.h (ASM_PIC_SPEC): Likewise.
24297         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24298         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24299         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24300         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24301         * config/m32r/m32r.h (ASM_SPEC): Likewise.
24302         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24303         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24304         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24305         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24306         * config/sparc/linux.h (ASM_SPEC): Likewise.
24307         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24308         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24309         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24310         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24311         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24312         * config/sparc/sparc.h (ASM_SPEC): Likewise.
24313         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24314         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24315         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24316         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24317         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24318         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24319         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24320         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24321         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24322         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24323         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24324         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24325         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24326         * config/vax/linux.h (ASM_SPEC): Likewise.
24327         * doc/install.texi: Document --enable-default-pie.
24328         * doc/invoke.texi: Document -no-pie.
24329         * config.in: Regenerated.
24330         * configure: Likewise.
24332 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24334         PR rtl-optimization/66168
24335         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24336         can_move_invariant_reg.
24338 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
24340         PR target/66148
24341         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24342         REG_EQUAL note when doing insert.
24344         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24345         instead of "%d" for 'o' operand.
24347 2015-05-27  Nathan Sidwell  <nathan@acm.org>
24349         PR c++/66270
24350         * tree.c (build_pointer_type_for_mode): Canonical type does not
24351         inherit can_alias_all.
24352         (build_reference_type_for_mode): Likewise.
24354 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24356         * expr.h (array_at_struct_end_p): Move to...
24357         (array_ref_element_size): Likewise.
24358         (component_ref_field_offset): Likewise.
24359         * tree.h (array_ref_element_size): ...here.
24360         (array_at_struct_end_p): Likewise.
24361         (component_ref_field_offset): Likewise.
24362         * expr.c (array_ref_element_size): Move to...
24363         (array_ref_low_bound): Likewise.
24364         (array_at_struct_end_p): Likewise.
24365         (array_ref_up_bound): Likewise.
24366         (component_ref_field_offset): Likewise.
24367         * tree.c (array_ref_element_size): ...here.
24368         (array_ref_low_bound): Likewise.
24369         (array_ref_up_bound): Likewise.
24370         (array_at_struct_end_p): Likewise.
24371         (component_ref_field_offset): Likewise.
24373 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24374             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24376         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24378 2015-05-27  Jason Merrill  <jason@redhat.com>
24380         PR bootstrap/66304
24381         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24382         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24383         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24385 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
24387         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24388         is true.
24390         * statistics.c (statistics_fini_pass): Print pass name.
24392 2015-05-27  Richard Biener  <rguenther@suse.de>
24394         PR tree-optimization/66272
24395         Revert parts of
24396         2014-08-15  Richard Biener  <rguenther@suse.de>
24398         PR tree-optimization/62031
24399         * tree-data-ref.c (dr_analyze_indices): Do not set
24400         DR_UNCONSTRAINED_BASE.
24401         (dr_may_alias_p): All indirect accesses have to go the
24402         formerly DR_UNCONSTRAINED_BASE path.
24403         * tree-data-ref.h (struct indices): Remove
24404         unconstrained_base member.
24405         (DR_UNCONSTRAINED_BASE): Remove.
24407 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
24409         * dwarf2out.c: Remove block_map.
24410         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24411         (gen_lexical_block_die): Same.
24412         (dwarf2out_function_decl): Remove block_map use.
24413         (dwarf2out_c_finalize): Same.
24414         * tree-core.h (struct tree_block): Add die field.
24415         * tree.h (BLOCK_DIE): New.
24417 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24419         PR target/65358
24420         * expr.c (memory_load_overlap): New function.
24421         (emit_push_insn): When pushing partial args to the stack would
24422         clobber the register part load the overlapping part into a pseudo
24423         and put it into the hard reg after pushing.  Change return type
24424         to bool.  Add bool argument.
24425         * expr.h (emit_push_insn): Change return type to bool.
24426         Add bool argument.
24427         * calls.c (expand_call): Cancel sibcall optimization when encountering
24428         partial argument on targets with ARGS_GROW_DOWNWARD and
24429         !STACK_GROWS_DOWNWARD.
24430         (emit_library_call_value_1): Update callsite of emit_push_insn.
24431         (store_one_arg): Likewise.
24433 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24435         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24437 2015-05-27  Martin Liska  <mliska@suse.cz>
24439         * Makefile.in: Add additional dependencies related to memory report
24440         enhancement.
24441         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24442         * bitmap.c (struct bitmap_descriptor_d): Remove.
24443         (struct loc): Likewise.
24444         (struct bitmap_desc_hasher): Likewise.
24445         (bitmap_desc_hasher::hash): Likewise.
24446         (bitmap_desc_hasher::equal): Likewise.
24447         (get_bitmap_descriptor): Likewise.
24448         (bitmap_register): User new memory descriptor API.
24449         (register_overhead): Likewise.
24450         (bitmap_find_bit): Register nsearches and search_iter statistics.
24451         (struct bitmap_output_info): Remove.
24452         (print_statistics): Likewise.
24453         (dump_bitmap_statistics): Use new memory descriptor.
24454         * bitmap.h (struct bitmap_usage): New class.
24455         * genmatch.c: Extend header file inclusion.
24456         * genpreds.c: Likewise.
24457         * ggc-common.c (struct ggc_usage): New class.
24458         (struct ggc_loc_desc_hasher): Remove.
24459         (ggc_loc_desc_hasher::hash): Likewise.
24460         (ggc_loc_desc_hasher::equal): Likewise.
24461         (struct ggc_ptr_hash_entry): Likewise.
24462         (struct ptr_hash_hasher): Likewise.
24463         (ptr_hash_hasher::hash): Likewise.
24464         (ptr_hash_hasher::equal): Likewise.
24465         (make_loc_descriptor): Likewise.
24466         (ggc_prune_ptr): Likewise.
24467         (dump_ggc_loc_statistics): Use new memory descriptor.
24468         (ggc_record_overhead): Likewise.
24469         (ggc_free_overhead): Likewise.
24470         (final_cmp_statistic): Remove.
24471         (cmp_statistic): Likewise.
24472         (ggc_add_statistics): Liekwise.
24473         (ggc_prune_overhead_list): Likewise.
24474         * hash-map-traits.h: New file.
24475         * hash-map.h (struct default_hashmap_traits): Move the traits to a
24476         separate header file.
24477         * hash-set.h: Pass memory statistics info to ctor.
24478         * hash-table.c (void dump_hash_table_loc_statistics): New function.
24479         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24480         (hash_table::~hash_table): Register memory release operation.
24481         (hash_table::alloc_entries): Handle memory allocation operation.
24482         (hash_table::expand): Likewise.
24483         * inchash.c (iterative_hash_hashval_t): Move implementation to header
24484         file.
24485         (iterative_hash_host_wide_int): Likewise.
24486         * inchash.h (class hash): Likewise.
24487         * mem-stats-traits.h: New file.
24488         * mem-stats.h: New file.
24489         (mem_location): Add new class.
24490         (mem_usage): Likewise.
24491         (mem_alloc_description): Likewise.
24492         * sese.c: Add new header file inclusision.
24493         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24494         and hash_set.
24495         * tree-sra.c: Add new header file inclusision.
24496         * vec.c (struct vec_descriptor): Remove.
24497         (hash_descriptor): Likewise.
24498         (struct vec_usage): Likewise.
24499         (struct ptr_hash_entry): Likewise.
24500         (hash_ptr): Likewise.
24501         (eq_ptr): Likewise.
24502         (vec_prefix::register_overhead): Use new memory descriptor API.
24503         (vec_prefix::release_overhead): Likewise.
24504         (add_statistics): Remove.
24505         (dump_vec_loc_statistics): Use new memory descriptor API.
24506         * vec.h (struct vec_prefix): Likewise.
24507         (va_heap::reserve): Likewise.
24508         (va_heap::release): Likewise.
24509         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24511 2015-05-27  Richard Biener  <rguenther@suse.de>
24513         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24514         earlier and remove ??? comment.
24515         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24516         and got called from loop analysis bail out.  Always pass the SLP
24517         node to the vectorizable_* functions.
24518         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24519         the premature SLP check here.
24520         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24521         detected SLP stmts.
24522         (vect_detect_hybrid_slp_1): Likewise.
24524 2015-05-26  Jeff Law  <law@redhat.com>
24526         * combine.c (find_split_point): Verify that the shift count is a
24527         constant when choosing (plus (ashift ...)) as a split point.
24529         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24530         No functional changes.
24532 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
24534         * ipa-polymorphic-call.c
24535         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24536         case when call target is already known.
24538 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
24540         PR target/65979
24541         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24542         take into account the case that operands[1] and operands[2]
24543         are the same register.
24545 2015-05-26  Michael Matz  <matz@suse.de>
24547         PR middle-end/66251
24549         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24550         stores.
24551         (vect_create_vectorized_demotion_stmts): Always set
24552         STMT_VINFO_VEC_STMT, also with SLP.
24553         (vectorizable_store): Handle strided group stores.
24555 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24557         PR target/66049
24558         * config/aarch64/aarch64.md
24559         (*adds_shift_imm_<mode>):  New pattern.
24560         (*subs_shift_imm_<mode>):  Likewise.
24561         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
24562         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24563         (*add_uxt<mode>_shift2): Likewise.
24564         (*add_uxtsi_shift2_uxtw): Likewise.
24565         (*sub_uxt<mode>_shift2): Likewise.
24566         (*sub_uxtsi_shift2_uxtw): Likewise.
24568 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
24570         * config/rs6000/constraints.md (Y, U): Use match_test.
24572 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24574         PR target/52144
24575         * config/arm/arm.c (arm_option_check_internal)
24576         (arm_option_params_internal): Check opts->target_flags to set macros.
24577         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24578         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24579         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24580         (builtin_define): Replaced with def_or_undef_macro.
24581         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24582         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24583         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24584         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24585         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24586         (TARGET_ARM_FEATURE_LDREX_P)
24587         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24588         * config/arm/arm-c.c (def_or_undef_macro): New function.
24589         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24591 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24593         * c-common.h (builtin_define_with_int_value)
24594         (builtin_define_type_sizeof): Declare.
24595         * c-cppbuiltin.c (builtin_define_with_int_value)
24596         (builtin_define_type_sizeof): Externalize.
24597         (builtin_define_std): Cleanup declaration.
24598         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24599         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24600         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24601         (builtin_define, builtin_assert): New macros.
24603 2015-05-26  Richard Biener  <rguenther@suse.de>
24605         PR tree-optimization/66142
24606         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24607         MEM_REFs for the same base address.
24609 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24611         PR ipa/66181
24612         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24614 2015-05-26  Jason Merrill  <jason@redhat.com>
24616         * configure.ac: Set CXXFLAGS for ISL test.
24617         * configure: Regenerate.
24619         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
24620         strstr and basename.
24621         * configure: Regenerate.
24623 2015-05-26  Richard Biener  <rguenther@suse.de>
24625         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24626         X % C -> X & (C - 1) for C being a power-of two to ...
24627         * match.pd: ... patterns.
24629 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
24631         * match.pd (swapped_tcc_comparison): New operator list.
24632         (-A CMP -B): New simplification.
24633         * fold-const.c (fold_comparison): Remove corresponding code.
24635 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24637         * caller-save.c (init_caller_save): Base temporary register numbers
24638         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24639         * cfgloopanal.c (init_set_costs): Likewise.
24640         * dojump.c (prefer_and_bit_test): Likewise.
24641         * expr.c (init_expr_target): Likewise.
24642         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24643         * lower-subreg.c (init_lower_subreg): Likewise.
24644         * postreload.c (reload_cse_regs_1): Likewise.
24646 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24648         * gensupport.h (compute_test_codes): Declare.
24649         * gensupport.c (compute_predicate_codes): Rename to...
24650         (compute_test_codes): ...this.  Generalize error message.
24651         (process_define_predicate): Update accordingly.
24652         * genpreds.c (compute_maybe_allows): Delete.
24653         (add_constraint): Use compute_test_codes to determine whether
24654         something can accept a SUBREG, REG or MEM.
24656 2015-05-26  Torvald Riegel  <triegel@redhat.com>
24658         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24659         'memory model' to align with C++11; fix description of memory orders;
24660         fix a few typos.
24662 2015-05-26  Richard Biener  <rguenther@suse.de>
24664         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24665         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
24666         detect whether we apply SLP.  Remove call to
24667         vect_update_slp_costs_according_to_vf.
24668         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24669         vect_update_slp_costs_according_to_vf from here.  Dispatch
24670         to vect_slp_analyze_operations to analyze SLP stmts.
24671         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24672         unused bb_vec_info parameter, adjust assert.
24673         (vect_slp_analyze_operations): Pass in the slp instance tree
24674         instead of bb_vec_info.
24675         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24676         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24678 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
24680         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24681         Q_REGS.  Expand comment.
24682         (REG_CLASS_NAMES): Ditto.
24683         (REG_CLASS_CONTENTS): Ditto.
24685 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
24687         PR target/66274
24688         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24689         when LEGACY_INT_REGNO_P is processed.
24691 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
24693         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24695 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
24697         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24698         register if not marked dead/unused, before return.
24700 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24702         PR lto/66180
24703         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24704         is set; check for assembler name at LTO time.
24705         (type_in_anonymous_namespace): Remove hacks, check that all
24706         anonymous types are called "<anon>"
24707         (odr_type_p): Simplify; add check for "<anon>"
24708         (odr_subtypes_equivalent): Add odr_type_p check.
24709         * tree.c (need_assembler_name_p): Even anonymous namespace needs
24710         assembler name.
24712 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24714         * ipa-utils.h (method_class_type): Remove.
24715         * cgraphunit.c (walk_polymorphic_call_targets): Use
24716         TYPE_METHOD_BASETYPE.
24717         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24718         on main variants only.
24719         (method_class_type): Remove.
24720         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24721         (build_type_inheritance_graph): Likewise.
24722         * ipa-icf.c (sem_function::equals_wpa): Likewise.
24723         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24724         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24726 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24728         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24729         is_typedef_decl, typedef_variant_p): Constify.
24730         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24731         is_typedef_decl, typedef_variant_p): Constify.
24733 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24735         * defaults.h (gen_tablejump): New function.
24736         (HAVE_tablejump): Add default value.
24737         * expr.c: Adjust.
24738         * stmt.c: Likewise.
24740 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24742         * defaults.h (gen_store_multiple): New function.
24743         (HAVE_store_multiple): Add default value.
24744         * expr.c (move_block_from_reg): Adjust.
24746 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24748         * defaults.h (gen_load_multiple): New function.
24749         (HAVE_load_multiple): Add default value.
24750         * expr.c (move_block_to_reg): Adjust.
24752 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24754         * defaults.h (gen_mem_signal_fence): New function.
24755         (HAVE_mem_signal_fence): Add default value.
24756         * optabs.c: Adjust.
24758 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24760         * defaults.h (gen_memory_barrier): New function.
24761         (HAVE_memory_barrier): Add default value.
24762         * optabs.c: Adjust.
24764 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24766         * defaults.h (gen_mem_thread_fence): New function.
24767         (HAVE_mem_thread_fence): Add default definition.
24768         * optabs.c: Adjust.
24770 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24772         * combine.c (find_split_point): Check the value of HAVE_lo_sum
24773         instead of if it is defined.
24774         (combine_simplify_rtx): Likewise.
24775         * lra-constraints.c (process_address_1): Likewise.
24776         * config/darwin.c: Adjust.
24777         * genconfig.c (main): Always define HAVE_lo_sum.
24779 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24781         * genmatch.c (parser::parse_operation): Reject expanding
24782         operator-list inside 'for'.
24784 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24786         * genmatch.c (parser::parse_for): Reject iterator if used as
24787         operator-list.
24789 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24791         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24792         after end of id-list.
24794 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24796         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24797         we do not try to compute canonical type for type that does not need
24798         alias set.
24799         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24800         FUNCITON_TYPE.
24801         * tree.h (type_with_alias_set_p): New.
24803 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24805         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
24806         function attributes.
24807         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24809 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
24811         * Makefile.in (check_gcc_parallelize): Delete.
24812         (lang_checks_parallelized): Update comment.
24814 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
24816         PR rtl-optimization/66237
24817         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24818         location of an "as_a" cast.
24820 2015-05-22  Jeff Law  <law@redhat.com>
24822         * config/pa/pa.md (non-canonical shift-add insns): Remove.
24823         (peepholes with non-canonical RTL sources): Remove.
24824         (peepholes for indexed stores of FP regs in integer modes): Match and
24825         generate canonical RTL.
24827 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24829         PR tree-optimization/63387
24830         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24831         ((x ord x) & (y ord y) -> (x ord y),
24832         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24833         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24834         vectors like scalars.
24836 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24838         * convert.c (convert_to_integer, convert_to_vector): Include the
24839         types in the error message.
24841 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24843         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24844         simplifications.
24846 2015-05-22  Jeff Law  <law@redhat.com>
24848         * config/pa/pa.md (integer_indexed_store splitters): Use
24849         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
24850         insns -- adjusting the constant 2nd operand accordingly.
24852         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24853         (plus (ashift X log2) Y) if it is a split point.
24855         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24856         out of hppa_legitimize_address to handle both forms of a multiply
24857         by 2, 4 or 8.
24858         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24859         Always generate the ASHIFT variant as the result is not directly
24860         used in a MEM.  Update comments and refactor slightly to improve
24861         readability.
24863 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24865         PR target/65491
24866         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24867         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
24868         (aarch64_composite_type_p): Return false if given type and mode are
24869         for a short vector.
24871 2015-05-22  Richard Biener  <rguenther@suse.de>
24873         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24874         member.
24875         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24876         patterns when determining whether SLP is pure.
24877         (vect_is_slp_reduction): Remove check for pattern stmts.
24878         (vect_is_simple_reduction_1): Remove dead code.
24879         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24880         (vect_get_and_check_slp_defs): Pass in the stmt number.
24881         Allow the first def in a reduction to be not a pattern stmt when
24882         the rest of the stmts def are patterns.
24883         (vect_build_slp_tree_1): Allow tcc_expression codes like
24884         SAD_EXPR and DOT_PROD_EXPR.
24885         (vect_build_slp_tree): Adjust.
24886         (vect_analyze_slp): Refactor and move BB vect error message ...
24887         (vect_slp_analyze_bb_1): ... here.
24889 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
24891         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24892         for CSWTCH temporary.
24894 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24896         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24897         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
24898         unknown unspecs.
24900 2015-05-22  Richard Biener  <rguenther@suse.de>
24902         PR tree-optimization/66251
24903         * tree-vect-stmts.c (vectorizable_conversion): Properly
24904         set STMT_VINFO_VEC_STMT even for the SLP case.
24906 2015-05-22  Marek Polacek  <polacek@redhat.com>
24908         * doc/extend.texi: Use @pxref instead of @xref.
24910 2015-05-22  hiraditya  <hiraditya@msn.com>
24912         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24913         redundant if.
24915 2015-05-22  Richard Biener  <rguenther@suse.de>
24917         PR tree-optimization/65701
24918         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24919         Move peeling cost models into one place.  Peel for alignment
24920         for single loads only if an aligned load is cheaper than
24921         an unaligned load.
24923 2015-05-22  Marek Polacek  <polacek@redhat.com>
24925         PR c/47043
24926         * doc/extend.texi (Enumerator Attributes): New section.
24927         Document syntax of enumerator attributes.
24929 2015-05-22  Richard Biener  <rguenther@suse.de>
24931         * tree-vect-loop.c (get_reduction_op): New function.
24932         (vect_model_reduction_cost): Use it, add reduc_index parameter.
24933         Make ready for BB reductions.
24934         (vect_create_epilog_for_reduction): Use get_reduction_op.
24935         (vectorizable_reduction): Init reduc_index to a valid value.
24936         Adjust vect_model_reduction_cost call.
24937         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24938         operand for reduction defaults.  Add SAD_EXPR support.
24939         Assert we have a neutral op for SLP reductions.
24940         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24941         walking pattern stmt ops only recurse to SSA names.
24943 2015-05-22  Richard Biener  <rguenther@suse.de>
24945         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24946         assert with guard, remove check on detected reduction.
24947         (vect_recog_sad_pattern): Likewise.
24948         (vect_recog_widen_sum_pattern): Likewise.
24950 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24952         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24953         __always_inline__ attribute.
24954         (vaesdq_u8): Likewise.
24955         (vaesmcq_u8): Likewise.
24956         (vaesimcq_u8): Likewise.
24957         (vsha1cq_u32): Likewise.
24958         (vsha1mq_u32): Likewise.
24959         (vsha1pq_u32): Likewise.
24960         (vsha1h_u32): Likewise.
24961         (vsha1su0q_u32): Likewise.
24962         (vsha1su1q_u32): Likewise.
24963         (vsha256hq_u32): Likewise.
24964         (vsha256h2q_u32): Likewise.
24965         (vsha256su0q_u32): Likewise.
24966         (vsha256su1q_u32): Likewise.
24967         (vmull_p64): Likewise.
24968         (vmull_high_p64): Likewise.
24970 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24972         * final.c (final_scan_insn): Don't check HAVE_peephole with the
24973         preprocessor.
24974         * output.h: Likewise.
24975         * genconfig.c (main): Alwways define HAVE_peephole.
24976         * genpeep.c: Don't emit checks of HAVE_peephole.
24978 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24980         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24981         check HAVE_conditional_move with the preprocessor.
24983 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24985         * genconfig.c (main): Always define HAVE_conditional_move.
24986         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24987         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24988         is defined.
24990 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24992         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24993         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24994         and FRAME_POINTER_REGNUM with the preprocessor.
24996 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24998         * defaults.h: Add default for STACK_PUSH_CODE.
24999         * expr.c: Don't redefine STACK_PUSH_CODE.
25000         * recog.c: Likewise.
25002 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25004         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25005         sched-deps.c: Use if instead of preprocessor checks with
25006         STACK_GROWS_DOWNWARD.
25008 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25010         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25011         is defined.
25012         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25013         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25014         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25015         * doc/tm.texi: Regenerate.
25017 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
25019         PR target/66232
25020         * config/i386/constraints.md (Bg): New constraint for GOT memory
25021         operand.
25022         * config/i386/i386.md (*call_got_x32): New pattern.
25023         (*call_value_got_x32): Likewise.
25024         * config/i386/predicates.md (GOT_memory_operand): New predicate.
25026 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
25028         PR tree-optimization/66233
25029         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25030         Simplify.
25032 2015-05-21  Jeff Law  <law@redhat.com>
25034         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25035         than MULT for shadd sequences.
25037 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
25039         * alias.c (alias_stats): New static var.
25040         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25041         (dump_alias_stats_in_alias_c): New function.
25042         * alias.h (dump_alias_stats_in_alias_c): Declare.
25043         * tree-ssa-alias.c (dump_alias_stats): Call it.
25045 2015-05-08  Michael Matz  <matz@suse.de>
25047         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25048         to strided_p.
25049         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25050         (STMT_VINFO_STRIDED_P): ... this.
25051         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25052         (vect_verify_datarefs_alignment): Likewise.
25053         (vect_enhance_data_refs_alignment): Likewise.
25054         (vect_analyze_data_ref_access): Likewise.
25055         (vect_analyze_data_refs): Accept strided stores.
25056         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25057         (vect_model_load_cost): Adjust for macro rename.
25058         (vectorizable_mask_load_store): Likewise.
25059         (vectorizable_load): Likewise.
25060         (vectorizable_store): Open code strided stores.
25062 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25064         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25065         Document sqrt_insn.
25067 2015-05-21  Richard Biener  <rguenther@suse.de>
25069         PR c++/66211
25070         * match.pd: Guard pattern optimzing (int)(float)int
25071         conversions to apply only on GIMPLE.
25073 2015-05-21  Jeff Law  <law@redhat.com>
25075         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25076         multiply-accumulate/shift-add insn generation.
25078 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25080         PR target/54236
25081         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25082         operands[1] are the same.
25084 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
25086         PR middle-end/66221
25087         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25088         build_distinct_type_copy to copy bounds.
25090 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
25092         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25093         Change to unsigned int.
25095 2015-05-20  Jeff Law  <law@redhat.com>
25097         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25098         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25099         (pa_shadd_constant_p): Allow constants for shadd insns rather
25100         than valid scaling constants for memory addresses.
25101         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25102         * config/pa/predicates.md (mem_shadd_operand): New predicate.
25103         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25104         (shift-add insns using ASHIFT): New patterns.
25106 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
25108         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25109         feasible.
25110         (fix_up_fall_thru_edges): Likewise.
25111         (fix_crossing_conditional_branches): Likewise. Promote jump targets
25112         from to rtx_insn to rtx_code_label where feasible.
25113         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25114         gen_move_insn (returned type changed to rtx_insn).
25115         * builtins.c (expand_errno_check): Fix arguments of
25116         do_compare_rtx_and_jump (now expects rtx_code_label).
25117         (expand_builtin_acc_on_device): Likewise.
25118         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25119         invert_jump (now exprects rtx_jump_insn).
25120         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25121         (construct_init_block): Use rtx_code_label.
25122         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25123         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25124         calling redirect_jump.
25125         (patch_jump_insn): Likewise.
25126         (redirect_branch_edge): Likewise.
25127         (force_nonfallthru_and_redirect): Likewise.
25128         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25129         when suitable.
25130         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25131         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25132         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25133         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25134         to store the value retured by gen_label_rtx.
25135         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25136         rtx_jump_insn.
25137         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25138         (split_branches): Fix calls of redirect_jump.
25139         * dojump.c (jumpifnot): Promote argument type from rtx to
25140         rtx_code_label.
25141         (jumpifnot_1): Likewise.
25142         (jumpif): Likewise.
25143         (jumpif_1): Likewise.
25144         (do_jump_1): Likewise.
25145         (do_jump): Likewise. Use rtx_code_label when feasible.
25146         (do_jump_by_parts_greater_rtx): Likewise.
25147         (do_jump_by_parts_zero_rtx): Likewise.
25148         (do_jump_by_parts_equality_rtx): Likewise.
25149         (do_compare_rtx_and_jump): Likewise.
25150         * dojump.h: Update function prototypes.
25151         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25152         returns rtx_insn).
25153         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25154         rtx_jump_insn.
25155         (emit_label_before): Likewise.
25156         (emit_jump_insn_after_noloc): Likewise.
25157         (emit_jump_insn_after_setloc): Likewise.
25158         (emit_jump_insn_after): Likewise
25159         (emit_jump_insn_before_setloc): Likewise.
25160         (emit_jump_insn_before): Likewise.
25161         (emit_label_before): Promote return type to rtx_code_label.
25162         (emit_label): Likewise.
25163         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25164         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25165         gen_move_insn.
25166         (emit_stack_restore): Likewise.
25167         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25168         (do_cmp_and_jump): Likewise.
25169         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25170         from rtx to rtx_code_label.
25171         (gen_move_insn_uncast): New function.
25172         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25173         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25174         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25175         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25176         invert_jump_1 and redirect_jump_1.
25177         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25178         do_compare_rtx_and_jump.
25179         (expand_addsub_overflow): Likewise.
25180         (expand_neg_overflow): Likewise.
25181         (expand_mul_overflow): Likewise.
25182         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25183         return value of gen_move_insn.
25184         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25185         * loop-doloop.c (add_test): Use rtx_code_label.
25186         (doloop_modify): Likewise.
25187         (doloop_optimize): Likewise.
25188         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25189         * lra-constraints.c (emit_spill_move): Remove cast of value returned
25190         by gen_move_insn.
25191         (inherit_reload_reg): Add cast when calling dump_insn_slim.
25192         (split_reg): Likewise.
25193         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25194         gen_move_insn.
25195         * optabs.c (expand_binop_directly): Remove casts of values returned by
25196         maybe_gen_insn.
25197         (expand_unop_direct): Likewise.
25198         (expand_abs): Likewise.
25199         (maybe_emit_unop_insn): Likewise.
25200         (maybe_gen_insn): Promote return type to rtx_insn.
25201         * optabs.h: Update prototype of maybe_gen_insn.
25202         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25203         redundant cast.
25204         * recog.c (struct peep2_insn_data): Promote type of insn field to
25205         rtx_insn.
25206         (peep2_reinit_state): Use NULL instead of NULL_RTX.
25207         (peep2_attempt): Remove casts of insn in peep2_insn_data.
25208         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25209         * recog.h (struct insn_gen_fn): Promote return types of function
25210         pointers and operator ().from rtx to rtx_insn.
25211         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25212         (fill_eager_delay_slots): Likewise.
25213         (relax_delay_slots): Likewise.
25214         (make_return_insns): Likewise.
25215         (dbr_schedule): Likewise.
25216         (optimize_skips): Likewise.
25217         (reorg_redirect_jump): Likewise.
25218         (fill_slots_from_thread): Likewise.
25219         * reorg.h: Update prototypes.
25220         * resource.c (find_dead_or_set_registers): Use dyn_cast to
25221         rtx_jump_insn instead of check.  Use it's jump_target method.
25222         * rtl.h (rtx_jump_insn::jump_label): Define new method.
25223         (rtx_jump_insn::jump_target): Define new method.
25224         (rtx_jump_insn::set_jump_target): Define new method.
25225         * rtlanal.c (tablejump_p): Promote type of one local variable.
25226         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25227         (sched_analyze_insn): Likewise.
25228         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25229         (print_insn): Likewise.
25230         * stmt.c (label_rtx): Promote return type to rtx_insn.
25231         (force_label_rtx): Likewise.
25232         (jump_target_rtx): Define new function.
25233         (expand_label): Use it, get rid of one cast.
25234         (expand_naked_return): Promote rtx to rtx_code_label.
25235         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25236         (expand_case): Use rtx_code_label instread of rtx where feasible.
25237         (expand_sjlj_dispatch_table): Likewise.
25238         (emit_case_nodes): Likewise.
25239         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
25240         * store-motion.c (insert_store): Make use of new return type of
25241         gen_move_insn and remove a cast.
25242         (replace_store_insn): Likewise.
25244 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
25246         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25247         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25249 2015-05-20  Jeff Law  <law@redhat.com>
25251         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25252         dispose of the jump thread path when the jump threading
25253         opportunity is cancelled.
25255 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25257         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25258         when printing the caret character.
25260 2015-05-20  Marek Polacek  <polacek@redhat.com>
25262         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25264 2015-05-20  Marek Polacek  <polacek@redhat.com>
25266         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25267         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25268         * gimple-fold.c (canonicalize_bool): Likewise.
25269         (same_bool_result_p): Likewise.
25270         * tree-if-conv.c (parse_predicate): Likewise.
25272 2015-05-20  Marek Polacek  <polacek@redhat.com>
25274         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25275         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25277 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25279         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25280         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25281         values.
25283 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
25285         * config/mips/mips.h (micromips_globals): Declare.
25287 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
25289         * timevar.def (TV_INITIALIZE_RTL): New.
25290         * toplev.c (initialize_rtl): Use an auto_timevar to account this
25291         function's time to TV_INITIALIZE_RTL.
25293 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
25295         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25296         gimple_build_nop calls.
25297         (chkp_find_bounds_for_elem): Likewise.
25298         (chkp_get_zero_bounds): Likewise.
25299         (chkp_get_none_bounds): Likewise.
25300         (chkp_get_bounds_by_definition): Likewise.
25301         (chkp_generate_extern_var_bounds): Likewise.
25302         (chkp_get_bounds_for_decl_addr): Likewise.
25303         (chkp_get_bounds_for_string_cst): Likewise.
25305 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
25307         PR tree-optimization/65447
25308         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25309         (dump_use, dump_uses): Support to dump sub use.
25310         (record_use): New parameters to support sub use.  Remove call to
25311         dump_use.
25312         (record_sub_use, record_group_use): New functions.
25313         (compute_max_addr_offset, split_all_small_groups): New functions.
25314         (group_address_uses, rewrite_use_address): New functions.
25315         (strip_offset): New declaration.
25316         (find_interesting_uses_address): Call record_group_use.
25317         (add_candidate): New assertion.
25318         (infinite_cost_p): Move definition forward.
25319         (add_costs): Check INFTY cost and return immediately.
25320         (get_computation_cost_at): Clear setup cost and dependent bitmap
25321         for sub uses.
25322         (determine_use_iv_cost_address): Compute cost for sub uses.
25323         (rewrite_use_address_1): Rename from old rewrite_use_address.
25324         (free_loop_data): Free sub uses.
25325         (tree_ssa_iv_optimize_loop): Call group_address_uses.
25327 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25328             Jim Wilson  <jim.wilson@linaro.org>
25330         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25331         new  fields loadv and storev.
25332         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25333         Initialize loadv and storev.
25334         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25335         (cortexa53_extra_costs): Likewise.
25336         (cortexa57_extra_costs): Likewise.
25337         (xgene1_extra_costs): Likewise.
25338         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25339         rtx_costs.
25341 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25343         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25344          storev.
25345         (cortexa8_extra_costs): Likewise.
25346         (cortexa5_extra_costs): Likewise.
25347         (cortexa7_extra_costs): Likewise.
25348         (cortexa12_extra_costs): Likewise.
25349         (cortexa15_extra_costs): Likewise.
25350         (v7m_extra_costs): Likewise.
25352 2015-05-20  Jeff Law  <law@redhat.com>
25354         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25355         instead of open-coded version.  Also delete the jump thread created
25356         within this function.
25358 2015-05-20  Alan Modra  <amodra@gmail.com>
25360         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25361         stack adjusting insn.  Formatting.
25362         (rs6000_emit_prologue): Track stack adjusting insn, and use of
25363         r12.  If possible, emit first -fsplit-stack arg pointer insn
25364         before stack adjust.  Don't use r12 to save cr if split-stack.
25366 2015-05-20  Alan Modra  <amodra@gmail.com>
25368         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25369         Define.
25370         (rs6000_supports_split_stack): New function.
25371         * config/rs6000/rs6000.c (machine_function): Add
25372         split_stack_arg_pointer.
25373         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25374         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25375         rather than virtual_incoming_args_rtx.
25376         (rs6000_va_start): Likewise.
25377         (split_stack_arg_pointer_used_p): New function.
25378         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25379         (morestack_ref): New var.
25380         (gen_add3_const, rs6000_expand_split_stack_prologue,
25381         rs6000_internal_arg_pointer, rs6000_live_on_entry,
25382         rs6000_split_stack_space_check): New functions.
25383         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25384         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25385         (UNSPECV_SPLIT_STACK_RETURN): Define.
25386         (split_stack_prologue, load_split_stack_limit,
25387         load_split_stack_limit_di, load_split_stack_limit_si,
25388         split_stack_return, split_stack_space_check): New expands and insns.
25389         * config/rs6000/rs6000-protos.h
25390         (rs6000_expand_split_stack_prologue): Declare.
25391         (rs6000_split_stack_space_check): Declare.
25393 2015-05-20  Alan Modra  <amodra@gmail.com>
25395         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25396         (direct_return): Test vrsave_size rather than vrsave_mask.
25397         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
25398         (rs6000_emit_epilogue): Likewise.
25400 2015-05-20  Alan Modra  <amodra@gmail.com>
25402         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25403         when not saving registers.
25404         (debug_stack_info): Adjust to omit printing unused offsets,
25405         as before.
25406         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25407         expression.
25409 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25411         PR c++/65835
25412         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25413         value_type to const char *.
25415 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
25417         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25418         to build a biarch toolchain again.
25420 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25422         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25423         or implicit declarations.
25424         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25425         into it.
25426         (get_odr_type): Check type has linkage before adding bases.
25427         (register_odr_type): Check that type has linkage before adding it.
25428         (type_known_to_have_no_deriavations_p): Rename to ..
25429         (type_known_to_have_no_derivations_p): This one.
25430         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25431         (type_known_to_have_no_derivations_p): This one.
25432         * ipa-polymorphic-call.c
25433         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25434         type has linkage.
25436 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25438         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25439         (layout_type): Use RECORD_OR_UNION_TYPE_P.
25441 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25443         * config/s390/s390.c (s390_vector_bool_type_p): New function.
25444         (s390_invalid_binary_op): New function.
25445         (TARGET_INVALID_BINARY_OP): Define macro.
25447 2015-05-19  David Sherwood  <david.sherwood@arm.com>
25449         * loop-invariant.c (create_new_invariant): Don't calculate address cost
25450         if mode is not a scalar integer.
25451         (get_inv_cost): Increase computational cost for unused invariants.
25453 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25455         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
25456         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
25457         * config/s390/s390-builtin-types.def: New file.
25458         * config/s390/s390-builtins.def: New file.
25459         * config/s390/s390-builtins.h: New file.
25460         * config/s390/s390-c.c: New file.
25461         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25462         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25463         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25464         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25465         prototypes.
25466         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25467         Include.
25468         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25469         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25470         variable definitions.
25471         (s390_const_operand_ok): New function.
25472         (s390_expand_builtin): Rewrite.
25473         (s390_init_builtins): New function.
25474         (s390_handle_vectorbool_attribute): New function.
25475         (s390_attribute_table): Add s390_vector_bool attribute.
25476         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25477         (s390_branch_condition_mask): Generate masks for new modes.
25478         (s390_expand_vec_compare_cc): New function.
25479         (s390_mangle_type): Add mangling for vector bool types.
25480         (enum s390_builtin): Remove.
25481         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25482         efpc builtins.
25483         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25484         s390_cpu_cpp_builtins.
25485         (REGISTER_TARGET_PRAGMAS): New macro.
25486         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25487         (insn_cmp mode attribute): Add new CC modes.
25488         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25489         (lcbb): New pattern definition.
25490         * config/s390/s390intrin.h: Include vecintrin.h.
25491         * config/s390/t-s390: New file.
25492         * config/s390/vecintrin.h: New file.
25493         * config/s390/vector.md: Include vx-builtins.md.
25494         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25495         support.
25497 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25499         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25500         CCVFHE.
25501         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25502         (s390_select_ccmode): Likewise.
25503         (s390_canonicalize_comparison): Swap operands if necessary.
25504         (s390_expand_vec_compare_scalar): Expand DFmode compare using
25505         single element vector instructions.
25506         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25507         (s390_branch_condition_mask): Generate CC masks for the new modes.
25508         * config/s390/s390.md (v0, vf, vd): New mode attributes.
25509         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25510         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25511         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25512         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25513         (*extend<DSF:mode><BFP:mode>2): New insn definition.
25514         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25515         (extend<DSF:mode><BFP:mode>2): Turn into expander.
25516         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25517         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25518         (sqrt<mode>2): Add vector instruction.
25520 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25522         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25523         constraints.
25524         * config/s390/predicates.md (const0_operand, constm1_operand)
25525         (constable_operand): Accept vector operands.
25526         * config/s390/s390-modes.def: Add supported vector modes.
25527         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25528         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25529         (s390_bytemask_vector_p, s390_expand_vec_strlen)
25530         (s390_expand_vec_compare, s390_expand_vcond)
25531         (s390_expand_vec_init): Add prototypes.
25532         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25533         (s390_vector_mode_supported_p): New function.
25534         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25535         (s390_contiguous_bitmask_vector_p): New function.
25536         (s390_bytemask_vector_p): New function.
25537         (s390_split_ok_p): Vector regs don't work either.
25538         (regclass_map): Add VEC_REGS.
25539         (s390_legitimate_constant_p): Handle vector constants.
25540         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25541         (legitimate_reload_vector_constant_p): New function.
25542         (s390_preferred_reload_class): Handle CONST_VECTOR.
25543         (s390_reload_symref_address):  Likewise.
25544         (s390_secondary_reload): Vector memory instructions only support
25545         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
25546         (s390_emit_ccraw_jump): New function.
25547         (s390_expand_vec_strlen): New function.
25548         (s390_expand_vec_compare): New function.
25549         (s390_expand_vcond): New function.
25550         (s390_expand_vec_init): New function.
25551         (s390_dwarf_frame_reg_mode): New function.
25552         (print_operand): Handle addresses with 'O' and 'R' constraints.
25553         (NR_C_MODES, constant_modes): Add vector modes.
25554         (s390_output_pool_entry): Handle vector constants.
25555         (s390_hard_regno_mode_ok): Handle vector registers.
25556         (s390_class_max_nregs): Likewise.
25557         (s390_cannot_change_mode_class): New function.
25558         (s390_invalid_arg_for_unprototyped_fn): New function.
25559         (s390_function_arg_vector): New function.
25560         (s390_function_arg_float): Remove size variable.
25561         (s390_pass_by_reference): Handle vector arguments.
25562         (s390_function_arg_advance): Likewise.
25563         (s390_function_arg): Likewise.
25564         (s390_return_in_memory): Vector values are returned in a VR if
25565         possible.
25566         (s390_function_and_libcall_value): Handle vector arguments.
25567         (s390_gimplify_va_arg): Likewise.
25568         (s390_call_saved_register_used): Consider the arguments named.
25569         (s390_conditional_register_usage): Disable v16-v31 for non-vec
25570         targets.
25571         (s390_preferred_simd_mode): New function.
25572         (s390_support_vector_misalignment): New function.
25573         (s390_vector_alignment): New function.
25574         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25575         (TARGET_VECTOR_MODE_SUPPORTED_P)
25576         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25577         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25578         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25579         (TARGET_VECTOR_ALIGNMENT): Define target macro.
25580         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25581         (FIRST_PSEUDO_REGISTER): Increase value.
25582         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25583         (VECTOR_REG_P): Define macros.
25584         (FIXED_REGISTERS, CALL_USED_REGISTERS)
25585         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25586         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25587         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25588         Add vector registers.
25589         (CANNOT_CHANGE_MODE_CLASS): Call C function.
25590         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25591         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25592         memory.
25593         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25594         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25595         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25596         (VR*_REGNUM): New constants.
25597         (ALL): New mode iterator.
25598         (INTALL): Remove mode iterator.
25599         Include vector.md.
25600         (movti): Implement TImode moves for VRs.
25601         Disable TImode splitter for VR targets.
25602         Implement splitting TImode GPR<->VR moves.
25603         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25604         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25605         reload<mode>_la_in, reload<mode>_la_out.
25606         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25607         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25608         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25609         (mov<mode> SF SD): Prefer lder, lde for loading.
25610         Add lrl and strl instructions.
25611         Add vector instructions.
25612         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25613         Call s390_expand_vec_strlen on z13.
25614         (*cc_to_int): Change predicate to nonimmediate_operand.
25615         (addti3): Rename to *addti3.  New expander.
25616         (subti3): Rename to *subti3.  New expander.
25617         * config/s390/vector.md: New file.
25619 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25621         * common/config/s390/s390-common.c (processor_flags_table): Add
25622         z13.
25623         * config.gcc: Add z13.
25624         * config/s390/s390-opts.h (enum processor_type): Add
25625         PROCESSOR_2964_Z13.
25626         * config/s390/s390.c (s390_adjust_priority): Check for
25627         PROCESSOR_2964_Z13.
25628         (s390_reorg): Likewise.
25629         (s390_sched_reorder): Likewise.
25630         (s390_sched_variable_issue): Likewise.
25631         (s390_loop_unroll_adjust): Likewise.
25632         (s390_option_override): Likewise. Default to -mvx when available.
25633         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25634         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25635         (TARGET_VX_ABI): Define macros.
25636         macros.
25637         (TARGET_DEFAULT): Add MASK_OPT_VX.
25638         * config/s390/s390.md ("cpu" attribute): Add z13.
25639         ("cpu_facility" attribute): Add vec.
25640         * config/s390/s390.opt (processor_type): Add z13.
25641         (mvx): New options.
25642         * doc/invoke.texi: Add z13 option for -march.
25644 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25646         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25647         mode check to make sure that only scalar integer values are
25648         accepted.
25650 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25652         * tree.c (verify_type_variant): Fix #undef.
25653         (gimple_canonical_types_compatible_p): Move here from lto.c
25654         (verify_type): Verify TYPE_CANONICAL compatibility.
25655         * tree.h (gimple_canonical_types_compatible_p): Declare.
25657 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
25659         PR middle-end/66199
25660         * tree.h (OMP_TEAMS_COMBINED): Define.
25661         * gimplify.c (enum gimplify_omp_var_data): Add
25662         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25663         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25664         (omp_notice_variable): Accept both ORT_TEAMS
25665         and ORT_COMBINED_TEAMS.  Don't recurse if
25666         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25667         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25668         GOVD_FIRSTPRIVATE.
25669         (omp_no_lastprivate): New function.
25670         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25671         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25672         notice_outer and set appropriate bits, otherwise make
25673         sure default(none) combined constructs won't complain.
25674         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25675         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25676         omp_no_lastprivate either remove the clause or turn it
25677         into OMP_CLAUSE_PRIVATE.
25678         (gimplify_omp_for): Fix up handling of implicit
25679         lastprivate or linear iterators.
25680         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25681         ORT_COMBINED_TEAMS.
25682         * omp-low.c (lower_omp_for_lastprivate): For combined
25683         for simd use fd.loop.n2 from the for rather than simd.
25685 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25687         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25688         instead of gen_rtx_raw_REG.
25689         (cris_expand_epilogue): Likewise.
25690         * config/microblaze/microblaze.c (microblaze_classify_address):
25691         Likewise.
25692         * config/sparc/sparc.md: Likewise.
25694 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
25696         * config/alpha/alpha.c (alpha_legitimize_reload_address)
25697         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25698         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25699         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25700         Use CASE_CONST_SCALAR_INT.
25701         (print_operand) <case 'M'>: Use mode_width_operand to check the
25702         value of the constant.
25703         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25704         * config/alpha/predicates.md (input_operand): Use general_operand
25705         instead of match_code as operand check.
25706         (symbolic_operand): Use match_code with subexpression digits.
25707         * config/alpha/constraints.md (Q): Ditto.
25709 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25711         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25713 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25715         * config/s390/s390.c (s390_secondary_reload): Fix check for
25716         load/store relative.
25718 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25720         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
25721         alternative_mask to uint64_t.
25723 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
25725         PR tree-optimization/66187
25726         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25727         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
25728         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25730 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
25732         * diagnostic.c (diagnostic_report_current_module): Strengthen
25733         local "new_map" from const line_map * to
25734         const line_map_ordinary *.
25735         * genmatch.c (error_cb): Likewise for local "map".
25736         (output_line_directive): Likewise for local "map".
25737         * input.c (expand_location_1): Likewise for local "map".
25738         Pass NULL rather than &map to
25739         linemap_unwind_to_first_non_reserved_loc, since the value is never
25740         read from there, and the value written back not read from here.
25741         (is_location_from_builtin_token): Strengthen local "map" from
25742         const line_map * to const line_map_ordinary *.
25743         (dump_location_info): Strengthen locals "map" from
25744         line_map *, one to const line_map_ordinary *, the other
25745         to const line_map_macro *.
25746         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25747         const line_map * to const line_map_macro *.
25748         (maybe_unwind_expanded_macro_loc): Add a call to
25749         linemap_check_macro when writing to the "map" field of the
25750         loc_map_pair.
25751         Introduce local const line_map_ordinary * "ord_map", using it in
25752         place of "map" in the part of the function where we know we have
25753         an ordinary map.  Strengthen local "m" from const line_map * to
25754         const line_map_ordinary *.
25756 2015-05-19  Nick Clifton  <nickc@redhat.com>
25758         PR target/66156
25759         * config/msp430/msp430.md (zero_extendhisi2): Add support for
25760         separate source and destination registers.
25762 2015-05-19  Richard Biener  <rguenther@suse.de>
25764         PR tree-optimization/66165
25765         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25766         for no load permutation.
25768         PR tree-optimization/66185
25769         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25770         when building the SLP node from scalars.
25772 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25773             Tristan Gingold  <gingold@adacore.com>
25775         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25776         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25777         (expand_stack_restore): Call record_new_stack_level.
25778         (expand_stack_save): Do not call do_pending_stack_adjust.
25779         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25780         * calls.c (expand_call): Call record_new_stack_level for alloca.
25781         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25782         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25783         (update_sjlj_context): New global function.
25784         * except.h (update_sjlj_context): Declare.
25785         * explow.c (record_new_stack_level): New global function.
25786         (allocate_dynamic_stack_space): Call record_new_stack_level.
25787         * explow.h (record_new_stack_level): Declare.
25788         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25789         * cfgrtl.c (duplicate_insn_chain): Likewise.
25791 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25793         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25794         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25795         STACK_GROWS_DOWNWARD as normal if.
25796         (expand_call): Likewise.
25798 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
25800         PR target/54236
25801         * config/sh/sh.md (*round_int_even): New insn_and_split and
25802         accompanying new unnamed split.
25804 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25806         * bitmap.c (bitmap_set_range): Handle count==1 specially.
25807         (bitmap_clear_range): Likewise.
25808         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25809         bitmap_set_range unconditionally.
25810         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25811         * df-scan.c (df_mark_reg): Likewise.
25812         * haifa-sched.c (setup_ref_regs): Likewise.
25813         * sched-rgn.c (update_live_1): Likewise.
25815 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25817         * regs.h (END_HARD_REGNO): Delete.
25818         (END_REGNO): Move to...
25819         * rtl.h: ...here.
25820         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25821         * caller-save.c (mark_set_regs): Likewise.
25822         * combine.c (move_deaths, distribute_notes): Likewise.
25823         * cse.c (invalidate, invalidate_for_call): Likewise.
25824         * df-scan.c (df_ref_record): Likewise.
25825         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25826         (record_last_reg_set_info): Likewise.
25827         * reg-stack.c (convert_regs_exit): Likewise.
25828         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25829         * resource.c (update_live_status): Likewise.
25830         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25832 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25834         * rtl.h (reg_info): Add an nregs field.
25835         (REG_NREGS): Use it.
25836         (SET_REGNO_RAW): Delete.
25837         (set_regno_raw): New function.
25838         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25839         (END_REGNO): Redefine in terms of REG_NREGS.
25840         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25841         SET_REGNO_RAW.
25842         * emit-rtl.c (set_mode_and_regno): Likewise.
25843         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25844         instead of SET_REGNO_RAW.
25846 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25848         * rtl.h (PUT_MODE_RAW): New macro.
25849         (PUT_REG_NOTE_KIND): Use it.
25850         (set_mode_and_regno): Declare.
25851         (gen_raw_REG): Change regno to "unsigned int".
25852         (gen_rtx_REG): Change "unsigned" to "unsigned int".
25853         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25854         use set_mode_and_regno to change the mode of registers.
25855         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25856         * emit-rtl.c (set_mode_and_regno): New function.
25857         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
25858         * caller-save.c (reg_save_code): Use set_mode_and_regno.
25859         * expr.c (init_expr_target): Likewise.
25860         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25861         * postreload.c (reload_cse_simplify_operands): Likewise.
25863 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25865         * caller-save.c (init_caller_save): Use word_mode and
25866         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25867         * expr.c (init_expr_target): Likewise.
25868         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25869         * postreload.c (reload_cse_regs_1): Likewise.
25871 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25873         * rtl.def (REG): Change format to "r".
25874         * rtl.h (rtunion): Remove rt_reg.
25875         (reg_info): New structure.
25876         (rtx_def): Add reg field to main union.
25877         (X0REGATTR): Delete.
25878         (REG_CHECK): New macro.
25879         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25880         * rtl.c (rtx_format): Document "r".
25881         (rtx_code_size): Handle REG specially.
25882         * gengenrtl.c (special_format): Return true for formats
25883         that include 'r'.
25884         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25885         Deal with REG_ATTRS after the field loop.
25886         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25887         * expmed.c (init_expmed): Call gen_raw_REG instead of
25888         gen_rtx_raw_REG.
25889         * expr.c (init_expr_target): Likewise.
25890         * regcprop.c (maybe_mode_change): Likewise.
25891         * varasm.c (make_decl_rtl): Likewise.
25892         * final.c (leaf_renumber_regs_insn): Return early after
25893         handling REGs.
25894         * genemit.c (gen_exp): Handle 'r' fields.
25895         * genpeep.c (match_rtx): Likewise.
25896         * gensupport.c (subst_pattern_match): Likewise.
25897         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25898         (alter_constraints, subst_dup): Likewise.
25899         * read-rtl.c (read_rtx_code): Likewise.
25900         * print-rtl.c (print_rtx): Likewise.
25901         * genrecog.c (find_operand, find_matching_operand): Likewise.
25902         (validate_pattern, match_pattern_2): Likewise.
25903         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25904         (rtx_test::regno_field): New function.
25905         (operator ==, safe_to_hoist_p, transition_parameter_type)
25906         (parameter_type_string, print_parameter_value)
25907         (print_nonbool_test, print_test): Handle new enum values.
25908         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25909         * lra-constraints.c (operands_match_p): Likewise.
25911 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25913         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25914         Change type of new_regno to unsigned int.
25915         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25916         new_regno to unsigned int.
25917         (df_ref_change_reg_with_loc): Remove old_regno parameter.
25918         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
25919         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25920         (SET_REGNO_RAW): Add space after ",".
25922 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25924         * rtl.h (REG_NREGS): New macro
25925         * alias.c (record_set): Use it.
25926         * cfgcleanup.c (mark_effect): Likewise.
25927         * combine.c (likely_spilled_retval_1): Likewise.
25928         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25929         (move_deaths, distribute_notes): Likewise.
25930         * cselib.c (cselib_record_set): Likewise.
25931         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25932         * df-scan.c (df_mark_reg): Likewise.
25933         * dse.c (look_for_hardregs): Likewise.
25934         * dwarf2out.c (reg_loc_descriptor): Likewise.
25935         (multiple_reg_loc_descriptor): Likewise.
25936         * expr.c (write_complex_part, read_complex_part): Likewise.
25937         (emit_move_complex): Likewise.
25938         * haifa-sched.c (setup_ref_regs): Likewise.
25939         * ira-lives.c (mark_hard_reg_live): Likewise.
25940         * lra.c (lra_set_insn_recog_data): Likewise.
25941         * mode-switching.c (create_pre_exit): Likewise.
25942         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25943         (reload_combine_recognize_pattern): Likewise.
25944         (reload_combine_note_use, move2add_record_mode): Likewise.
25945         (reload_cse_move2add): Likewise.
25946         * reg-stack.c (subst_stack_regs_pat): Likewise.
25947         * regcprop.c (kill_value, copy_value): Likewise.
25948         (copyprop_hardreg_forward_1): Likewise.
25949         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25950         (build_def_use): Likewise.
25951         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25952         (deps_analyze_insn): Likewise.
25953         * sched-rgn.c (check_live_1, update_live_1): Likewise.
25954         * sel-sched.c (count_occurrences_equiv): Likewise.
25955         * valtrack.c (dead_debug_insert_temp): Likewise.
25957 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25959         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25960         * dse.c (note_add_store): Likewise.
25961         * ira-lives.c (mark_hard_reg_dead): Likewise.
25962         * loop-invariant.c (mark_reg_store): Likewise.
25963         (mark_reg_death): Likewise.
25964         * postreload.c (reload_combine): Likewise.
25965         (reload_combine_note_store): Likewise.
25966         (reload_combine_note_use): Likewise.
25967         * recog.c (peep2_reg_dead_p): Likewise.
25969 2015-05-19  Alan Modra  <amodra@gmail.com>
25971         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25972         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25973         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25974         unused predicates.
25975         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25976         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
25977         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25978         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25980 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
25982         * config/mips/mips.md (JOIN_MODE): New mode iterator.
25983         (join2_load_Store<JOIN_MODE:mode>): New pattern.
25984         (join2_loadhi): Likewise.
25985         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25986         load-load and store-stores.
25987         * config/mips/mips.opt (mload-store-pairs): New option.
25988         (TARGET_LOAD_STORE_PAIRS): New macro.
25989         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25990         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25991         * config/mips/mips.c (mips_load_store_bonding_p): New function.
25993 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
25995         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25996         explicit swaps.
25997         * dojump.c (do_compare_rtx_and_jump): Likewise.
25998         * expmed.c (emit_store_flag_1): Likewise.
25999         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26000         * final.c (sprint_ul): Use std::reverse for reversing a string.
26001         * fold-const.c (extract_muldiv_1): Use std::swap.
26002         * genmodes.c (emit_mode_int_n): Likewise.
26003         * ifcvt.c (dead_or_predicable): Likewise.
26004         * ira-build.c (ira_merge_live_ranges): Likewise.
26005         (swap_allocno_copy_ends_if_necessary): Likewise.
26006         * ira.c (ira_setup_alts): Likewise.
26007         * loop-iv.c (iv_analyze_expr): Likewise.
26008         (implies_p): Likewise.
26009         (canon_condition): Likewise.
26010         * lra-constraints.c (swap_operands): Likewise.
26011         * lra-lives.c (lra_merge_live_ranges): Likewise.
26012         * omega.c (swap): Remove.
26013         (bswap): Remove.
26014         (omega_unprotect_1): Use std::swap.
26015         (omega_solve_geq): Likewise.
26016         * optabs.c (expand_binop_directly): Likewise.
26017         (expand_binop): Likewise.
26018         (emit_conditional_move): Likewise.
26019         (emit_conditional_add): Likewise.
26020         * postreload.c (reload_cse_simplify_operands): Likewise.
26021         * reg-stack.c (emit_swap_insn): Likewise.
26022         (swap_to_top): Likewise.
26023         (compare_for_stack_reg): Likewise.
26024         (subst_asm_stack_regs): Likewise.
26025         * reload.c (find_reloads): Likewise.
26026         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26027         * sel-sched.c (invoke_reorder_hooks): Likewise.
26028         (create_block_for_bookkeeping): Likewise.
26029         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26030         (lambda_matrix_right_hermite): Use std::swap.
26031         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26032         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26033         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26034         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26035         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26036         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26037         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26038         * tree-vrp.c (compare_ranges): Likewise.
26039         * var-tracking.c (add_with_sets): Likewise.
26040         (vt_find_locations): Likewise.
26042 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
26044         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26045         pie executables.
26046         (FBSD_ENDFILE_SPEC): Likewise.
26047         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26048         config/freebsd-spec.h.
26049         (ENDFILE_SPEC): Likewise.
26051 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
26052             Richard Henderson  <rth@redhat.com>
26054         PR target/57032
26055         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26056         Check for a memory location that is not a reference (using an AND)
26057         to an unaligned location here.
26058         * config/alpha/predicates.md (normal_memory_operand): Remove.
26060 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
26062         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26063         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26065 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
26067         * config/mips/mips.c (micromips_globals): New variable.
26068         (mips_set_compression_mode): Save and reinitialize target-dependent
26069         state for microMIPS.
26071 2015-05-18  Martin Liska  <mliska@suse.cz>
26073         * dbgcnt.def: Add new counter.
26074         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26076 2015-05-18  Martin Liska  <mliska@suse.cz>
26078         * dbgcnt.def: Sort counters.
26079         * opts.c (common_handle_option): Do not compile if
26080         -fdbg-cnt-list is enabled.
26082 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26084         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26085         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
26086         address operator to va_list operand.
26087         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26088         unconditionally.
26089         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26090         operand.
26091         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26092         * config/s390/s390.c (s390_gimplify_va_arg): Same.
26093         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26095 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26097         * tree-ssa-tail-merge.c: Fix whitespace.
26099 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
26101         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26102         cortex-a17, and cortex-a17.cortex-a7.
26104 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
26106         PR target/54236
26107         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26109 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
26111         PR target/66174
26112         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26113         QImode inner modes for TARGET_AVX512BW.  Force mask operand
26114         to a register for AVX512F modes.
26116 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26118         * toplev.c (emit_debug_global_declarations): Do not output debug info
26119         when doing slim LTO objects.
26121 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26123         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26124         odr_types_equivalent_p): Declare.
26125         (odr_type_p): Use gcc_checking_assert.
26126         (type_in_anonymous_namespace_p) Declare.
26127         (type_with_linkage_p): Declare.
26128         * common.opt (Wlto-type-mismatch): New warning.
26129         * ipa-devirt.c (compound_type_base): New function.
26130         (odr_or_derived_type_p): New function.
26131         (odr_types_equivalent_p): New function.
26132         (add_type_duplicate): Simplify.
26133         (type_with_linkage_p): Add hack to prevent false positives on C types
26134         (type_in_anonymous_namespace_p): Likewise.
26135         * tree.c (need_assembler_name_p): Use type_with_linkage.
26136         * tree.h (type_in_anonymous_namespace_p): Remove.
26137         * doc/invoke.texi (-Wlto-type-mismatch): Document
26139 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26141         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26142         (verify_type): Verify STRING_FLAG.
26144 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26146         PR fortran/44054
26147         * tree-pretty-print.c (percent_K_format): Replace locus pointer
26148         with accessor function.
26149         * tree-diagnostic.c (diagnostic_report_current_function): Use
26150         diagnostic_location function.
26151         (maybe_unwind_expanded_macro_loc): Likewise.
26152         (virt_loc_aware_diagnostic_finalizer): Likewise.
26153         (default_tree_printer): Replace locus pointer with accessor function.
26154         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26155         (diagnostic_set_info_translated): Initialize second location.
26156         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26157         (diagnostic_show_locus): Handle two locations. Call
26158         diagnostic_print_caret_line.
26159         (diagnostic_print_caret_line): New.
26160         (default_diagnostic_starter): Use diagnostic_location function.
26161         (diagnostic_report_diagnostic): Use diagnostic_location function.
26162         (verbatim): Do not set text.locus.
26163         * diagnostic.h (struct diagnostic_info): Remove location field.
26164         (struct diagnostic_context): Make caret_chars an array of two.
26165         (diagnostic_location): New inline.
26166         (diagnostic_expand_location): Handle two locations.
26167         (diagnostic_same_line): New inline.
26168         (diagnostic_print_caret_line): Declare.
26169         (CARET_LINE_MARGIN): New constant.
26170         * pretty-print.c (pp_printf): Do not set text.locus.
26171         (pp_verbatim): Do not set text.locus.
26172         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26173         (struct text_info): Replace locus pointer with locations
26174         array. Add accessor functions.
26176 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
26177             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26179         PR target/65768
26180         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26181         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26182          large constants in register instead of splitting them.
26184 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
26186         PR target/66140
26187         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26188         replacements in memory addresses.
26189         (get_unaligned_address): Ditto.
26191 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
26193         * config/ft32/*: New files for FT32 port.
26194         * doc/install.texi: Add FT32 information.
26195         * doc/invoke.texi: Add FT32 information.
26196         * doc/md.texi: Add FT32 information.
26197         * doc/contrib.texi: Self added.
26199 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
26201         PR tree-optimization/64454
26202         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26203         (-1 - A -> ~A): Remove unnecessary condition.
26205 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
26207         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26208         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26209         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26211 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
26213         * ipa-chkp.h (chkp_wrap_function): New.
26214         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26215         (chkp_wrap_function_name): New.
26216         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26217         to get wrapper name.
26218         * lto-cgraph.c: Include ipa-chkp.h.
26219         (input_cgraph_1): Avoid alias chain for wrappers.
26221 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
26223         PR middle-end/66134
26224         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26225         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26227 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26229         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26230         (AARCH64_FL_SLOWMUL): Delete.
26231         (AARCH64_FL_CRC): Redefine to 1<<3.
26232         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26234 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26236         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26237         casting.
26239 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26241         * config/alpha/alpha.md (extendqidi2): Use general_operand
26242         instead of some_operand for operand[1] predicate.
26243         (extendhidi2): Ditto.
26244         (cbranchdi4): Use general_operand instead of some_operand
26245         for operand[1] and operands[2] predicates.
26246         (cstoredi4): Ditto.
26247         * config/alpha/predicates.md (some_operand): Remove unused predicate.
26248         (some_ni_operand): Ditto.
26250 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26252         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26253         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
26254         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26255         low part of the constant using alpha_emit_set_const_1.
26256         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26258 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
26260         * varasm.c (output_constant_pool_1): Pass down alignment from
26261         constant pool entry's descriptor to output_constant_pool_2.
26262         (output_object_block): Add comment prior to call to
26263         output_constant_pool_1.
26265 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
26267         PR rtl-optimization/65862
26268         * target.def (ira_change_pseudo_allocno_class): New hook.
26269         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26270         value of the hook.
26271         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26272         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26273         hook.
26274         * ira-costs.c (find_costs_and_classes): Call the hook and change
26275         classes when it is necessary.
26276         * doc/tm.texi: Update.
26278 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
26280         * config/i386/i386.md (sibcall_memory): Check that register with
26281         callee address is not also used as one of the arguments, instead
26282         of checking that it is not live after the sibcall.
26283         (sibcall_pop_memory): Ditto.
26284         (sibcall_value_memory): Ditto.
26285         (sibcall_value_pop_memory): Ditto.
26287 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
26289         * generic-match-head.c (types_match): Handle non-types.
26290         * gimple-match-head.c (types_match): Likewise.
26291         * match.pd: Remove unnecessary TREE_TYPE for types_match.
26293 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
26295         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26296         (csneg3<mode>_insn): Enable expansion of pattern.
26298 2015-05-14  Nick Clifton  <nickc@redhat.com>
26300         * config/rl78/rl78.c (rl78_select_section): Select the correct
26301         default section based upon the category of the decl.
26303 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26305         PR rtl-optimization/30967
26306         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26307         destination mode for the cost of scc patterns.
26309 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26311         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26312         using SWIM248 mode iterator.
26313         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26314         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
26315         for operand[2] constraint.
26316         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26318 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26320         PR middle-end/66133
26321         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26322         make sure it is never noreturn, even when the task body does not
26323         return.
26324         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26325         right before GIMPLE_OMP_RETURN.
26326         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26327         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
26328         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26330 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26332         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26333         * tree-ssa-math-opts.c: Include params.h
26334         (pow_synth_sqrt_info): New struct.
26335         (representable_as_half_series_p): New function.
26336         (get_fn_chain): Likewise.
26337         (print_nested_fn): Likewise.
26338         (dump_fractional_sqrt_sequence): Likewise.
26339         (dump_integer_part): Likewise.
26340         (expand_pow_as_sqrts): Likewise.
26341         (gimple_expand_builtin_pow): Use above to attempt to expand
26342         pow as series of square roots.  Removed now unused variables.
26344 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26346         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26347         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26348         Remove *p0 and *p1 arguments.  Rewrite function.
26349         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26350         (alpha_split_const_mov): Update calls to alpha_extract_integer and
26351         alpha_emit_set_long_const.
26352         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26353         (alpha_output_mi_thunk_osf): Ditto.
26354         * config/alpha/alpha.md (movti): Do not check operands[1]
26355         for CONST_DOUBLE.
26357 2015-05-13  Richard Biener  <rguenther@suse.de>
26359         PR tree-optimization/66129
26360         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26361         commutative.
26362         (vect_schedule_slp_instance): Fix typo.
26364 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
26366         * common.opt (fdump-internal-locations): New option.
26367         * input.c: Include diagnostic-core.h.
26368         (get_end_location): New function.
26369         (write_digit): New function.
26370         (write_digit_row): New function.
26371         (dump_location_range): New function.
26372         (dump_labelled_location_range): New function.
26373         (dump_location_info): New function.
26374         * input.h (dump_location_info): New prototype.
26375         * toplev.c (compile_file): Handle flag_dump_locations.
26377 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
26379         * gimple-expr.h (is_gimple_constant): Reorder.
26380         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26382 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26384         * combine.c (simplify_set): When generating a CC set, if the
26385         source already is in the correct mode, do not wrap it in a
26386         compare.  Simplify the rest of that code.
26388 2015-05-13  Richard Biener  <rguenther@suse.de>
26390         PR tree-optimization/66123
26391         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26392         a taken edge.
26394 2015-05-13  Richard Biener  <rguenther@suse.de>
26396         PR middle-end/66110
26397         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26398         specially.
26399         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26401 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26403         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26404         * aclocal.m4: Regenerated with automake-1.11.6.
26406 2015-05-13  Tom de Vries  <tom@codesourcery.com>
26408         PR tree-optimization/66010
26409         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26410         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26411         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
26412         and rval based on do_deref.
26414 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26416         PR target/65103
26417         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26418         link time constants into adress expressions and therefore set
26419         their cost to 0.
26421 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26423         PR target/66112
26424         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26425         Use SWI248 iterator instead of SWI.
26426         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
26427         Use eq_attr "alternative" "0" instead of match_test in
26428         length_immediate attribute computation.
26429         (*mulvhi4, *mulvhi4_1): New define_insns.
26431         PR target/66112
26432         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26433         SIGNED to get precision of non-negative value.
26435 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26437         PR target/66048
26438         * function.c (diddle_return_value_1): Process bounds first.
26439         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26440         register.
26442 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26444         PR rtl-optimization/64616
26445         * loop-invariant.c (can_move_invariant_reg): New.
26446         (move_invariant_reg): Call above new function to decide whether
26447         instruction can just be moved, skipping creation of temporary
26448         register.
26450 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26452         PR target/pr66047.c
26453         * i386.c (ix86_function_sseregparm): Only return -1 if local function
26454         with implied regparm is called from -mno-sse function.
26455         (init_cumulative_args): Output error if ix86_function_sseregparm
26456         return -1 and SSE register would be needed.
26457         (function_arg_advance_32): Likewise.
26458         (function_arg_32): Likewise.
26459         * i386.h (ix86_args): Add decl field.
26461 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26463         PR ipa/65873
26464         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26465         inlines across optimization boundary.
26467 2015-05-12  Jason Merrill  <jason@redhat.com>
26469         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26470         string literal and macro name.
26472 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
26474         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26475         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26476         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26478 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26480         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26481         (-Wmisleading-indentation): New option.
26482         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26484 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
26486         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26487         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26488         (alpha_extract_integer): Ditto.
26489         (alpha_legitimate_constant_p): Ditto.
26490         (alpha_split_tmode_pair): Ditto.
26491         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26492         (alpha_expand_mov): Ditto.
26493         (print_operand): Remove handling of 'H' modifier.
26494         <case 'm'>: Remove CONST_DOUBLE handling.
26495         (summarize_insn): Handle CONST_WIDE_INT.
26496         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26497         (anddi3): Ditto.
26498         (movti): Handle CONST_WIDE_INT.
26499         * config/alpha/constraints.md ('H'): Remove constraint definition.
26500         ('G'): Do not match MODE_FLOAT class.
26501         * config/alpha/predicates.md (const0_operand): Also match
26502         const_wide_int.
26503         (non_add_const_operand): Ditto.
26504         (non_zero_const_operand): Ditto.
26505         (some_operand): Ditto.
26506         (input_operand): Ditto.  Handle CONST_WIDE_INT.
26507         (and_operand): Do not match const_double.
26508         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26510 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
26512         PR target/65697
26513         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26514         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26515         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26516         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26517         is_mm_seq_cst, is_mm_sync): New accessor functions.
26518         * builtins.c (expand_builtin_sync_operation,
26519         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26520         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26521         (get_memmodel,  expand_builtin_atomic_compare_exchange,
26522         expand_builtin_atomic_load, expand_builtin_atomic_store,
26523         expand_builtin_atomic_clear): Use new accessor routines.
26524         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26525         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26526         (maybe_emit_sync_lock_test_and_set): Use new accessors and
26527         MEMMODEL_SYNC_ACQUIRE.
26528         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26529         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26530         expand_atomic_store): Use new accessors.
26531         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26532         * tsan.c (instrument_builtin_call): Update check for memory model beyond
26533         final enum to use MEMMODEL_LAST.
26534         * c-family/c-common.c: Use new accessor for memmodel_base.
26535         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26536         accessors.
26537         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26538         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26539         mem_thread_fence, *dmb): Likewise.
26540         * config/alpha/alpha.c (alpha_split_compare_and_swap,
26541         alpha_split_compare_and_swap_12): Likewise.
26542         * config/arm/arm.c (arm_expand_compare_and_swap,
26543         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26544         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26545         atomic_loaddi): Likewise.
26546         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26547         Likewise.
26548         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26549         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26550         use new accessors.
26551         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26552         atomic_store<mode>, atomic_compare_and_swap<mode>,
26553         atomic_exchange<mode>): Use new accessors.
26554         * config/mips/mips.c (mips_process_sync_loop): Likewise.
26555         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26556         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26557         rs6000_post_atomic_barrier): Add new cases.
26558         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26559         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26560         (atomic_load<mode>): Add new cases and use new accessors.
26561         (store_quadpti): Add new cases.
26562         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26563         accessors.
26564         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26565         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26566         model, not 8.
26568 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26570         * ipa-devirt.c (type_with_linkage_p): New function.
26571         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26572         type has linkage.
26573         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26574         (can_be_name_hashed_p): Simplify.
26575         (hash_odr_name): Check that type has linkage before checking if it is
26576         anonymous.
26577         (types_same_for_odr): Likewise.
26578         (odr_name_hasher::equal): Likewise.
26579         (odr_subtypes_equivalent_p): Likewise.
26580         (warn_types_mismatch): Likewise.
26581         (get_odr_type): Likewise.
26582         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26583         * ipa-utils.h (odr_type_p): Move offline.
26584         * tree.c (need_assembler_name_p): Fix handling of types
26585         without linkages.
26586         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26588 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26590         * timevar.c (timevar_enable): Delete in favor of...
26591         (g_timer): New global.
26592         (struct timevar_def): Move to timevar.h inside class timer.
26593         (struct timevar_stack_def): Likewise.
26594         (timevars): Delete global in favor of field "m_timevars" within
26595         class timer in timevar.h
26596         (stack): Likewise, in favor of field "m_stack".
26597         (unused_stack_instances): Likewise, in favor of field
26598         "m_unused_stack_instances".
26599         (start_time): Likewise, in favor of field "m_start_time".
26600         (get_time): Eliminate check for timevar_enable.
26601         (timer::timer): New function, built from part of timevar_init.
26602         (timevar_init): Rewrite idempotency test from using
26603         "timevar_enable" bool to using dynamic allocation of "g_timer".
26604         Move rest of implementation into timer's constructor.
26605         (timevar_push_1): Rename to...
26606         (timer::push): ...this, adding "m_" prefixes to variables that
26607         are now fields of timer.
26608         (timevar_pop_1): Likewise, rename to...
26609         (timer::pop): ...this, and add "m_" prefixes.
26610         (timevar_start): Replace test for "timevar_enable" with one for
26611         "g_timer", and move bulk of implementation to...
26612         (timer::start): ...here, adding "m_" prefixes.
26613         (timevar_stop): Likewise, from here...
26614         (timer::stop): ...to here.
26615         (timevar_cond_start): Likewise, from here...
26616         (timer::cond_start): ...to here.
26617         (timevar_cond_stop): Likewise, from here...
26618         (timer::cond_stop): ...to here.
26619         (validate_phases): Rename to...
26620         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
26621         locals "total" and "tv" const.
26622         (timevar_print): Rename to...
26623         (timer::print): ...this, and add "m_" prefixes.  Make locals
26624         "total" and "tv" const.  Eliminate test for timevar_enable.
26625         * timevar.h (timevar_enable): Eliminate.
26626         (g_timer): New declaration.
26627         (timevar_push_1): Eliminate.
26628         (timevar_pop_1): Eliminate.
26629         (timevar_print): Eliminate.
26630         (class timer): New class.
26631         (timevar_push): Rewrite to use g_timer.
26632         (timevar_pop): Likewise.
26633         * toplev.c (toplev::~toplev): Likewise.
26635 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
26637         * arm-protos.h (arm_sched_autopref): Delete.
26638         (tune_params): Re-organize, use enums for flag values.
26639         (FUSE_OPS): New macro.
26640         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26641         (ARM_PREFETCH_BENEFICIAL): Likewise.
26642         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26643         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26644         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26645         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26646         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26647         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
26648         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26649         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26650         format.
26651         (arm_option_override, thumb2_reorg, arm_print_tune_info)
26652         (aarch_macro_fusion_pair_p): Update uses of current_tune.
26653         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26655 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
26657         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26658         "break".
26660 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
26661             Sandra Loosemore <sandra@codesourcery.com>
26663         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26664         value.
26665         (REG_CLASS_NAMES): Add "IJMP_REGS".
26666         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26667         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26668         use new "c" register constraint.
26669         * config/nios2/constraint.md (c): New register constraint
26670         corresponding to IJMP_REGS.
26672 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26674         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26675         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26676         define_splits): Delete, revamp, transmogrify into ...
26677         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26678         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26679         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26680         New.
26682 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26684         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26685         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26687 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26689         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26690         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26691         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26692         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26693         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26694         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26695         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26696         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26697         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26698         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26699         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26700         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26701         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26702         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26703         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26704         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26705         and 30 corresponding splitters): Delete.
26707 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26709         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26710         zero_extract.
26712 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26714         * combine.c (recog_for_combine_1): New function, factored out
26715         from recog_for_combine.
26716         (change_zero_ext): New function.
26717         (recog_for_combine): If recog fails, try again with the pattern
26718         modified by change_zero_ext; if that still fails, restore the
26719         pattern.
26721 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26723         * combine.c (get_undo_marker): New function.
26724         (undo_to_marker): New function, largely factored out from ...
26725         (undo_all): ... this.  Adjust.
26727 2015-05-12  Richard Biener  <rguenther@suse.de>
26729         PR tree-optimization/66101
26730         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26731         fixup if we turn a loop exit edge to a fallthru edge.
26733 2015-05-12  Richard Biener  <rguenther@suse.de>
26735         PR tree-optimization/37021
26736         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26737         (SLP_TREE_TWO_OPERATORS): New define.
26738         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26739         SLP_TREE_TWO_OPERATORS.
26740         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26741         SLP node.
26742         (vect_build_slp_tree): Adjust.
26743         (vect_analyze_slp_cost_1): Likewise.
26744         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26745         emitting two vector stmts and mixing the results.
26747 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26749         * call.c (print_z_candidates): Remove dead code.
26751 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26753         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26754         and zEC12_simple_fp.
26755         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26756         to 1.
26758 2015-05-12  Tom de Vries  <tom@codesourcery.com>
26760         PR tree-optimization/66010
26761         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26762         ifn_va_arg.
26763         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26764         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
26765         va_lists are passed, and remove corresponding handling.
26766         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
26767         do_deref argument to ifn_va_arg.
26768         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26769         ifn_va_arg.
26771 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26773         PR target/65955
26774         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26775         REG before taking its REGNO.
26777 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26779         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26780         rsp->sign_bit_copies and rsp->nonzero_bits into ...
26781         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
26782         present to get more accurate information about the number of sign bit
26783         copies and non zero bits.
26785 2015-05-12  Richard Biener  <rguenther@suse.de>
26787         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26788         do not allow unrolling.
26790 2015-05-11  Richard Henderson  <rth@redhat.com>
26792         * config/i386/i386-modes.def (CCP): New.
26793         * config/i386/i386.c (put_condition_code): Handle it.
26794         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26796 2015-05-11  Richard Henderson  <rth@redhat.com>
26798         * target.def (md_asm_clobbers): Replace with...
26799         (md_asm_adjust): this.
26800         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26801         (TARGET_MD_ASM_ADJUST): New.
26802         * tm.texi: Rebuild.
26803         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26804         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26805         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26807         * cfgexpand.c (check_operand_nalternatives): Accept vector of
26808         constraints instead of lists of outputs and inputs.
26809         (expand_asm_stmt): Save and restore input_location around the
26810         body of the function.  Move asm data into vectors instead of
26811         building tree lists.  Generate cleanup sequences as needed,
26812         rather than waiting til the end.  Use new md_asm_adjust hook.
26814         * config/vxworks.c: Include vec.h before target.h.
26815         * gimple.c: Likewise.
26816         * incpath.c: Likewise.
26817         * mode-switching.c: Likewise.
26819         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26820         (cris_md_asm_adjust): this.
26821         (TARGET_MD_ASM_CLOBBERS): Remove.
26822         (TARGET_MD_ASM_ADJUST): New.
26823         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26824         (ix86_md_asm_adjust): this.
26825         (TARGET_MD_ASM_CLOBBERS): Remove.
26826         (TARGET_MD_ASM_ADJUST): New.
26827         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26828         (mn10300_md_asm_adjust): this.
26829         (TARGET_MD_ASM_CLOBBERS): Remove.
26830         (TARGET_MD_ASM_ADJUST): New.
26831         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26832         (rs6000_md_asm_adjust): this.
26833         (TARGET_MD_ASM_CLOBBERS): Remove.
26834         (TARGET_MD_ASM_ADJUST): New.
26835         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26836         (visium_md_asm_adjust): this.
26837         (TARGET_MD_ASM_CLOBBERS): Remove.
26838         (TARGET_MD_ASM_ADJUST): New.
26840 2015-05-11  Richard Henderson  <rth@redhat.com>
26842         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26843         if noutputs is zero.
26844         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26846         * cfgexpand.c (expand_asm_operands): Merge into...
26847         (expand_asm_stmt): ... here.
26849         * cfgexpand.c (expand_asm_operands): Don't call
26850         resolve_asm_operand_names.
26851         * stmt.c (resolve_asm_operand_names): Clarify block comment.
26853 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
26855         * dwarf2out.c (gen_member_die): Sanity check that we access
26856         TYPE_MAIN_VARIANT for TYPE_METHODS.
26857         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26858         checking TYPE_METHODS.
26859         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26860         if non-null.
26861         (build_distinct_type_copy): Clear TYPE_METHODS.
26862         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26863         (verify_type): Allow TYPE_METHODS to be error_mark_node.
26864         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26866 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
26868         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26869         (emit_pattern_before_setloc): Likewise.
26871 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26873         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26874         for define_peephole2s.
26875         (get_peephole2_pattern): New function.
26876         (main): Use it.  Call validate_pattern.
26878 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
26880         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26881         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26882         (Last callee saved reg is different for AVR_TINY architecture)
26884 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26886         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26887         when looking for memory references.
26889 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26891         PR target/65753
26892         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26893         via function pointers.
26895 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26897         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26898         indirect call by forcing address into a pseudo with -fno-plt.
26899         * common.opt (flag_plt): New option.
26900         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26901         ([-fno-plt]): Document.
26903 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
26905         PR bootstrap/66105
26906         * config/rs6000/option-defaults.h: Add space between string literal
26907         and macro name.
26909 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26911         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26912         accross ARM targets.
26914 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26916         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26917         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26919 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26921         PR rtl-optimization/66076
26922         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26923         Don't grow the heap array if it is already big enough from a
26924         previous iteration.
26926 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26928         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26929         (is_called_in_ARM_mode): Remove.
26930         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26931         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26932         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26933          arm_declare_function_name.
26935 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26937         * config/arm/arm.c (arm_option_override): Reoganized and split into :
26938         (arm_option_params_internal); New function.
26939         (arm_option_check_internal): New function.
26940         (arm_option_override_internal): New function.
26941         (thumb_code, thumb1_code): Remove.
26942         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26943         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26944         (thumb_code, thumb1_code): Remove.
26945         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26947 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26949         * config/alpha/alpha.c (alpha_emit_set_const_1)
26950         (alpha_emit_set_long_const, alpha_extract_integer)
26951         (alpha_legitimate_constant_p, alpha_split_const_mov)
26952         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26953         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26954         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26955         HOST_WIDE_INT_1U.
26956         * config/alpha/predicates.md (mode_mask_operand): Do not match
26957         const_double RTX.
26958         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26959         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26960         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26961         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26962         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26964 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
26966         PR target/65780
26967         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26968         default_binds_local_p_2.
26969         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26970         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26972 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26974         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26976 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26978         Patch by Richard Biener
26979         * coverage.c (coverage_obj_init): Delay building of type variant
26980         until the type is finished.
26982 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26984         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26985         mismatch between C and C++ type; compoare correctly ARG_TYPES
26986         for non-prototypes and output correctly parameter index for METHOD_TYPE.
26987         (odr_types_equivalent_p): Fix wording of warning about attributes;
26988         it is OK to match prototype and non-prototype.
26990 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26992         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26993         TYPE_ARG_TYPES list.
26994         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26995         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26997 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26999         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27000         * tree.h (is_lang_specific): Constify.
27002 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
27004         PR tree-optimization/64454
27005         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27006         Rewrite.
27008 2015-05-08  Jason Merrill  <jason@redhat.com>
27010         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27011         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27012         config/darwin.h, config/darwin9.h, config/elfos.h,
27013         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27014         config/microblaze/microblaze.h, config/mips/mips.h,
27015         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27016         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27017         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27018         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27019         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27020         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27021         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27022         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27023         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27024         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27025         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27026         between string literal and macro name.
27028 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27030         * jump.c: Change argument types to rtx_insn *.
27031         * rtl.h: Adjust.
27033 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27035         * lra-constraints.c: Change argument type to rtx_insn *.
27037 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27039         * df-problems.c: Change argument type to rtx_insn *.
27041 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27043         * combine.c: Change argument type to rtx_insn *.
27045 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27047         * rtl.h: Adjust.
27048         * rtlanal.c: Change argument type to rtx_insn *.
27050 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27052         * sched-deps.c: Change argument types to rtx_insn *.
27053         * sched-int.h: Adjust.
27055 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27057         * dwarf2cfi.c: Change argument type to rtx_insn *.
27059 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27061         * ira.c (decrease_live_ranges_number): Changetype of local
27062         variable to rtx_insn *.
27063         * recog.c: Change argument types to rtx_insn *.
27064         * recog.h: Adjust.
27066 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27068         * reorg.c: Change argument types to rtx_insn *.
27070 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27072         * ira-color.c: Change argument types to rtx_insn *.
27073         * lra-eliminations.c: Likewise.
27074         * ira.h: Adjust.
27076 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27078         * gcse.c: Change argument types to rtx_insn *.
27080 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27082         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27084 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27086         * emit-rtl.c (emit_debug_insn_before): Change argument type to
27087         rtx_insn *.
27088         * rtl.h: Adjust.
27090 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27092         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27093         * rtl.h: Adjust.
27095 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27097         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27098         * rtl.h: Adjust.
27100 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27102         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27103         * rtl.h: Adjust.
27105 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27107         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27108         * rtl.h: Adjust.
27110 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27112         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27113         to rtx_insn *.
27114         * rtl.h: Adjust.
27116 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27118         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27119         to rtx_insn *.
27120         * rtl.h: Likewise.
27122 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27124         * except.c (can_nonlocal_goto): Change type of argument to
27125         rtx_insn *.
27126         * rtl.h: Adjust.
27128 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27130         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27131         * rtl.h: Adjust.
27133 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27135         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27136         * cfgrtl.c (can_delete_label_p): Adjust.
27137         * rtl.h: likewise.
27139 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27141         * reorg.c (stop_search_p): Change argument to rtx_insn *.
27143 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27145         * except.c (make_reg_eh_region_note): Change argument to
27146         rtx_insn *.
27147         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27148         * except.h: Adjust.
27150 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27152         * mode-switching.c (commit_mode_sets): Change type of local
27153         variable from rtx to rtx_insn *.
27155 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
27157         * doc/install.texi (--enable-languages): Add missing jit and lto info.
27158         Add ^ to grep command.
27159         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27160         arg to last gimple_simplify declaration.  Add missing gimple_build
27161         declaration for built-in function case with four tree args.
27163 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27164             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27166         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27167         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27168         (GNU_USER_DYNAMIC_LINKERN32): Update.
27170 2015-05-08  Richard Biener  <rguenther@suse.de>
27172         PR tree-optimization/66036
27173         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27174         Handle strided group loads.
27175         (vect_verify_datarefs_alignment): Likewise.
27176         (vect_enhance_data_refs_alignment): Likewise.
27177         (vect_analyze_group_access): Likewise.
27178         (vect_analyze_data_ref_access): Likewise.
27179         (vect_analyze_data_ref_accesses): Likewise.
27180         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27181         (vectorizable_load): Likewise.
27183 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
27185         * config/rs6000/rs6000.md: Require operand inequality in one
27186         of the peepholes.
27188 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
27189             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
27191         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27192         from (set ...).
27193         * config/rx/rx.md (movdi, movdf): Likewise.
27194         Likewise for define_peephole2s.
27196 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27198         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27199         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27200         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27201         vtst_u64): Rewrite using gcc vector extensions.
27203 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27205         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27206         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27208 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27210         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27212 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27214         * config/glibc-stdint.h (OPTION_MUSL): Define.
27215         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27216         Change the definition based on OPTION_MUSL for 64 bit targets.
27217         * config/linux.h (OPTION_MUSL): Redefine.
27218         * config/alpha/linux.h (OPTION_MUSL): Redefine.
27219         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27220         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27222 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27223             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27225         * config.gcc (LIBC_MUSL): New tm_defines macro.
27226         * config/linux.h (OPTION_MUSL): Define.
27227         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27228         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27229         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27230         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27231         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27232         * config/linux.opt (mmusl): New option.
27233         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27234         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27235         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27236         * configure: Regenerate.
27238 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
27239             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27241         PR target/48904
27242         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27243         * config/i386/knetbsd-gnu64.h: New file.
27245 2015-05-08  Marek Polacek  <polacek@redhat.com>
27247         PR c/64918
27248         * doc/invoke.texi: Document -Woverride-init-side-effects.
27250 2015-05-07  Marek Polacek  <polacek@redhat.com>
27252         PR c/65179
27253         * doc/invoke.texi: Document -Wshift-negative-value.
27255 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
27257         * gcov-tool.c (do_merge): Refactore to remove int ret.
27258         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27259         !type == FUNC to type != FUNC.
27260         * reload.h (struct target_reload): Changee to type of
27261         x_spill_indirect_levels from bool to unsigned char.
27263 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
27265         * rtl.h (always_void_p): New function.
27266         * gengenrtl.c (always_void_p): Likewise.
27267         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27268         with code foo are always VOIDmode.
27269         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27270         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27271         compare-elim.c, config/aarch64/aarch64.c,
27272         config/aarch64/aarch64.md, config/alpha/alpha.c,
27273         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27274         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27275         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27276         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27277         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27278         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27279         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27280         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27281         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27282         config/ia64/vect.md, config/iq2000/iq2000.c,
27283         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27284         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27285         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27286         config/mep/mep.c, config/microblaze/microblaze.c,
27287         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27288         config/mn10300/mn10300.c, config/msp430/msp430.c,
27289         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27290         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27291         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27292         config/rs6000/altivec.md, config/rs6000/rs6000.c,
27293         config/rs6000/rs6000.md, config/rs6000/vector.md,
27294         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27295         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27296         config/sh/sh.md, config/sh/sh_treg_combine.cc,
27297         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27298         config/spu/spu.md, config/stormy16/stormy16.c,
27299         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27300         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27301         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27302         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27303         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27304         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27305         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27306         var-tracking.c: Update calls accordingly.
27308 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27310         PR middle-end/192
27311         PR middle-end/54303
27312         * varasm.c (function_mergeable_rodata_prefix): New function.
27313         (mergeable_string_section): Use it.
27314         (mergeable_constant_section): Use it.
27316 2015-05-07  Jeff Law  <law@redhat.com>
27318         PR target/39726
27319         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27320         simplifier to narrow arithmetic.
27321         * generic-match-head.c: (types_match, single_use): New functions.
27322         * gimple-match-head.c: (types_match, single_use): New functions.
27324 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27326         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27327         rtx type.
27329 2015-05-07  Richard Biener  <rguenther@suse.de>
27331         PR tree-optimization/66002
27332         * passes.def: Schedule another pass_merge_phi after ifcombine, right
27333         before phiopt.
27335 2015-05-07  Marek Polacek  <polacek@redhat.com>
27336             Martin Uecker  <uecker@eecs.berkeley.edu>
27338         * doc/invoke.texi: Document -fsanitize=bounds-strict.
27339         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27340         into SANITIZE_NONDEFAULT.
27341         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27343 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
27345         PR target/66015
27346         * config/alpha/alpha.c (alpha_override_options_after_change): New.
27347         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27348         (alpha_override_options): Move align_loops, align_jumps and
27349         align_functions handling into alpha_override_options_after_change.
27351 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
27352             Chris Jones  <chrisj@nvidia.com>
27353             Joshua Conner  <jconner@nvidia.com>
27355         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27356         linking of crtfastmath.o.
27357         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27359 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27361         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27362         (cstore<mode>4_unsigned_imm): New expander.
27363         (cstore<mode>4): Remove empty constraint strings.  Use the new
27364         expanders.
27366 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
27368         PR target/64208
27369         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27370         alternatives.
27372 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27374         * config/aarch64/geniterators.sh: Use standard BRE in sed.
27376 2015-05-06  Alan Modra  <amodra@gmail.com>
27378         PR target/66033
27379         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27380         (UNSPEC_NOP): Define.
27381         (reload_vsx_from_gpr<mode>): Add missing DONE.
27382         (reload_gpr_from_vsx<mode>): Likewise.
27383         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27384         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27386 2015-05-06  Christian Bruel  <christian.bruel@st.com>
27388         PR target/66015
27389         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27390         align_jumps, align_functions into aarch64_override_options_after_change.
27392 2015-05-06  Richard Biener  <rguenther@suse.de>
27394         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27395         vect_transform_slp_perm_load to check if we support a permutation
27396         for basic-block vectorization.
27398 2015-05-06  Nick Clifton  <nickc@redhat.com>
27400         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27401         used, even if it is not being used as a frame pointer.
27403 2015-05-05  Jason Merrill  <jason@redhat.com>
27405         * dwarf2out.c (gen_member_die): Don't emit anything for an
27406         anonymous class constructor.
27408 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
27410         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27411         that it reflects the block structure.
27412         (afdo_propagate_edge): Likewise.
27413         (afdo_calculate_branch_prob): Likewise.
27414         (afdo_annotate_cfg): Likewise.
27415         * cfgcleanup.c (equal_different_set_p): Likewise.
27416         (try_crossjump_to_edge): Likewise.
27417         * cgraph.c (cgraph_node::verify_node): Likewise.
27418         * cgraphunit.c (expand_all_functions): Likewise.
27419         * config/i386/i386.c (ix86_expand_copysign): Likewise.
27420         (exact_dependency_1): Likewise.
27421         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27422         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27423         * gensupport.c (process_define_subst): Likewise.
27424         * lto-wrapper.c (merge_and_complain): Likewise.
27425         * tree-if-conv.c (if_convertible_bb_p): Likewise.
27426         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27427         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27428         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27429         * tree-vect-loop.c (vectorizable_reduction): Likewise.
27430         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27431         * tree-vect-stmts.c (vectorizable_shift): Likewise.
27432         * tree-vrp.c (vrp_finalize): Likewise.
27433         * tree.c (variably_modified_type_p): Likewise.
27435 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
27437         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27438         on darwin12 and later.
27439         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27440         file to pass -rdynamic on darwin12 and later.
27441         * config/darwin.opt (rdynamic): Add.
27443 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27445         * doc/extend.texi (C Extensions): Update menu for moved Variable
27446         Attributes and Type Attributes sections.
27448 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27450         PR target/65990
27451         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27452         if rep_8byte stringop strategy was specified for 32-bit target.
27454 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
27456         PR target/65915
27457         * config/i386/i386.md (vector convert to float spltiter): Check for
27458         xmm16+, when splitting scalar float conversion.
27459         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27461 2015-05-05  Nick Clifton  <nickc@redhat.com>
27463         * config/msp430/msp430-opts.h (enum msp430_regions): New.
27464         * config/msp430/msp430.c (msp430_override_options): Complain if
27465         -mcode-region or -mdata-region is used on a non MSP430X.
27466         (msp430_section_attr): New function.  Checks lower, upper and
27467         either attributes.
27468         (msp430_attribute_table): Add lower, upper and either.
27469         (gen_prefix): New function.  Generates a prefix for a section
27470         name.
27471         (msp430_select_section): New function - handles the choice of
27472         section for an object.  Takes into account memory region
27473         attributes and options.
27474         (msp430_function_section): Use gen_prefix.
27475         (TARGET_SECTION_TYPE_FLAGS): Define.
27476         (msp430_section_type_flags): New function.
27477         (TARGET_ASM_UNIQUE_SECTION): Define.
27478         (msp430_unique_section): New function.
27479         (msp430_output_aligned_decl_common): New function.
27480         (msp430_do_not_relax_short_jumps): New function.
27481         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27482         Define.
27483         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27484         * config/msp430/msp430-protos.h
27485         (msp430_do_not_relax_short_jumps): New prototype.
27486         (msp430_output_aligned_decl_common): New prototype.
27487         * config/msp430/msp430.md (length): New attribute.
27488         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27489         then use a long code sequence for short jumps.
27490         * config/msp430/msp430.opt (mcode-region): New.
27491         (mdata-region): New.
27492         * doc/invoke.texi: Document new options.
27493         * doc/extend.texi: Document new attributes.
27495 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27497         * config/aarch64-protos.h (struct cpu_branch_cost): New.
27498         (tune_params): Add field branch_costs.
27499         (aarch64_branch_cost): Declare.
27500         * config/aarch64.c (generic_branch_cost): New.
27501         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27502         (cortexa53_tunings): Likewise.
27503         (cortexa57_tunings): Likewise.
27504         (thunderx_tunings): Likewise.
27505         (xgene1_tunings): Likewise.
27506         (aarch64_branch_cost): Define.
27507         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27509 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27511         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27512         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27513         * config/i386/i386.md: Ditto.
27514         * config/i386/winnt.c: Ditto.
27516 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27518         * doc/extend.texi (__atomic Builtins): Move implementation details
27519         to the end of the description, rewrite opening paragraphs, state
27520         difference with __sync builtins, state C11/C++11 assumptions,
27521         weaken itemized descriptions, add explanation of memory model
27522         behaviour, expand description of compare-exchange, simplify text.
27524 2015-05-05  Renlin Li  <renlin.li@arm.com>
27526         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27528 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
27530         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27531         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27532         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27533         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27534         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27535         * configure: Regenerate.
27536         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27537         * doc/install.texi (aarch64*-*-*): Document new
27538         --enable-fix-cortex-a53-843419 option.
27539         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27540         and -mno-fix-cortex-a53-843419 options.
27542 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27544         PR target/65871
27545         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27547 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
27549         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27550         fix overactive TYPE_MIN_VALUE check and add FIXME for type
27551         compatibility problems.
27553 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27555         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27556         constraints.
27557         (cbranchsi4_reg): New.
27558         * config/microblaze/microblaze.c
27559         (microblaze_expand_conditional_branch_reg): New.
27560         * config/microblaze/microblaze-protos.h
27561         (microblaze_expand_conditional_branch_reg): New prototype.
27563 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27565         * config/microblaze/microblaze.md (peephole2): New.
27567 2015-05-04  Jeff Law  <law@redhat.com>
27569         Revert:
27570         2015-05-04  Jeff Law  <law@redhat.com>
27572         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27573         simplifier to narrow arithmetic.
27574         * generic-match-head.c: (types_match, single_use): New functions.
27575         * gimple-match-head.c: (types_match, single_use): New functions.
27577 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27579         PR target/65987
27580         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27581         (split_branches): Likewise.
27583 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
27585         * common.opt (fdelete-null-pointer-checks): Init to -1.
27586         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27587         override flag_delete_null_pointer_checks default.
27588         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27589         behavior re address zero.  Better document target-specific behavior.
27590         (-fisolate-errneous-paths-dereference): Mention relationship to
27591         -fdelete-null-pointer-checks.
27593 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
27595         PR tree-optimization/65984
27596         * ubsan.c: Include tree-cfg.h.
27597         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27598         stmt_could_throw_p test, rename can_throw variable to ends_bb.
27600 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27602         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27603         to CONST_DOUBLE_P predicate.
27604         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27605         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27606         allow only operands that satisfy standard_sse_constant_p predicate.
27607         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27608         to CONST_DOUBLE_P predicate.
27610 2015-05-04  Jeff Law  <law@redhat.com>
27612         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27613         simplifier to narrow arithmetic.
27614         * generic-match-head.c: (types_match, single_use): New functions.
27615         * gimple-match-head.c: (types_match, single_use): New functions.
27617 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
27619         * config/arm/arm.c: Restore bootstrap.
27621 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27623         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27624         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27625         as CONST_WIDE_INT, not CONST_DOUBLE.
27626         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27627         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27628         (ix86_find_base_term): Do not check for CONST_DOUBLE.
27629         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27630         (ix86_build_signbit_mask): Rewrite using wide ints.
27631         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27632         (ix86_rtx_costs): Handle CONST_WIDE_INT.
27633         (find_constant): Ditto.
27634         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27635         using gen_int_mode.
27636         * config/i386/predicates.md (x86_64_immediate_operand)
27637         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27638         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27639         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27640         (const0_operand): Also match const_wide_int.
27641         (constm1_operand): Ditto.
27642         (const1_operand): Ditto.
27644 2015-05-04  Richard Biener  <rguenther@suse.de>
27646         PR tree-optimization/65965
27647         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27648         store groups at gaps.
27650 2015-05-04  Richard Biener  <rguenther@suse.de>
27652         PR tree-optimization/65935
27653         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27654         then make sure to apply that swapping to the IL.
27656 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
27658         * Makefile.in (PATCHLEVEL_c): New variable.
27659         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27660         expand the same way as if DEVPHASE_c was non-empty.
27662 2015-05-04  Kai Tietz  <ktietz@redhat.com>
27664         PR target/65559
27665         * lto-wrapper.c (run_gcc): Open filename
27666         in binary-mode.
27668 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
27670         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
27671         sections up in file, to immediately after the Function Attributes
27672         section.
27674 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
27676         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27678 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27680         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27681         (insert_partition_copy_on_edge): Adjust.
27682         (insert_rtx_to_part_on_edge): Likewise.
27683         (insert_part_to_rtx_on_edge): Likewise.
27685 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27687         * function.c (set_return_jump_label): Change type of argument to
27688         rtx_insn *.
27689         * function.h (set_return_jump_label): Adjust.
27691 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27693         * reload.h (struct reg_equivs_t): Change type of init to
27694         rtx_insn *.
27695         * ira.c (fix_reg_equiv_init): Adjust.
27696         * reload1.c (eliminate_regs_1): Likewise.
27697         (init_eliminable_invariants): Likewise.
27699 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27701         * cselib.c (fp_setter_insn): Take a rtx_insn *.
27702         * cselib.h (fp_setter_insn): Adjust.
27704 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27706         * recog.c (struct validate_replace_src_data): Change type of
27707         insn field to rtx_insn *.
27708         (validate_replace_src_group): Change type of argument to rtx_insn *.
27709         * recog.h (validate_replace_src_group): Adjust.
27711 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27713         * haifa-sched.c: Change the type of some variables to rtx_insn *.
27714         * sched-deps.c: Likewise.
27715         * sched-int.h: Likewise.
27716         * sched-rgn.c: Likewise.
27717         * sel-sched.c: Likewise.
27719 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27721         to rtx_insn *.
27722         * config/i386/i386.c: Change the type of some arguments to
27723         rtx_insn *.
27724         * config/arm/arm.c: Likewise.
27726 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27728         * lra-constraints.c: Change type of some arguments to rtx_insn *.
27730 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27732         * regcprop.c (kill_autoinc_value): Change type of argument to
27733         rtx_insn *.
27735 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27737         * genrecog.c (print_subroutine): Adjust.
27738         * recog.c (get_bool_attr_mask_uncached): Likewise.
27739         * recog.h (struct recog_data_d): Change the type of insn to
27740         rtx_insn *.
27742 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27744         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27746 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27748         * df-problems.c (df_set_note): Change type of argument to
27749         rtx_insn *.
27751 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27753         * builtins.c (expand_builtin_trap): Change type of local
27754         variable to rtx_insn *.
27755         (add_sched_insns_for_speculation): Likewise.
27756         (ix86_emit_save_regs): Likewise.
27757         (get_scratch_register_on_entry): Likewise.
27758         (ix86_emit_restore_reg_using_pop): Likewise.
27759         (ix86_emit_leave): Likewise.
27760         (ix86_emit_restore_regs_using_mov): Likewise.
27761         (ix86_expand_epilogue): Likewise.
27762         Likewise.
27763         (rl78_alloc_physical_registers_umul): Likewise.
27764         * cselib.c (discard_useless_locs): Likewise.
27765         (cselib_invalidate_regno): Likewise.
27766         (cselib_invalidate_mem): Likewise.
27767         * function.c (expand_function_start): Likewise.
27768         (emit_use_return_register_into_block): Likewise.
27769         * gcse.c: Likewise.
27770         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27771         * ifcvt.c (noce_get_alt_condition): Likewise.
27772         * loop-doloop.c (doloop_condition_get): Likewise.
27773         * lra-constraints.c (inherit_in_ebb): Likewise.
27774         * modulo-sched.c (sms_schedule_by_order): Likewise.
27775         * recog.c (next_insn_tests_no_inequality): Likewise.
27776         * reorg.c (emit_delay_sequence): Likewise.
27777         (update_reg_dead_notes): Likewise.
27778         (fix_reg_dead_note): Likewise.
27779         (fill_slots_from_thread): Likewise.
27780         (delete_computation): Likewise.
27782 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
27784         * doc/extend.texi (Variable Attributes): Add menu and proper
27785         @nodes to subsections.  Move Microsoft Windows attributes to
27786         their own subsection.
27787         (Type Attributes): Reorganize introduction to remove duplicate
27788         list of attributes.  Add menu and proper @nodes to subsections.
27789         Alphabetize the main table of common attributes.
27791 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27793         * match.pd: New simplification patterns.
27794         (x + (x & 1))  -> ((x + 1) & ~1)
27795         (x & ~(x & y)) -> ((x & ~y))
27796         (x | ~(x | y)) -> ((x | ~y))
27798 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27800         * target.def (attribute_table): Mention that struct attribute_spec
27801         is defined in tree-core.h rather than tree.h
27802         * doc/tm.texi: Regenerate.
27804 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
27806         * genrecog.c (test): Rename to rtx_test.  Update rest of file
27807         accordingly.
27809 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
27811         PR translation/65959
27812         * params.h (DEFPARAM): Rename msgid to nocmsgid.
27814 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27816         * config/aarch64/aarch64-protos.h (tune_params):
27817         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27818         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27819         Return value depending on target.
27820         (generic_tunings): Initialize new target settings.
27821         (cortexa53_tunings): Likewise.
27822         (cortexa57_tunings): Likewise.
27823         (thunderx_tunings): Likewise.
27824         (xgene1_tunings): Likewise.
27826 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27828         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27829         Make Cortex-A53 shift costs more accurate.
27831 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27833         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27834         UNSIGNED_FLOAT.
27836 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27838         * config/aarch64/aarch64.c (aarch64_rtx_costs):
27839         Calculate cost of op0 and op1 in PLUS and MINUS cases.
27841 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27843         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27844         Add cost of op0 in the compare-with-fpzero case.
27846 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
27848         * builtins.c (fold_builtin_1): Remove spurious second
27849         semicolon.
27850         * cgraph.h (symtab_node::get_availability): Likewise.
27851         * opts.c (common_handle_option): Remove spurious second semicolon.
27852         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27853         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27855 2015-04-30  Caroline Tice  <cmtice@google.com>
27857         PR gcov-profile/65929
27858         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27859         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27860         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27861         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27862         * doc/tm.texi: Regenerate.
27863         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
27864         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27865         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
27866         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27868 2015-04-30  Marek Polacek  <polacek@redhat.com>
27870         * varasm.c (handle_cache_entry): Fix logic.
27872 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27874         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27875         (*extrsi5_insn_uxtw_alt): Likewise.
27876         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27877         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27878         operations.
27880 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27882         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27883         fabd in ABS case.
27885 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27887         * config/aarch64/aarch64.md
27888         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27889         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27890         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27891         appropriately.  Handle alternative EON form.
27893 2015-04-30  Renlin Li  <renlin.li@arm.com>
27895         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27896         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27898 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27900         PR ipa/65873
27901         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27902         -fstrict-aliasing boundaries.
27904 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27906         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27907         and [SU]MNEGL patterns.
27909 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27911         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27912         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27913         combined arithmetic-shift ops.  Properly handle all shift and extend
27914         operations that can occur in combination with PLUS/MINUS.
27915         Rename maybe_fma to compound_p.
27916         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27917         arithmetic and shift operations.
27919 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27921         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27922         rather than arith_shift cost when costing ADD/MINUS of an
27923         extended value.
27925 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27927         PR lto/65948
27928         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27929         to itself.
27931 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
27933         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27934         are for the same position.
27936 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
27938         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
27939         vectorize_loops.
27940         (vectorize_loops): Use it.
27942 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27944         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27945         for aggregate types.
27946         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27947         type to be non_ODR.
27948         * tree.c (need_assembler_name_p): Compute mangled name for
27949         non-fundamental types and integer types.
27951 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
27953         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27954         manual swaps.
27955         * expr.c (expand_expr_real_2): Likewise.
27957 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27959         * tree.c (build_common_builtin_nodes): Do not build
27960         __builtin_alloca_with_align as equivalent of library alloca.
27962 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27964         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27965         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27966         bugus variants.
27967         * tree.c: Include print-tree.h and ipa-utils.h
27968         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27969         (free_lang_data_in_cgraph): Call verify_type.
27970         (verify_type_variant): New function.
27971         (verify_type): New function.
27972         * tree.h (verify_type): Declare.
27974 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
27976         * config/mips/mips-cpus.def: (mips4): Change default processor
27977         from PROCESSOR_R8000 to PROCESSOR_R10000.
27979 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27981         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27982         la/jalr instead of jal.
27984 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
27986         PR target/65871
27987         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27988         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27989         (setcc+movzbl peephole2): Check also clobbered reg.
27990         (setcc+andl peephole2): Ditto.
27992 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
27994         PR libgomp/65099
27995         * config/nvptx/mkoffload.c (target_ilp32): New variable.
27996         (main): Set it depending on "-foffload-abi=[...]".
27997         (compile_native, main): Use it to pass "-m32" or "-m64" to the
27998         compiler.
28000 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28002         PR target/65770
28003         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28004         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28005         Flip lane index back at assembly time for bigendian.
28007 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28009         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28010         * gimplify.c (gimplify_omp_workshare): Use it.
28012 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28014         * Makefile.in (build/genrecog.o): Depend on inchash.h.
28015         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28016         build/inchash.o
28017         * genrecog.c: Rewrite most of the code except for the third page.
28019 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28021         * inchash.h, inchash.c: Include bconfig.h for build objects.
28022         * Makefile.in (build/inchash.o): New rule.
28024 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
28026         PR target/65924
28027         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28028         number in type attribute expression.
28030 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28032         * loop-iv.c (canon_condition): Generalize to all types of integer
28033         constant.
28035 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
28037         * gimple-walk.c: Prune duplicate or unneeded includes.
28038         (walk_gimple_asm): Only call parse_input_constraint or
28039         parse_output_constraint if their findings are used.
28040         Honour parse_input_constraint and parse_output_constraint
28041         result.
28043 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28045         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28047 2015-04-29  Tom de Vries  <tom@codesourcery.com>
28049         PR tree-optimization/65893
28050         * passes.def (pass_all_optimizations): Move pass_stdarg to after
28051         pass_dce.
28053 2015-04-29  Richard Biener  <rguenther@suse.de>
28055         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28056         compute GROUP_SIZE for basic-block SLP.
28057         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28058         take into account gaps.
28059         (vect_get_mask_element): Properly reject references to previous
28060         vectors.
28061         (vect_transform_slp_perm_load): Likewise.
28063 2015-04-29  Christian Bruel  <christian.bruel@st.com>
28065         PR target/64835
28066         * config/i386/i386.c (ix86_default_align): New function.
28067         (ix86_override_options_after_change): Call ix86_default_align.
28068         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28069         (ix86_override_options_after_change): New function.
28071 2015-04-28  Jeff Law  <law@redhat.com>
28073         * tree-ssa-dom.c (record_equality); Fix comment typos.
28075 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28077         PR tree-optimization/65887
28078         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28080 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
28082         * doc/extend.texi (Declaring Attributes of Functions): Split into
28083         subsections by target.  Alphabetize the table of common attributes.
28084         Rewrite some of the introductory text to reflect the new structure.
28085         Update some cross-references to point to the new subsections.
28086         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
28087         duplicate copies in the discussion of function, label, and type
28088         attributes.
28090 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
28092         PR bootstrap/65910
28093         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28095 2015-04-28  Jason Merrill  <jason@redhat.com>
28097         PR c++/65734
28098         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28099         (finalize_type_size): Respect TYPE_USER_ALIGN.
28100         (layout_type) [ARRAY_TYPE]: Likewise.
28102 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
28104         * config/arm/arm.md (*arm_movt): Fix type attribute.
28105         (*cmpsi_shiftsi): Likewise.
28106         (*cmpsi_shiftsi_swp): Likewise.
28107         (*movsicc_insn): Likewise.
28108         (*cond_move): Likewise.
28109         (*if_plus_move): Likewise.
28110         (*if_move_plus): Likewise.
28111         (*if_arith_move): Likewise.
28112         (*if_move_arith): Likewise.
28113         (*if_shift_move): Likewise.
28114         (*if_move_shift): Likewise.
28115         (*arm_movtas_ze): Likewise.
28116         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28117         redundancy and type attribute.
28118         (*thumb2_movsi_insn): Fix type attribute.
28119         (*thumb2_addsi_short): Likewise.
28120         (thumb2_addsi3_compare0): Likewise.
28121         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28122         attributes accordingly.
28124 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
28126         PR other/65911
28127         * function.c (pad_to_arg_alignment): Add parentheses.
28129 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
28131         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28132         libgcc/config/frv/elf-lib.h.
28134 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28136         * tree-call-cdce.c: Fix example in header comment.
28138 2015-04-28  Richard Biener  <rguenther@suse.de>
28140         PR tree-optimization/62283
28141         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28142         fails fatally and we are vectorizing a basic-block simply
28143         cause the child to be constructed piecewise.
28144         (vect_analyze_slp_cost_1): Adjust.
28145         (vect_detect_hybrid_slp_stmts): Likewise.
28146         (vect_bb_slp_scalar_cost): Likewise.
28147         (vect_get_constant_vectors): For piecewise constructed
28148         constants place them after the last def.
28149         (vect_get_slp_defs): Adjust.
28150         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28151         externals for basic-block vectorization.
28153 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28155         PR target/63503
28156         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28157         aarch64-*-*.
28158         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28159         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28160         (AARCH64_TUNE_FMA_STEERING): Likewise.
28161         * config/aarch64/aarch64-cores.def: Set
28162         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28163         FMUL/FMADD instructions.
28164         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28165         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
28166         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28167         * config/aarch64/cortex-a57-fma-steering.h: New file.
28168         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28170 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
28172         * gensupport.c (std_preds): Add missing codes to address_operand entry.
28174 2015-04-28  Richard Biener  <rguenther@suse.de>
28176         PR tree-optimization/65851
28177         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28178         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
28179         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
28180         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28181         (ccp_visit_phi_node): Adjust.
28182         (evaluate_stmt): For simplifications to SSA names return its
28183         lattice value if that isn't VARYING.  Return immediately when
28184         simplified to a constant.
28185         (visit_assignment): Adjust.
28186         (ccp_visit_stmt): Likewise.
28188 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28190         PR tree-optimization/65818
28191         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28192         evaluated.
28194 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28196         * calls.c (save_fixed_argument_area): Don't check
28197         ARGS_GROW_DOWNWARD with the preprocessor.
28198         (restore_fixed_argument_area): Likewise.
28199         (mem_overlaps_already_clobbered_arg_p): Likewise.
28200         (check_sibcall_argument_overlap): Likewise.
28201         (expand_call): Likewise.
28202         (emit_library_call_value_1): Likewise.
28203         (store_one_arg): Likewise.
28204         * function.c (assign_parms): Likewise.
28205         (locate_and_pad_parm): Likewise.
28206         (pad_to_arg_alignment): Likewise.
28207         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28209 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28211         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28212         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28213         * calls.c (save_fixed_argument_area): Don't chekc if
28214         ARGS_GROW_DOWNWARD is defined.
28215         (restore_fixed_argument_area): Likewise.
28216         (mem_overlaps_already_clobbered_arg_p): Likewise.
28217         (check_sibcall_argument_overlap): Likewise.
28218         (expand_call): Likewise.
28219         (emit_library_call_value_1): Likewise.
28220         (store_one_arg): Likewise.
28221         * function.c (assign_parms): Likewise.
28222         (locate_and_pad_parm): Likewise.
28223         (pad_to_arg_alignment): Likewise.
28224         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28226 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28228         * defaults.h (gen_epilogue): New function.
28229         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28230         defined.
28231         * cfgrtl.c (cfg_layout_finalize): Likewise.
28232         * df-scan.c: Likewise.
28233         * function.c (thread_prologue_and_epilogue_insns): Likewise.
28234         (reposition_prologue_and_epilogue_notes): Likewise.
28235         * reorg.c (find_end_label): Likewise.
28236         * toplev.c: Likewise.
28238 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28240         * bb-reorder.c (HAVE_return): Don't check if its undefined.
28241         * defaults.h (gen_simple_return): New function.
28242         (gen_simple_return): Likewise.
28243         (HAVE_return): Add default definition to false.
28244         (HAVE_simple_return): Likewise.
28245         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28246         HAVE_return and HAVE_simple_return are defined.
28247         * function.c (gen_return_pattern): Likewise.
28248         (convert_jumps_to_returns): Likewise.
28249         (thread_prologue_and_epilogue_insns): Likewise.
28250         * reorg.c (find_end_label): Likewise.
28251         (dbr_schedule): Likewise.
28252         * shrink-wrap.c: Likewise.
28253         * shrink-wrap.h: Likewise.
28255 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28257         * defaults.h (EPILOGUE_USES): Add default definition of false.
28258         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28259         * resource.c (init_resource_info): Likewise.
28261 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28263         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28264         to false.
28265         * dwarf2out.c (field_byte_offset): REmove check if
28266         PCC_BITFIELD_TYPE_MATTERS is defined.
28267         * stor-layout.c (layout_decl): Likewise.
28268         (update_alignment_for_field): Likewise.
28269         (place_field): Likewise.
28271 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28273         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28274         true.
28275         * regrename.c (check_new_reg_p): Remove check if
28276         HARD_REGNO_RENAME_OK is defined.
28277         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28279 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28281         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28282         * cse.c (fold_rtx): Likewise.
28283         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28284         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28285         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28286         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28287         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28288         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28289         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28290         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28291         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28292         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28293         * Likewise.
28294         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28295         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28296         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28297         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28298         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28299         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28300         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28301         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28302         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28303         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28304         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28305         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28306         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28307         * doc/tm.texi: Regenerate.
28308         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28309         either true or false.
28311 2015-04-27  Jeff Law  <law@redhat.com>
28313         PR tree-optimization/65217
28314         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28315         of them has a single use, make sure it is the LHS of the implied
28316         copy.
28318 2015-04-28  Alan Modra  <amodra@gmail.com>
28320         PR target/65810
28321         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28322         (offsettable_ok_by_alignment): Use minimum of decl and toc
28323         pointer alignment.  Replace dead code with assertion.
28324         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
28325         case if size exceeds toc pointer alignment.
28326         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28327         (rs6000_emit_move): Likewise.
28328         * configure.ac: Add linker toc pointer alignment check.
28329         * configure: Regenerate.
28330         * config.in: Regenerate.
28332 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
28334         * config.gcc: Add h8300-*-linux.
28335         * config/h8300/linux.h: New.
28336         * config/h8300/t-linux: New.
28337         * config/h8300/h8300.c (h8300_option_override): Normal mode
28338         is not supported for h8300-*-linux.
28339         (h8300_file_start): Target priority change.
28340         (get_shift_alg): Likewise.
28341         (h8300_shift_need_scratch_p): Likewise.
28342         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28343         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28345 2015-04-27  Caroline Tice  <cmtice@google.com>
28347         * final.c (final_scan_insn):  Output cold_function_name as function
28348         type.
28349         * varasm.c (cold_function_name):  Make global.
28350         (assemble_start_function):  Re-set cold_function_name.
28351         (assemble_end_function): Output cold partition size.
28352         * varasm.h (cold_function_name):  Declare global.
28354 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
28356         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28357         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28358         constraint.
28359         (*movxi_internal_avx512f): Ditto.
28360         (define_split): Check for xmm16+, when splitting scalar float_extend.
28361         (*extendsfdf2_mixed): Use "v" constraint.
28362         (define_split): Check for xmm16+, when splitting scalar float_truncate.
28363         (*truncdfsf_fast_sse): Use "v" constraint.
28364         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28365         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28366         (define_peephole2): Check for xmm16+, when converting scalar
28367         float_truncate.
28368         (define_peephole2): Check for xmm16+, when converting scalar
28369         float_extend.
28370         (*fop_<mode>_comm_mixed): Use "v" constraint.
28371         (*fop_<mode>_comm_sse): Ditto.
28372         (*fop_<mode>_1_mixed): Ditto.
28373         (*sqrt<mode>2_sse): Ditto.
28374         (*ieee_s<ieee_maxmin><mode>3): Ditto.
28376 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28378         * combine.c (simplify_if_then_else): Use std::swap instead
28379         of manually swapping.
28380         (known_cond): Likewise.
28381         (simplify_comparison): Likewise.
28383 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
28385         PR target/64579
28386         * config/rs6000/htm.md: Remove all define_expands.
28387         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28388         UNSPECV_HTM_TABORTWCI): Remove.
28389         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28390         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28391         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28392         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28393         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28394         tabortwci_internal): Remove define_insns.
28395         (tabort<wd>c, tabort<wd>ci): New define_insns.
28396         (tabort): Use gpc_reg_operand.
28397         (tcheck): Remove operand.
28398         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28399         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28400         expected value.
28401         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28402         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
28403         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28404         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28405         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28406         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28407         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28408         (tcheck): Remove builtin argument.
28409         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28410         not TARGET_64BIT.
28411         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
28412         tabortdc and tabortdci builtins when not in 64-bit mode.
28413         Modify code to handle the loss of the HTM define_expands.
28414         Emit code to copy the CR register to TARGET.
28415         (htm_init_builtins): Modify code to handle the loss of the HTM
28416         define_expands.
28417         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28418         (RS6000_BTC_64BIT): Likewise.
28419         (RS6000_BTC_CR): New macro.
28420         * doc/extend.texi: Update documentation for htm builtins.
28422 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28424         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28425         of manually swapping.
28426         (simplify_associative_operation): Likewise.
28427         (simplify_binary_operation): Likewise.
28428         (simplify_plus_minus): Likewise.
28429         (simplify_relational_operation): Likewise.
28430         (simplify_ternary_operation): Likewise.
28432 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28434         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28435         (xs_hi_nonmemory_operand): Remove error.
28436         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28437         general_operand rather than xs_hi_general_operand.
28439 2015-04-27  Richard Biener  <rguenther@suse.de>
28441         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28442         (record_equivalences_from_stmt): Valueize rhs.
28443         (record_equality): Canonicalize x and y order via
28444         tree_swap_operands_p.  Do not swap operands for same loop depth.
28446 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
28448         PR target/65296
28449         PR target/65895
28450         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28451         Add hint how to use own spec file.
28453 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
28455         PR tree-optimization/65875
28456         * tree-vrp.c (update_value_range): If in is_new case setting
28457         old_vr to VR_VARYING, also set new_vr to it.  Remove
28458         old_vr->type == VR_VARYING test.
28459         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28460         SSA_PROP_INTERESTING if update_value_range returned true,
28461         but new range is VR_VARYING.
28463 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28465         * combine.c (sign_extend_short_imm): New.
28466         (set_nonzero_bits_and_sign_copies): Use above new function for sign
28467         extension of src short immediate.
28468         (reg_nonzero_bits_for_combine): Likewise for tem.
28470 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28472         * stor-layout.c (self_referential_component_ref_p): New predicate.
28473         (copy_self_referential_tree_r): Use it.
28474         (self_referential_size): Punt for simple operations directly involving
28475         self-referential component references.
28476         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28478 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28480         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28482 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28484         * vec.h (vec): Make splice arguments const.  Update definitions
28485         accordingly.
28487 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
28489         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28490         alternatives.
28492 2015-04-26  Tom de Vries  <tom@codesourcery.com>
28494         PR tree-optimization/65826
28495         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28497 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
28499         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28500         (*madd3<mode>): Ditto.
28501         (*msub4<mode>): Ditto.
28502         (*msub3<mode>): Ditto.
28503         (*nmadd4<mode>): Ditto.
28504         (*nmadd3<mode>): Ditto.
28505         (*nmadd4<mode>_fastmath): Ditto.
28506         (*nmadd3<mode>_fastmath): Ditto.
28507         (*nmsub4<mode>): Ditto.
28508         (*nmsub3<mode>): Ditto.
28509         (*nmsub4<mode>_fastmath): Ditto.
28510         (*nmsub3<mode>_fastmath): Ditto.
28512 2015-04-24  Jason Merrill  <jason@redhat.com>
28514         PR c++/50800
28515         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28516         down when building TYPE_CANONICAL.
28517         (build_pointer_type_for_mode): Likewise.
28519 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
28521         * genrecog.c (validate_pattern): Check matching constraint refers
28522         to a lower numbered operand.
28524 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28526         PR target/65849
28527         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28528         save to independent variables use the Save attribute.  This will
28529         allow these options to be modified with the #pragma/attribute
28530         target support.
28531         (-mallow-movmisalign): Likewise.
28532         (-mallow-df-permute): Likewise.
28533         (-msched-groups): Likewise.
28534         (-malways-hint): Likewise.
28535         (-malign-branch-targets): Likewise.
28536         (-mvectorize-builtins): Likewise.
28537         (-msave-toc-indirect): Likewise.
28539         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28540         can be set via the #pragma/attribute target support.
28541         (rs6000_opt_vars): Likewise.
28542         (rs6000_inner_target_options): If VSX was set, also set
28543         -mno-avoid-indexed-addresses.
28545 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28547         * config/arm/iterators.md (shiftable_ops): Rename to...
28548         (SHIFTABLE_OPS): ... This.  Update use in comments.
28549         (ior_xor): Rename to...
28550         (IOR_XOR): ... This.
28551         (vqh_ops): Rename to...
28552         (VQH_OPS): ... This.
28553         (vqhs_ops): Rename to...
28554         (VQHS_OPS): ... This.
28555         (rshifts): Rename to...
28556         (RSHIFTS): ... This.
28557         (returns): Rename to...
28558         (RETURNS): ... This.
28559         * config/arm/arm.md: Update uses of the above.
28560         * config/arm/neon.md: Likewise.
28562 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28564         * config.host (case ${host}): Add aarch64*-*-linux case.
28565         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28566         fields to all the cores.
28567         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28568         Add MCPU_MTUNE_NATIVE_SPECS.
28569         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28570         field to all extensions.
28571         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28572         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28573         Adjust definition of AARCH64_OPT_EXTENSION.
28574         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28575         (MCPU_MTUNE_NATIVE_SPECS): Define.
28576         * config/aarch64/driver-aarch64.c: New file.
28577         * config/aarch64/x-arch64: New file.
28578         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28579         -mtune and -march.
28581 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28582             Wei Mi  <wmi@google.com>
28584         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28585         * config/i386/i386.c (extract_base_offset_in_addr): New function.
28586         (ix86_operands_ok_for_move_multiple): Ditto.
28587         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28588         (movlpd/movhpd to movupd peephole2): Ditto.
28590 2015-04-24  Marek Polacek  <polacek@redhat.com>
28592         PR c/61534
28593         * input.h (from_macro_expansion_at): Define.
28595         PR c/63357
28596         * doc/invoke.texi: Update description of -Wlogical-op.
28598 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28600         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28601         ternary operator in fprintf and harmonize spacing.
28603 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28605         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28606         Mark operand1 commutative.
28608 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28610         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28611         input operands in memory.
28612         (*vec_concatv2si_sse4_1): Ditto.
28613         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28614         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28615         register_operand.
28616         (vec_extract_hi_v32hi): Ditto.
28617         (vec_extract_hi_v64hi): Ditto.
28618         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28620 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28621             Steven Bosscher <steven@gcc.gnu.org>
28623         PR rtl-optimization/34503
28624         * cprop.c (cprop_reg_p): New.
28625         (hash_scan_set): Use above function to check if register can be
28626         propagated.
28627         (find_avail_set): Return up to two sets, one whose source is a
28628         register and one whose source is a constant.  Sets are returned in an
28629         array passed as parameter rather than as a return value.
28630         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
28631         sets returned by find_avail_set, starting with the one whose source is
28632         a constant. Use cprop_reg_p to check if register can be propagated.
28633         (do_local_cprop): Use cprop_reg_p to check if register can be
28634         propagated.
28635         (implicit_set_cond_p): Likewise.
28637 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28639         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28640         (sem_function::equals): IGNORED_NODES parameter is now unused;
28641         update call of equals_private.
28642         (sem_function::equals_private): Do not call equals_wpa; skip
28643         gimple body matching if there is no body.
28644         (sem_function::init): Add logic to hash tthunk info.
28645         (sem_function::parse): Also parse thunks.
28646         * ipa-icf.h (equals_private): Update declaration.
28648 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28650         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28651         asterisk from name so this can be generated directly.
28652         (*altivec_stvx_<mode>_internal): Likewise.
28653         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28654         that this is never called during or after reload/lra.
28655         (rs6000_frame_related): Remove split_reg
28656         argument and logic that references it.
28657         (emit_frame_save): Remove last parameter from call to
28658         rs6000_frame_related.
28659         (rs6000_emit_prologue): Remove last parameter from eight calls to
28660         rs6000_frame_related.  Force generation of stvx instruction for
28661         Altivec register saves.  Remove split_reg handling, which is no
28662         longer needed.
28663         (rs6000_emit_epilogue):  Force generation of lvx instruction for
28664         Altivec register restores.
28666 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28668         * config/rs6000/rs6000.opt (mcrypto): Change option description to
28669         match category changes in ISA 2.07B.
28671 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28673         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28674         iterators.
28675         (cmp_op, cmp_type): New code attributes.
28676         (NEON_VCMP, NEON_VACMP): New int iterators.
28677         (cmp_op_unsp): New int attribute.
28678         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28679         (neon_vceq<mode>): Delete.
28680         (neon_vc<cmp_op><mode>_insn): New pattern.
28681         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28682         (neon_vcgeu<mode>): Delete.
28683         (neon_vcle<mode>): Likewise.
28684         (neon_vclt<mode>: Likewise.
28685         (neon_vcage<mode>): Likewise.
28686         (neon_vcagt<mode>): Likewise.
28687         (neon_vca<cmp_op><mode>): New define_expand.
28688         (neon_vca<cmp_op><mode>_insn): New pattern.
28689         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28691 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28693         * tree.h (attribute_value_equal): Declare.
28694         * tree.c (attribute_value_equal): Export.
28696 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28698         * ipa-icf.c (sem_item::compare_attributes): New function.
28699         (sem_item::compare_referenced_symbol_properties): Compare variable
28700         attributes.
28701         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28702         (sem_function::param_used_p): New function.
28703         (sem_function::equals_wpa): Fix attribute comparsion; match
28704         parameter type codes; do not compare paremter flags when
28705         they are not used; compare edge flags; compare indirect calls.
28706         (sem_item::update_hash_by_addr_refs): Hash reference type.
28707         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28708         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28709         reference use type.
28710         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28711         * ipa-icf.h (compare_attributes, param_used_p): Declare.
28713 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28715         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28716         cleanup.
28717         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28718         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28719         (sem_item::compare_referenced_symbol_properties): New.
28720         (sem_item::hash_referenced_symbol_properties): New.
28721         (sem_item::compare_cgraph_references): Rename to ...
28722         (sem_item::compare_symbol_references): ... this one; use
28723         compare_referenced_symbol_properties.
28724         (sem_function::equals_wpa): Do not compare
28725         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28726         DECL_IS_OPERATOR_NEW; compare pointer sizes.
28727         (sem_item::update_hash_by_addr_refs): Call
28728         hash_referenced_symbol_properties.
28729         (sem_item::update_hash_by_local_refs): Cleanup.
28730         (sem_function::merge): Do not mix up symbol properties.
28731         (sem_variable::equals_wpa): Use compare_symbol_references.
28732         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28733         (sem_item::hash_referenced_symbol_properties): New.
28734         (sem_item::compare_symbol_references): New.
28735         (sem_item::compare_cgraph_references): Remove.
28737 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
28739         PR target/26702
28740         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28741         Emit size of local.
28743 2015-04-23  Nick Clifton  <nickc@redhat.com>
28745         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28746         ATTRIBUTE_UNUSED to x parameter.
28747         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28749 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28751         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28752         TARGET_CRYPTO to TARGET_P8_VECTOR>
28753         (crypto_vpermxor_<mode>): Likewise.
28754         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28755         (BU_CRYPTO_3A): Likewise.
28756         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28757         (BU_CRYPTO_OVERLOAD_3A): New #define.
28758         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28759         (VPMSUMH): Likewise.
28760         (VPMSUMW): Likewise.
28761         (VPMSUMD): Likewise.
28762         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28763         (VPERMXOR_V4SI): Likewise.
28764         (VPERMXOR_V8HI): Likewise.
28765         (VPERMXOR_V16QI): Likewise.
28766         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28767         BU_CRYPTO_OVERLOAD_2A.
28768         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28769         BU_CRYPTO_OVERLOAD_3A.
28770         * config/rs6000/rs6000.opt (mcrypto): Change description of
28771         option.
28773 2015-04-23  Richard Biener  <rguenther@suse.de>
28775         * passes.def: Remove copy propagation passes run directly after CCP.
28776         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28777         SSA names.
28778         (ccp_visit_phi_node): Rework to handle first executable edge
28779         specially.
28781 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
28783         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28784         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28785         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28786         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28787         (thumb_legimitimize_reload_address): Remove.
28788         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28789         Remove.
28790         (thumb_legimitimize_reload_address): Remove.
28792 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28794         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28796 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28798         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28799         MAX_LDM_STM_OPS.
28800         (store_multiple): Likewise.
28802 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28804         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28805         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28806         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28807         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28808         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28809         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28810         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28811         Specify issue_rate value.
28812         (arm_issue_rate): Look up issue rate from tuning structs. Remove
28813         large switch statement.
28814         (arm_marvell_pj4_tune): New struct.
28815         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28816         struct.
28818 2015-04-23  Richard Biener  <rguenther@suse.de>
28820         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28821         (vect_find_last_store_in_slp_instance): Rename to ...
28822         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28823         (vect_analyze_slp_cost_1): Use vector_load for constant defs
28824         and vec_construct for external defs when estimating prologue cost.
28825         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28826         Compute costs here only when vectorizing loops.
28827         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28828         have been determined.
28829         (vect_schedule_slp_instance): Simplify vectorized code placement
28830         and prepare for in-BB external defs.
28831         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28832         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28833         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28834         guard.
28835         (vect_model_load_cost): Likewise.
28836         (vectorizable_store): Instead add it here.
28837         (vectorizable_load): Likewise.
28838         (vect_is_simple_use): Dump def type textually.
28840 2015-04-23  Richard Biener  <rguenther@suse.de>
28842         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28843         * cfgloop.c (verify_loop_structure): Verify the root loop node.
28844         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28845         instead of get_eh_region_from_lp_number.
28846         * loop-init.c (fix_loop_structure): If we removed a loop, reset
28847         the SCEV cache.
28849 2015-04-23  Anton Blanchard  <anton@samba.org>
28851         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28852         need for -mprofile-kernel to save LR to stack.
28854 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28856         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28857         adjustments.
28858         (insn_is_swappable_p): Return 1 for a convert from double to
28859         single precision when all of its uses are splats of BE element
28860         zero.
28862 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
28864         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28866 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28868         PR target/65456
28869         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
28870         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28871         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28872         option.
28873         (rs6000_builtin_mask_for_load): Return 0 for targets with
28874         efficient unaligned VSX accesses so that the vectorizer will use
28875         direct unaligned loads.
28876         (rs6000_builtin_support_vector_misalignment): Always return true
28877         for targets with efficient unaligned VSX accesses.
28878         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28879         stores on targets with efficient unaligned VSX accesses is almost
28880         always the same as the cost of an aligned load or store, so model
28881         it that way.
28882         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28883         unaligned vectors if we have efficient unaligned VSX accesses.
28884         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28885         undocumented option.
28887 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28889         Revert:
28890         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28892         * config.gcc (LIBC_MUSL): New tm_defines macro.
28893         * config/linux.h (OPTION_MUSL): Define.
28894         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28895         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28896         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28898         * config/linux.opt (mmusl): New option.
28899         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28900         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28902         * configure: Regenerate.
28904 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28906         * config.gcc (LIBC_MUSL): New tm_defines macro.
28907         * config/linux.h (OPTION_MUSL): Define.
28908         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28909         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28910         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28912         * config/linux.opt (mmusl): New option.
28913         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28914         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28916         * configure: Regenerate.
28918 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
28920         * doc/invoke.texi (-fsanitize-sections): Update description.
28921         * asan.c (set_sanitized_sections): Parse incoming arg.
28922         (section_sanitized_p): Support wildcards.
28924 2015-04-22  Tom de Vries  <tom@codesourcery.com>
28926         PR tree-optimization/65823
28927         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28928         equality between ap_copy and ap.
28930 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28932         PR target/47098
28933         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28935 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28937         PR target/47122
28938         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28940 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28942         PR target/55144
28943         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28944         remove already contained t-files.
28946 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28948         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28949         Remove unneeded forward declarations.
28950         (suitable_for_tail_call_opt_p): Commentary typo fix.
28952 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28954         * varasm.c (emit_bss): Remove redundant guard.
28956 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28958         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28960 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28962         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28964 2015-04-22  Hale Wang  <hale.wang@arm.com>
28965             Terry Guo  <terry.guo@arm.com>
28967         PR rtl-optimization/64818
28968         * combine.c (can_combine_p): Don't combine user-specified
28969         register if it is in an asm input.
28971 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
28973         PR ipa/65076
28974         * passes.def (early_optimizations): Add pass_dse.
28976 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28978         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28979         * reorg.c (redundant_insn): Remove ifdef
28980         INSN_REFERENCES_ARE_DELAYED.
28981         * resource.c (mark_referenced_resources): Likewise.
28983 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28985         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28986         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28987         * resource.c (mark_set_resources): Likewise.
28989 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28991         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28992         * cfgcleanup.c (flow_find_cross_jump): Likewise.
28993         (flow_find_head_matching_sequence): Likewise.
28994         (try_head_merge_bb): Likewise.
28995         * combine.c (can_combine_p): Likewise.
28996         (try_combine): Likewise.
28997         (distribute_notes): Likewise.
28998         * df-problems.c (can_move_insns_across): Likewise.
28999         * final.c (final): Likewise.
29000         * gcse.c (insert_insn_end_basic_block): Likewise.
29001         * ira.c (find_moveable_pseudos): Likewise.
29002         * reorg.c (try_merge_delay_insns): Likewise.
29003         (fill_simple_delay_slots): Likewise.
29004         (fill_slots_from_thread): Likewise.
29005         * sched-deps.c (sched_analyze_2): Likewise.
29007 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29009         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29010         PIC_OFFSET_TABLE_REGNUM.
29012 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29014         * alias.c (init_alias_target): Remove ifdef
29015         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29016         * df-scan.c (df_insn_refs_collect): Likewise.
29017         (df_get_regular_block_artificial_uses): Likewise.
29018         (df_get_eh_block_artificial_uses): Likewise.
29019         (df_get_entry_block_def_set): Likewise.
29020         (df_get_exit_block_use_set): Likewise.
29021         * emit-rtl.c (gen_rtx_REG): Likewise.
29022         * ira.c (ira_setup_eliminable_regset): Likewise.
29023         * reginfo.c (init_reg_sets_1): Likewise.
29024         * regrename.c (rename_chains): Likewise.
29025         * reload1.c (reload): Likewise.
29026         (eliminate_regs_in_insn): Likewise.
29027         * resource.c (mark_referenced_resources): Likewise.
29028         (init_resource_info): Likewise.
29030 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29032         * defaults.h (MASK_RETURN_ADDR): New definition.
29033         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29034         MASK_RETURN_ADDR.
29036 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29038         * defaults.h (RETURN_ADDR_OFFSET): New definition.
29039         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29040         RETURN_ADDR_OFFSET.
29041         (expand_builtin_frob_return_addr): Likewise.
29043 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29045         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29046         (try_redirect_by_replacing_jump): Likewise.
29047         (rtl_tidy_fallthru_edge): Likewise.
29048         * combine.c (insn_a_feeds_b): Likewise.
29049         (find_split_point): Likewise.
29050         (simplify_set): Likewise.
29051         * cprop.c (cprop_jump): Likewise.
29052         * cse.c (cse_extended_basic_block): Likewise.
29053         * df-problems.c (can_move_insns_across): Likewise.
29054         * function.c (emit_use_return_register_into_block): Likewise.
29055         * haifa-sched.c (sched_init): Likewise.
29056         * ira.c (find_moveable_pseudos): Likewise.
29057         * loop-invariant.c (find_invariant_insn): Likewise.
29058         * lra-constraints.c (curr_insn_transform): Likewise.
29059         * postreload.c (reload_combine_recognize_const_pattern):
29060         * Likewise.
29061         * reload.c (find_reloads): Likewise.
29062         * reorg.c (delete_scheduled_jump): Likewise.
29063         (steal_delay_list_from_target): Likewise.
29064         (steal_delay_list_from_fallthrough): Likewise.
29065         (redundant_insn): Likewise.
29066         (fill_simple_delay_slots): Likewise.
29067         (fill_slots_from_thread): Likewise.
29068         (delete_computation): Likewise.
29069         * sched-rgn.c (add_branch_dependences): Likewise.
29071 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29073         * genconfig.c (main): Always define HAVE_cc0.
29074         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29075         HAVE_cc0.
29076         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29077         (flow_find_head_matching_sequence): Likewise.
29078         (try_head_merge_bb): Likewise.
29079         * cfgrtl.c (rtl_merge_blocks): Likewise.
29080         (try_redirect_by_replacing_jump): Likewise.
29081         (rtl_tidy_fallthru_edge): Likewise.
29082         * combine.c (do_SUBST_MODE): Likewise.
29083         (insn_a_feeds_b): Likewise.
29084         (combine_instructions): Likewise.
29085         (can_combine_p): Likewise.
29086         (try_combine): Likewise.
29087         (find_split_point): Likewise.
29088         (subst): Likewise.
29089         (simplify_set): Likewise.
29090         (distribute_notes): Likewise.
29091         * cprop.c (cprop_jump): Likewise.
29092         * cse.c (cse_extended_basic_block): Likewise.
29093         * df-problems.c (can_move_insns_across): Likewise.
29094         * final.c (final): Likewise.
29095         (final_scan_insn): Likewise.
29096         * function.c (emit_use_return_register_into_block): Likewise.
29097         * gcse.c (insert_insn_end_basic_block): Likewise.
29098         * haifa-sched.c (sched_init): Likewise.
29099         * ira.c (find_moveable_pseudos): Likewise.
29100         * loop-invariant.c (find_invariant_insn): Likewise.
29101         * lra-constraints.c (curr_insn_transform): Likewise.
29102         * optabs.c (prepare_cmp_insn): Likewise.
29103         * postreload.c (reload_combine_recognize_const_pattern):
29104         * Likewise.
29105         * reload.c (find_reloads): Likewise.
29106         (find_reloads_address_1): Likewise.
29107         * reorg.c (delete_scheduled_jump): Likewise.
29108         (steal_delay_list_from_target): Likewise.
29109         (steal_delay_list_from_fallthrough): Likewise.
29110         (try_merge_delay_insns): Likewise.
29111         (redundant_insn): Likewise.
29112         (fill_simple_delay_slots): Likewise.
29113         (fill_slots_from_thread): Likewise.
29114         (delete_computation): Likewise.
29115         (relax_delay_slots): Likewise.
29116         * sched-deps.c (sched_analyze_2): Likewise.
29117         * sched-rgn.c (add_branch_dependences): Likewise.
29119 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29121         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29122         that is trivially ded on non cc0 targets.
29123         (simplify_set): Likewise.
29124         (mark_used_regs_combine): Likewise.
29125         * cse.c (new_basic_block): Likewise.
29126         (fold_rtx): Likewise.
29127         (cse_insn): Likewise.
29128         (cse_extended_basic_block): Likewise.
29129         (set_live_p): Likewise.
29130         * rtlanal.c (canonicalize_condition): Likewise.
29131         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29133 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29135         * conditions.h: Define macros even if HAVE_cc0 is undefined.
29136         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29137         * final.c: Likewise.
29138         * jump.c: Likewise.
29139         * recog.c: Likewise.
29140         * recog.h: Declare functions even when HAVE_cc0 is undefined.
29141         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29143 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29145         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29146         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29147         * builtins.c (expand_builtin): Remove check if
29148         EH_RETURN_DATA_REGNO is defined.
29149         * df-scan.c (df_bb_refs_collect): Likewise.
29150         (df_get_exit_block_use_set): Likewise.
29151         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29152         * ira-lives.c (process_bb_node_lives): Likewise.
29153         * lra-lives.c (process_bb_lives): Likewise.
29155 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29157         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29158         FIRST_PSEUDO_REG): New.
29159         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29160         (ARG_POINTER_REGNUM): Define to ARGP_REG.
29161         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29162         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29163         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29164         (FIRST_INT_REG): New.
29165         (LAST_INT_REG): New.
29166         (FIRST_*_REG): Define using *_REG.
29167         (LAST_*_REG): Ditto.
29168         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29169         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29170         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29172 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29174         * expmed.c: (synth_mult): Only assume overlapping
29175         shift with previous steps in alg_sub_t_m2 case.
29177 2015-04-21  Richard Biener  <rguenther@suse.de>
29179         PR tree-optimization/65650
29180         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29181         transitions involving copies.
29182         (set_lattice_value): Adjust for copy lattice state.
29183         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29184         if that doesn't dominate the merge point.
29185         (bit_value_unop): Adjust what we treat as varying mask.
29186         (bit_value_binop): Likewise.
29187         (bit_value_assume_aligned): Likewise.
29188         (evaluate_stmt): When we simplified to a SSA name record a copy
29189         instead of dropping to varying.
29190         (visit_assignment): Simplify.
29192         * gimple-match.h (gimple_simplify): Add another callback.
29193         * gimple-fold.c (fold_stmt_1): Adjust caller.
29194         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29195         for the 2nd callback.
29196         * gimple-match-head.c (gimple_simplify): Add a callback that is
29197         used to valueize the stmt operands and use it that way.
29199 2015-04-21  Richard Biener  <rguenther@suse.de>
29201         PR tree-optimization/65788
29202         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29204 2015-04-21  Richard Biener  <rguenther@suse.de>
29206         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29207         vec_construct cost by vec_stmt_cost.
29209 2015-04-21  Richard Biener  <rguenther@suse.de>
29211         * cfghooks.h (create_basic_block): Replace with two overloads
29212         for RTL and GIMPLE.
29213         (split_block): Likewise.
29214         * cfghooks.c (split_block): Rename to ...
29215         (split_block_1): ... this.
29216         (split_block): Add two type-safe overloads for RTL and GIMPLE.
29217         (split_block_after_labels): Call split_block_1.
29218         (create_basic_block): Rename to ...
29219         (create_basic_block_1): ... this.
29220         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29221         (create_empty_bb): Call create_basic_block_1.
29222         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29223         split_block_after_labels.
29224         * omp-low.c (expand_parallel_call): Likewise.
29225         (expand_omp_target): Likewise.
29226         (simd_clone_adjust): Likewise.
29227         * tree-chkp.c (chkp_get_entry_block): Likewise.
29228         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29229         create_basic_block overload.
29230         (cgraph_node::expand_thunk): Likewise.
29231         * tree-cfg.c (make_blocks): Likewise.
29232         (handle_abnormal_edges): Likewise.
29233         * tree-inline.c (copy_bb): Likewise.
29235 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29237         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29238         New pattern.
29239         (*xor_one_cmplsidi3_ze): Likewise.
29241 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29243         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29244         use df_remove_problem rather than manually removing problems, leaving
29245         holes in df->problems_in_order[].
29247 2015-04-21  Tom de Vries  <tom@codesourcery.com>
29249         PR tree-optimization/65802
29250         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29252 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29254         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29255         Increase to 128.
29256         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29257         at '.'.  Assert that there's enough space for everything.
29259 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29261         PR tree-optimization/64950
29262         Revert:
29263         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
29265         PR target/41089
29266         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29267         as volatile.
29269 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
29271         PR rtl-optimization/64916
29272         * cfgcleanup.c (values_equal_p): New function.
29273         (can_replace_by): Use it.
29275 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
29277         PR c++/65801
29278         * doc/invoke.texi ([-Wnarrowing]): Update.
29280 2015-04-20  Jeff Law  <law@redhat.com>
29282         PR tree-optimization/65658
29283         * tree-ssa-threadupdate.c (redirection_block_p): Remove
29284         redundant test for GIMPLE_ASSIGN in last change.
29286 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
29288         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29289         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29290         (legitimize_tls_address): Ditto.
29291         (ix86_expand_move): Ditto.
29292         (ix86_expand_binary_operator): Remove reload_in_progress checks.
29293         (ix86_expand_unary_operator): Ditto.
29294         * config/i386/predicates.md (index_register_operand): Ditto.
29296 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
29298         * reorg.c (try_merge_delay_insns): Improve correctness checking
29299         for targets with multiple delay slots.
29301 2015-04-20  Jeff Law  <law@redhat.com>
29303         PR tree-optimization/65658
29304         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29305         statements too.
29307 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29309         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29310         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29311         Delete.
29313 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
29315         PR debug/65807
29316         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29318 2015-04-20  Richard Biener  <rguenther@suse.de>
29320         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29321         * gimple-fold.c (gimple_build_valueize): New function.
29322         (gimple_build): Always use gimple_build_valueize as valueize hook.
29324 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29326         PR target/64134
29327         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29328         and overwrite variable parts if <= 1/2 the elements are variable.
29330 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29332         PR rtl-optimization/65805
29333         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29334         Don't use difference of offset and previous offset if
29335         update_sp_offset is non-zero.
29336         (eliminate_regs_in_insn): Ditto.
29337         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29338         lra_eliminate_regs_1 call.
29339         * lra-constraints.c (get_equiv_with_elimination): Ditto.
29341 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
29343         * hash-table.h: Remove version of hash_table that stored value_type *.
29344         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29345         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29346         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29347         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29348         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29349         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29350         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29351         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29352         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29353         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29354         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29355         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29356         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29357         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29358         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29359         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29361 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29362             Jakub Jelinek  <jakub@redhat.com>
29364         PR target/65787
29365         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29366         subsequent SH_NONE operand does not overwrite an existing *special
29367         value.
29368         (adjust_extract): Handle case where a vec_extract operation is
29369         wrapped in a PARALLEL.
29371 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29373         PR target/65780
29374         * config/i386/i386.c (ix86_binds_local_p): Define only if
29375         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29377 2015-04-17  Jeff Law  <law@redhat.com>
29379         PR tree-optimization/47679
29380         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29381         * tree-ssa-scopedtables.c: New file.
29382         * tree-ssa-scopedtables.h: New file.
29383         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29384         (const_and_copies): Change name/type.
29385         (record_const_or_copy): Move into tree-ssa-scopedtables.c
29386         (record_const_or_copy_1): Similarly.
29387         (restore_vars_to_original_value): Similarly.
29388         (pass_dominator::execute): Create and destroy const_and_copies table.
29389         (thread_across_edge): Update passing of const_and_copies.
29390         (record_temporary_equivalence): Use method calls rather than
29391         manipulating const_and_copies directly.
29392         (record_equality, cprop_into_successor_phis): Similarly.
29393         (dom_opt_dom_walker::before_dom_children): Similarly.
29394         (dom_opt_dom_walker::after_dom_children): Similarly.
29395         (eliminate_redundant_computations): Similarly.
29396         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29397         (record_temporary_equivalence): Likewise.
29398         (invalidate_equivalences): Likewise.
29399         (record_temporary_equivalences_from_phis): Update due to type
29400         change of const_and_copies.  Use method calls rather than
29401         manipulating the stack directly.
29402         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29403         (thread_through_normal_block, thread_across_edge): Likewise.
29404         (thread_across_edge): Likewise.
29405         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29406         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
29407         of equiv_stack.
29408         (identify_jump_threads): Update due to type change of equiv_stack.
29409         (finalize_jump_threads): Delete the equiv_stack when complete.
29411 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
29413         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29414         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29415         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29417 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
29419         PR target/65535
29420         * config.gcc: Exit with a comment when we do not have a major version
29421         number for the FreeBSD target.
29423 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29425         PR target/65689
29426         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29427         maybe_allows_mem bitfields.
29428         (maybe_allows_none_start, maybe_allows_none_end,
29429         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29430         maybe_allows_mem_end): New variables.
29431         (compute_maybe_allows): New function.
29432         (add_constraint): Use it to initialize maybe_allows_reg and
29433         maybe_allows_mem fields.
29434         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29435         is_address constraints such that those that allow neither mem nor
29436         reg come first, then those that only allow reg but not mem, then
29437         those that only allow mem but not reg, then the rest.
29438         (write_allows_reg_mem_function): New function.
29439         (write_tm_preds_h): Call it.
29440         * stmt.c (parse_output_constraint, parse_input_constraint): Use
29441         the generated insn_extra_constraint_allows_reg_mem function
29442         instead of always setting *allows_reg = true; *allows_mem = true;
29443         for unknown extra constraints.
29445 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29447         PR target/65780
29448         * output.h (default_binds_local_p_3): New.
29449         * varasm.c (default_binds_local_p_3): Make it public.  Take an
29450         argument to indicate if common symbol may be local.  If common
29451         symbol may be local, treat non-external variable as defined
29452         locally.
29453         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29454         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29455         * config/i386/i386.c (ix86_binds_local_p): New.
29456         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29457         ix86_binds_local_p.
29459 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29461         PR debug/65771
29462         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29463         trying mem_loc_descriptor on XEXP (rtl, 0).
29465 2015-04-17  Martin Liska  <mliska@suse.cz>
29467         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29468         Release symbol_compare_collection.
29469         * ipa-reference.c: Add TODO that a vector should be released.
29471 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29473         PR target/65296
29474         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29475         to new AVR-LibC file layout (bug #44574).
29476         (*avrlibc_devicelib): Same.
29477         * config/avr/avr-mcus.def: Adjust comments.
29478         * config/avr/avr.opt (nodevicelib): Adjust help.
29480 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
29482         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29484 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
29486         PR c++/64527
29487         * gimplify.c (gimplify_init_constructor): Always emit a
29488         side-effecting constructor.
29490 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29492         PR tree-optimization/64950
29493         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29494         in cfun->curr_properties.
29495         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29496         if we generate an IFN_VA_ARG.
29497         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29498         function if PROP_gimple_lva is not set in src function.
29500 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29501             Michael Matz  <matz@suse.de>
29503         PR tree-optimization/64950
29504         * gimple-iterator.c (update_modified_stmts): Remove static.
29505         * gimple-iterator.h (update_modified_stmts): Declare.
29506         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29507         (gimplify_va_arg_internal): New function.
29508         (gimplify_va_arg_expr): Use IFN_VA_ARG.
29509         * gimplify.h (gimplify_va_arg_internal): Declare.
29510         * internal-fn.c (expand_VA_ARG): New unreachable function.
29511         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29512         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29513         (expand_ifn_va_arg): New function.
29514         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29515         (pass_stdarg::execute): Call expand_ifn_va_arg.
29516         (pass_data_lower_vaarg): New pass_data.
29517         (pass_lower_vaarg): New gimple_opt_pass.
29518         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29519         (make_pass_lower_vaarg): New function.
29520         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29521         properties_required field.
29522         * passes.def (all_passes): Add pass_lower_vaarg.
29523         * tree-pass.h (PROP_gimple_lva): Add define.
29524         (make_pass_lower_vaarg): Declare.
29526 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29528         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29529         * calls.c (call_expr_flags): Same.
29531 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29533         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29534         (pass_stdarg::execute): ... here.
29536 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29537             Michael Matz  <matz@suse.de>
29539         * tree-cfg.c (make_blocks_1): Factor out of ...
29540         (make_blocks): ... here.
29541         (make_edges_bb): Factor out of ...
29542         (make_edges): ... here.
29543         (gimple_find_sub_bbs): New function.
29544         * tree-cfg.h (gimple_find_sub_bbs): Declare.
29546 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29548         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29550 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
29552         * asan.c (set_sanitized_sections): New function.
29553         (section_sanitized_p): Ditto.
29554         (asan_protect_global): Optionally sanitize user-defined
29555         sections.
29556         * asan.h (set_sanitized_sections): Declare new function.
29557         * common.opt (fsanitize-sections): New option.
29558         * doc/invoke.texi (-fsanitize-sections): Document new option.
29559         * opts-global.c (handle_common_deferred_options): Handle new
29560         option.
29562 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29564         PR debug/65771
29565         * dwarf2out.c (loc_list_from_tree): Return NULL
29566         for DEBUG_EXPR_DECL.
29568 2015-04-17  Christian Bruel  <christian.bruel@st.com>
29570         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29571         same attributes.
29573 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29575         * ira-color.c (setup_left_conflict_sizes_p): Do not process
29576         node itself when computing left conflict subnode size.
29578 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29580         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29581         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29582         *fop_<mode>_1_sse using enabled attribute.  Use
29583         register_mixssei387nonimm_operand operand 1 predicate. Change
29584         alternative 3 constraints from "x" to "v".
29586 2015-04-16  Richard Biener  <rguenther@suse.de>
29588         PR tree-optimization/65774
29589         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29590         bit-value tracking on.
29592 2015-04-16  Richard Biener  <rguenther@suse.de>
29594         PR tree-optimization/64277
29595         * tree-vrp.c (check_array_ref): Fix anti-range handling,
29596         simplify upper bound handling.
29597         (search_for_addr_array): Simplify.
29598         (check_array_bounds): Handle ADDR_EXPRs here.
29599         (check_all_array_refs): Simplify.
29601 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29603         * config/i386/i386.c (print_reg): Rewrite function.
29605 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29607         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29608         Invert the condition.
29610 2015-04-16  Renlin Li  <renlin.li@arm.com>
29612         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29613         simplifications for UNSIGNED_FLOAT.
29615 2015-04-16  Nick Clifton  <nickc@redhat.com>
29617         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29618         MUL_UNINIT.
29619         (enum rl78_cpu_type): New.
29620         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29621         (umulhi3_shift_virt): Remove m constraint from operand 1.
29622         (umulqihi3_virt): Likewise.
29623         * config/rl78/rl78.c (rl78_option_override): Add code to process
29624         -mcpu and -mmul options.
29625         (rl78_alloc_physical_registers): Add code to handle divhi and
29626         divsi valloc attributes.
29627         (set_origin): Likewise.
29628         * config/rl78/rl78.h (RL78_MUL_G14): Define.
29629         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29630         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29631         __RL78_Gxx__.
29632         (ASM_SPEC): Pass -mcpu on to assembler.
29633         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29634         (mulqi3_rl78): Likewise.
29635         (mulhi3_g13): Likewise.
29636         (mulhi3): Generate the G13 or G14 versions of the insn directly.
29637         (mulsi3): Likewise.
29638         (mulhi3_g14): Add clobbers of AX and BC.
29639         (mulsi3_g14): Likewise.
29640         (mulsi3_g13): Likewise.
29641         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29642         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29643         * config/rl78/rl78.opt (mmul): Initialise value to
29644         RL78_MUL_UNINIT.
29645         (mcpu): New option.
29646         (m13, m14, mrl78): New option aliases.
29647         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29648         (MULTILIB_DIRNAMES): Add g13 and g14.
29649         * doc/invoke.texi: Document -mcpu and -mmul options.
29651 2015-04-16  Richard Biener  <rguenther@suse.de>
29653         * tree-ssa-ccp.c (likely_value): See if we have operands that
29654         are marked as never simulate again and return CONSTANT in this
29655         case.
29656         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29657         not have any operands that will be simulated again as
29658         not being simulated again.
29660 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
29662         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29663         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29664         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29665         attribute.
29666         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29667         enabled attribute.
29668         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29669         *float<SWI48:mode><MODEF:mode>2_sse.
29670         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29671         enabled attribute.
29672         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29673         enabled attribute.
29675 2015-04-15  Tom de Vries  <tom@codesourcery.com>
29677         PR other/65487
29678         * function.c (push_dummy_function): New function.
29679         (init_dummy_function_start): Use push_dummy_function.
29680         (pop_dummy_function): New function.  Factored out of ...
29681         (expand_dummy_function_end): ... here.
29682         * function.h (push_dummy_function, pop_dummy_function): Declare.
29683         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29684         pop_dummy_function.
29685         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29687 2015-04-15  Jeff Law  <law@redhat.com>
29689         PR tree-optimization/47679
29690         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29691         need for forward declaration in upcoming changes.
29692         (record_conditions, record_edge_info): Likewise.
29694         PR rtl-optimization/42522
29695         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29696         SIGN_EXTRACT as a whole object rather than simplifying
29697         its operand.
29699 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
29701         PR ipa/65765
29702         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29703         and GIMPLE_PREDICT use break instead of return true. For
29704         GIMPLE_EH_DISPATCH, compare dispatch region.
29706 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
29708         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
29709         details about the implementation.  Make clear preference for
29710         __atomic builtins.  Reduce possibility of future change.
29712 2015-04-15  Nick Clifton  <nickc@redhat.com>
29714         * config/rx/rx.opt (mallow-string-insns): New option.
29715         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29716         builtin if string instructions are denied.
29717         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29718         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29719         appropriate.
29720         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29721         * config/rx/rx.md (movstr): Enable pattern only if string
29722         instructions are allowed.
29723         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29724         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29725         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29726         (MULTILIB_DIRNAMES): Add no-strings.
29727         * doc/invoke.texi: Document -mno-allow-string-insns.
29729 2015-04-15  Alan Modra  <amodra@gmail.com>
29731         PR target/65408
29732         PR target/58744
29733         PR middle-end/36043
29734         * calls.c (load_register_parameters): Don't load past end of
29735         mem unless suitably aligned.
29737 2015-04-15  Nick Clifton  <nickc@redhat.com>
29739         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29740         decrement instruction as being frame related.
29741         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29742         based addresses.
29743         If zero extending a function address enclose the operation in
29744         %code(...).
29745         (rl78_preferred_reload_class): New function.
29746         (TARGET_PREFERRED_RELOAD_CLASS): Define.
29747         * config/rl78/rl78.md: Remove useless constraints in expanders.
29748         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29749         (mulhi3_rl78): Likewise.
29750         (mulhi3_g13): Likewise.
29751         (mulsi3_rl78): Likewise.
29752         (es_addr): Move to before the multiply patterns.
29754 2015-04-15  Alan Modra  <amodra@gmail.com>
29756         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29757         and sequence_stack.  Add seq.
29758         (seq_stack): Delete.
29759         * function.c (prepare_function_start): Don't access x_last_insn.
29760         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29761         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29762         * emit_rtl.c (start_sequence, push_topmost_sequence,
29763         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29764         sequence accessors.
29765         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29766         remove_insn): Likewise.  Simplify.
29767         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29768         and pop_topmost_sequence.
29769         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
29770         debug insns.
29771         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29773 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
29775         PR target/65729
29776         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29777         the assertiion.
29779 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29781         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29782         (LEGACY_INT_REGNO_P): Ditto.
29783         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29784         (ANY_MASK_REG_P): Remove.
29785         (BND_REG_P): Rename from ANY_BND_REG_P.
29786         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29787         legacy integer registers.  Do not handle MMX_REG_P in a special way.
29788         Merge 64byte and 32byte SSE handling.
29790 2015-04-14  Nick Clifton  <nickc@redhat.com>
29792         * expr.c (expand_assignment): Force an address offset computation
29793         into a register before changing its mode.
29794         (expand_expr_real_1): Likewise.
29796 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
29798         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29799         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29800         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29801         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29802         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29803         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29804         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29805         and __aarch64_vget_lane_any.
29807 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
29809         PR rtl-optimization/65761
29810         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29811         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29813 2015-04-14  Richard Biener  <rguenther@suse.de>
29815         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29816         (graphite_can_represent_scev): Use POINTER_TYPE_P.
29818 2015-04-14  Richard Biener  <rguenther@suse.de>
29820         PR tree-optimization/65758
29821         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29822         against -1.
29823         (ccp_lattice_meet): Likewise.
29824         (bit_value_unop): Likewise.
29825         (bit_value_binop): Likewise.
29826         (bit_value_assume_aligned): Likewise.
29828 2015-04-14  Christian Bruel  <christian.bruel@st.com>
29830         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29831         function.
29833 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
29835         PR tree-optimization/63387
29836         * match.pd ((x unord x) | (y unord y) -> (x unord y),
29837         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29839 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29841         * config/i386/predicates.md (any_QIreg_operand): Rename from
29842         q_regs_operand.  Do not process subregs.
29843         (QIreg_operand): Use QI_REGNO_P predicate.
29844         (ext_QIreg_operand): Ditto.
29845         (ext_register_operand): Ditto.
29846         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29847         (AND splitters): Ditto.
29848         (AND with -65536 splitter): Add SWI48 mode for operand 0.
29849         (AND with -256 splitter): Use any_QIreg_operand predicate and
29850         SWI248 mode for operand 0.
29851         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29852         mode for operand 0.
29853         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29855 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
29857         * doc/plugins.texi: Rewrite first introductory paragraph.
29859 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29861         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29862         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29864 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29866         * ipa-profie.c (ipa_profile): Check number of parameters
29867         and possible polymorphic call targets before
29868         devirtualizing.
29870 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
29872         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29873         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29875 2015-04-13  Richard Biener  <rguenther@suse.de>
29877         PR tree-optimization/65204
29878         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29879         takens for bit-CCP.
29881 2015-04-13  Richard Biener  <rguenther@suse.de>
29883         PR target/65660
29884         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29885         and cond_not_taken_branch_cost to 4 and 2.
29886         (bdver2_cost): Likewise.
29887         (bdver3_cost): Likewise.
29888         (bdver4_cost): Likewise.
29890 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29892         * hash-table.h (hash_table constructor): Add mem stats.
29893         (alloc_entries): Likewise.
29895 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29897         * ipa-cp.c (ipcp_driver): Relase prev_edge.
29898         * passes.c (execute_one_pass): Only add transform if pass has one.
29900 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
29902         * config/i386/i386.c (ix86_option_override_internal): Don't set
29903         -fprefetch-loop-arrays if optimizing for size.
29905 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29906             Gerald Pfeifer  <gerald@pfeifer.com>
29908         * doc/contrib.texi (Contributors): Add Martin Jambor and
29909         Michael Matz.
29911 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
29913         * BASE-VER: Set to 6.0.0.
29915         PR tree-optimization/65747
29916         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29917         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29919 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29921         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29922         sentence.  Improve grammar.
29924 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29926         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29928 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29930         PR ipa/65743
29931         * ipa-inline-transform.c (speculation_removed): Remove static var.
29932         (check_speculations): New function.
29933         (clone_inlined_nodes): Do not check spculations.
29934         (inline_call): Call check_speculations.
29935         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29936         consider non-invariants.
29938 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29939             Martin Liska  <mliska@suse.cz>
29941         PR ipa/65722
29942         * ipa-icf.c (sem_item::compare_cgraph_references): function and
29943         variable can not match.
29944         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29945         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29947 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
29949         PR tree-optimization/65735
29950         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29951         Remove visited_phis argument, add visited_bbs, avoid recursing into the
29952         same bb rather than just into the same phi node.
29953         (thread_through_normal_block): Adjust caller.
29955 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29957         * doc/contrib.texi (Contributors): Add Ira Rosen.
29959 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
29961         * gcov.c (find_source): Fix miswording in error message.
29962         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29963         (ix86_expand_sse_comi_round): Fix typo in error message.
29965 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29967         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29969 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
29971         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29973 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29975         PR target/65710
29976         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29977         Print bad_spills_num and insn_pseudos_num.
29979 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29981         PR target/65694
29982         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29983         when creating +1 values for SImode.
29985 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29987         PR target/65729
29988         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29989         assert.
29991 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
29992             Iain Sandoe  <iain@codesourcery.com>
29994         PR target/65351
29995         * configure: Regenerate.
29997 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
29999         PR target/65671
30000         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30002 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
30004         * doc/contrib.texi (Contributors): Add John Marino.
30006 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30008         PR tree-optimization/65709
30009         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30010         TREE_TYPE (TREE_TYPE (t)).
30012 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
30014         PR target/65710
30015         * lra-int.h (lra_bad_spill_regno_start): New.
30016         * lra.c (lra_bad_spill_regno_start): New.
30017         (lra): Set up lra_bad_spill_regno_start.  Set up
30018         lra_constraint_new_regno_start unconditionally.
30019         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30020         spill preferences.
30022 2015-04-09  Marek Polacek  <polacek@redhat.com>
30023             Jakub Jelinek  <jakub@redhat.com>
30025         PR middle-end/65554
30026         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30027         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30028         of STRIP_NOPS.
30030 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
30032         PR rtl-optimization/65693
30033         * combine.c (is_parallel_of_n_reg_sets): Move outside of
30034         #ifndef HAVE_cc0.
30036 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
30038         PR target/65296
30039         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30040         device specs file if "device-specs%s" didn't resolve to a path.
30042 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30044         PR target/65676
30045         * config/i386/i386.c (fixup_modeless_constant): New.
30046         (ix86_expand_args_builtin): Fixup modeless constant operand.
30047         (ix86_expand_round_builtin): Ditto.
30048         (ix86_expand_special_args_builtin): Ditto.
30049         (ix86_expand_builtin): Ditto.
30051 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30053         PR target/65693
30054         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30055         any pow2 integer in between 2 and 0x80000000U inclusive.
30057 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
30059         PR rtl-optimization/65693
30060         * combine.c (is_parallel_of_n_reg_sets): Change first argument
30061         from an rtx_insn * to an rtx.
30062         (try_combine): Adjust both callers.  Use it once more.
30064 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30066         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30067         (chkp_make_static_const_bounds): Search existing
30068         symbol by assembler name.  Use make_decl_one_only.
30069         (chkp_get_zero_bounds_var): Remove node search which
30070         is now performed in chkp_make_static_const_bounds.
30071         (chkp_get_none_bounds_var): Likewise.
30073 2015-04-08  Michael Witten  <mfwitten@gmail.com>
30075         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30076         to an example.
30078 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30080         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30082 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30084         * doc/extend.texi (__sync Builtins): Fix grammar.
30086 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30088         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30090 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30092         * varasm.c (emit_local): Move definition of align.
30094 2015-04-08  Julian Brown  <julian@codesourcery.com>
30096         * config/nvptx/mkoffload.c (process): Support variable mapping.
30098 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
30100         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30101         alpha_links **.
30102         (alpha_write_one_linkage): Correct typo.
30104 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30106         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30108 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30110         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30112 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30114         * tree-chkp.h (chkp_insert_retbnd_call): New.
30115         * tree-chkp.c (chkp_insert_retbnd_call): New.
30116         * ipa-split.c (insert_bndret_call_after): Remove.
30117         (split_function): Use chkp_insert_retbnd_call.
30118         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30119         bounds for instrumented functions.
30121 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
30123         PR ipa/65540
30124         * calls.c (initialize_argument_information): When producing tail
30125         call also turn SSA_NAMES passed by references to original PARM_DECLs
30127 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
30129         PR target/65648
30130         * lra-remat.c (do_remat): Process input and non-input insn
30131         registers separately.
30133 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30135         PR debug/65678
30136         * valtrack.c (debug_lowpart_subreg): New function.
30137         (dead_debug_insert_temp): Use it.
30139         PR middle-end/65680
30140         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30141         into signed HOST_WIDE_INT the same as negative bit_offset.
30143 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
30145         * ipa-comdats.c (ipa_comdats): Visit all thunks
30146         to set proper comdat group.
30148 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30150         PR target/65489
30151         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30152         on constants for NEON VSTRUCT modes.
30154 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30155             Iain Sandoe  <iain@codesourcery.com>
30157         PR target/65351
30158         * configure: Regenerate.
30160 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
30162         PR target/65614
30163         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30164         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30165         that LFD is used to load double constants instead of LFS.  Add
30166         defaults for all costs structures.  Add comments for missing
30167         initialization fields.
30168         (size32_cost): Likewise.
30169         (size64_cost): Likewise.
30170         (rs64a_cost): Likewise.
30171         (mpccore_cost): Likewise.
30172         (ppc403_cost): Likewise.
30173         (ppc405_cost): Likewise.
30174         (ppc440_cost): Likewise.
30175         (ppc476_cost): Likewise.
30176         (ppc601_cost): Likewise.
30177         (ppc603_cost): Likewise.
30178         (ppc604_cost): Likewise.
30179         (ppc604e_cost): Likewise.
30180         (ppc620_cost): Likewise.
30181         (ppc630_cost): Likewise.
30182         (ppccell_cost): Likewise.
30183         (ppc750_cost): Likewise.
30184         (ppc7450_cost): Likewise.
30185         (ppc8540_cost): Likewise.
30186         (ppce300c2c3_cost): Likewise.
30187         (ppce500mc_cost): Likewise.
30188         (ppce500mc64_cost): Likewise.
30189         (ppce5500_cost): Likewise.
30190         (ppce6500_cost): Likewise.
30191         (titan_cost): Likewise.
30192         (power4_cost): Likewise.
30193         (power6_cost): Likewise.
30194         (power7_cost): Likewise.
30195         (power8_cost): Likewise.
30196         (ppca2_cost): Likewise.
30197         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30199         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30200         instead of XXLOR to copy SFmode to clear out dirty bits created
30201         when SFmode denormals are generated.
30202         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30203         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30205 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30207         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30208         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30209         * config/aarch64/aarch64-tune.md: Regenerate.
30211 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30213         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30214         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30215         * config/arm/arm-cores.def (exynos-m1): New core.
30216         * config/arm/arm-tune.md: Regenerate.
30217         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30218         * config/arm/bpabi.h: Likewise.
30220 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30222         * ipa-cp (set_single_call_flag): Remove too
30223         restrictive assert.
30225 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
30227         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30228         GOMP_offload_unregister from the destructor.
30230 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30232         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30233         flags for instrumentation thunk.
30234         (chkp_produce_thunks): Likewise.
30236 2015-04-05  Martin Liska  <mliska@suse.cz>
30238         PR ipa/65665
30239         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30240         has computed data structure.
30241         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30243 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
30245         * invoke.texi (inline-unit-growth): Increase growth to 20%
30246         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30248 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
30250         PR target/65647
30251         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
30252         value checking.
30253         (lra_rematerialization_iter): New.
30254         * lra.c (lra): Initialize lra_rematerialization_iter.
30255         Stop updating lra_constraint_new_regno_start after switching of
30256         inheritance and rematerialization.
30257         * lra-remat.c (lra_rematerialization_iter): New.
30258         (lra_remat): Add printing pass iteration.  Do rematerialization
30259         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30261 2015-04-04  Richard Biener  <rguenther@suse.de>
30263         PR tree-optimization/64909
30264         PR tree-optimization/65660
30265         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30266         to take a cost vector for scalar iteration cost.
30267         (vect_get_single_scalar_iteration_cost): Likewise.
30268         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30269         Compute the scalar iteration cost into a cost vector.
30270         (vect_get_known_peeling_cost): Use the scalar cost vector to
30271         account for the cost of the peeled iterations.
30272         (vect_estimate_min_profitable_iters): Likewise.
30273         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30274         Likewise.
30276 2015-04-04  Alan Modra  <amodra@gmail.com>
30278         PR target/65576
30279         PR target/65240
30280         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30281         0.0 constant unless TARGET_VSX.
30282         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30283         alternative.
30285 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30287         PR ipa/65654
30288         * ipa-inline-transform.c (inline_call): Skip sanity check to work
30289         around the ICE
30291 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30293         PR ipa/65655
30294         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30295         speculative indirect edges to avoid ordering issue.
30297 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30299         PR ipa/65076
30300         * ipa-inline.c (edge_badness): Add combined size to the denominator.
30302 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
30304         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30305         TYPE_ARTIFICIAL on the .omp_data* types.
30307 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30309         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30310         instrumentation thunks.
30312 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30314         * config/i386/i386.c (ix86_expand_call): Avoid nested
30315         PARALLEL in returned call value.
30317 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30319         * lto-cgraph.c (input_cgraph_1): Always link instrumented
30320         assembler name with original one.
30322 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30324         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30326 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30328         Revert parts of r216820.
30329         * config/i386/i386.md (movqi_internal): Correct type calculation
30330         for alternatives 3 and 5.
30332 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
30334         PR preprocessor/61977
30335         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30336         predefine __vector/__bool/__pixel macros nor context sensitive
30337         macros for CLK_ASM.
30338         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30340 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
30342         * config/pa/pa.c (pa_output_move_double): Directly handle register
30343         indexed memory operand.  Simplify handling of scaled register indexed
30344         memory operands.
30346 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30348         PR driver/65444
30349         * config/i386/linux-common.h (MPX_SPEC): New.
30350         (CHKP_SPEC): Add MPX_SPEC.
30351         * doc/invoke.texi (-fcheck-pointer-boudns): Document
30352         possible issues with '-z bndplt' support in linker.
30354 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30356         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30357         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30358         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30359         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30360         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30362 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
30364         * config/i386/sync.md (UNSPEC_MOVA): Remove.
30365         (atomic_load<mode>): Change operand 0 predicate to
30366         nonimmediate_operand and fix up the destination when needed.
30367         Use UNSPEC_LDA.
30368         (atomic_loaddi_fpu): Use UNSPEC_LDA.
30369         (atomic_store<mode>): Change operand 1 predicate to
30370         nonimmendate_operand and move the source to register when needed.
30371         Use UNSPEC_STA.
30372         (atomic_store<mode>_1): Use UNSPEC_STA.
30373         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30374         Fix moves from memory operand.  Use UNSPEC_STA.
30376 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30378         * expmed.c (strict_volatile_bitfield_p): Check that the access will
30379         not cross a MODESIZE boundary.
30380         (store_bit_field, extract_bit_field): Added assertions in the
30381         strict volatile bitfields code path.
30383 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30385         PR target/65624
30386         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30387         Increase args array size by one to avoid buffer overflow.
30389 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30391         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30392         split_part.
30393         * ipa-inline.c (edge_badness): Add wrapper penalty.
30394         (sum_callers): Move up.
30395         (inline_small_functions): Set single_caller.
30396         * ipa-inline.h (inline_summary): Add single_caller.
30397         * ipa-split.c (split_function): Set split_part.
30398         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30399         * cgraph.h (cgraph_node): Add split_part.
30401 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
30403         PR target/58945
30404         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30405         Do not split operands 0 and operands 2 to halfmode.
30406         (atomic_compare_and_swap<mode>): Update for
30407         atomic_compare_and_swap<dwi>_doubleword changes.
30409 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30411         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30412         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30413         no caching is done.
30415 2015-03-31  Martin Liska  <mliska@suse.cz>
30417         PR ipa/65557
30418         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30419         has already filled up function summary.
30420         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30422 2015-03-31  Richard Biener  <rguenther@suse.de>
30424         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30425         of types.
30427 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30429         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30430         nested functions.
30431         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30432         (s390_asm_output_function_label): Adapt to new signature of
30433         s390_function_num_hotpatch_hw
30434         Optimise the code generating assembler output.
30435         Add comments to assembler file.
30437 2015-03-31  Richard Biener  <rguenther@suse.de>
30439         PR middle-end/65626
30440         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30441         of the noreturn call so it is last and cleanup_control_flow_bb
30442         can do the CFG part.
30444 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
30446         PR target/65531
30447         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30448         same_comdat_group for external symbols.
30449         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30450         infinite same_comdat_group traversal loop.
30452 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
30454         PR plugins/61176
30455         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30456         automatically to $headers.
30458 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
30460         PR ipa/65610
30461         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30462         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30463         function.
30464         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30465         Use it.
30466         * ipa-prop.c (param_type_may_change_p): Likewise.
30467         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30468         (remove_unused_scope_block_p): Add in_ctor_dtor_block
30469         argument.  Before inlining, preserve
30470         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30471         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
30472         recursive calls.
30473         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30475 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30477         PR ipa/65076
30478         * ipa-inline.c (edge_badness): Base denominator on callee's
30479         grwoth squared.
30481 2015-03-27  Martin Jambor  <mjambor@suse.cz>
30483         PR ipa/65478
30484         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30485         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30486         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30487         node_calling_single_call.
30488         * ipa-cp.c (count_callers): New function.
30489         (set_single_call_flag): Likewise.
30490         (initialize_node_lattices): Count callers and set single_flag_call if
30491         necessary.
30492         (incorporate_penalties): New function.
30493         (good_cloning_opportunity_p): Use it, dump new flags.
30494         (propagate_constants_topo): Set node_within_scc flag if appropriate.
30495         * doc/invoke.texi (ipa-cp-recursion-penalty,
30496         ipa-cp-single-call-pentalty): Document.
30498 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30500         PR ipa/65588
30501         * symtab.c (symtab_node::get_partitioning_class): Register vars
30502         are duplicated.
30503         * varpool.c (symbol_table::output_variables) Do not assemble unefined
30504         decls for non-symbols.
30506 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30508         PR target/65248
30509         * output.h (default_binds_local_p_2): New.
30510         * varasm.c (default_binds_local_p_2): Renamed to ...
30511         (default_binds_local_p_3): This.  Don't return true on protected
30512         data symbol if protected data may be external.
30513         (default_binds_local_p): Use default_binds_local_p_3.
30514         (default_binds_local_p_1): Likewise.
30515         (default_binds_local_p_2): New.
30516         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30517         default_binds_local_p_2 if TARGET_MACHO is undefined.
30519 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
30521         PR target/65593
30522         * config/i386/i386.c (legitimize_pic_address): If base
30523         is SYMBOL_REF or LABEL_REF using %rip addressing, force
30524         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30526 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30528         PR target/65531
30529         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30530         comdat groups.
30532 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30534         PR ipa/65600
30535         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30536         of optimized out indirect call.
30537         (redirect_to_unreachable): Always build symbol table node for
30538         BUILT_IN_UNREACHABLE
30540 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30542         PR target/65407
30543         * ira-costs.c (record_reg_classes): Process all constraint string
30544         containing 0-9.
30546 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
30548         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30549         memory_operand.
30551         PR target/65052
30552         * config/c6x/constraints.md (S3): New constraint.
30553         * config/c6x/c6x.md (real_jump): Use it.
30555 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30557         PR middle-end/65595
30558         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30559         do redirection if the call is not optimized out.
30561 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30563         PR target/65495
30564         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30565         (fchkp-check-incomplete-type): Add LTO.
30566         (fchkp-zero-input-bounds-for-main): Likewise.
30567         (fchkp-first-field-has-own-bounds): Likewise.
30568         (fchkp-narrow-bounds): Likewise.
30569         (fchkp-narrow-to-innermost-array): Likewise.
30570         (fchkp-use-static-bounds): Likewise.
30571         (fchkp-use-static-const-bounds): Likewise.
30572         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30574 2015-03-27  Marek Polacek  <polacek@redhat.com>
30576         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30578 2015-03-27  Marek Polacek  <polacek@redhat.com>
30580         PR sanitizer/65583
30581         * ubsan.c (ubsan_create_edge): New function.
30582         (instrument_bool_enum_load): Call it.
30583         (instrument_nonnull_arg): Likewise.
30584         (instrument_nonnull_return): Likewise.
30585         (instrument_object_size): Likewise.
30587 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30589         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30590         auto_vec.
30592 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30594         PR lto/65536
30595         * lto-streamer.h (class lto_location_cache): New.
30596         (struct data_in): Add location_cache.
30597         (lto_input_location): Update prototype.
30598         (stream_input_location_now): New.
30599         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30600         pointer to location.
30601         (stream_input_location): Update.
30602         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30603         (warn_odr): Apply location cache before warning.
30604         (lto_input_location): Update prototype.
30605         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30606         Use stream_input_location_now.
30607         * lto-streamer-in.c (lto_location_cache::current_cache): New static
30608         variable.
30609         (lto_location_cache::cmp_loc): New function.
30610         (lto_location_cache::apply_location_cache): New function.
30611         (lto_location_cache::accept_location_cache): New function.
30612         (lto_location_cache::revert_location_cache): New function.
30613         (lto_location_cache::input_location): New function.
30614         (lto_input_location): Do location caching.
30615         (stream_input_location_now): New function.
30616         (input_eh_region, input_struct_function_base): Use
30617         stream_input_location_now.
30618         (lto_data_in_create): use new.
30619         (lto_data_in_delete): Use delete.
30620         * tree-streamer-in.c (unpack_ts_block_value_fields,
30621         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30622         lto_input_ts_exp_tree_pointers): Update for cached location api.
30624 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30626         PR ipa/65076
30627         * passes.def: Add pass_nothrow.
30628         * ipa-pure-const.c: (pass_data_nothrow): New.
30629         (pass_nothrow): New.
30630         (pass_nothrow::execute): New.
30631         (make_pass_nothrow): New.
30632         * tree-pass.h (make_pass_nothrow): Declare.
30634 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30636         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30637         edge to change by speculation resolution or redirection.
30638         (edge_set_predicate): Likewise.
30639         (inline_summary_t::duplicate): Likewise.
30640         (remap_edge_summaries): Likewise.
30642 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30644         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30645         New macros.
30646         (can_inline_edge_p): Relax option matching for always inline functions.
30648 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
30650         PR target/65561
30651         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30652         Check operand 4 and operand 0 for equality.
30653         (avx512f_vextract<shuffletype>32x4_1_maskm):
30654         Check operand 6 and operand 0 for equality.
30655         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30656         for equality.
30657         (vec_extract_hi_<mode>_maskm): Ditto.
30659 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30661         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30662         dead calls back to live.
30663         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30664         cross check to ...
30665         (cgraph_node::verify_node): ... here; verify only callee edges,
30666         not caller.
30667         * cif-code.def (CILK_SPAWN): New code.
30669 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30671         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30672         (edge_set_predicate): Use it to mark unreachable edges.
30673         (inline_summary_t::duplicate): Remove unnecesary code.
30674         (remap_edge_summaries): Likewise.
30675         (dump_inline_summary): Report contains_cilk_spawn.
30676         (compute_inline_parameters): Compute contains_cilk_spawn.
30677         (inline_read_section, inline_write_summary): Stream
30678         contains_cilk_spawn.
30679         * ipa-inline.c (can_inline_edge_p): Do not touch
30680         DECL_STRUCT_FUNCTION that may not be available;
30681         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30682         remove check for callee_fun->can_throw_non_call_exceptions and
30683         replace it by optimization attribute check; check for flag_exceptions.
30684         * ipa-inline-transform.c (inline_call): Maintain
30685         DECL_FUNCTION_PERSONALITY
30686         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30688 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
30690         PR tree-optimization/65551
30691         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30692         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30694 2015-03-26  Richard Biener  <rguenther@suse.de>
30696         PR middle-end/65555
30697         * tree-cfg.c (verify_gimple_call): Do not require a call to
30698         have no LHS if it wasn't recognized as control altering yet.
30700 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
30702         PR tree-optimization/64715
30703         * passes.def: Add another instance of pass_object_sizes before ccp1.
30704         * tree-object-size.c (pass_object_sizes::execute): In
30705         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30706         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30707         __bos result and the computed constant.  Remove redundant
30708         checks, obsoleted by gimple_call_builtin_p test.
30710         * var-tracking.c (variable_tracking_main_1): Don't track
30711         variables for targetm.no_register_allocation targets.
30713 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
30715         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30716         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30718 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
30720         PR target/65569
30721         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30722         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
30723         0.0 is correctly setup.
30724         (extenddftf2_internal): Likewise.
30726 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
30728         PR tree-optimization/65177
30729         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30730         (bb_in_bbs): New.
30731         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
30732         edges not adjacent on the path to the original code.
30734 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
30736         PR bootstrap/65537
30737         * doc/install.texi (Building a native compiler): Document new
30738         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
30739         configuration assumes that the host supports the linker plugin.
30741 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
30743         PR target/65508
30744         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30745         chain for generated call.
30747 2015-03-25  Richard Biener  <rguenther@suse.de>
30749         * passes.c (pass_manager::execute_early_local_passes): Guard
30750         execution of pass_chkp_instrumentation_passes with
30751         flag_check_pointer_bounds.
30752         (pass_chkp_instrumentation_passes::gate): Likewise.
30754 2015-03-25  Martin Liska  <mliska@suse.cz>
30756         PR tree-optimization/65538
30757         * symbol-summary.h (function_summary::~function_summary):
30758         Relese memory for allocated summaries.
30759         (function_summary::release): New function.
30761 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
30763         PR lto/65515
30764         * lto-streamer-out.c (DFS::worklist): New struct.
30765         (DFS::worklist_vec): New data member.
30766         (DFS::next_dfs_num): Remove.
30767         (DFS::DFS): Rewritten using worklist instead of recursion,
30768         using most of code from DFS::DFS_write_tree.
30769         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30770         pass it to DFS_write_tree calls.
30771         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30772         quick initial checks push it into worklist_vec and return.
30774 2015-03-25  Richard Biener  <rguenther@suse.de>
30776         PR middle-end/65519
30777         * genmatch.c (expr::gen_transform): Re-write to avoid
30778         using gimple_build.
30780 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30782         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30784 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30786         * config/arm/arm.opt (print_tune_info): New option.
30787         * config/arm/arm.c (arm_print_tune_info): New function.
30788         (arm_file_start): Call arm_print_tune_info.
30789         * config/arm/arm-protos.h (struct tune_params): Add comment.
30790         * doc/invoke.texi (@item -mprint-tune-info): New item.
30791         (-mtune): mention it in ARM Option Summary.
30793 2015-03-25  DJ Delorie  <dj@redhat.com>
30795         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30796         correct clause.
30798 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
30799             Martin Liska  <mliska@suse.cz>
30801         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30802         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30803         (sem_item::add_type): New function.
30804         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30805         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30806         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30807         (sem_function::equals_wpa): Fix typo.
30808         * ipa-icf.h (sem_item::add_type): New function.
30809         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30810         order.
30812 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
30814         PR tree-optimization/65533
30815         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30816         with swapped operands, call vect_free_slp_tree on
30817         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30818         vector.
30820 2015-03-24  Richard Biener  <rguenther@suse.de>
30822         PR middle-end/65517
30823         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30824         for fixup if necessary.
30826 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
30828         * doc/extend.texi (Function Attributes): Add @cindex entries
30829         for all attributes and regularize their format.  Delete text
30830         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
30831         information about "eightbit_data", "tiny_data", and "model"
30832         variable attributes to the Variable Attributes section.  Fix
30833         some obvious typos and copy-editing issues.
30834         (Variable Attributes, Type Attributes): Likewise add/fix
30835         @cindex entries for all attributes.
30837 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30839         PR target/65523
30840         * tree-chkp.c (chkp_build_returned_bound): Ignore
30841         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30843 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
30845         PR target/65505
30846         * config/sh/predicates.md (simple_mem_operand,
30847         displacement_mem_operand): Add test for reg.
30848         (short_displacement_mem_operand): Test for displacement_mem_operand
30849         before invoking sh_disp_addr_displacement.
30850         * config/sh/constraints.md (Sdd, Sra): Simplify.
30851         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30852         Remove redundant displacement_mem_operand tests.
30854 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
30856         PR target/65296
30857         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30858         the same -mmcu=MCU more than once.
30860 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30862         PR bootstrap/65522
30863         * ipa-devirt.c: Remove duplicate demangle.h include.
30865         PR target/65504
30866         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30867         on the pseudo.
30868         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30869         REG_POINTER on *destptr after adjusting it for prologue size.
30871         PR ipa/65521
30872         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30873         ultimate_alias_target ()->order ints instead of
30874         ultimate_alias_target () pointers.
30876 2015-03-23  Richard Biener  <rguenther@suse.de>
30878         PR tree-optimization/65518
30879         * tree-vect-stmts.c (vectorizable_load): Reject single-element
30880         interleaving cases we generate absymal code for.
30882 2015-03-23  Richard Biener  <rguenther@suse.de>
30884         PR tree-optimization/65494
30885         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30886         matches here.
30887         (vect_analyze_slp_instance): But do that here, always and once.
30889 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30891         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30892         adding T or multiplying by T+1 and subracting T.
30894 2015-03-22  Jeff Law  <law@redhat.com>
30896         PR rtl-optimization/64317
30897         * Makefile.in (OBJS): Add gcse-common.c
30898         * gcse.c: Include gcse-common.h
30899         (struct modify_pair_s): Move structure definition to gcse-common.h
30900         (compute_transp): Move function to gcse-common.c.
30901         (canon_list_insert): Similarly.
30902         (record_last_mem_set_info): Break out some code and put it into
30903         gcse-common.c.  Call into the new common code.
30904         (compute_local_properties): Pass additional arguments to compute_transp.
30905         * postreload-gcse.c: Include gcse-common.h and df.h
30906         (modify_mem_list_set, blocks_with_calls): New variables.
30907         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30908         (get_bb_avail_insn): Pass in the expression index too.
30909         (alloc_mem): Allocate memory for the new bitmaps and lists.
30910         (free_mem): Free memory for the new bitmaps and lists.
30911         (insert_expr_in_table): Record a bitmap index for each entry we
30912         add to the table.
30913         (record_last_mem_set_info): Call into common code in gcse-common.c.
30914         (get_bb_avail_insn): If no available insn was found in the requested
30915         BB.  If BB has a single predecessor, see if the expression is
30916         transparent in BB and available in that single predecessor.
30917         (compute_expr_transp): New wrapper for compute_transp.
30918         (eliminate_partially_redundant_load): Pass expression's bitmap_index
30919         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
30920         (gcse_after_reload_main): If there are elements in the hash table,
30921         then compute transparency for all the elements in the hash table.
30922         * gcse-common.h: New file.
30923         * gcse-common.c: New file.
30925 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
30927         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30928         as an adjective.
30929         (System Headers): Likewise.
30930         (Ifdef): Likewise.
30931         (Traditional macros): Likewise.
30932         (Invocation): Likewise.
30933         (Option Index): Likewise.
30934         * doc/cppopts.texi (-M): Likewise.
30935         (-finput-charset): Likewise.
30936         (--help): Likewise.
30937         * doc.invoke.texi (AVR Options): Likewise.
30938         (V850 Options): Likewise.
30940 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
30942         PR ipa/65475
30943         * ipa-devirt.c: Include demangle.h
30944         (odr_type_d): Add field rtti_broken.
30945         (odr_subtypes_equivalent_p): Do not require name to match.
30946         (compare_virtual_tables): Fix typo; if type already has ODR violation,
30947         bypass the tests; be ready for function referneces in vtables that are
30948         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30949         (warn_odr): Give up for nameless types.
30950         (warn_types_mismatch): Report mismatch in mangled names;
30951         report mismatch in anonymous namespaces; look into component types to
30952         give useful error; report when mismatch is dragged in from other ODR
30953         type.
30954         (odr_types_equivalent_p): Match types for being polymorphic; avoid
30955         duplicated diagnostics.
30956         (add_type_duplicate): Reorder checks so more informative ones come
30957         first; fix typo; do not output "the extra base is defined here" when
30958         we did not warn.
30959         (BINFO_N_BASE_BINFOS): Relax sanity check.
30961 2015-03-22  Martin Liska  <mliska@suse.cz>
30962             Jakub Jelinek  <jakub@redhat.com>
30964         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30965         masks that can potentially include a builtin.
30966         (ix86_add_new_builtins): Introduce fast filter for isa values
30967         that cannot trigger builtin inclusion.
30969 2015-03-22  Martin Liska  <mliska@suse.cz>
30971         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30972         (sem_item::update_hash_by_local_refs): Likewise.
30973         (sem_variable::get_hash): Empty line is fixed.
30974         (sem_item_optimizer::execute): Include adding of hash references.
30975         (sem_item_optimizer::update_hash_by_addr_refs): New function.
30976         (sem_item_optimizer::build_hash_based_classes): Use local hash.
30977         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30978         (sem_item::update_hash_by_local_refs): Likewise.
30980 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30982         PR ipa/65502
30983         * ipa-comdats.c (enqueue_references): Walk through thunks.
30984         (ipa_comdats): Likewise.
30985         (set_comdat_group_1): New function.
30987 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30989         PR ipa/65475
30990         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30991         non-polymorphic
30993 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
30994             Gerald Pfeifer  <gerald@pfeifer.com>
30996         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30998 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
30999             Sandra Loosemore  <sandra@codesourcery.com>
31001         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31002         function parameter declaration.
31003         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31004         Update arguments to nios2_adjust_call_address().
31005         (sibcall_internal): Rename from *sibcall.
31006         (sibcall_value_internal): Rename from *sibcall_value.
31007         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31008         (nios2_large_got_address): Add target temp reg parameter.
31009         (nios2_got_address): Adjust call to nios2_large_got_address, add
31010         force_reg around it.
31011         (nios2_load_pic_address): Add target temp reg parameter, replace call
31012         to nios2_got_address with corresponding code.
31013         (nios2_legitimize_constant_address): Update call to
31014         nios2_load_pic_address.
31015         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31016         to use temp reg for PIC loading purposes.
31017         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31018         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31019         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31021 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31023         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31024         usage of "the @option{...}".
31025         (-Wopenmp-simd): Likewise.
31026         (-fsanitize-recover): Likewise.
31027         (-fsanitize-undefined-trap-on-error): Likewise.
31028         (-flto): Likewise.
31029         (tracer-dynamic-coverage-feedback): Likewise.
31030         (reorder-block-duplicate-feedback): Likewise.
31031         (loop-unroll-jam-size): Likewise.
31032         (-B): Likewise.
31033         (-I-): Likewise.
31034         (-mabs=legacy): Likewise.
31035         (-mupper-regs-df): Likewise.
31036         (-mupper-regs-sf): Likewise.
31037         (-mpointers-to-nested-functions): Likewise.
31039 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31041         * doc/extend.texi (Cilk Plus Builtins): Add markup.
31043 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31045         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31046         additional index entries and cross-references.
31047         (-fchkp-check-incomplete-type): Likewise.
31048         (-fchkp-first-field-has-own-bounds): Likewise.
31049         (-fchkp-narrow-to-innermost-array): Likewise.
31050         (-fchkp-use-fast-string-functions): Likewise.
31051         (-fchkp-use-nochk-string-functions): Likewise.
31052         (-fchkp-use-static-const-bounds): Likewise.
31053         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31054         (-fchkp-instrument-marked-only): Likewise.
31055         (-fchkp-use-wrappers): Likewise.
31056         (-static-libmpx): Likewise.
31057         (-static-libmpxwrappers): Likewise.
31058         * doc/extend.texi (bnd_legacy): Likewise.
31059         (bnd_instrument): Likewise.
31060         (bnd_variable_size): Likewise.
31061         (Pointer Bounds Checker builtins): Likewise.
31063 2015-03-21  Tom de Vries  <tom@codesourcery.com>
31065         PR tree-optimization/65458
31066         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31067         * cgraph.h (cgraph_node): Add parallelized_function field.
31068         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31069         (input_overwrite_node): Read parallelized_function field.
31070         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31071         parallelized_function on cgraph_node for child_fn.
31072         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31073         Remove include of gt-tree-parloops.h.
31074         (parallelized_functions): Remove static variable.
31075         (parallelized_function_p): Rewrite using parallelized_function field of
31076         cgraph_node.
31077         (create_loop_fn): Remove adding to parallelized_functions.
31078         * Makefile.in (GTFILES): Remove tree-parloops.c
31080 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
31082         PR rtl-optimization/64366
31083         * lra.c (lra_update_insn_regno_info): Consider regs in
31084         CALL_INSN_FUNCTION_USAGE memory.
31086 2015-03-20  Richard Biener  <rguenther@suse.de>
31088         PR middle-end/64715
31089         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31090         for type comparison and gcc_checking_assert.
31091         (chrec_fold_plus_poly_poly): Likewise.
31092         (chrec_fold_multiply_poly_poly): Likewise.
31093         (chrec_convert_1): Likewise.
31094         * gimplify.c (gimplify_expr): Remove premature folding of
31095         &X + CST to &MEM[&X, CST].
31097 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31099         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31100         already is final.
31101         (ipa_inline): Recompute inline_failed codes.
31102         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31103         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31104         CIF_FINAL_ERROR.
31106 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
31108         PR rtl-optimization/60851
31109         * recog.c (constrain_operands): Accept a pseudo register before reload
31110         for LRA enabled targets.
31112 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31114         PR target/65240
31115         * config/rs6000/predicates.md (easy_fp_constant): Remove special
31116         -ffast-math handling that kept non-0 constants live in the RTL
31117         until reload.  Remove logic testing the number of instructions it
31118         took to create a constant in a GPR that was never used, due to a
31119         test for soft-float earlier.
31120         (memory_fp_constant): Delete, no longer used.
31122         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31123         alternatives for loading non-0 constants into GPRs for hard
31124         floating point that is no longer needed due to changes in
31125         easy_fp_constant.  Add support for loading 0.0 into GPRs.
31126         (mov<mode>_hardfloat32): Likewise.
31127         (mov<mode>_hardfloat64): Likewise.
31128         (mov<mode>_64bit_dm): Likewise.
31129         (movtd_64bit_nodm): Likewise.
31130         (pre-reload move FP constant define_split): Delete define_split,
31131         since it is no longer used.
31132         (extenddftf2_internal): Remove GHF constraints that are not valid
31133         for extenddftf2.
31135 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
31137         PR rtl-optimization/63491
31138         * lra-constraints.c (check_and_process_move): Use src instead of
31139         sreg.  Remove some dead code.
31141 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
31143         PR ipa/65380
31144         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31145         (sem_variable::merge): Likewise.
31147 2015-03-19  Martin Liska  <mliska@suse.cz>
31149         PR ipa/65465
31150         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31151         all fields of cgraph_thunk_info.
31153 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31155         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31156         clone instrumented thunks.
31158 2015-03-19  Richard Biener  <rguenther@suse.de>
31160         Revert
31161         2015-03-10  Richard Biener  <rguenther@suse.de>
31163         PR middle-end/63155
31164         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31165         * tree-ssa-coalesce.c: Include timevar.h.
31166         (attempt_coalesce): Handle graph being NULL.
31167         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31168         Split out abnormal coalescing to ...
31169         (perform_abnormal_coalescing): ... this function.
31170         (coalesce_ssa_name): Perform abnormal coalescing without computing
31171         live/conflict.
31172         (verify_ssa_coalescing_worker): New function.
31173         (verify_ssa_coalescing): Likewise.
31175 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31176             Jakub Jelinek  <jakub@redhat.com>
31178         PR sanitizer/65400
31179         * tsan.c (instrument_gimple): Clear tail call flag on
31180         calls.
31182 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
31184         PR sanitizer/65400
31185         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31186         call in the return bb.
31187         (find_split_points): Add RETURN_BB argument, don't call
31188         find_return_bb.
31189         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
31190         if true append TSAN_FUNC_EXIT internal call after the call to
31191         the split off function.
31192         (execute_split_functions): Call find_return_bb here.
31193         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31194         Adjust find_split_points and split_function calls.
31196 2015-03-18  DJ Delorie  <dj@redhat.com>
31198         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31199         (iorqi3_virt): Likewise.
31201 2015-03-18  Tom de Vries  <tom@codesourcery.com>
31203         * tree-parloops.c (parallelize_loops): Make static.
31204         * tree-parloops.h (parallelize_loops): Remove extern declaration.
31206 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
31208         PR middle-end/64491
31209         Revert:
31210         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
31212         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31213         condition would be removed due to undefined behaviour.
31215 2015-03-18  Martin Liska  <mliska@suse.cz>
31217         PR ipa/65432
31218         * cgraph.c (cgraph_node::get_create): Remove unnecessary
31219         xstrdup_for_dump wrapper.
31220         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31221         sem_item::name.
31222         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31223         with xstrdup_for_dump.
31224         (sem_variable::equals): Likewise.
31225         (sem_item_optimizer::read_section): Use symtab_node::name instead of
31226         sem_item::name.
31227         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31228         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31229         symtab_node::asm_name with xstrdup_for_dump.
31230         (congruence_class::dump): Use symtab_node::name instead of
31231         sem_item::name.
31232         * ipa-icf.h (symtab_node::name): Remove.
31233         (symtab_node::asm_name): Likewise.
31235 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31237         PR tree-optimization/65450
31238         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31239         function.
31240         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31241         it instead of duplicate_ssa_name_ptr_info.
31243         PR target/65222
31244         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31246 2015-03-18  Richard Biener  <rguenther@suse.de>
31248         * tree-data-ref.h (struct access_matrix): Remove.
31249         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31250         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31251         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31252         (am_vector_index_for_loop): Likewise.
31253         (struct data_reference): Remove access_matrix member.
31254         (DR_ACCESS_MATRIX): Remove.
31255         (lambda_vector_new): Add comment.
31256         (lambda_matrix_new): Use XOBNEWVEC.
31258 2015-03-18  Richard Biener  <rguenther@suse.de>
31260         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31261         (pass_ch::execute): Cleanup the CFG only if we did sth.
31262         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31264 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31266         * expmed.c (synth_mult): Use std::swap instead of manually
31267         swapping algorithms.
31269 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31271         PR target/65078
31272         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31274 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
31276         PR target/65296
31277         * config/avr/avr.opt (-nodevicelib): New option.
31278         * doc/invoke.texi (AVR Options): Document it.
31279         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31280         libgcc.a, libc.a, libm.a.
31281         * config/avr/specs.h: Same.
31282         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31283         which don't (directly) depend on the device.  Print more help.
31284         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31285         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31286         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31287         case of an error.
31288         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31289         for specs file name.
31290         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31291         * config/avr/avr-mcus.def: Adjust initializers and comments.
31293 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
31295         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31296         DECL_ONE_ONLY to check if decl is one only.
31297         * ipa-split.c (consider_split): Limit splitt of one only functions.
31299 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31301         PR tree-optimization/65427
31302         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31303         functions.
31304         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31306 2015-03-16  Marek Polacek  <polacek@redhat.com>
31308         * cgraph.h (add_new_static_var): Remove declaration.
31309         * varpool.c (add_new_static_var): Remove function.
31311 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31313         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31314         instead of vec<tree> * with vec_alloc and release for args.
31315         Adjust all users.
31317         PR middle-end/65431
31318         * omp-low.c (delete_omp_context): Only splay_tree_delete
31319         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31320         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
31322 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31324         PR sanitizer/64820
31325         * cfgexpand.c (align_base): New function.
31326         (alloc_stack_frame_space): Call it.
31327         (expand_stack_vars): Align prev_frame to be sure
31328         data->asan_vec elements aligned properly.
31330 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
31332         PR middle-end/65409
31333         * expr.c (store_field): Do not do a direct block copy if the source is
31334         a PARALLEL with BLKmode.
31336 2015-03-16  Tom de Vries  <tom@codesourcery.com>
31338         PR middle-end/65414
31339         Revert:
31340         2015-03-12  Tom de Vries  <tom@codesourcery.com>
31342         PR rtl-optimization/64895
31343         * lra-lives.c (check_pseudos_live_through_calls): Use
31344         actual_call_used_reg_set instead of call_used_reg_set, if available.
31346 2015-03-16  Alan Modra  <amodra@gmail.com>
31348         PR target/63150
31349         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31350         Modify Z->r bswapdi splitter to use dest in place of scratch.
31351         In r->Z and Z->r bswapdi splitter rename word_high, word_low
31352         to word1, word2 and rearrange logic to suit.
31353         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31354         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
31355         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31356         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
31357         early clobber.
31359 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
31361         PR tree-optimization/65369
31362         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31363         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31364         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31366         PR tree-optimization/65418
31367         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31368         are casts in the first PLUS_EXPR operand, ensure tbias and
31369         *totallowp are in the inner type.
31371         PR rtl-optimization/65401
31372         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31373         argument.  If true, adjust_address_nv of x with big-endian
31374         correction for the mode widening to GET_MODE (y).
31375         (make_field_assignment): Don't do MEM mode widening here.
31376         Use MEM_P instead of GET_CODE == MEM.
31378 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
31380         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31381         the external decls.
31383 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31385         PR target/64600
31386         * config/arm/arm.c (arm_gen_constant, AND case): Use
31387         ARM_SIGN_EXTEND when constructing AND mask.
31389 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31391         * graph.c (print_graph_cfg): Make function names visible and append
31392         parenthesis to it.  Also make groups of basic blocks belonging to the
31393         same function visible.
31395 2015-03-12  Richard Biener  <rguenther@suse.de>
31397         PR middle-end/44563
31398         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31399         to avoid quadratic behavior with inline expansion splitting blocks.
31400         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31401         with the successor if the predecessor will be merged with it.
31402         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31403         entry block with its successor.
31405 2015-03-13  Richard Biener  <rguenther@suse.de>
31407         PR middle-end/44563
31408         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31409         (cleanup_tree_cfg_1): Do not call it.
31410         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31411         (fixup_noreturn_call): Mark the stmt as control altering.
31412         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31413         here.
31414         (pass_data_fixup_cfg): Produce a dump file.
31415         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31416         (need_noreturn_fixup): New global.
31417         (pass_dominator::execute): Fixup queued noreturn calls.
31418         (optimize_stmt): Queue calls that became noreturn for fixup.
31419         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31420         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31421         (el_to_fixup): New global.
31422         (eliminate_dom_walker::before_dom_childre): Queue calls that
31423         became noreturn for fixup.
31424         (eliminate): Fixup queued noreturn calls.
31425         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31426         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31427         (substitute_and_fold_dom_walker::before_dom_children): Queue
31428         alls that became noreturn for fixup.
31429         (substitute_and_fold): Fixup queued noreturn calls.
31431 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
31433         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31434         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31435         are building; for methods check ODR type of class they belong to if
31436         they may lead to a polymorphic call.
31437         (sem_function::compare_polymorphic_p): Be bit smarter about testing
31438         when function may lead to a polymorphic call.
31439         (sem_function::compare_type_list): Remove.
31440         (sem_variable::equals): Update use of compatible_types_p.
31441         (sem_variable::parse_tree_refs): Remove.
31442         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31443         cdtor.
31444         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31445         matching here.
31446         (func_checker::compatible_polymorphic_types_p): Break out from ...
31447         (unc_checker::compatible_types_p): ... here.
31448         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31449         Declare.
31450         (unc_checker::compatible_types_p): Update.
31451         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31452         Remove.
31454 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31456         PR rtl-optimization/65235
31457         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31458         When first element of vec_concat is const_int, calculate its size
31459         using second element.
31461 2015-03-12  Richard Biener  <rguenther@suse.de>
31463         PR middle-end/65270
31464         * fold-const.c (operand_equal_p): Fix ordering of resetting
31465         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31467 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31469         * config/s390/s390.c (s390_reorg): Move code to output nops after label
31470         to s390_reorg ().
31471         (s390_asm_output_function_label): Likewise.
31472         * config/s390/s390.c (s390_asm_output_function_label):
31473         Fix function label alignment with -mhtopatch.
31474         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31475         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31476         ("nop_2_byte"): New define_insn.
31477         ("nop_4_byte"): Likewise.
31478         ("nop_6_byte"): Likewise.
31479         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31480         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31482 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31484         PR target/65103
31485         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31486         register.
31488 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31490         PR target/65044
31491         * toplev.c (process_options): Restrict Pointer Bounds Checker
31492         usage with Address Sanitizer.
31494 2015-03-12  Richard Biener  <rguenther@suse.de>
31496         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31497         to split on.
31498         * omp-low.c (expand_omp_taskreg): Split block before removing
31499         the stmt.
31500         (expand_omp_target): Likewise.
31501         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31502         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31503         stmt to split_block.
31505 2015-03-12  Tom de Vries  <tom@codesourcery.com>
31507         PR rtl-optimization/64895
31508         * lra-lives.c (check_pseudos_live_through_calls): Use
31509         actual_call_used_reg_set instead of call_used_reg_set, if available.
31511 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31513         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31514         (cgraph_node::remove): Likewise.
31515         (cgraph_node::get_untransformed_body): Likewise.
31516         * varpool.c (varpool_node::remove): Likewise.
31517         (varpool_node::get_constructor): Add sanity check.
31519 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
31521         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31522         old GCC versions.
31523         (-fabi-compat-version): Likewise.
31524         (-ffriend-injection): Likewise.
31525         (-Wdeclaration-after-statement): Likewise.
31526         (-fomit-frame-pointer): Likewise.
31527         (-ftree-coalesce-inlined-vars): Likewise.
31528         (-fvisibility=): Likewise.
31529         * doc/extend.texi (Typeof): Likewise.
31530         (Zero Length): Likewise.
31531         (Escaped Newlines): Likewise.
31532         (Compound Literals): Likewise.
31533         (Function Attributes): Likewise.
31534         (Label Attributes): Likewise.
31535         (Type Attributes): Likewise.
31536         (Function Names): Likewise.
31537         (Other Builtins): Likewise.
31538         (Function Specific Option Pragmas): Likewise.
31539         (C++ Interface): Likewise.
31541 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
31543         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31545 2015-03-11  Marek Polacek  <polacek@redhat.com>
31547         PR tree-optimization/65388
31548         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31550 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31552         PR target/65296
31553         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31554         * configure: Regenerate.
31555         * config.in: Regenerate.
31556         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31557         [-mn-flash]: Document it.
31558         [__AVR_ARCH__]: Document avrtiny.
31560         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31561         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31562         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31564 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31566         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31568 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31570         PR target/65242
31571         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31572         allow reloads of PLUS in floating point/VSX registers.
31574 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
31576         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31577         crypto_sha256_fast.
31578         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31580 2015-03-11  Richard Biener  <rguenther@suse.de>
31582         PR tree-optimization/65310
31583         * tree-sra.c (build_ref_for_offset): Also preserve larger
31584         alignment.
31586 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
31588         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31590 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31592         PR target/65368
31593         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31594         new define_expand.
31595         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31597 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31599         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31600         (sem_function::equals_wpa): ... here.
31602 2015-03-10  Marek Polacek  <polacek@redhat.com>
31603             Jakub Jelinek  <jakub@redhat.com>
31605         PR sanitizer/65367
31606         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31607         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
31608         separately.
31610 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31612         PR target/65286
31613         * config/rs6000/t-linux: For powerpc64* target set
31614         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31616 2015-03-10  Richard Biener  <rguenther@suse.de>
31618         PR middle-end/44563
31619         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31620         for redirect_all_calls.
31622 2015-03-10  Marek Polacek  <polacek@redhat.com>
31624         * gdbinit.in (pcfun): Define and document.
31626 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
31628         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31629         of libgomp-plugin.h.
31630         (find_target_compiler): Support a case when the path to gcc is
31631         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31632         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31633         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31634         libgomp-plugin.h.
31635         (main): Use GCC_INSTALL_NAME as target_driver_name.
31636         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31637         define.
31638         (mkoffload.o): Remove obsolete include path and defines.
31639         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31641 2015-03-10  Richard Biener  <rguenther@suse.de>
31643         PR middle-end/63155
31644         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31645         * tree-ssa-coalesce.c: Include timevar.h.
31646         (attempt_coalesce): Handle graph being NULL.
31647         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31648         Split out abnormal coalescing to ...
31649         (perform_abnormal_coalescing): ... this function.
31650         (coalesce_ssa_name): Perform abnormal coalescing without computing
31651         live/conflict.
31652         (verify_ssa_coalescing_worker): New function.
31653         (verify_ssa_coalescing): Likewise.
31655 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31657         PR target/65296
31658         * config.gcc (extra_options) [avr]: Remove.
31659         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31660         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31661         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31663         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31664         (-mmcu=): Add Var and MissingArgError properties.
31665         (-march=): Remove.
31666         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31667         * config/avr/t-multilib: Regenerate.
31668         * config/avr/specs.h: New file.
31669         * config/avr/driver-avr.c: New file.
31670         * config/avr/genopt.sh: Remove file.
31671         * config/avr/avr-tables.opt: Remove file.
31672         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31673         * config/avr/avr-c.c: Same.
31674         * avr-arch.h: Same.
31675         (avr_current_device): Remove proto.
31676         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31677         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31678         (EXTRA_SPEC_FUNCTIONS): Define.
31679         (avr_devicespecs_file): New specs function proto.
31680         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31681         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31682         (avr_current_device): Remove definition and usage.
31683         (avr_set_core_architecture): New static function.
31684         (avr_option_override): Use it.
31685         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31686         (mcu_name): New static array.
31687         (comparator, avr_archs_str, avr_mcus_str): New static functions.
31688         (avr_inform_devices, avr_inform_core_architectures): New functions.
31689         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31690         (avrlibc.h) [WITH_AVRLIBC]: Include.
31691         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31692         (print_mcu): Rewrite from scratch.
31693         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31694         Forward to avr-specific specs defined in device-specs file.
31695         * config/avr/t-avr (driver-avr.o): New rule.
31696         (avr-devices.o): Depend on avr-arch.h.
31697         (avr-mcus): No more depend on avr-tables.opt.
31698         (avr-tables.opt): Remove rule.
31699         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31701 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31703         * c-family/c.opt (fchkp-use-wrappers): New.
31704         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31705         (chkp_wrap_function): New.
31706         (chkp_build_instrumented_fndecl): Support wrapped
31707         functions.
31708         * doc/invoke.texi (-fcheck-pointer-bounds): New.
31709         (-fchkp-check-incomplete-type): New.
31710         (-fchkp-first-field-has-own-bounds): New.
31711         (-fchkp-narrow-bounds): New.
31712         (-fchkp-narrow-to-innermost-array): New.
31713         (-fchkp-optimize): New.
31714         (-fchkp-use-fast-string-functions): New.
31715         (-fchkp-use-nochk-string-functions): New.
31716         (-fchkp-use-static-bounds): New.
31717         (-fchkp-use-static-const-bounds): New.
31718         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31719         (-fchkp-check-read): New.
31720         (-fchkp-check-write): New.
31721         (-fchkp-store-bounds): New.
31722         (-fchkp-instrument-calls): New.
31723         (-fchkp-instrument-marked-only): New.
31724         (-fchkp-use-wrappers): New.
31725         (-static-libmpx): New.
31726         (-static-libmpxwrappers): New.
31728 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31730         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31731         (CHKP_SPEC): Add wrappers library.
31732         * c-family/c.opt (static-libmpxwrappers): New.
31734 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31736         * config/i386/linux-common.h (LIBMPX_LIBS): New.
31737         (LIBMPX_SPEC): New.
31738         (CHKP_SPEC): New.
31739         * gcc.c (CHKP_SPEC): New.
31740         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31741         * c-family/c.opt (static-libmpx): New.
31743 2015-03-10  Richard Biener  <rguenther@suse.de>
31745         PR middle-end/44563
31746         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31747         for compare_type.
31748         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31749         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31750         (cgraph_add_edge_to_call_site_hash): Likewise.
31751         (cgraph_node::get_edge): Likewise.
31752         (cgraph_edge::set_call_stmt): Likewise.
31753         (cgraph_edge::remove_caller): Likewise.
31755 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
31757         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31758         (callee_saved_gpr_regs_size): ... this.
31759         (callee_saved_regs_first_regno): Rename to ...
31760         (callee_saved_first_gpr_regno): ... this.
31761         (callee_saved_regs_last_regno) Rename to ...
31762         (callee_saved_last_gpr_regno): ... this.
31763         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31764         variables.
31765         (nds32_initial_elimination_offset): Likewise.
31766         (nds32_expand_prologue): Likewise.
31767         (nds32_expand_epilogue): Likewise.
31768         (nds32_expand_prologue_v3push): Likewise.
31769         (nds32_expand_epilogue_v3pop): Likewise.
31770         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31771         Adjust renamed variables.
31772         (nds32_output_stack_pop): Likewise.
31774 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31776         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31777         code in comment.
31779 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31781         PR rtl-optimization/65321
31782         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31783         than shift mode.
31784         * var-tracking.c (use_narrower_mode): Likewise.
31786 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31788         PR tree-optimization/65355
31789         * varasm.c (notice_global_symbol): Do not produce RTL.
31790         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31791         anchor.
31792         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31793         check for section anchors.
31795 2015-03-10  Alan Modra  <amodra@gmail.com>
31797         PR target/65286
31798         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31799         to be single-arch by default.  Set cpu_is_64bit for powerpc64
31800         given --with-cpu=native.
31801         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31802         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31803         and powerpc64le.
31804         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31805         rs6000_isa_flags rather than TARGET_64BIT.
31807 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
31808             Kaz Kojima  <kkojima@gcc.gnu.org>
31810         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31812 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
31814         PR lto/65361
31815         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31816         on a TREE_BINFO, instead use BINFO_TYPE.
31818 2015-03-09  Richard Biener  <rguenther@suse.de>
31820         PR middle-end/65270
31821         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31822         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31823         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
31824         of that.  When comparing dereferences compare alignment.
31825         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31827 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31829         * ipa-inline-analysis.c (check_callers): Check
31830         node->can_remove_if_no_direct_calls_and_refs_p.
31831         (growth_likely_positive): Reorganize to call
31832         can_remove_if_no_direct_calls_p later.
31833         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31834         will_be_removed_from_program_if_no_direct_calls_p): Add
31835         will_inline parameter.
31836         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31837         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31838         Handle inliner case correctly.
31840 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31842         PR tree-optimization/63743
31843         * cfgexpand.c (reorder_operands): Also reorder if only second operand
31844         had its definition forwarded by TER.
31846 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31848         PR lto/65316
31849         * ipa-utils.h (types_odr_comparable): Add strict argument.
31850         * ipa-devirt.c: Fix whitespace;
31851         (odr_hasher): Remove.
31852         (odr_name_hasher, odr_vtable_hasher): New hashers.
31853         (can_be_name_hashed_p): New predicate.
31854         (hash_type_name): remove.
31855         (hash_odr_name): New.
31856         (odr_name_hasher::hash): new.
31857         (can_be_vtable_hashed_p): New.
31858         (hash_odr_vtable): New.
31859         (odr_vtable_hasher::hash): New.
31860         (types_same_for_odr): Add strict parameter.
31861         (types_odr_comparable): Likewise.
31862         (odr_name_hasher::equal): New.
31863         (odr_vtable_hasher::equal): New.
31864         (odr_name_hasher::remove): New.
31865         (odr_hash_type): Change to hash_table<odr_name_hasher>.
31866         (odr_vtable_hash_type): New.
31867         (odr_vtable_hash): New.
31868         (odr_subtypes_equivalent_p): Do strict comparsion.
31869         (add_type_duplicate): Merge type names; cleanup; avoid type
31870         duplicates.
31871         (register_odr_type): Initialize vtable hash.
31872         (build_type_inheritance_graph): Likewise
31873         (get_odr_type): Reorg to use two hashes.
31874         (dump_possible_polymorphic_call_targets): Move sanity check after debug
31875         output.
31876         (ipa_devirt): Dump type_inheritance_graph.
31877         (types_same_for_odr): Add strict mode.
31879 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31881         PR ipa/65334
31882         * cgraph.h (symtab_node): Add definition_alignment,
31883         can_increase_alignment_p and increase_alignment.
31884         * symtab.c (symtab_node::can_increase_alignment_p,
31885         increase_alignment_1, symtab_node::increase_alignment,
31886         symtab_node::definition_alignment): New.
31887         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31888         can_increase_alignment_p.
31889         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31890         * tree-vect-stmts.c (ensure_base_align): Likewise.
31891         * varasm.c (function_section_1): Use definition_alignment.
31892         (assemble_start_function): Likewise.
31893         (emit_local): likewise.
31894         (build_constant_desc): Likewsie.
31895         (output_constant_def_contents): Likewise.
31896         (place_block_symbol): Likewise.
31897         (output_object_block): Likewise.
31899 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31901         PR ipa/65316
31902         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31903         when outputting debug.
31905 2015-03-07  Marek Polacek  <polacek@redhat.com>
31906             Martin Uecker  <uecker@eecs.berkeley.edu>
31908         PR sanitizer/65280
31909         * doc/invoke.texi: Update description of -fsanitize=bounds.
31911 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
31913         * tree-ssa-phiopt.c (neg_replacement): Remove.
31914         (tree_ssa_phiopt_worker): Remove negate optimization.
31916 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31918         PR ipa/65302
31919         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31921 2015-03-06  Richard Biener  <rguenther@suse.de>
31923         PR middle-end/64928
31924         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31925         and liveout_obstack members.
31926         (calculate_live_on_exit): Remove.
31927         (calculate_live_ranges): Change declaration.
31928         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31929         (new_tree_live_info): Adjust.
31930         (calculate_live_ranges): Delete livein when not wanted.
31931         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31932         Deal with partly deleted live info.
31933         (loe_visit_block): Remove temporary bitmap by using
31934         bitmap_ior_and_compl_into.
31935         (live_worklist): Adjust accordingly.
31936         (calculate_live_on_exit): Make static.
31937         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31938         we do not need livein.
31940 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
31942         * real.c (real_from_string): Fix typo in assertion.
31944 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
31946         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31947         the patch.
31949 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31951         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31953 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
31955         PR target/64342
31956         * lra-assigns.c (find_hard_regno_for): Rename to
31957         find_hard_regno_for_1.  Add a new parameter.
31958         (find_hard_regno_for): New function using find_hard_regno_for_1.
31960 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31962         PR rtl-optimization/65067
31963         * expmed.c (store_bit_field, extract_bit_field): Reworked the
31964         strict volatile bitfield handling.
31966 2015-03-05  Martin Liska  <mliska@suse.cz>
31968         PR ipa/65318
31969         * ipa-icf.c (sem_variable::equals): Compare variables types.
31971 2015-03-05  Richard Henderson  <rth@redhat.com>
31973         PR target/65121
31974         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31975         correctly check weak symbol binding.
31977 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
31979         PR middle-end/65315
31980         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31981         needed alignment.
31983 2015-03-05  Martin Liska  <mliska@suse.cz>
31985         * ipa-inline.c (inline_small_functions): Set default value to
31986         prevent warning during bootstrap.
31987         * tree.h: Add pragma guard that ignores false positives during
31988         bootstrap.
31990 2015-03-05  Richard Biener  <rguenther@suse.de>
31992         PR tree-optimization/65310
31993         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31994         Properly preserve alignment of the base of the access.
31996 2015-03-05  Richard Biener  <rguenther@suse.de>
31998         PR ipa/65270
31999         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32000         Compare dependence info.
32002 2015-03-05  Richard Biener  <rguenther@suse.de>
32004         PR middle-end/65233
32005         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32006         tree-into-ssa.h.
32007         (walk_ssa_copies): Revert last chage.  Instead do not walk
32008         SSA names registered for SSA update.
32010 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32012         PR ipa/65270
32013         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32014         vtable references for their containing type.
32015         (sem_function::equals_wpa): Compare TYPE_RESTRICT
32016         and type attributes.
32018 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
32020         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32021         before negating it.
32022         * stor-layout.c (finalize_record_size): Revert latest change.
32024 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
32026         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32028 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32030         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32031         for correct comdat handling.
32032         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32033         Likewise.
32034         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32035         (used_from_object_file_p_worker): Remove.
32036         (cgraph_node::only_called_directly_or_alised): Add
32037         used_from_object_file_p.
32038         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32039         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32040         can_remove_if_no_direct_calls_and_refs_p.
32042 2015-03-04  Nick Clifton  <nickc@redhat.com>
32044         * config/rl78/rl78.h (enum reg_class): Remove real registers from
32045         General register class.
32046         * config/rl78/rl78-real.md: Replace general register constraints
32047         with real+virtual register constraints.
32049 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32051         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32052         from checking for -mhtm option.
32054 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32056         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32057         (struct ipa_sra_check_caller_data): Add has_thunk field.
32058         (ipa_sra_check_caller): Check for thunk.
32059         (ipa_sra_preliminary_function_checks): Give up on function with
32060         thunks.
32061         (ipa_early_sra): Use call_for_symbol_and_aliases.
32063 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
32065         PR target/65249
32066         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32067         called for __stack_chk_guard symbol.
32069 2015-03-03  DJ Delorie  <dj@redhat.com>
32071         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32072         inc/dec.
32073         (*addhi3_real): Likewise.
32074         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32075         pattern to match incrementing memory.
32076         * config/rl78/predicates.md (rl78_1_2_operand): New.
32077         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32078         it's the same and only mem.
32079         (rl78_alloc_physical_registers_op2): If there's effectively only
32080         one MEM, transcode it into HL.
32081         (rl78_far_p): Reject addresses that aren't legitimate.
32083 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32085         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32086         negating it.
32088         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32090 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32092         Implement call0 ABI for xtensa
32093         * config/xtensa/constraints.md ("a" constraint): Include stack
32094         pointer in case of call0 ABI.
32095         ("q" constraint): Make empty in case of call0 ABI.
32096         ("D" constraint): Include stack pointer in case of call0 ABI.
32097         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32098         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32099         prototypes.
32100         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32101         variable.
32102         (xtensa_regno_to_class): Make it a local variable in the
32103         function xtensa_regno_to_class.
32104         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32105         macro, function prototype and implementation.
32106         (reg_nonleaf_alloc_order): Make it a local variable in the
32107         function order_regs_for_local_alloc.
32108         (xtensa_conditional_register_usage): New function.
32109         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32110         (xtensa_valid_move): Allow direct moves to stack pointer
32111         register in call0 ABI.
32112         (xtensa_setup_frame_addresses): Only spill register windows in
32113         windowed ABI.
32114         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32115         call0 ABI respectively.
32116         (xtensa_function_arg_1): Only mark a7 register for copying in
32117         windowed ABI.
32118         (xtensa_call_save_reg): New function.
32119         (compute_frame_size): Add space for callee saved register
32120         storage to the frame size in call0 ABI.
32121         (xtensa_expand_prologue): Generate code to set up stack frame
32122         and save callee-saved registers in call0 ABI.
32123         (xtensa_expand_epilogue): New function.
32124         (xtensa_set_return_address): New function.
32125         (xtensa_return_addr): Calculate return address in call0 ABI.
32126         (xtensa_builtin_saveregs): Only mark a7 register for copying and
32127         emit copying code in windowed ABI.
32128         (order_regs_for_local_alloc): Add preferred register allocation
32129         order for non-leaf function in call0 ABI.
32130         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32131         (xtensa_asm_trampoline_template): Add trampoline generation for
32132         call0 ABI.
32133         (xtensa_trampoline_init): Add trampoline initialization for
32134         call0 ABI.
32135         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32136         functions.
32137         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32138         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32139         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32140         ABI call-used registers.
32141         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32142         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32143         call0 ABI.
32144         (REG_CLASS_CONTENTS): Include all registers into the preferred
32145         reload registers set, adjust the set in the
32146         xtensa_conditional_register_usage.
32147         (xtensa_regno_to_class): Drop variable declaration.
32148         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32149         function.
32150         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32151         respectively.
32152         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32153         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32154         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32155         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32156         location in call0 ABI.
32157         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32158         stack adjustment size when handling exception.
32159         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32160         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32161         definitions.
32162         ("return" pattern): Generate ret.n/ret in call0 ABI.
32163         ("epilogue" pattern): Expand epilogue.
32164         ("nonlocal_goto" pattern): Use default in call0 ABI.
32165         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32166         emit eh_set_a0_* depending on ABI.
32167         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32168         ("eh_set_a0_call0", "blockage"): New patterns.
32170 2015-03-03  Martin Liska  <mliska@suse.cz>
32172         PR ipa/65287
32173         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32175 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
32177         PR 65138/target
32178         * config/rs6000/rs6000-tables.opt: Regenerate table.
32180 2015-03-03  Renlin Li  <renlin.li@arm.com>
32182         * doc/md.texi (@item ^): Change ? into ^.
32184 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
32186         * doc/tm.texi: Regenerated.
32188 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32190         * builtins.c (expand_builtin_return_addr): Add
32191         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32192         surrounding #ifdef.
32193         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32194         definition to 1.
32195         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32196         Likewise.
32197         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32198         undefined.
32199         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32200         paragraph.
32202 2015-03-03  Martin Jambor  <mjambor@suse.cz>
32203             Eric Botcazou  <ebotcazou@adacore.com>
32205         * tree-sra.c (ipa_sra_check_caller_data): New type.
32206         (has_caller_p): Removed.
32207         (ipa_sra_check_caller): New function.
32208         (ipa_sra_preliminary_function_checks): Use it.
32210 2015-03-03  Martin Liska  <mliska@suse.cz>
32212         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32213         instead of if branch.
32215 2015-03-03  Martin Liska  <mliska@suse.cz>
32217         PR ipa/65282
32218         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32220 2015-03-23  Jeff Law  <law@redhat.com>
32222         PR tree-optimization/65241
32223         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32224         hash table if INSERT is true.
32226 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32228         PR target/65296
32229         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32231 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32233         PR target/64331
32234         * config/avr/avr.c (context.h, tree-pass.h): Include them.
32235         (avr_pass_data_recompute_notes): New static variable.
32236         (avr_pass_recompute_notes): New class.
32237         (avr_register_passes): New static function.
32238         (avr_option_override): Call it.
32240 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32242         Fix various problems with specs file generation.
32244         PR target/65296
32245         * config.gcc (extra_gcc_objs) [avr]: Remove.
32246         * config/avr/driver-avr.c: Remove file.
32247         * config/avr/t-avr (driver-avr.o): Remove rule.
32248         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32249         INCLUDES to build.  Depend on TM_H.
32250         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
32251         build warnings.  Fix non-matching types and non-existing %-codes.
32252         (tm.h): Include.
32253         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32254         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32255         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32256         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32257         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32258         (LIBGCC_SPEC): Remove definitions.
32260 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32262         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32263         to create a register in testing mode.
32265 2015-03-03  Martin Liska  <mliska@suse.cz>
32266             Jan Hubicka  <hubicka@ucw.cz>
32268         PR ipa/65263
32269         * cgraph.c (cgraph_node::has_thunk_p): New function.
32270         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32271         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32272         (sem_function::merge): Assert is changed.
32274 2015-03-03  Martin Liska  <mliska@suse.cz>
32275             Martin Jambor  <mjambor@suse.cz>
32277         PR ipa/65087
32278         * ipa-icf.c (sem_item_optimizer::execute): Change function
32279         return value to boolean.
32280         (sem_item_optimizer::merge_classes): Likewise.
32281         (ipa_icf_driver): Return TODO_remove_functions in case there's
32282         a merge operation processed.
32283         * ipa-icf.h: Change function return value to boolean.
32285 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32287         PR 65138/target
32288         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32289         processor type for 64-bit little endian PowerPC.
32291         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32292         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
32293         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
32294         printing built-in mask so it does not pass NULL pointers.
32296         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32297         -mcpu=powerpc64le.
32299 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
32301         PR target/58158
32302         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32303         !ISA_HAS_FP_CONDMOVE.
32305 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
32307         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32308         reload_completed.
32310 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
32312         * doc/invoke.texi (Options for Code Generation Conventions):
32313         Fix URL of DSO paper.
32315 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32317         PR ipa/65130
32318         * ipa-inline.c (check_callers): Looks for recursion.
32319         (inline_to_all_callers): Give up on uninlinable or recursive edges.
32320         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32321         summary of inline clones.
32322         (do_estimate_growth_1): Fix recursion check.
32324 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32326         PR ipa/64988
32327         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32328         comdat groups.
32330 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32331             Aldy Hernandez  <aldyh@redhat.com>
32333         PR lto/65276
32334         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32335         when checking TYPE_BINFO.
32337 2015-03-02  Richard Biener  <rguenther@suse.de>
32339         PR ipa/65270
32340         * ipa-icf-gimple.c: Include builtins.h.
32341         (func_checker::compare_memory_operand): Compare base alignment.
32343 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32345         PR target/65184
32346         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32347         passed by reference.
32349 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32351         PR target/65183
32352         * tree-chkp.c (chkp_check_lower): Don't check against
32353         zero bounds for already instrumented functions.
32354         (chkp_check_upper): Likewise.
32355         (chkp_fini): Clean pass local data to avoid wrong reusage.
32357 2015-02-28  Martin Liska  <mliska@suse.cz>
32358             Jan Hubicka  <hubicka@ucw.cz>
32360         * ipa-icf.c (sem_variable::equals): Improve debug output;
32361         get variable constructor.
32362         (sem_variable::parse): Do not filter out too early; give up on
32363         volatile and register vars.
32364         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32365         variables.
32366         * ipa-icf.h (sem_variable::init): Do not set ctor.
32367         (sem_variable::ctor): Remove.
32369 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
32371         PR middle-end/65233
32372         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32374 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32376         * ipa-icf.c: Include stor-layout.h
32377         (sem_function::compare_cgraph_references): Rename to ...
32378         (sem_item::compare_cgraph_references): ... this one.
32379         (sem_variable::equals_wpa): New function
32380         (sem_variable::equals): Do not check stuff already verified by
32381         equals_wpa.
32382         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32383         * ipa-icf.h (sem_item): Add compare_cgraph_references.
32384         (sem_function): Remove compare_cgraph_references.
32385         (sem_variable): Turns equals_wpa into non-inline.
32387 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32389         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32390         (sem_item::add_expr): New function.
32391         (sem_function::hash_stmt): Handle operands of most statements.
32392         (sem_variable::get_hash): Hash the actual constructor.
32393         * ipa-icf.h (sem_item): Add add_expr.
32394         (sem_function): Update prototype of hash_stmt
32396 2015-02-28  Martin Liska  <mliska@suse.cz>
32397             Jan Hubicka  <hubicka@ucw.cz>
32399         PR ipa/65245
32400         * ipa-icf-gimple.c (func_checker::compare_function_decl):
32401         Remove.
32402         (func_checker::compare_variable_decl): Skip symtab vars.
32403         (func_checker::compare_cst_or_decl): Update.
32404         * ipa-icf.c (sem_function::parse): Do not consider aliases.
32405         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32406         use correct symtab predicates.
32407         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32408         (sem_variable::parse):  Update comment.
32409         (sem_item_optimizer::build_graph): Consider ultimate aliases
32410         for references.
32412 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32414         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32415         of OBJ_TYPE_REF.
32417 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32419         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32420         (sem_variable::merge) Likewise.
32422 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32424         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32425         target; also match flag_ipa_devirt.
32427 2015-03-01  Martin Liska  <mliska@suse.cz>
32428             Jan Hubicka  <hubicka@ucw.cz>
32430         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32431         Validate variable alignment.
32432         * ipa-icf.c (sem_function::equals_private): Be more precise
32433         about non-common function attributes.
32434         (sem_variable::equals): Likewise.
32436 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32438         PR ipa/65237
32439         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32440         across COMDAT group boundary.
32442 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32444         PR ipa/65232
32445         * ipa-icf.c (clear_decl_rtl): New function.
32446         (sem_function::merge): Clear RTL before forming alias.
32447         (sem_variable::merge): Clear RTL before forming alias.
32449 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32451         PR ipa/65236
32452         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32454 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
32456         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32457         to neon_to_gp<q>.
32459 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32461         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32462         a typo in the description.
32464 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32466         PR target/64317
32467         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32468         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32469         * lra-constraints.c: Include "params.h".
32470         (EBB_PROBABILITY_CUTOFF): Use
32471         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32472         (lra_inheritance): Use '<' instead of '<=' for
32473         EBB_PROBABILITY_CUTOFF.
32474         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32475         Document change.
32477 2015-02-27  Martin Liska  <mliska@suse.cz>
32479         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32480         vector length condition.
32482 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
32484         * doc/extend.texi (x86 transactional memory intrinsics):
32485         Reorganize discussion of _xbegin.  Clarify that the return
32486         value is a bit mask.  Expand example and move to end of section.
32488 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32489             Aldy Hernandez  <aldyh@redhat.com>
32491         PR rtl-optimization/65220
32492         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32494 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32496         PR target/65032
32497         * lra-remat.c (update_scratch_ops): New.
32498         (do_remat): Call it.
32499         * lra.c (lra_register_new_scratch_op): New. Take code from ...
32500         (remove_scratches): ... here.
32501         * lra-int.h (lra_register_new_scratch_op): New prototype.
32503 2015-02-27  Marek Polacek  <polacek@redhat.com>
32505         PR c/65040
32506         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32507         -Wformat-signedness anymore.
32509 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32511         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32512         function.
32513         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32515 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32517         * config/s390/s390.c (enum s390_builtin):
32518         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32519         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32520         (s390_init_builtins): Generate new builtin functions.
32521         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32522         (s390_sfpc, s390_efpc): New pattern definitions.
32524 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32526         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32527         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32528         (s390_builtin_decls): New array.
32529         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32530         (s390_builtin_decl): New function.
32531         (TARGET_BUILTIN_DECL): Define macro.
32533 2015-02-27  Richard Biener  <rguenther@suse.de>
32535         PR middle-end/63175
32536         * builtins.c (get_object_alignment_2): Make sure to re-apply
32537         the ANDed mask after recursing to its operand gets us a new
32538         misalignment bit position.
32540 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
32541             Martin Liska  <mliska@suse.cz>
32543         PR bootstrap/65150
32544         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32545         Use address_matters_p.
32546         (redirect_all_callers, set_addressable): New functions.
32547         (sem_function::merge): Reorganize and fix merging issues.
32548         (sem_variable::merge): Likewise.
32549         (sem_variable::compare_sections): Remove.
32550         * common.opt (fmerge-all-constants, fmerge-constants): Remove
32551         Optimization flag.
32552         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32553         redirect them.
32554         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32555         decl is used.
32556         (address_matters_1): New function.
32557         (symtab_node::address_matters_p): New function.
32558         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32559         check for merged flag.
32560         * cgraph.h (address_matters_p): Declare.
32561         (symtab_node::address_taken_from_non_vtable_p): Remove.
32562         (symtab_node::address_can_be_compared_p): New method.
32563         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32564         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32565         Remove.
32566         (comdat_can_be_unshared_p_1) Use address_matters_p.
32567         (update_vtable_references): Fix formating.
32568         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32569         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32570         * cgraphclones.c: Preserve merged and icf_merged flags.
32572 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
32574         * doc/extend.texi (Function Attributes): Fix spelling and typos.
32575         (Label Attributes): Likewise.
32576         (Cilk Plus Builtins): Likewise.
32577         (ARC SIMD Built-in Functions): Likewise.
32578         (ARM C Language Extensions (ACLE)): Likewise.
32579         (PowerPC Built-in Functions): Likewise.
32580         (PowerPC Hardware Transactional Memory Built-in Functions):
32581         Likewise.
32583 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32585         PR tree-optimization/65216
32586         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32587         new stmt and new SSA_NAME for lhs whenever the arguments have
32588         changed and weren't just swapped.  Fix comment typo.
32590         PR tree-optimization/65215
32591         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32592         for PDP endian targets.
32593         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32594         Fix up formatting issues.
32595         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
32596         size is smaller than the original, adjust MEM_REF offset by the
32597         difference of sizes.  Use is_gimple_mem_ref_addr instead of
32598         is_gimple_min_invariant test to avoid adding address temporaries.
32600 2015-02-26  Martin Liska  <mliska@suse.cz>
32601             Jan Hubicka  <hubicka@ucw.cz>
32603         PR ipa/64693
32604         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32605         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32606         (sem_item_optimizer::process_cong_reduction): Include division by
32607         sensitive references.
32608         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32609         * ipa-ref.c (ipa_ref::address_matters_p): New function.
32610         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32612 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
32614         PR target/65192
32615         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32616         Remove.
32617         * config/avr/avr.c: Same.
32618         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32619         Refuse any constant address not in 0..0xbf.
32620         * config/avr/avr.md (*mov<mode>, *movsf): Remove
32621         tiny_valid_direct_memory_access_range from insn conditions.
32622         (mov<mode>): Don't special-case expansion of avrtiny addresses.
32624 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
32626         PR target/61142
32627         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32628         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32629         * config/sh/predicates.md (const_logical_operand): New predicate.
32630         * config/sh/sh.md: Add new peephole2 patterns.
32632 2015-02-26  Marek Polacek  <polacek@redhat.com>
32634         PR ipa/65008
32635         * ipa-inline.c (early_inliner): Recompute inline parameters.
32637 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32639         PR target/65171
32640         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32641         instructions with TImode operands are included in the analysis.
32643 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
32645         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32646         of an EDGE_FSM_THREAD.
32648 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32650         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32652 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
32654         PR debug/46102
32655         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32657 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
32659         PR tree-optimization/65048
32660         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32661         (thread_through_all_blocks): Call valid_jump_thread_path.
32662         Remove invalid FSM jump-thread paths.
32664 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32666         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32667         (ipa_write_optimization_summaries): Likewise.
32668         * tree-streamer.h: Include data-streamer.h.
32669         (streamer_mode_table): Declare extern variable.
32670         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32671         * lto-streamer-out.c (lto_output_init_mode_table,
32672         lto_write_mode_table): New functions.
32673         (produce_asm_for_decls): Call lto_write_mode_table when streaming
32674         offloading LTO.
32675         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32676         (lto_create_simple_input_block): Add mode_table argument to the
32677         lto_input_block constructors.
32678         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32679         Likewise.
32680         * data-streamer-in.c (string_for_index): Likewise.
32681         * ipa-inline-analysis.c (inline_read_section): Likewise.
32682         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32683         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32684         * lto-streamer-in.c (lto_read_body_or_constructor,
32685         lto_input_toplevel_asms): Likewise.
32686         (lto_input_mode_table): New function.
32687         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32688         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32689         Use bp_pack_machine_mode.
32690         * real.h (struct real_format): Add name field.
32691         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32692         (class lto_input_block): Add mode_table member.
32693         (lto_input_block::lto_input_block): Add mode_table_ argument,
32694         initialize mode_table.
32695         (struct lto_file_decl_data): Add mode_table field.
32696         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32697         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32698         unpack_ts_decl_common_value_fields,
32699         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32700         * tree-streamer.c (streamer_mode_table): New variable.
32701         * real.c (ieee_single_format, mips_single_format,
32702         motorola_single_format, spu_single_format, ieee_double_format,
32703         mips_double_format, motorola_double_format,
32704         ieee_extended_motorola_format, ieee_extended_intel_96_format,
32705         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32706         ibm_extended_format, mips_extended_format, ieee_quad_format,
32707         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32708         decimal_single_format, decimal_double_format, decimal_quad_format,
32709         ieee_half_format, arm_half_format, real_internal_format): Add name
32710         field.
32711         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32713 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
32715         PR target/65161
32716         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32717         reordering for selective scheduling.
32719 2015-02-26  Terry Guo  <terry.guo@arm.com>
32721         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32722         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32723         (arm_arch_no_volatile_ce): Declare new global variable.
32724         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32725         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32726         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32727         (TARGET_NO_VOLATILE_CE): New macro.
32728         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32729         volatile memory access in IT block
32731 2015-02-25  Kai Tietz  <ktietz@redhat.com>
32733         PR tree-optimization/61917
32734         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32735         that reduc_def_stmt is null.
32737 2015-02-25  Martin Liska  <mliska@suse.cz>
32739         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32740         hard register variables.
32742 2015-02-25  Kai Tietz  <ktietz@redhat.com>
32744         PR target/64212
32745         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32746         (symtab::noninterposable_alias): Likewise.
32748 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
32750         PR target/65167
32751         * config/i386/i386.c (ix86_function_arg_regno_p): Support
32752         bounds registers.
32753         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32755 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
32757         PR target/64997
32758         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32759         as split condition; force split via '#' in output pattern.
32761 2015-02-25  Richard Biener  <rguenther@suse.de>
32762             Kai Tietz  <ktietz@redhat.com>
32764         PR tree-optimization/61917
32765         * tree-vect-loop.c (vectorizable_reduction): Allow
32766         vect_internal_def without reduction to exit graceful.
32768 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32770         PR target/65196
32771         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32772         only with NONDEBUG_INSN_P.
32774 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32776         Use variadic macros with avr-log.c.
32778         * config/avr/avr-protos.h (avr_vdump): New prototype.
32779         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32780         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32781         * config/avr/avr-log.c: Adjust comments.
32782         (avr_vdump): New function.
32783         (avr_vadump): Pass caller as 2nd argument instead of format string.
32784         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32785         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32787 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
32789         PR lto/64374
32790         * target.def (target_option_stream_in): New target hook.
32791         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32792         targetm.target_option.post_stream_in if non-NULL.
32793         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32794         * doc/tm.texi: Updated.
32795         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32796         function.
32797         (TARGET_OPTION_POST_STREAM_IN): Redefine.
32799 2015-02-24  Jeff Law  <law@redhat.com>
32801         PR target/65117
32802         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32803         of operand 0 and operand 2.
32804         (zero_cost_loop_end, loop_end): Similarly.
32806 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
32808         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32809         CXX_MEM_STAT_INFO.
32811 2015-02-24  DJ Delorie  <dj@redhat.com>
32813         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32814         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32815         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32816         instead of hardcoding SImode.
32818 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
32820         * omp-low.c (create_omp_child_function): Tag entrypoint
32821         functions with a special attribute.
32823 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32825         PR target/65058
32826         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32828 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
32830         PR rtl-optimization/65123
32831         * lra-remat.c (operand_to_remat): Check hard regs in insn
32832         definition too.
32834 2015-02-24  Nick Clifton  <nickc@redhat.com>
32836         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32837         to the assembler.
32839 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
32841         PR libgomp/64625
32842         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32843         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32844         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32845         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32846         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32847         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32848         (BUILT_IN_GOACC_PARALLEL): Specify as
32849         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32850         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32851         * builtin-types.def
32852         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32853         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32854         Remove function types.
32855         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32856         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32857         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32858         New function types.
32860 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
32862         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32864 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
32866         PR tree-optimization/65170
32867         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32868         if val[1] < 0, clear also val[2] and return 3.
32870 2015-02-24  Alan Modra  <amodra@gmail.com>
32872         PR target/65172
32873         * config/rs6000/rs6000.c (get_memref_parts): Only return true
32874         when *base is a reg.  Handle nested plus addresses.  Simplify
32875         pre_modify test.
32877 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
32879         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32880         use natural alignment when optimizing for size.
32882 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
32884         PR target/65153
32885         * config/sh/sh.md (movsicc_true+3): Remove peephole.
32886         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32887         * config/sh/sh.c (replace_n_hard_rtx): Remove.
32889 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
32891         PR fortran/63427
32892         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32893         too big for a wide_int.  Implement missing wrapping operation.
32895 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
32897         PR target/65163
32898         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32899         instead of const_int 4294901760.
32901 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
32903         * config/avr/t-avr: Fix typo in comment.
32905 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32907         * doc/rtl.texi (fma): Clarify documentation.
32909 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
32911         PR debug/58123
32912         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32913         over input_location.
32915 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32917         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32918         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32919         restrict alignments to absolute_biggest_alignment.
32920         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32921         Define.
32922         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32923         * doc/tm.texi: Regenerate.
32924         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32926 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
32928         PR target/64172
32929         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32931 2015-02-20  Richard Biener  <rguenther@suse.de>
32933         PR tree-optimization/65136
32934         * tree-ssa-propagate.c: Include cfgloop.h.
32935         (replace_phi_args_in): Avoid replacing loop latch edge PHI
32936         arguments with constants.
32938 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
32939             Martin Liska  <mliska@suse.cz>
32941         PR target/63892
32942         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32943         don't try to create_thunk if stdarg_p.  If
32944         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32945         redirect_callers if possible.
32946         (sem_item_optimizer::execute): Call unregister_hooks here...
32947         (ipa_icf_driver): ... instead of here.
32949 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32951         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32952         Mark operand 0 as earlyclobber in 2nd alternative.
32953         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32954         Write negated shift amount into QI lowpart operand 0 and use it
32955         in the shift step.
32956         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32958 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32960         * cgraph.h (clone_function_name_1): Declare.
32961         * cgraphclones.c (clone_function_name_1): New function.
32962         (clone_function_name): Use it.
32963         * lto-partition.c: Include "stringpool.h".
32964         (must_not_rename, maybe_rewrite_identifier)
32965         (validize_symbol_for_target): New static functions.
32966         (privatize_symbol_name): Use must_not_rename.
32967         (promote_symbol): Call validize_symbol_for_target.
32968         (lto_promote_cross_file_statics): Likewise.
32969         (lto_promote_statics_nonwpa): Likewise.
32971 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
32973         PR target/64452
32974         * config/avr/avr.md (pushhi_insn): New insn.
32975         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32977 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32978             Jakub Jelinek  <jakub@redhat.com>
32980         * tree-streamer.c (preload_common_nodes): Don't preload
32981         TI_VA_LIST* for offloading.
32982         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32983         in_lto_p.
32985 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
32987         * config/pa/pa.c (pa_emit_move_sequence): Always force
32988         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
32989         note on insn.
32991         * config/pa/pa.c (pa_reloc_rw_mask): New function.
32992         (TARGET_ASM_RELOC_RW_MASK): Define.
32993         (pa_cannot_force_const_mem): Revert previous change.
32995 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
32996             Jan Hubicka  <hubicka@ucw.cz>
32998         PR ipa/65028
32999         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33000         across jump functions.
33002 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
33004         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33006 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
33008         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33010 2015-02-19  Richard Henderson  <rth@redhat.com>
33012         PR middle-end/65074
33013         * varasm.c (default_binds_local_p_2): Don't test node->definition;
33014         test DECL_EXTERNAL independent of symtab_node.
33016 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
33018         PR lto/65012
33019         * varpool.c (varpool_node::get_constructor): Return early
33020         if this->lto_file_data is NULL.
33022 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33024         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33025         (rank_for_schedule_debug): Update.
33026         (ready_sort): Make static.  Move sorting logic to ...
33027         (ready_sort_debug, ready_sort_real): New static functions.
33028         (schedule_block): Sort both debug insns and real insns in preparation
33029         for ready list trimming.  Improve debug output.
33030         * sched-int.h (ready_sort): Remove global declaration.
33032 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
33034         * ipa-icf.c (sem_function::equals_private): Adjust.
33035         (sem_function::bb_dict_test): Take a vec<int> * instead of
33036         auto_vec<int>.
33037         * ipa-icf.h (bb_dict_test): Likewise.
33039 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33041         PR gcov-profile/64634
33042         * tree-eh.c (frob_into_branch_around): Fix up typos
33043         in function comment.
33044         (lower_catch): Put eh_seq resulting from EH lowering of
33045         the cleanup sequence after the cleanup rather than before it.
33047 2015-02-18  Tom de Vries  <tom@codesourcery.com>
33049         * common.opt (fstdarg-opt): New option.
33050         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33051         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33052         (@item -fstdarg-opt): New item.
33054 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
33056         PR target/65064
33057         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33058         for common symbols.
33060 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33062         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33063         insn-modes.h.
33064         (ALL_HOST_OBJS): Add mkoffload.o.
33065         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33067 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
33069         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33070         (compare_virtual_tables): Be smarter about skipping typeinfos;
33071         do sane output on virtual table table mismatch.
33072         (warn_odr): Be ready for forward declarations of enums;
33073         output sane info on base mismatch and virtual table mismatch.
33074         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33075         when only one type is polymorphic.
33076         (get_odr_type): Fix hashtable corruption.
33077         (dump_odr_type): Dump mangled names.
33079 2015-02-18  Richard Biener  <rguenther@suse.de>
33081         PR tree-optimization/65063
33082         * tree-predcom.c (determine_unroll_factor): Return 1 if we
33083         have replaced looparound PHIs.
33085 2015-02-18  Martin Liska  <mliska@suse.cz>
33087         * lto-streamer.c (lto_streamer_init): Encapsulate
33088         streamer_check_handled_ts_structures with checking macro.
33090 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33092         PR ipa/65087
33093         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33094         section if !implicit_section.
33095         (cgraph_node::create_version_clone_with_body): Likewise.
33096         * trans-mem.c (ipa_tm_create_version): Likewise.
33098 2015-02-18  Richard Biener  <rguenther@suse.de>
33100         PR tree-optimization/62217
33101         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33102         into BIVs.
33104 2015-02-18  Marek Polacek  <polacek@redhat.com>
33106         PR sanitizer/65081
33107         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33108         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33109         is in range [-16K, -1].  Don't issue run-time error if
33110         (ptr > ptr + offset).
33112 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
33114         * doc/install.texi (nvptx-*-none): New section.
33115         * doc/invoke.texi (Nvidia PTX Options): Likewise.
33116         * config/nvptx/nvptx.opt: Update.
33118         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33119         (access_check): New functions, copied from
33120         config/i386/intelmic-mkoffload.c.
33121         (main): For non-installed testing, look in all COMPILER_PATHs for
33122         GCC_INSTALL_NAME.
33124         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33126 2015-02-18  Andrew Pinski  <apinski@cavium.com>
33127             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33129         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33130         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33132 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33134         * ipa-visibility.c (function_and_variable_visibility): Only
33135         check locality if node is not already local.
33136         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33137         call_for_symbol_and_aliases instead of
33138         call_for_symbol_thunks_and_aliases.
33139         (ipa_inline): Likewise.
33140         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33141         first walk aliases.
33142         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33143         call_for_symbol_and_aliases.
33144         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33145         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33146         (ipa_propagate_frequency): Update.
33147         (ipa_profile): Add opt_for_fn gueards.
33149 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33151         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33152         * doc/invoke.texi (SH options): Document it.
33153         * config/sh/sh.c (sh_insn_length_adjustment): Check
33154         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33156 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
33158         * common.opt (fipa-cp-alignment): New.
33159         * ipa-cp.c (ipcp_store_alignment_results): Check
33160         flag_ipa_cp_alignment.
33161         * opts.c (default_options_table): Enable -fipa-cp-alignment for
33162         -O2.
33163         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33164         * doc/invoke.texi: Document -fipa-cp-alignment.
33166 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33168         PR target/64793
33169         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33170         to nil.  Adjust comments.
33172 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33174         * ipa-visibility.c (function_and_variable_visibility): Only
33175         check locality if node is not already local.
33176         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33177         call_for_symbol_and_aliases instead of
33178         call_for_symbol_thunks_and_aliases.
33179         (ipa_inline): Likewise.
33180         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33181         first walk aliases.
33182         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33183         call_for_symbol_and_aliases.
33184         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33185         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33186         (ipa_propagate_frequency): Update.
33187         (ipa_profile): Add opt_for_fn guards.
33189 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
33191         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33192         skipping of "strange" tokens.
33194 2015-02-17  Jeff Law  <law@redhat.com>
33196         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
33197         obsolete comment.
33199 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
33201         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33202         as forcing a HARD_DEP between instructions, thereby
33203         disallowing rewriting to break dependencies.
33205 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33207         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33208         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33209         variables in boundary that have no inlitalizer encoded and are
33210         not aliases.
33211         * varasm.c (default_binds_local_p_2): External definitions do not
33212         count as definitions here.
33214 2015-02-16  Jeff Law  <law@redhat.com>
33216         PR tree-optimization/64823
33217         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33218         statements.
33219         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33220         threading through blocks with PHIs, but no statements.
33221         (thread_through_normal_block): Distinguish between blocks where
33222         we did not process all the statements and blocks with no statements.
33224 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
33225             James Greenhalgh  <james.greenhalgh@arm.com>
33227         PR ipa/64963
33228         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33229         section if not linkonce.  Fix up formatting.
33230         (cgraph_node::create_version_clone_with_body): Copy section.
33231         * trans-mem.c (ipa_tm_create_version): Likewise.
33233 2015-02-16  Richard Biener  <rguenther@suse.de>
33235         PR tree-optimization/65077
33236         * tree-ssa-structalias.c (get_constraint_for_1): Handle
33237         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33238         (find_func_aliases): Allow float values to carry pointers again.
33240 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
33242         * doc/install.texi (Specific): Reorder targets list to put
33243         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
33244         from the top menu.
33246 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
33247             David Edelsohn  <dje.gcc@gmail.com>
33249         PR target/65058
33250         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33251         mapping class to external variable or function reference.
33252         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33253         mapping class.
33255 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
33257         PR target/53348
33258         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33259         ASM_WEAKEN_DECL if defined.
33261 2015-02-16  Richard Biener  <rguenther@suse.de>
33263         PR lto/65015
33264         * varasm.c (default_file_start): For LTO produced units
33265         emit <artificial> as file directive.
33267 2015-02-16  Richard Biener  <rguenther@suse.de>
33269         PR tree-optimization/63593
33270         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33271         stmts and releasing SSA names until...
33272         (execute_pred_commoning): ... after processing all chains.
33274 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33276         PR ipa/65059
33277         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33278         external functions.
33280 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
33282         * doc/bugreport.texi: Adjust section titles throughout the file
33283         to use "Title Case".
33284         * doc/extend.texi: Likewise.
33285         * doc/gcov.texi: Likewise.
33286         * doc/implement-c.texi: Likewise.
33287         * doc/implement-cxx.texi: Likewise.
33288         * doc/invoke.texi: Likewise.
33289         * doc/objc.texi: Likewise.
33290         * doc/standards.texi: Likewise.
33291         * doc/trouble.texi: Likewise.
33293 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
33295         * cgraph.h (symtab_node::has_aliases_p): Simplify.
33296         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33297         * tree.c (lookup_binfo_at_offset): Make static.
33298         (get_binfo_at_offset): Do not shadow offset; add explanatory
33299         comment.
33301 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
33303         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33304         for all floading point loads and stores except those using a register
33305         index address.
33306         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33307         to a register.
33309 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33311         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33312         (do_estimate_growth_1): Record if any uninlinable edge was seen.
33313         (estimate_growth): Handle uninlinable edges correctly.
33314         (check_callers): New.
33315         (growth_likely_positive): Handle aliases correctly.
33317 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33319         * ipa-chkp.c: Use iterate_direct_aliases.
33320         * symtab.c (resolution_used_from_other_file_p): Move inline.
33321         (symtab_node::create_reference): Fix formating.
33322         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33323         (symtab_node::iterate_reference): Move inline.
33324         (symtab_node::iterate_referring): Move inline.
33325         (symtab_node::iterate_direct_aliases): Move inline.
33326         (symtab_node::used_from_object_file_p_worker): Inline into ...
33327         (symtab_node::used_from_object_file_p): ... this one; move inline.
33328         (symtab_node::call_for_symbol_and_aliases): Move inline;
33329         use iterate_direct_aliases.
33330         (symtab_node::call_for_symbol_and_aliases_1): New method.
33331         (cgraph_node::call_for_symbol_and_aliases): Move inline;
33332         use iterate_direct_aliases.
33333         (cgraph_node::call_for_symbol_and_aliases_1): New method.
33334         (varpool_node::call_for_node_and_aliases): Rename to ...
33335         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33336         use iterate_direct_aliases.
33337         (varpool_node::call_for_symbol_and_aliases_1): New method.
33338         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33339         (ipa_discover_readonly_nonaddressable_var): Update.
33340         * ipa-devirt.c: Fix formating.
33341         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33342         Move inline.
33343         (cgraph_node::call_for_symbol_and_aliases): Move inline.
33344         (cgraph_node::call_for_symbol_and_aliases_1): New function..
33345         * cgraph.h (used_from_object_file_p_worker): Remove.
33346         (resolution_used_from_other_file_p): Move inline.
33347         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33348         (symtab_node::iterate_reference): Move inline.
33349         (symtab_node::iterate_referring): Move inline.
33350         (symtab_node::iterate_direct_aliases): Move inline.
33351         (symtab_node::used_from_object_file_p_worker): Inline into ...
33352         (symtab_node::used_from_object_file_p): Move inline.
33353         * tree-emutls.c (ipa_lower_emutls): Update.
33354         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33355         (varpool_node::call_for_node_and_aliases): Remove.
33357 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
33359         PR tree-optimization/62209
33360         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33361         op == range->exp, insert seq and gimplified code after labels
33362         instead of after the phi.
33364 2015-02-13  Jeff Law  <law@redhat.com>
33366         PR bootstrap/65060
33367         Revert my change for tree-optimization/64823.
33369 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33371         PR tree-optimization/65053
33372         * tree-ssa-phiopt.c (value_replacement): When moving assign before
33373         cond, either reset VR on lhs or set it to phi result VR.
33375 2015-02-13  Jeff Law  <law@redhat.com>
33377         PR tree-optimization/64823
33378         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33379         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33380         threading through blocks with PHIs, but no statements.
33381         (thread_through_normal_block): Distinguish between blocks where
33382         we did not process all the statements and blocks with no statements.
33384         PR rtl-optimization/47477
33385         * match.pd (convert (plus/minus (convert @0) (convert @1): New
33386         simplifier to narrow arithmetic.
33388 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
33390         PR ipa/65028
33391         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33392         polymorphic call info when type is not known to be preserved.
33394 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
33396         PR ipa/65028
33397         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33398         (inline_call): Use it.
33400 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
33402         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33403         GOMP_DEVICE_NVIDIA_PTX.
33405 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33407         PR ipa/65034
33408         * stmt.c (emit_case_nodes): Use void_type_node instead of
33409         NULL_TREE as LABEL_DECL type.
33411 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
33413         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33414         constraints.
33415         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33416         symbolic references to data to be forced to constant memory on the
33417         SOM target.
33419 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
33421         PR tree-optimization/65002
33422         * tree-cfg.c (pass_data_fixup_cfg): Don't update
33423         SSA on start.
33424         * tree-sra.c (some_callers_have_no_vuse_p): New.
33425         (ipa_early_sra): Reject functions whose callers
33426         assume function is read only.
33428 2015-02-13  Richard Biener  <rguenther@suse.de>
33430         PR lto/65015
33431         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33432         for LTO produced CUs.
33434 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
33436         PR tree-optimization/64705
33437         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33438         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33439         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33440         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33441         expand_simple_operations.
33443 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
33444             Richard Henderson  <rth@redhat.com>
33446         PR rtl/32219
33447         * cgraphunit.c (cgraph_node::finalize_function): Set definition
33448         before notice_global_symbol.
33449         (varpool_node::finalize_decl): Likewise.
33450         * varasm.c (default_binds_local_p_2): Rename from
33451         default_binds_local_p_1, add weak_dominate argument.  Use direct
33452         returns instead of assigning to local variable.  Unify varpool and
33453         cgraph paths via symtab_node.  Reject undef weak variables before
33454         testing visibility.  Reorder tests for simplicity.
33455         (default_binds_local_p): Use default_binds_local_p_2.
33456         (default_binds_local_p_1): Likewise.
33457         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33458         via symtab_node.
33459         (default_elf_asm_output_external): Emit visibility when specified.
33461 2015-02-13  Alan Modra  <amodra@gmail.com>
33463         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33464         code setting up r11 for out-of-line fp restore.
33466 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
33468         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33469         (muser-mode): Likewise.
33471 2015-02-13  Alan Modra  <amodra@gmail.com>
33473         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33474         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33476 2015-02-12  David Howells  <dhowells@redhat.com>
33478         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33479         warning.
33480         * tree-ssa-uninit.c (dump_predicates): Likewise.
33481         * opts.c (print_filtered_help): Likewise.
33483 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33485         * dwarf2out.c (output_die): Use "%s", name instead of name to
33486         avoid -Wformat-security warning.
33488         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33489         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33490         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33491         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33493 2015-02-12  Jason Merrill  <jason@redhat.com>
33495         * common.opt (-flifetime-dse): New.
33497 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33499         PR sanitizer/65019
33500         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33502         PR tree-optimization/65014
33503         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33504         use original second operand of arg0 or arg1 instead of
33505         that adjusted by STRIP_NOPS.
33507 2015-02-11  Jeff Law  <law@redhat.com>
33509         PR target/63347
33510         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33511         that needs to be queued, just queue it for a single cycle.
33513 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
33515         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33516         bodies of thunks; comment on why.
33517         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33518         symbols are extern.
33520 2015-02-11  Richard Henderson  <rth@redhat.com>
33522         PR sanitize/65000
33523         * tree-eh.c (mark_reachable_handlers): Mark source and destination
33524         regions of __builtin_eh_copy_values.
33526 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33528         PR middle-end/65003
33529         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33530         ultimate alias is MEM with SYMBOL_REF satisfying
33531         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
33532         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33534 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
33536         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33537         "diagnostic-core.h".
33538         (main): Initialize progname, and call diagnostic_initialize.
33540         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33541         instead of __OPENMP_TARGET__.
33543         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33544         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33545         hard-coding PTX_ID.
33547 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
33549         * doc/sourcebuild.texi (pie_enabled): Document.
33551 2015-02-11  Martin Liska  <mliska@suse.cz>
33553         PR ipa/64813
33554         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33555         a return value for call to a function that is noreturn.
33557 2015-02-11  Richard Biener  <rguenther@suse.de>
33559         PR lto/65015
33560         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33561         and -fresolution.
33563 2015-02-11  Andrew Pinski  <apinski@cavium.com>
33565         PR target/64893
33566         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33567         Change the first argument type to size_type_node and add another
33568         size_type_node.
33569         (aarch64_simd_expand_builtin): Handle the new argument to
33570         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33571         print an out when the first two arguments are not
33572         nonzero integer constants.
33573         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33574         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33576 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33578         PR target/61925
33579         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33580         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33581         (ix86_set_current_function): Rewritten.
33582         (ix86_add_new_builtins): Temporarily clear current_target_pragma
33583         when creating builtin fndecls.
33585 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33587         PR ipa/65005
33588         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33589         function.
33590         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33591         have no comdat group.
33592         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33593         (lto_output_varpool_node): Always output alias info.
33594         (output_refs): Output refs of boundary aliases, too.
33595         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33596         (output_symtab): Output call eges in thunks in boundary.
33597         (get_alias_symbol): Remove.
33598         (input_node, input_varpool_node): Do not special case weakrefs.
33599         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33600         alias and thunks targets in the boundary; do not take removed symbols
33601         from their comdat groups.
33602         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33603         (cgraph_node::global_info): Remove.
33604         (cgraph_node::rtl_info): Look through aliases and thunks.
33605         * cgrpah.h (global_info): Remove.
33606         (non_local_p): Remove.
33608 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33609             Sandra Loosemore  <sandra@codesourcery.com>
33611         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33612         to inline asm.  List dialects in proper order.
33614 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33615             Sandra Loosemore  <sandra@codesourcery.com>
33617         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33619 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33621         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33622         modified) reference to Solaris.
33624 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
33626         * doc/extend.texi (Extended Asm): Fix typos.
33628 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
33630         PR sanitizer/65004
33631         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33633 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
33635         PR target/64661
33636         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33637         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33638         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33639         * config/sh/constraints.md (Ara, Add): New constraints.
33640         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33641         predicates.
33642         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33643         atomic_mem_operand_0.  Don't use force_reg on the memory address.
33644         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33645         Sra constraint.  Convert to insn_and_split.  Add workaround for
33646         PR 64974.
33647         (atomic_compare_and_swap<mode>_hard): Copy to
33648         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
33649         Use atomic_mem_operand_0 predicate.
33650         (atomic_compare_and_swap<mode>_soft_gusa,
33651         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33652         AraAdd constraints.
33653         (atomic_compare_and_swap<mode>_soft_tcb,
33654         atomic_compare_and_swap<mode>_soft_imask,
33655         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33656         atomic_mem_operand_0 predicate and SraSdd constraints.
33657         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33658         constraint.
33659         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33660         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
33661         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33662         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
33663         force_reg on the memory address.
33664         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33665         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33666         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33667         atomic_mem_operand_1 predicate and Sra constraint.
33668         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33669         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
33670         Use atomic_mem_operand_1 predicate.
33671         (atomic_<fetchop_name><mode>_hard): Copy to
33672         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
33673         Use atomic_mem_operand_1 predicate.
33674         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33675         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
33676         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
33677         insn_and_split.  Use atomic_mem_operand_1 predicate.
33678         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33679         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
33680         Use atomic_mem_operand_1 predicate.
33681         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33682         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
33683         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33684         in generated insn with original mem operand before emitting the insn.
33685         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33686         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33687         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33688         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33689         Use atomic_mem_operand_1 predicate and AraAdd constraints.
33690         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33691         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33692         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33693         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33694         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33695         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33696         atomic_not_fetch<mode>_soft_tcb,
33697         atomic_<fetchop_name>_fetch<mode>_soft_imask,
33698         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33699         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33700         Use atomic_mem_operand_1 predicate and SraSdd constraints.
33702 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
33704         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33705         and 3 earlyclobber operands.
33707 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33709         * common.opt (fstack-reuse): Mark as optimization.
33711 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33713         PR ipa/64982
33714         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33716 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
33718         PR tree-optimization/64326
33719         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33721 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
33723         PR gcov-profile/61889
33724         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33726 2015-02-10  Richard Biener  <rguenther@suse.de>
33728         PR tree-optimization/64995
33729         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33730         value we use is final.
33731         (visit_reference_op_store): Always valueize op.
33732         (visit_use): Properly valueize vuses.
33734 2015-02-10  Richard Biener  <rguenther@suse.de>
33736         PR tree-optimization/64909
33737         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33738         pass a scalar-stmt count estimate to the cost model.
33739         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33741 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
33743         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33744         enabled by default together with var-tracking.
33746 2015-02-10  Nick Clifton  <nickc@redhat.com>
33748         * config/rl78/rl78.c: Remove DIV attribute code accidentally
33749         included in previous rl78 commit.
33751 2015-02-10  Richard Biener  <rguenther@suse.de>
33753         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33754         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33755         return the bitpack.
33757 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33759         PR gcov-profile/61889
33760         * config.in: regenerate.
33761         * configure.in: Likewise.
33762         * configure.ac: Check for ftw.h.
33763         * gcov-tool.c: Check for ftw.h before using nftw.
33765 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33767         PR lto/64076
33768         * ipa-visibility.c (update_visibility_by_resolution_info): Only
33769         assert when not in lto mode.
33771 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33773         * ira-color.c (setup_left_conflict_sizes_p): Simplify
33774         initialization/assignment of conflict_size.
33776 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
33778         PR ipa/64978
33779         * ipa-cp.c (gather_caller_stats): Skip thunks.
33780         (propagate_constants_topo): Skip aliases.
33782 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
33784         PR target/64761
33785         * config/sh/sh.c (sh_option_override): Don't change
33786         -freorder-blocks-and-partition to -freorder-blocks even when
33787         unwinding is enabled.
33788         (sh_can_follow_jump): Return false if the followee jump is
33789         a crossing jump when -freorder-blocks-and-partition is specified.
33790         * config/sh/sh.md (*jump_compact_crossing): New insn.
33792 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
33793             Kaz Kojima  <kkojima@gcc.gnu.org>
33795         PR target/64761
33796         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33797         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33798         (sh_can_redirect_branch): Rename to ...
33799         (sh_can_follow_jump): ... this.  Constify argument types.
33800         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33801         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33802         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33803         * doc/tm.texi: Regenerate.
33805 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33807         PR sanitizer/64981
33808         * builtins.c (expand_builtin): Call targetm.expand_builtin
33809         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33811 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33813         PR ipa/61548
33814         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33816 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33818         PR ipa/63566
33819         * ipa-icf.c (set_local): New function.
33820         (sem_function::merge): Use it.
33822 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33824         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33825         (add_type_duplicate): Fix comparison of BINFOs.
33827 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33829         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33830         on getting VOID pointer.
33832 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33834         PR target/64979
33835         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33836         va_list escapes.
33838 2015-02-09  Richard Biener  <rguenther@suse.de>
33840         * genmatch.c (replace_id): Copy expr_type.
33842 2015-02-09  Richard Biener  <rguenther@suse.de>
33844         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33845         (streamer_write_tree_bitfields): Declare.
33846         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33847         properly unpack padding.
33848         (unpack_value_fields): Inline ...
33849         (streamer_read_tree_bitfields): ... here.
33850         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33851         and properly add padding bits.
33852         (streamer_pack_tree_bitfields): Fold into ...
33853         (streamer_write_tree_bitfields): ... this new function,
33854         exposing the bitpack object.
33855         * lto-streamer-out.c (lto_write_tree_1): Call
33856         streamer_write_tree_bitfields.
33858 2015-02-09  Richard Biener  <rguenther@suse.de>
33860         PR tree-optimization/54000
33861         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33862         (struct ivopts_data): Add loop_loc member.
33863         (tree_ssa_iv_optimize_loop): Dump loop location.
33864         (create_new_ivs): Likewise, also dump number of IVs generated.
33866 2015-02-09  Martin Liska  <mliska@suse.cz>
33868         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33869         just if not yet registered.
33870         (ipa_icf_generate_summary): Register callgraph hooks.
33872 2015-02-08  Andrew Pinski  <apinski@cavium.com>
33874         * config/aarch64/aarch64.c (gty_dummy): Delete.
33876 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33878         PR ipa/63566
33879         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33880         (cgraph_node::local_p): Remove thunk related FIXME.
33882 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33884         PR ipa/63566
33885         * i386.c (ix86_function_regparm): Look through aliases to see if callee
33886         is local and optimized.
33887         (ix86_function_sseregparm): Likewise; also use target's SSE math
33888         settings; error out instead of silently generating wrong code
33889         on mismatches.
33890         (init_cumulative_args): Look through aliases.
33892 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33894         PR ipa/63566
33895         * ipa-split.c (execute_split_functions): Split if function has aliases.
33897 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33899         PR ipa/63566
33900         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33901         aliases before trying to expand it.
33902         (cgraph_node::expand_thunk): Fix formating.
33904 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
33906         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33907         (Using Assembly Language with C): Expand introduction.
33908         (Basic Asm): Copy-edit.  Add more information about uses of
33909         basic asm.
33910         (Extended Asm): Copy-edit.  Document new escape syntax and
33911         %l[label] syntax.
33912         (Global Reg Vars): Copy-edit.
33913         (Local Reg Vars): Likewise.
33915 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
33917         PR debug/2714
33918         PR bootstrap/64256
33919         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33920         (DBX_CONTIN_CHAR): Define.
33922 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
33923             Brian Rzycki  <b.rzycki@samsung.com>
33925         PR tree-optimization/64878
33926         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33927         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33928         Stop recursion at loop phi nodes after having visited a loop phi node.
33930 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33932         * toplev.c (process_options): Change flag_ipa_ra before creating
33933         optimization_{default,current}_node.
33935         PR ipa/64896
33936         * cgraphunit.c (cgraph_node::expand_thunk): If
33937         restype is not is_gimple_reg_type nor the thunk_fndecl
33938         returns aggregate_value_p, set restmp to a temporary variable
33939         instead of resdecl.
33941 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
33943         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33945 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33947         PR target/64205
33948         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33949         add a general secondary reload handler for SDmode, unless we have
33950         both read/write support for SDmode.
33952 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33954         PR middle-end/64937
33955         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33956         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33957         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33958         1 before, push it to abstract_vec.
33959         (dwarf2out_abstract_function): Adjust caller.  Don't call
33960         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33961         DECL_ABSTRACT_P flags for all abstract_vec elts.
33963 2015-02-06  Renlin Li  <renlin.li@arm.com>
33965         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33966         complex gimple.
33967         * tree-ssa.c (execute_update_addresses_taken): Likewise.
33969 2015-02-06  Jeff Law  <law@redhat.com>
33971         PR target/64889
33972         * config/h8300/h8300.c (push): New argument "in_prologue".
33973         Pass "in_prologue" along to "F".
33974         (h8300_push_pop): Corresponding changes.
33975         (h8300_expand_prologue): Likewise.
33976         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
33978 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33980         PR rtl-optimization/64957
33981         PR debug/64817
33982         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33983         IOR rather than for AND.
33985 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
33987         PR target/62631
33988         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33989         of shift-add and (add + shift) operations.  Rename local variable.
33991 2015-02-05  Jeff Law  <law@redhat.com>
33993         PR target/17306
33994         * config/h8300/constraints.md (U): Correctly dectect
33995         "eightbit_data" memory addresses.
33996         * config/h8300/h8300.c (eightbit_constant_address_p): Also
33997         handle (const (plus (symbol_ref (x)))) where x is declared
33998         as an 8-bit data memory address.
33999         * config/h8300/h8300.md (call, call_value): Correctly detect
34000         "funcvec" functions.
34002         PR target/43264
34003         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34004         24 to 28 bits for the H8/300.
34006 2015-02-06  Alan Modra  <amodra@gmail.com>
34008         PR target/64876
34009         * config/rs6000/rs6000.c (chain_already_loaded): New function.
34010         (rs6000_call_aix): Use it.
34012 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
34014         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34015         check.
34017 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
34019         * config/h8300/constraints.md ("U" constraint): Use strict
34020         variant of REG_OK_FOR_BASE_P after reload has started.
34022 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
34024         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34025         define to zero if !TARGET_NEON.
34026         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34028 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34029             Trevor Saunders  <tsaunders@mozilla.com>
34031         PR ipa/61548
34032         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34034 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34036         PR ipa/61548
34037         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34038         when removing varpool nodes.
34040 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34042         PR ipa/61548
34043         * varpool.c (varpool_node::remove): Fix order of variables.
34045 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34047         PR ipa/64686
34048         * ipa-inline.c (inline_small_functions): Fix ordering issue between
34049         speculation resolution and key updates.
34051 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34053         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34054         about not letting any speculative edges unupdated.
34056 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34058         PR gcov/64123
34059         * gcov-io.c (gcov_var): Export.
34061 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34063         PR middle-end/64922
34064         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34065         edges that become speculative.
34067 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34069         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34070         or DW_LANG_Fortran08.
34071         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34072         DW_LANG_Fortran08.
34073         (gen_compile_unit_die): Handle "GNU Fortran2003" and
34074         "GNU Fortran2008" language strings.
34075         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34076         * langhooks.h (lang_GNU_Fortran): New prototype.
34077         * langhooks.c (lang_GNU_Fortran): New function.
34078         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34079         lang_GNU_Fortran.
34081 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34083         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34084         (RTX_OK_FOR_OLO10_P): Likewise.
34086 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34088         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34090 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34092         PR middle-end/64922
34093         * gimple.c: Include gimple-ssa.h.
34094         (maybe_remove_unused_call_args): New function.
34095         * gimple.h (maybe_remove_unused_call_args): Declare.
34096         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34097         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34098         * gimple-fold.c (gimple_fold_call): Likewise.
34100 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
34102         PR rtl-optimization/64905
34103         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34104         pointer alignment if it isn't needed.
34106 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34108         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34109         cortex-a72.cortex-a53.
34110         * config/aarch64/aarch64-tune.md: Regenerate.
34111         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34113 2015-02-04  Nick Clifton  <nickc@redhat.com>
34115         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34116         inside a MEM.
34118 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34120         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34121         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34122         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34123         of DEF_BUILTIN.
34124         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34125         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34126         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34127         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34128         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34129         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34130         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34131         * tree-core.h (enum built_in_function): In between
34132         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34133         for builtins that use DEF_BUILTIN_CHKP macro.
34135 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
34137         PR debug/64817
34138         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34139         operands for tcc_comparison exprs.  Fix typos.
34141         PR debug/64817
34142         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34143         of two XORs that have an intervening AND or IOR.
34145         PR debug/64817
34146         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34147         simplification of XOR of AND to not allocate new rtx before
34148         committing to a simplification.
34150 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34152         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34153         manual swaps in all peepholes.
34155 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34157         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34158         of manual swapping implementation.
34159         (aarch64_expand_vec_perm_const_1): Likewise.
34161 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
34163         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34164         (generic_addrcost_table): Remove NAMED_PARAM.
34165         (cortexa57_addrcost_table): Likewise.
34166         (xgene1_addrcost_table): Likewise.
34167         (generic_regmove_table): Likewise.
34168         (cortexa53_regmove_table): Likewise.
34169         (xgene1_regmove_table): Likewise.
34170         (generic_vector_table): Likewise.
34171         (cortexa57_vector_table): Likewise.
34172         (xgene1_vector_table): Likewise.
34173         (generic_tunings): Likewise.
34174         (cortexa53_tunings): Likewise.
34175         (cortexa57_tunings): Likewise.
34176         (xgene1_tunings): Likewise.
34178 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34180         * config/arm/arm-cores.def: Add cortex-a72 and
34181         cortex-a72.cortex-a53.
34182         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34183         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34184         * config/arm/arm-tune.md: Regenerate.
34185         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34186         "cortex-a72.cortex-a53".
34187         * doc/invoke.texi (ARM Options/-mtune): Likewise.
34189 2015-02-04  Nick Clifton  <nickc@redhat.com>
34191         PR target/64408
34192         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34193         of accepted codes.
34194         (nonimmediate_di_operand): Likewise.
34196         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34197         prefixes of known F5 using MSP430 MCUs.
34199 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34201         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34202         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34203         instead of __builtin_sqrt.
34205 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
34207         * varasm.c (do_assemble_alias): Follow transparent alias
34208         chain for target.
34209         (default_assemble_visibility): Follow transparent alias
34210         chain for decl name.
34212 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34214         PR middle-end/62103
34215         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34216         to compute size of referenced value in the constant case.
34218 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34220         PR rtl-optimization/64756
34221         * cse.c (invalidate_dest): New function.
34222         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
34223         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34224         invalidate and do not record it.
34226 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34228         PR target/64660
34229         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34230         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34231         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34232         atomic_nand<mode>_soft_tcb): New insns.
34233         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34234         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34235         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34236         Split into atomic_not_fetchsi_hard if operands[0] is unused.
34237         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34238         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34239         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
34240         atomic_not<mode>_hard if operands[0] is unused.
34241         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34242         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34243         if operands[0] is unused.
34244         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
34245         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34246         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34247         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34248         unused.
34249         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
34250         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34251         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34252         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34253         if operands[0] is unused.
34254         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
34255         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34256         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
34257         atomic_nand_fetchsi_hard if operands[0] is unused.
34258         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
34259         atomic_nand<mode>_hard if operands[0] is unused.
34260         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
34261         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34262         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
34263         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34264         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
34265         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34266         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34267         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34268         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
34269         atomic_not<mode>_hard if operands[0] is unused.
34270         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34271         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34272         unused.
34273         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34274         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34275         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
34276         atomic_nand<mode>_hard if operands[0] is unused.
34277         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34278         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34280 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
34282         PR jit/64810
34283         * Makefile.in (GCC_OBJS): Add gcc-main.o.
34284         * gcc-main.c: New file, containing "main" taken from gcc.c.
34285         * gcc.c (do_self_spec): Free decoded_options.
34286         (class driver): Move declaration to gcc.h.
34287         (main): Move declaration and implementation to new file
34288         gcc-main.c.
34289         (driver_get_configure_time_options): New function.
34290         * gcc.h (class driver): Move this declaration here, from
34291         gcc.c.
34292         (driver_get_configure_time_options): New declaration.
34294 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
34296         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34297         cross-module inlining.
34298         * cgraph.h (cgraph_node): Add flag merged.
34299         * ipa-icf.c (sem_function::merge): Maintain it.
34301 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
34303         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34304         instead of OBJECT_P.
34306 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
34308         PR target/62631
34309         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34310         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34311         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34312         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34314 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34316         PR other/63504
34317         * combine.c (reg_n_sets_max): New variable.
34318         (can_change_dest_mode, reg_nonzero_bits_for_combine,
34319         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34320         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34321         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34322         (rest_of_handle_combine): Initialize reg_n_sets_max.
34324 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
34326         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34327         if some always_inline was inlined, apply changes before inlining
34328         heuristically.
34330 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
34332         PR jit/64810
34333         * config/arm/arm.c (arm_option_override): Set
34334         arm_selected_arch/cpu/tune to NULL on entry.
34336 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
34337             Andrew Pinski  <pinskia@gcc.gnu.org>
34338             Jakub Jelinek  <jakub@gcc.gnu.org>
34340         PR target/64231
34341         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34342         integer typing for small model. Use IN_RANGE.
34344 2015-02-02  Richard Biener  <rguenther@suse.de>
34346         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34347         * tree-vrp.c (vrp_valueize_1): Likewise.
34349 2015-02-02  Alan Modra  <amodra@gmail.com>
34351         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34352         than mem for toc_restore.
34353         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34354         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34355         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34357 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
34359         PR target/64047
34360         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34361         explicit default options.
34363 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
34365         PR ipa/64872
34366         * ipa-utils.c (ipa_merge_profiles): Add release argument.
34367         * ipa-icf.c (sem_function::merge): Do not release body when merging.
34368         * ipa-utils.h (ipa_merge_profiles): Update prototype.
34370 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
34372         PR debug/64817
34373         * cfgexpand.c (deep_ter_debug_map): New variable.
34374         (avoid_deep_ter_for_debug): New function.
34375         (expand_debug_expr): If TERed SSA_NAME is in
34376         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34377         instead of trying to expand SSA_NAME's def stmt.
34378         (expand_debug_locations): When expanding debug bind
34379         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34380         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34381         value.
34382         (pass_expand::execute): Call avoid_deep_ter_for_debug on
34383         all debug bind stmts.  Delete deep_ter_debug_map after
34384         expand_debug_location if non-NULL and clear it.
34386 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
34388         PR target/64851
34389         * config/sh/sync.md (atomic_fetch_notsi_hard,
34390         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34391         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34392         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34393         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34394         atomic_not_fetch<mode>_soft_imask): New insns.
34396 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34398         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34399         (rank_for_schedule_debug): Split from ...
34400         (rank_for_schedule): ... this.
34401         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34402         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34404 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34406         * doc/md.texi (Machine Constraints): Alphabetize table by target.
34407         * doc/extend.texi (x86 Variable Attributes): Move section to
34408         correct alphabetization after renaming.
34409         (x86 Type Attributes): Likewise.
34410         (Target Builtins): Re-alphabetize menu.
34411         (x86 Built-in Functions): Move section to correct alphabetization
34412         after renaming.
34413         (x86 transactional memory intrinsics): Likewise.
34414         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34415         and x86 Windows Options in table and menu.
34416         (x86 Options): Move section to correct alphabetization after
34417         renaming.
34418         (x86 Windows Options): Likewise.
34420 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34422         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34423         preferred names of the architecture and its 32- and 64-bit
34424         variants.
34425         * doc/invoke.texi: Likewise.
34426         * doc/md.texi: Likewise.
34428 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34430         PR target/64882
34431         * config/i386/predicates.md (address_no_seg_operand): Reject
34432         non-CONST_INT_P operands in invalid mode.
34434 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34436         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34437         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
34438         * config/i386/predicates.md (address_no_seg_operand): Call
34439         address_operand with VOIDmode.
34440         (vsib_address_operand): Ditto.
34441         (address_mpx_no_base_operand): Ditto.
34442         (address_mpx_no_index_operand): Ditto.
34444 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34446         PR target/64688
34447         * lra-constraints.c (original_subreg_reg_mode): New.
34448         (simplify_operand_subreg): Try to simplify subreg of const.  Use
34449         original_subreg_reg_mode for it.
34450         (swap_operands): Update original_subreg_reg_mode.
34451         (curr_insn_transform): Set up original_subreg_reg_mode.
34453 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34455         PR target/64617
34456         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34457         function.
34458         (process_alt_operands): Use it.
34459         (curr_insn_transform): Check the optional reload pseudo class is
34460         ok for the mode.
34462 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
34464         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34465         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34466         prototype.
34467         * toplev.h (init_asm_output): Update comment on use of
34468         UNKNOWN_LOCATION with fatal_error.
34469         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34470         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34471         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34472         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34473         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34474         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34475         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34476         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34477         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34478         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34479         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34480         fatal_error changed to pass input_location as first argument.
34482 2015-01-30  Martin Liska  <mliska@suse.cz>
34484         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34485         in #pragma GCC diagnostic guards.
34487 2015-01-30  Richard Biener  <rguenther@suse.de>
34489         PR tree-optimization/64829
34490         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34491         not add a widening conversion pattern but hand off extra
34492         widenings to callers.
34493         (vect_recog_widen_mult_pattern): Handle extra widening produced
34494         by vect_handle_widen_op_by_const.
34495         (vect_recog_widen_shift_pattern): Likewise.
34496         (vect_pattern_recog_1): Remove excess vertical space in dumping.
34497         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34498         (vect_init_vector_1): Likewise.
34499         (vect_get_vec_def_for_operand): Likewise.
34500         (vect_finish_stmt_generation): Likewise.
34501         (vectorizable_load): Likewise.
34502         (vect_analyze_stmt): Likewise.
34503         (vect_is_simple_use): Likewise.
34505 2015-01-29  Jeff Law  <law@redhat.com>
34507         * combine.c (try_combine): Fix typo in comment.
34509 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
34511         PR target/64580
34512         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34513         (rs6000_stack_info): Add assert.
34514         (rs6000_output_savres_externs): New function, split off from...
34515         (rs6000_output_function_prologue): ... here.  Do not call it for
34516         thunks.
34518 2015-01-29  Jeff Law  <law@redhat.com>
34520         PR target/15184
34521         * combine.c (try_combine): If I0 is a memory load and I3 a store
34522         to a related address, increase the "goodness" of doing a 4-insn
34523         combination with I0-I3.
34524         (make_field_assignment): Handle SUBREGs in the ior+and case.
34526 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
34528         PR tree-optimization/64746
34529         * tree-if-conv.c (mask_exists): New function.
34530         (predicate_mem_writes): Save created mask with given size for further
34531         use.
34532         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34533         (ifcvt_repair_bool_pattern): Collect all statements that are root
34534         of bool pattern and use iterative algorithm to remove multiple uses
34535         of predicates, display number of required iterations.
34537 2015-01-29  Richard Biener  <rguenther@suse.de>
34539         PR tree-optimization/64853
34540         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34541         stmt will get simulated again.
34542         * tree-ssa-ccp.c (valueize_op_1): Likewise.
34544 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34546         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34547         return_in_pc.  Remove redundant assignments.
34548         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34549         (arm_expand_epilogue): Don't compare boolean with true in if condition.
34551 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
34553         * config/i386/i386.c (ix86_mode_after): Make static.
34555 2015-01-29  Richard Biener  <rguenther@suse.de>
34557         PR tree-optimization/64844
34558         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34559         dump cost model analysis.
34560         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34561         Do not register adjusted load/store costs here.
34563 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34564             Uros Bizjak  <ubizjak@gmail.com>
34566         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34567         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34568         using x86_use_pseudo_pic_reg.
34569         * config/i386/i386.c (ix86_conditional_register_usage): Remove
34570         support for fixed PIC register.
34571         (ix86_use_pseudo_pic_reg): Not static any more.
34573 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34575         PR middle-end/64805
34576         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34577         to avoid error in cgraph node verification.
34579 2015-01-29  Marek Polacek  <polacek@redhat.com>
34581         * doc/standards.texi: Reflect that the default for C is gnu11.
34583 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
34585         PR target/64761
34586         * reorg.c (switch_text_sections_between_p): New function.
34587         (relax_delay_slots): Call it when testing if the jump insn
34588         is removable.  Use targetm.can_follow_jump when testing if
34589         the conditional branch can follow an unconditional jump.
34591 2015-01-27  Caroline Tice  <cmtice@google.com>
34593         Committing VTV Cywin/Ming patch for Patrick Wollgast
34594         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34595         if -fvtable-verify=preinit/std is used.
34596         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34597         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34598         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34599         if -fvtable-verify=preinit/std is used.
34600         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34601         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34602         if -fvtable-verify=preinit/std is used.
34603         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34604         * config/i386/mingw32.h (LIB_SPEC): Likewise.
34605         * varasm.c (assemble_variable): Add code to properly set the comdat
34606         section and name for the .vtable_map_vars section in case the
34607         target is PE or COFF.
34609 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34611         PR ipa/64801
34612         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34613         make sane BB profile.
34614         (cgraph_node::expand_thunk): Make sane BB profile.
34615         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34616         * cgraph.h (init_lowered_empty_function): Update prototype.
34617         * config/i386/i386.c (make_resolver_func): Update call.
34618         * predict.c (gate): Disable branch prediction pass if
34619         profile is already there.
34621 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34623         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34624         * opth-gen.awk: Likewise.
34625         * common.opt: Mark flag_fp_contract_mode as Optimization.
34627 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34629         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34630         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34632 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
34634         PR target/64659
34635         * config/sh/predicates.md (atomic_arith_operand,
34636         atomic_logical_operand): Remove.
34637         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34638         (atomic_arith_operand_0): New predicate.
34639         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34640         Use atomic_arith_operand_0 for input values.
34641         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34642         atomic_compare_and_swap<mode>_soft_gusa,
34643         atomic_compare_and_swap<mode>_soft_tcb,
34644         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34645         arith_reg_operand instead of register_operand.
34646         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
34647         atomic_arith_operand_0 for newval input.
34648         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34649         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34650         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34651         arith_reg_operand instead of register_operand.
34652         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34653         fetchop_predicate_1, fetchop_constraint_1_llcs,
34654         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34655         fetchop_constraint_1_imask): New code iterator attributes.
34656         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34657         register_operand.  Use fetchop_predicate_1.
34658         (atomic_fetch_<fetchop_name>si_hard,
34659         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34660         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34661         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34662         and arith_reg_operand instead of register_operand.  Use
34663         fetchop_predicate_1, fetchop_constraint_1_gusa.
34664         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34665         and arith_reg_operand instead of register_operand.  Use
34666         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
34667         to allow R0 usage.
34668         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34669         and arith_reg_operand instead of register_operand.  Use
34670         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
34671         to allow R0 usage.
34672         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34673         register_operand.  Use atomic_logical_operand_1.
34674         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34675         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34676         arith_reg_operand instead of register_operand.
34677         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34678         Use arith_reg_dest and arith_reg_operand instead of register_operand.
34679         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
34680         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34681         register_operand.  Use fetchop_predicate_1.
34682         (atomic_<fetchop_name>_fetchsi_hard,
34683         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34684         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34685         fetchop_constraint_1_llcs.
34686         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34687         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34688         fetchop_constraint_1_gusa.
34689         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34690         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34691         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
34692         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34693         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34694         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
34695         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34696         register_operand.  Use atomic_logical_operand_1.
34697         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34698         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34699         arith_reg_operand instead of register_operand.
34700         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34701         arith_reg_operand instead of register_operand.  Use logical_operand
34702         and K08.  Adjust asm sequence to allow R0 usage.
34703         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34704         arith_reg_operand instead of register_operand.  Use logical_operand
34705         and K08.
34707 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
34709         PR other/63504
34710         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34711         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34712         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34713         only get_full_len HOST_WIDE_INTs from get_val () array rather than
34714         all bits in *val_wide.
34716 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
34718         * varpool.c (tls_model_names): Fix names.
34719         (varpool_node::dump): Dump tls- prefix for tls models.
34721 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
34722             Bernd Schmidt  <bernds@codesourcery.com>
34723             Nathan Sidwell  <nathan@codesourcery.com>
34725         * config/nvptx/mkoffload.c: New file.
34726         * config/nvptx/t-nvptx: Add build rules for it.
34727         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34728         (extra_programs): Add mkoffload.
34729         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34730         function.
34731         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34733 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
34735         PR middle-end/64809
34736         * cfgexpand.c (reorder_operands): Skip debug gimples.
34738 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
34740         PR tree-optimization/64277
34741         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34742         range info when possible to refine estimation.
34744 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34746         PR tree-optimization/64718
34747         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34748         be a 16bit unsigned integer when n->range is 16.
34749         (bswap_replace): Convert src to that type if necessary for all bswap
34750         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
34751         set in pass_optimize_bswap::execute ().
34753 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
34755         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34756         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34757         integer and floating point variants.
34758         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34760 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
34762         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34763         for all vector modes.
34765 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
34767         PR bootstrap/64612
34768         * doc/sourcebuild.texi (comdat_group): Document.
34770 2015-01-28  Terry Guo  <terry.guo@arm.com>
34772         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34774 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
34776         * toplev.c (print_version): Add param "show_global_state", and
34777         only print GGC and plugin information if it is true.
34778         (init_asm_output): Pass in "true" for the new param when calling
34779         print_version.
34780         (process_options): Likewise.
34781         (toplev::main): Likewise.
34782         * toplev.h (print_version): Add new param to decl.
34784 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34786         PR ipa/60871
34787         PR ipa/64139
34788         * tree.c (lookup_binfo_at_offset): New function.
34789         (get_binfo_at_offset): Use it.
34791 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34793         PR ipa/64282
34794         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34795         on vtable being vtable.
34797 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34799         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34800         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34801         -mhotpatch= option.
34802         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34803         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
34804         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34805         Renamed.
34806         (s390_hotpatch_trampoline_halfwords_max): Renamed.
34807         (s390_hotpatch_hw_max): New name.
34808         (s390_hotpatch_trampoline_halfwords): Renamed.
34809         (s390_hotpatch_hw_before_label): New name.
34810         (get_hotpatch_attribute): Removed.
34811         (s390_hotpatch_hw_after_label): New name.
34812         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34813         attribute.
34814         (s390_attribute_table): Ditto.
34815         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34816         (s390_function_num_hotpatch_hw): New name.
34817         Remove special handling of inline functions and hotpatching.
34818         Return number of nops before and after the function label.
34819         (s390_can_inline_p): Removed.
34820         (s390_asm_output_function_label): Emit a configurable number of nops
34821         after the function label.
34822         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34823         (TARGET_CAN_INLINE_P) Removed.
34824         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34826 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34827             Jiong Wang  <jiong.wang@arm.com>
34829         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34830         of scratch reg.
34831         (cb<optab><mode>1): Likewise.
34832         * config/aarch64/iterators.md (bcond): New define_code_attr.
34834 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34836         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34837         memory accesses.
34839 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34841         * config/s390/s390.c (s390_register_move_cost): Increase costs for
34842         FPR->GPR moves.
34844 2015-01-27  Richard Biener  <rguenther@suse.de>
34846         * tree-vrp.c (update_value_range): Intersect the range with
34847         old recorded SSA name range information.
34849 2015-01-27  Nick Clifton  <nickc@redhat.com>
34851         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34852         BC, DE and HL registers directly, not via AX.
34853         When decrementing the stack pointer by a large amount, transfer SP
34854         into AX and perform the subtraction there.
34855         (rl78_expand_epilogue): Perform the inverse of the above
34856         enhancements.
34858 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34860         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34862 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34863             Yury Gribov  <y.gribov@samsung.com>
34865         PR ubsan/64741
34866         * ubsan.c (ubsan_source_location): Refactor code.
34867         (ubsan_type_descriptor): Update type size. Refactor code.
34869 2015-01-27  Richard Biener  <rguenther@suse.de>
34871         PR tree-optimization/56273
34872         PR tree-optimization/59124
34873         PR tree-optimization/64277
34874         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34875         from the first VRP pass.
34877 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34879         PR ipa/64776
34880         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34881         handle the first argument in the same loop as all the other arguments.
34883         PR rtl-optimization/61058
34884         * jump.c (cleanup_barriers): Update basic block boundaries
34885         if BLOCK_FOR_INSN is non-NULL on PREV.
34887 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34889         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34890         bounds narrowing, already instrumented calls and calls to
34891         not instrumentable functions.
34893 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34895         PR tree-optimization/64807
34896         * wide-int.cc (wi::divmod_internal): Clear
34897         b_dividend[dividend_blocks_needed].
34899 2015-01-26  DJ Delorie  <dj@redhat.com>
34901         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34902         volatile memory references.
34904 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
34906         PR target/49263
34907         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34908         remove_insn.
34909         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34910         shifts if it already fits into K08.
34912 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34914         PR ipa/64730
34915         * ipa-inline.c (inline_small_functions): Print "unknown" even
34916         if edge->call_stmt is non-NULL, but has builtins or unknown
34917         location.
34919         PR middle-end/64421
34920         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34921         with asterisk, skip the first character.
34923 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34925         PR target/64806
34926         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34927         order change.
34929 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
34931         PR target/64795
34932         * config/i386/i386.md (*movdi_internal): Also check operand 0
34933         to determine TYPE_LEA operand.
34934         (*movsi_internal): Ditto.
34936 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34938         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34939         OPTION_MASK_QUAD_MEMORY_ATOMIC.
34941 2015-01-26  Renlin Li  <renlin.li@arm.com>
34943         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34944         the comment.
34945         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34946         for higher part.
34948 2015-01-26  Richard Biener  <rguenther@suse.de>
34950         PR middle-end/64764
34951         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34952         combining two BIT_AND_EXPR predicates.
34954 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34956         PR bootstrap/64754
34957         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34959 2015-01-26  Terry Guo  <terry.guo@arm.com>
34961         * config/arm/arm.c (arm_file_start): Update the assignment of
34962         Tag_ABI_HardFP_use.
34964 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
34966         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34967         pipeline model.
34968         config/arm/arm.md: Include the new Cortex-A57 model.
34969         (generic_sched): Don't use generic_sched when tuning for
34970         Cortex-A57.
34972 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
34973             Uros Bizjak  <ubizjak@gmail.com>
34975         * config/i386/i386.c (get_builtin_code_for_version): Add
34976         support for BMI and BMI2 multiversion functions.
34978 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34980         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34981         (extract_bit_field): Likewise.
34982         (extract_low_bits): Likewise.
34983         (expand_mult): Likewise.
34984         (expand_mult_highpart_adjust): Likewise.
34986 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
34988         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34989         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34990         * config/i386/i386.c (processor_model): Add
34991         M_INTEL_COREI7_BROADWELL.
34992         (arch_names_table): Add "broadwell".
34994 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
34996         PR target/49263
34997         PR target/53987
34998         PR target/64345
34999         PR target/59533
35000         PR target/52933
35001         PR target/54236
35002         PR target/51244
35003         * config/sh/sh-protos.h
35004         (sh_extending_set_of_reg::can_use_as_unextended_reg,
35005         sh_extending_set_of_reg::use_as_unextended_reg,
35006         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35007         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35008         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35009         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35010         (sh_treg_insns): New class.
35011         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35012         (scope_counter): New class.
35013         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35014         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35015         sh_extending_set_of_reg::can_use_as_unextended_reg,
35016         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35017         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35018         sh_split_treg_set_expr): New functions.
35019         (addsubcosts): Handle treg_set_expr.
35020         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35021         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35022         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35023         (sh_insn_operands_modified_between_p): Make non-static.
35024         * config/sh/predicates.md (zero_extend_movu_operand): Allow
35025         simple_mem_operand in addition to displacement_mem_operand.
35026         (zero_extend_operand): Don't allow zero_extend_movu_operand.
35027         (treg_set_expr, treg_set_expr_not_const01,
35028         arith_reg_or_treg_set_expr): New predicates.
35029         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35030         arith_or_int_operand instead of logical_operand.  Convert to
35031         insn_and_split.  Try to optimize constant operand in splitter.
35032         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
35033         (*tstqi_t_zero): Delete.
35034         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35035         (tstsi_t_and_not): Delete.
35036         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35037         Convert to insn_and_split.
35038         (unnamed split, tstsi_t_zero_extract_xor,
35039         tstsi_t_zero_extract_subreg_xor_little,
35040         tstsi_t_zero_extract_subreg_xor_big): Delete.
35041         (*tstsi_t_shift_mask): New insn_and_split.
35042         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35043         to recombine with surrounding insns when splitting.
35044         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35045         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35046         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35047         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35048         (*cbranch_div0s: Delete.
35049         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35050         Try to recombine with surrounding insns when splitting.  Add operand
35051         order variants.
35052         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35053         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35054         *addc_r_r_msb, *addc_2r_msb): Delete.
35055         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
35056         order variant.
35057         (*addc_negreg_t): New insn_and_split.
35058         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35059         Try to recombine with surrounding insns when splitting.
35060         Add operand order variants.
35061         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35062         insn_and_split patterns.
35063         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
35064         surrounding insns when splitting.
35065         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35066         (*rotcl): Likewise.  Add zero_extract variant.
35067         (*ashrsi2_31): New insn_and_split.
35068         (*negc): Convert to insn_and_split.  Use treg_set_expr.
35069         (*zero_extend<mode>si2_disp_mem): Update comment.
35070         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35071         condition.
35072         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
35073         with surrounding insns when splitting.
35074         (any_treg_expr_to_reg): New insn_and_split.
35075         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35076         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35077         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35078         *zero_extract_2): New single bit zero extract patterns.
35079         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35080         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35081         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35082         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35083         set destination.
35084         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35085         register_operand for set source.
35087 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
35089         * i386.opt (prefetch_sse): New targetsave.
35090         * i386.c (ix86_function_specific_save): Save prefetch_sse.
35091         (ix86_function_specific_restore): Restore prefetch_sse and initialize
35092         ix86_cost/ix86_tune_cost.
35094 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35096         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35097         Support the JIT by using 0 as the language type.
35099 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35101         PR target/64317
35102         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
35103         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35104         (mark_regno_live, process_bb_lives): Pass new parameter value to
35105         make_hard_regno_born.
35107 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35109         PR rtl-optimization/63637
35110         PR rtl-optimization/60663
35111         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35112         if elt->cost is MAX_COST for ASM_OPERANDS.
35113         (find_sets_in_insn): Fix up comment typo.
35114         (cse_insn): Don't set src_volatile for all non-volatile
35115         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35116         or with "memory" clobber.  Set elt->cost to MAX_COST
35117         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
35118         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35120 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35122         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35123         alternative 1.
35125 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35127         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35128         libgcc/config/i386/elf-lib.h.
35130 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35132         PR driver/64737
35133         * gcc.c (print_configuration): Don't print a blank line at the end
35134         here...
35135         (run_attempt): ... but here unstead.
35137         PR middle-end/64734
35138         * omp-low.c (scan_sharing_clauses): Don't ignore
35139         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35140         on target data/update constructs.
35142 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35144         PR target/50928
35145         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35146         (DEBUG_RELOAD): Removed define.
35147         (m32c_limit_reload_class): Enable traces with if DEBUG0.
35148         (m32c_function_arg): Added a type cast.
35149         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35150         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35151         * config/m32c/bitops.md (andqi3_16): Likewise.
35152         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35153         (push_a01_l): Likewise.
35155 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35157         PR jit/64721
35158         * main.c (main): Construct toplev instances with init_signals=true.
35159         * toplev.c (general_init): Add param "init_signals", and use it to
35160         conditionalize the calls to signal and host_hooks.extra_signals.
35161         (toplev::toplev): Add param "init_signals".
35162         (toplev::main): When invoking general_init, pass m_init_signals
35163         to control whether signal-handlers are installed.
35164         * toplev.h (toplev::toplev): Add param "init_signals".
35165         (toplev::m_init_signals): New field.
35167 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35169         PR jit/64722
35170         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35171         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35172         latter may be affected by the former (e.g. on i686).
35174 2015-01-23  Martin Liska  <mliska@suse.cz>
35176         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35177         false positive during profiledbootstrap.
35179 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35181         PR libgomp/64672
35182         * lto-opts.c (lto_write_options): Output non-explicit conservative
35183         -fno-openacc.
35184         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35185         (append_compiler_options): Pass -fopenacc through.
35187 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35189         PR libgomp/64707
35190         * lto-opts.c (lto_write_options): Output non-explicit conservative
35191         -fno-openmp.
35192         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35193         (append_compiler_options): Pass -fopenmp through.
35195 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35197         PR debug/64511
35198         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35199         GTY markup.
35201         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35202         * diagnostic.def (DK_ICE_NOBT): New kind.
35203         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35204         like DK_ICE, but never print backtrace.
35205         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35206         (internal_error_no_backtrace): New function.
35207         * gcc.c (execute): Use internal_error_no_backtrace instead of
35208         internal_error.
35210 2015-01-22  Jeff Law  <law@redhat.com>
35212         PR target/52076
35213         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35214         improve code density for small immediate to memory case.
35215         (insv): Better handle bitfield assignments when the field is
35216         being set to all ones.
35217         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35218         operand predicate.
35220 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35221             Jakub Jelinek  <jakub@redhat.com>
35223         PR middle-end/64729
35224         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35225         for !TARGET_LIBC_PROVIDES_SSP version and
35226         -fstack-protector-{all,strong,explicit} otherwise.
35227         * config/freebsd.h (LINK_SSP_SPEC): Handle
35228         -fstack-protector-{strong,explicit}.
35230 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
35231             H.J. Lu  <hongjiu.lu@intel.com>
35233         PR ipa/64694
35234         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35235         heap.
35237 2015-01-22  Wei Mi  <wmi@google.com>
35239         PR rtl-optimization/64557
35240         * dse.c (record_store): Call get_addr for mem_addr.
35241         (check_mem_read_rtx): Likewise.
35243 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
35245         * fold-const.c (const_binop): Add early return for non-tcc_binary.
35247 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
35249         * toplev.c (init_local_tick): Process the failure when read
35250         fails for random_seed.
35252         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35253         'pretty_name' to avoid memory overflow.
35255 2015-01-22  Richard Biener  <rguenther@suse.de>
35257         PR middle-end/64728
35258         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35259         abnormal coalescing on undefined SSA names.
35261 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
35263         PR target/64688
35264         PR target/64477
35265         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35266         for alternative 3.
35267         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35269 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
35271         PR middle-end/63325
35272         * fold-const.c (fold_checksum_tree): Don't include value of
35273         expr->decl_with_vis.symtab_node in the checksum.
35275 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35277         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35279 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35281         PR driver/64690
35282         * gcc.c (insert_comments): New function.
35283         (try_generate_repro): Call it.
35284         (append_text): Removed.
35286 2015-01-22  Richard Biener  <rguenther@suse.de>
35288         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35289         with IL incompatible options.  Properly honor user optimize
35290         attributes.
35292 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
35294         PR rtl-optimization/64682
35295         * combine.c (distribute_notes): When moving a death note for
35296         a register that is set in the new I2, make sure to put it
35297         before that new I2.
35299 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
35301         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35302         not TARGET_DEFAULT.
35304 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
35306         PR debug/64511
35307         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35308         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35309         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35311         PR sanitizer/64706
35312         * doc/invoke.texi (-fsanitize=vptr): Document.
35314         PR rtl-optimization/62078
35315         * dse.c: Include cfgcleanup.h.
35316         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35317         anything call purge_all_dead_edges and cleanup_cfg at the end
35318         of the pass.
35320 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
35322         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35323         edges.
35325 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35327         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35328         decl attribute.
35330 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35331             Tejas Belagod <Tejas.Belagod@arm.com>
35333         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35334         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35335         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35336         Removed.
35338 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35339             Tejas Belagod <Tejas.Belagod@arm.com>
35341         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35342         (aarch64_reverse_mask): New decls.
35343         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35344         (insn_count): New mode_attr.
35345         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35346         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35347         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35348         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35349         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35350         (aarch64_simd_st4): New patterns.
35351         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35352         (aarch64_reverse_mask): New functions.
35354 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35356         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35357         Declare.
35358         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35359         addressing modes for BE.
35360         (aarch64_print_operand): Add 'R' specifier.
35361         (aarch64_simd_disambiguate_copy): Delete.
35362         (aarch64_simd_emit_reg_reg_move): New function.
35363         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35364         in define_splits for structural moves.
35365         (mov<mode>): Use less restrictive predicates.
35366         (*aarch64_mov<mode>): Simplify and only allow for LE.
35367         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35369 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35371         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35373 2015-01-21  Richard Henderson  <rth@redhat.com>
35375         PR target/64669
35376         * ccmp.c (used_in_cond_stmt_p): Remove.
35377         (expand_ccmp_expr): Don't use it.
35379 2015-01-21  Nick Clifton  <nickc@redhat.com>
35381         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35382         PARALLELs.
35384 2015-01-21  Richard Biener  <rguenther@suse.de>
35386         PR middle-end/64313
35387         * tree-core.h (builtin_info, builtin_info_type): Turn from
35388         an object with two arrays into an array of an object with
35389         decl and two flags, implicit_p and declared_p.
35390         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35391         set_builtin_decl, set_builtin_decl_implicit_p,
35392         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35393         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35394         * builtins.c (builtin_info): Adjust.
35395         * gimplify.c (gimplify_addr_expr): References to builtins
35396         that have been declared by the user makes them eligible for
35397         use by the compiler.  Call set_builtin_decl_implicit_p on them.
35399 2015-01-20  Jeff Law  <law@redhat.com>
35401         PR target/59946
35402         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35403         allow pc-relative addresses in operand predicates or constraints.
35405 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
35407         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35408         neon on aarch32 processors for stringops.
35410 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35412         PR ipa/63576
35413         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35415 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35417         PR lto/45375
35418         * ipa-inline.c: Include lto-streamer.h
35419         (report_inline_failed_reason): Output source file differences and
35420         flags on optimization/target node mismatch.
35421         (can_inline_edge_p): Consider caller to be the outer inline function;
35422         be less restrictive about matching opimize and optimize_size attributes.
35423         (inline_account_function_p): Break out from ...
35424         (inline_small_functions): ... here.
35425         * ipa-inline-transform.c (clone_inlined_nodes): Use
35426         inline_account_function_p.
35427         (inline_call): Use optimize attribution; use inline_account_function_p.
35428         (inline_transform): Use opt_for_fn.
35429         * ipa-inline.h (inline_account_function_p): Declare.
35431 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
35433         PR debug/64663
35434         * dwarf2out.c (decl_piece_node): Don't put bitsize into
35435         mode if bitsize <= 0.
35436         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35437         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35438         sizes and positions.
35440 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
35442         * config/nios2/nios2.c (nios2_asm_file_end): Implement
35443         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35444         needed.
35445         (TARGET_ASM_FILE_END): Define.
35447 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35449         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35450         (struct tune_params): Use the enum.
35451         * arm.c (arm_*_tune): Update.
35452         (arm_option_override): Update.
35454 2015-01-20  Richard Biener  <rguenther@suse.de>
35456         PR ipa/64684
35457         * ipa-reference.c (add_static_var): Inline ...
35458         (analyze_function): ... here after splitting out from ...
35459         (is_proper_for_analysis): ... this.
35461 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
35463         PR target/64149
35464         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35465         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35466         replace the conditional with it's true branch.
35467         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35468         (arm_lra_p): Remove.
35470 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35472         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35474 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35476         * config/tilegx/mul-tables.c: Move symtab.h include after
35477         coretypes.h include.
35478         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35479         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35480         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35481         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35482         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35484 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
35486         PR bootstrap/64676
35487         Revert:
35488         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35490         PR rtl-optimization/64081
35491         * loop-iv.c (def_pred_latch_p): New function.
35492         (latch_dominating_def): Allow specific cases with non-single
35493         definitions.
35494         (iv_get_reaching_def): Likewise.
35495         (check_complex_exit_p): New function.
35496         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35497         with exits not executing on any iteration.
35499 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35501         PR lto/45375
35502         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35503         to set branch cost.
35505 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35507         PR lto/45375
35508         * i386.c (gate): Check flag_expensive_optimizations and
35509         optimize_size.
35510         (ix86_option_override_internal): Drop optimize_size condition
35511         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35512         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35513         MASK_PREFER_AVX128.
35514         (ix86_avx256_split_vector_move_misalign,
35515         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35516         * sse.md (all uses of TARGET_PREFER_AVX128): Add
35517         optimize_insn_for_speed_p check.
35519 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
35521         * config/mips/mips.h (FP_ASM_SPEC): New define.
35522         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35523         instead.
35525 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
35527         PR target/53988
35528         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35529         nullptr for insn when reaching the first insn.
35530         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35531         (sh_insn_operands_modified_between_p): Add nullptr check.
35532         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
35533         sign extending mem load if the insn contains any UNSPEC or
35534         UNSPEC_VOLATILE.
35536 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35538         * params.def (inline-unit-growth): Drop to 15%.
35539         * invoke.texi (inline-unit-growth): Document change.
35541 2015-01-19  Martin Liska  <mliska@suse.cz>
35543         PR ipa/64668
35544         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35545         function for second argument of OBJ_TYPE_REF.
35547 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35549         PR ipa/64218
35550         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35551         whether function is an alias.
35553 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35555         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35556         cases.
35558 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
35560         PR rtl-optimization/64671
35561         * lra-remat.c (operand_to_remat): Don't consider jump and call
35562         insns.
35564 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
35566         PR target/59828
35567         * config/rs6000/default64.h: Include rs6000-cpus.def.
35568         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35569         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35570         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35571         and POWER8.
35572         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35573         POWER8.
35574         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35575         pseudo-op to specify assembler dialect.
35577 2015-01-19  Martin Liska  <mliska@suse.cz>
35579         PR ipa/64664
35580         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35581         Handle safe potentially removed nodes during filtering.
35583 2015-01-19  Martin Liska  <mliska@suse.cz>
35585         * doc/extend.texi (no_icf): Add new attribute description.
35586         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35587         where the pass attempts to merge a function with no_icf attribute.
35589 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35591         PR target/64532
35592         * doc/md.texi (ARM Options): Document register constraints.
35594 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
35595             Andrew Pinski  <apinski@cavium.com>
35597         PR target/64304
35598         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35599         (ashl<mode>3): Don't expand if operands[2] is not constant.
35601 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35603         PR target/64448
35604         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35605         Match xor-and-xor RTL pattern.
35607 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35609         PR rtl-optimization/64081
35610         * loop-iv.c (def_pred_latch_p): New function.
35611         (latch_dominating_def): Allow specific cases with non-single
35612         definitions.
35613         (iv_get_reaching_def): Likewise.
35614         (check_complex_exit_p): New function.
35615         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35616         with exits not executing on any iteration.
35618 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
35620         * common.opt (fgraphite): Fix a typo.
35622 2015-01-19  Felix Yang  <felix.yang@huawei.com>
35624         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35625         pattern.
35626         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35627         uminp, smax_nanp, smin_nanp): New builtins.
35628         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35629         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35630         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35631         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35632         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35633         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35634         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35635         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35636         vpminnms_f32): Rewrite using builtin functions.
35638 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
35640         PR libgomp/64625
35641         * omp-low.c (offload_symbol_decl): Remove variable.
35642         (get_offload_symbol_decl): Remove function.
35643         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35644         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35645         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35646         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35647         BUILT_IN_GOACC_UPDATE don't pass it at all.
35649 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35651         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35652         callers.
35654 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35656         * ipa-chkp.c (chkp_produce_thunks): Add early param
35657         to split thunks production into two passes.  Keep
35658         'always_inline' function bodies after the first pass.
35659         (pass_data_ipa_chkp_early_produce_thunks): New.
35660         (pass_ipa_chkp_early_produce_thunks): New.
35661         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35662         chkp_produce_thunks signature.
35663         (make_pass_ipa_chkp_early_produce_thunks): New.
35664         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35665         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35666         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35668 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35670         * cgraph.c (cgraph_node::dump): Dump profile flags.
35672 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
35674         PR target/64652
35675         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35676         reg appear first in the parallel.
35678 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35680         * ipa-reference.c (set_reference_optimization_summary,
35681         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35682         disabled.
35683         (ignore_module_statics): New static var.
35684         (propagate_bits): If ipa-reference is disabled, do not look into local
35685         properties.
35686         (analyze_function): Disable analysis when ipa_reference is disabled.
35687         (generate_summary): Do not dump when reference is disabled;
35688         collect vars accessed from functions with ipa-reference disabled.
35689         (get_read_write_all_from_node): When ipa-reference is disabled, use the
35690         node flags.
35691         (gate): Enable for LTO.
35692         (ignore_edge_p): New function.
35693         (propagate): Skip functions w/o ipa-reference analysis.
35694         * optc-save-gen.awk: Handle optimize_debug correctly.
35695         * opth-gen.awk: Likewise.
35696         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35697         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35698         fira-share-save-slots, fira-share-spill-slots,
35699         fmodulo-sched-allow-regmoves, fpartial-inlining,
35700         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35701         ftracer, ftree-parallelize-loops, fassociative-math,
35702         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35703         Optimization
35704         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35705         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35706         Optimization.
35707         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35708         Fix for IPA.
35710 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35712         PR ipa/64378
35713         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35714         flag correctly.
35715         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35717 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
35719         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35720         Remove duplicate option listings.
35722 2015-01-18  Felix Yang  <felix.yang@huawei.com>
35724         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35725         (autofdo_source_profile::get_callsite_total_count,
35726         function_instance::get_function_instance_by_decl,
35727         string_table::get_index, string_table::get_index_by_decl,
35728         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35729         Fix comment typos. Reformatting and minor code rearrangement.
35731 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35733         * config/rs6000/rs6000.md (probe_stack): Delete.
35734         (probe_stack_address): New.
35736 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35738         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35739         to test for 32-bit ABIs, not !TARGET_POWERPC64.
35741 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35743         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35744         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
35745         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
35746         snafu.
35747         (rs6000_libcall_value): Use the new function.
35749 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
35751         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35753 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
35755         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35756         implement a more precise life analysis for it during backward scan.
35758 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
35760         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35762 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
35764         PR rtl-optimization/52773
35765         * calls.c (emit_library_call_value): When pushing arguments use
35766         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35767         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
35768         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35770 2015-01-17  Jeff Law  <law@redhat.com>
35772         PR rtl-optimization/32790
35773         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35774         not ZERO_EXTEND in SET_DESTs.
35776 2015-01-17  Alan Modra  <amodra@gmail.com>
35778         * cprop.c (do_local_cprop): Revert last change.
35780 2015-01-16  DJ Delorie  <dj@redhat.com>
35781             Nick Clifton  <nickc@redhat.com>
35783         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35784         (addhi3_real): Likewise.  Fix [HL+0] syntax.
35785         (subqi3_real): Likewise.
35786         (subhi3_real): Likewise.
35787         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
35788         (cbranchhi4_real): Likewise.
35789         (cbranchhi4_real_inverted): Likewise.
35790         (cbranchsi4_real_lt): Likewise.
35791         (cbranchsi4_real_ge): Likewise.
35792         (cbranchsi4_real_ge): Likewise.
35793         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35794         (sub<mode>3_virt): Likewise.
35795         (cbranchqi4_virt): Likewise.
35796         (cbranchhi4_virt): Likewise.
35797         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35798         always use '[reg+imm]' even when imm is zero.
35799         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35800         (rl78_general_operand): New.
35801         (rl78_nonimmediate_operand): New.
35802         (rl78_nonfar_operand): Use them.
35803         (rl78_nonfar_nonimm_operand): Likewise.
35804         (rl78_stack_based_mem): Fix.
35805         * config/rl78/constraints.md (Ibqi): New.
35806         (IBqi): New.
35807         (Wsa): New.
35808         (Wsf): New.
35809         (Cs1): Fix.
35810         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35811         (iorqi3): Likewise.
35812         (xorqi3): Likewise.
35813         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35815         * config/rl78/constrains (Qs8): New constraint.
35816         * config/rl78/rl78.c (rl78_flags_already_set): New function.
35817         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35818         * config/rl78/rl78-real.md (update_Z): New attribute.
35819         Update patterns to set it.
35820         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35821         shorter compare and branch sequence can be used.
35822         (cbranchhi4_real): Likewise.
35823         (cbranchhi4_real_inverted): Likewise.
35825         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35826         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35827         address space.
35828         * config/rl78/rl78.c (rl78_get_name_encoding): New.
35829         (rl78_option_override): Allow -mes0 only if C.
35830         (characterize_address): Support subregs of symbol_refs.
35831         (rl78_addr_space_address_mode): Move.  Add __near.
35832         (rl78_far_p): Likewise.
35833         (rl78_addr_space_pointer_mode): Likewise.
35834         (rl78_as_legitimate_address): Likewise.
35835         (rl78_addr_space_subset_p): Likewise.
35836         (rl78_addr_space_convert): Likewise.
35837         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35838         symbols with -mes0.
35839         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
35840         addressing.
35841         (rl78_alloc_physical_registers_op1): Change logic to prefer
35842         symbol[BC] addressing.
35843         (frodata_section): New.
35844         (rl78_asm_init_sections): Initialize it.
35845         (rl78_select_section): Put __far readonly symbols in .frodata.
35846         (rl78_make_type_far): New.
35847         (rl78_insert_attributes): Force all readonly symbols to be
35848         __far when -mes0.
35849         (rl78_asm_out_integer): New.
35850         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35851         * config/rl78/rl78.opt (-mes0): New.
35853         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35854         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35855         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35856         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35857         (rl78_saddr_p): New.
35858         (rl78_output_aligned_common): New.
35859         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35860         (rl78_handle_saddr_attribute): New.
35861         (rl78_handle_naked_attribute): New.
35862         (rl78_attribute_table): Add saddr.
35863         (rl78_print_operand_1): Don't print '!' on saddr operands.
35864         (rl78_print_operand_1): Strip encodings.
35865         (rl78_sfr_p): New.
35866         (rl78_strip_name_encoding): New.
35867         (rl78_attrlist_to_encoding): New.
35868         (rl78_encode_section_info): New.
35869         (rl78_asm_init_sections): New.
35870         (rl78_select_section): New.
35871         (rl78_output_labelref): New.
35872         (rl78_output_aligned_common): New.
35873         (rl78_asm_out_integer): New.
35874         (rl78_asm_ctor_dtor): New.
35875         (rl78_asm_constructor): New.
35876         (rl78_asm_destructor): New.
35878         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35879         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35880         (transcode_memory_rtx): Update.
35881         (rl78_expand_epilogue): Use A_REG instead of 0.
35883 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35885         * config/arm/arm-protos.h (struct tune_params): New field
35886         sched_autopref_queue_depth.
35887         * config/arm/arm.c (sched-int.h): Include header.
35888         (arm_first_cycle_multipass_dfa_lookahead_guard,)
35889         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35890         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35891         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35892         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35893         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35894         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35895         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35896         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
35897         * config/arm/t-arm (arm.o): Update.
35898         * haifa-sched.c (update_insn_after_change): Update.
35899         (rank_for_schedule): Use auto-prefetcher model, if requested.
35900         (autopref_multipass_init): New static function.
35901         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35902         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35903         variable for debug dumps.
35904         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35905         (autopref_multipass_dfa_lookahead_guard): New global function that
35906         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35907         (init_h_i_d): Update.
35908         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35909         * sched-int.h (enum autopref_multipass_data_status): New const enum.
35910         (autopref_multipass_data_): Structure for auto-prefetcher data.
35911         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35912         (struct _haifa_insn_data:autopref_multipass_data): New field.
35913         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35914         (autopref_multipass_dfa_lookahead_guard): Declare.
35916 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35918         * rtlanal.c (get_base_term): Handle SCRATCH.
35920 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35922         * config/aarch64/aarch64.c
35923         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35924         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35925         * config/arm/arm.c
35926         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35927         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35929 2015-01-17  Alan Modra  <amodra@gmail.com>
35931         * cprop.c (do_local_cprop): Disallow replacement of fixed
35932         hard registers.
35934 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35936         PR target/62066
35937         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35938         early return 0.
35940 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35942         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35943         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35945 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35947         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35948         * config/arm/thumb1.md: ... Here.
35950 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35952         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35953         TImode for TARGET_32BIT.
35955 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35957         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35958         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35959         as ...
35960         (rs6000_abi_word_mode): New function.
35962 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35964         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35965         instead of UNITS_PER_WORD to describe the size of stack slots.
35967 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35969         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35970         as rs6000_promote_function_mode.  Move comment to there.
35971         (rs6000_promote_function_mode): New function.
35973 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35975         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35976         -mpowerpc64 is active.
35978 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35980         PR middle-end/64353
35981         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35982         virtuals on start.
35984 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
35986         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35987         introduced in revision 219724.
35989 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35990             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35992         PR target/64263
35993         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35994         destination is not a GP reg.
35995         (*movdi_aarch64): Likewise.
35997 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
35999         PR target/64623
36000         * config/rs6000/default64.h: Revert ISA change.
36002 2015-01-16  Richard Biener  <rguenther@suse.de>
36004         PR middle-end/64614
36005         * tree-ssa-uninit.c: Include tree-cfg.h.
36006         (MAX_SWITCH_CASES): New define.
36007         (convert_control_dep_chain_into_preds): Handle switch statements.
36008         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36009         (normalize_one_pred_1): Do not split bit-manipulations.
36010         Record (x & CST).
36012 2015-01-16  Richard Biener  <rguenther@suse.de>
36014         PR tree-optimization/64568
36015         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36016         complex load rewriting for TARGET_MEM_REFs.
36018 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
36020         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36022 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
36024         PR target/64149
36025         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36026         variable.
36027         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36028         (aarch64_lra_p): Remove.
36030 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36032         PR target/64363
36033         * ipa-chkp.h (chkp_instrumentable_p): New.
36034         * ipa-chkp.c: Include tree-inline.h.
36035         (chkp_instrumentable_p): New.
36036         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36037         Fix processing of not instrumentable functions.
36038         (chkp_versioning): Use chkp_instrumentable_p. Warn about
36039         not instrumentable functions.
36040         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36041         chkp_instrumentable_p.
36042         * tree-inline.h (copy_forbidden): New.
36043         * tree-inline.c (copy_forbidden): Not static anymore.
36045 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36047         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36048         ptr1, ptr2 unused.
36050 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36052         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36053         type OP_OUT to OP_INOUT.
36055 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36057         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36058         (high x) y) to y if x and y have the same base.
36060 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36062         * config/arm/cortex-a57.md: New.
36063         * config/aarch64/aarch64.md: Include it.
36064         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36065         * config/aarch64/aarch64-tune.md: Regenerate.
36067 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
36069         PR target/64015
36070         * ccmp.c (expand_ccmp_next): New function.
36071         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36072         and compare insn sequence.
36073         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36074         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36075         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36076         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36077         (*ccmp_ior): Changed to ccmp_ior<mode>.
36078         (cmp<mode>): New pattern.
36079         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36080         parameters.
36081         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36083 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
36085         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36086         _mm256_bsrli_epi128): New.
36087         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36089 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36091         * expmed.c (store_bit_field_using_insv): Improve warning message.
36092         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36094 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36096         PR rtl-optimization/64011
36097         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36098         there is partial overflow.
36100 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36102         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36103         prototype.
36104         (nds32_expand_epilogue_v3pop): Likewise.
36105         * config/nds32/nds32.md (sibcall): Define this for sibling call
36106         optimization.
36107         (sibcall_register): Likewise.
36108         (sibcall_immediate): Likewise.
36109         (sibcall_value): Likewise.
36110         (sibcall_value_register): Likewise.
36111         (sibcall_value_immediate): Likewise.
36112         (sibcall_epilogue): Likewise.
36113         (epilogue): Pass false to indicate this is not a sibcall epilogue.
36114         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36115         (nds32_expand_epilogue_v3pop): Likewise.
36117 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36119         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36120         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36121         (return_internal): New.
36122         (return): Define this named pattern.
36123         (simple_return): Define this named pattern.
36124         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36125         pattern instead of unspec_volatile_func_return.
36126         (nds32_expand_epilogue_v3pop): Likewise.
36127         (nds32_can_use_return_insn): New function.
36129 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36131         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36132         * config/nds32/nds32.md (pop25return): New.
36133         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36134         pop25return pattern.
36136 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36138         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36139         -mforbid-fp-as-gp, and -mex9 options.
36141 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36143         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36144         remove -mgp-direct option.
36146 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36148         * doc/invoke.texi (--param early-inlining-insns): Update default value.
36149         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36151 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36153         * ipa-inline.c (inline_small_functions): Work around hints
36154         cache issue.
36156 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
36158         PR target/59710
36159         * doc/invoke.texi (Option Summary): Document new Nios II
36160         -mgpopt= syntax.
36161         (Nios II Options): Likewise.
36162         * config/nios2/nios2.opt: Add -mgpopt= option support.
36163         Modify existing -mgpopt and -mno-gpopt options to be aliases.
36164         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36165         * config/nios2/nios2.c (nios2_option_override): Adjust
36166         -mgpopt defaulting.
36167         (nios2_in_small_data_p): Return true for explicit small data
36168         sections even with -G0.
36169         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36170         option choices.
36172 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36174         PR ipa/64612
36175         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36176         of comdat locals.
36177         (inline_call): Fix removal of aliases.
36179 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36181         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36182         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36183         * opts.c (common_handle_option): Add -fsanitize=vptr.
36184         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36185         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36186         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36187         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36188         (ubsan_expand_vptr_ifn): New prototype.
36189         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36190         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36191         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36192         expand_LOOP_VECTORIZED): Make argument nameless, remove
36193         ATTRIBUTE_UNUSED.
36194         (expand_UBSAN_VPTR): New function.
36195         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36196         in fn spec.
36197         (UBSAN_VPTR): New internal function.
36198         * sanopt.c (tree_map_traits): Renamed to ...
36199         (sanopt_tree_map_traits): ... this.
36200         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36201         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36202         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
36203         (maybe_optimize_ubsan_vptr_ifn): New function.
36204         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36205         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
36206         -fsanitize=vptr.
36207         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36208         internal calls like pure functions for aliasing, even when they
36209         have other side-effects that prevent making them ECF_PURE.
36210         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36211         (ubsan_expand_vptr_ifn): New function.
36213 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36215         PR rtl-optimization/64110
36216         * stmt.c (parse_output_constraint): Process '^' and '$'.
36217         (parse_input_constraint): Ditto.
36218         * lra-constraints.c (process_alt_operands): Process the new
36219         constraints.
36220         * ira-costs.c (record_reg_classes): Process the new constraint
36221         '^'.
36222         * genoutput.c (indep_constraints): Add '^' and '$'.
36223         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36224         * doc/md.texi: Add description of the new constraints.
36226 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
36227             Bernd Schmidt  <bernds@codesourcery.com>
36228             Cesar Philippidis  <cesar@codesourcery.com>
36229             James Norris  <jnorris@codesourcery.com>
36230             Tom de Vries  <tom@codesourcery.com>
36231             Ilmir Usmanov  <i.usmanov@samsung.com>
36232             Dmitry Bocharnikov  <dmitry.b@samsung.com>
36233             Evgeny Gavrin  <e.gavrin@samsung.com>
36234             Jakub Jelinek  <jakub@redhat.com>
36236         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36237         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36238         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36239         New function types.
36240         * builtins.c: Include "gomp-constants.h".
36241         (expand_builtin_acc_on_device): New function.
36242         (expand_builtin, is_inexpensive_builtin): Handle
36243         BUILT_IN_ACC_ON_DEVICE.
36244         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36245         New macros.
36246         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36247         flag_openmp.
36248         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36249         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36250         i386/intelmic-offload.h.
36251         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36252         to libgomp and its dependencies.
36253         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36254         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36255         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36256         * config/ia64/hpux.h (LIB_SPEC): Likewise.
36257         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36258         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36259         * doc/generic.texi: Update for OpenACC changes.
36260         * doc/gimple.texi: Likewise.
36261         * doc/invoke.texi: Likewise.
36262         * doc/sourcebuild.texi: Likewise.
36263         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36264         GF_OMP_FOR_KIND_OACC_LOOP.
36265         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36266         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36267         GF_OMP_TARGET_KIND_OACC_UPDATE,
36268         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36269         Dump more data.
36270         * gimple.c: Update comments for OpenACC changes.
36271         * gimple.def: Likewise.
36272         * gimple.h: Likewise.
36273         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36274         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36275         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36276         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36277         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36278         appropriate place.
36279         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36280         * gimplify.c: Include "gomp-constants.h".
36281         Update comments for OpenACC changes.
36282         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36283         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36284         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36285         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36286         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36287         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36288         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36289         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36290         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36291         OMP_CLAUSE_SEQ.
36292         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36293         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36294         OMP_CLAUSE_SET_MAP_KIND.
36295         (gimplify_oacc_cache): New function.
36296         (gimplify_omp_for): Handle OACC_LOOP.
36297         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36298         OACC_DATA.
36299         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36300         OACC_EXIT_DATA, OACC_UPDATE.
36301         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36302         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36303         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36304         (gimplify_body): Consider flag_openacc next to flag_openmp.
36305         * lto-streamer-out.c: Include "gomp-constants.h".
36306         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36307         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36308         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36309         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36310         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36311         (BUILT_IN_ACC_ON_DEVICE): New builtins.
36312         * omp-low.c: Include "gomp-constants.h".
36313         Update comments for OpenACC changes.
36314         (struct omp_context): Add reduction_map, gwv_below, gwv_this
36315         members.
36316         (extract_omp_for_data, use_pointer_for_field, install_var_field)
36317         (new_omp_context, delete_omp_context, scan_sharing_clauses)
36318         (create_omp_child_function, scan_omp_for, scan_omp_target)
36319         (check_omp_nesting_restrictions, lower_reduction_clauses)
36320         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36321         Update for OpenACC changes.
36322         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36323         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36324         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36325         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36326         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36327         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
36328         OMP_CLAUSE_MAP_*.
36329         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36330         Handle GF_OMP_FOR_KIND_OACC_LOOP.
36331         (expand_omp_target, lower_omp_target): Handle
36332         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36333         GF_OMP_TARGET_KIND_OACC_UPDATE,
36334         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36335         GF_OMP_TARGET_KIND_OACC_DATA.
36336         (pass_expand_omp::execute, execute_lower_omp)
36337         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36338         flag_openmp.
36339         (offload_symbol_decl): New variable.
36340         (oacc_get_reduction_array_id, oacc_max_threads)
36341         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36342         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36343         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36344         (oacc_gimple_assign, oacc_initialize_reduction_data)
36345         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36346         functions.
36347         (is_targetreg_ctx): Remove function.
36348         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36349         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36350         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36351         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36352         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36353         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36354         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36355         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36356         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36357         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36358         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36359         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36360         * tree-core.h: Update comments for OpenACC changes.
36361         (enum omp_clause_map_kind): Remove.
36362         (struct tree_omp_clause): Change type of map_kind member from enum
36363         omp_clause_map_kind to unsigned char.
36364         * tree-inline.c: Update comments for OpenACC changes.
36365         * tree-nested.c: Likewise.  Include "gomp-constants.h".
36366         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36367         (convert_tramp_reference_stmt, convert_gimple_call): Update for
36368         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36369         OMP_CLAUSE_SET_MAP_KIND.
36370         * tree-pretty-print.c: Include "gomp-constants.h".
36371         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36372         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36373         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36374         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36375         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36376         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
36377         instead of OMP_CLAUSE_MAP_*.
36378         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36379         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36380         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36381         * tree-streamer-in.c: Include "gomp-constants.h".
36382         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36383         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
36384         * tree-streamer-out.c: Include "gomp-constants.h".
36385         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36386         OMP_CLAUSE_MAP_*.
36387         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36388         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36389         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36390         * tree.c (omp_clause_num_ops): Update accordingly.
36391         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36392         Likewise.
36393         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36394         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36395         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36396         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36397         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36398         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36399         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36400         (OMP_CLAUSE_SET_MAP_KIND): New macro.
36401         * varpool.c (varpool_node::get_create): Consider flag_openacc next
36402         to flag_openmp.
36403         * config/i386/intelmic-offload.h: New file.
36404         * config/nvptx/offload.h: Likewise.
36406 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36408         * explow.h: Remove duplicate contents.
36409         * dojump.h: Likewise.
36411 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
36413         * arm.c (arm_xgene_tune): Add default initializer for instruction
36414         fusion.
36416 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36418         PR ipa/64068
36419         PR ipa/64559
36420         * ipa.c (symbol_table::remove_unreachable_nodes):
36421         Do not put abstract origins into boundary.
36423 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
36425         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36426         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36428 2015-01-15  Steve Ellcey  <sellcey@mips.com>
36430         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36431         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36432         builtins.def, and chkp-builtins.def.
36434 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
36436         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36437         ISA 2.7 (POWER8).
36439 2015-01-15  Richard Biener  <rguenther@suse.de>
36441         PR tree-optimization/61743
36442         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36443         information on PHIs for some simple cases.
36445 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36447         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36448         Include xgene1.md.
36449         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36450         * config/arm/arm-cores.def (xgene1): New entry.
36451         * config/arm/arm-tables.opt: Regenerate.
36452         * config/arm/arm-tune.md: Regenerate.
36453         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36455 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36457         * tree-if-conv.c: Include hash-map.h.
36458         (aggressive_if_conv): New variable.
36459         (fold_build_cond_expr): Add simplification of non-zero condition.
36460         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36461         destination block is not always executed.
36462         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36463         than two predecessors if AGGRESSIVE_IF_CONV is true.
36464         (if_convertible_stmt_p): Fix commentary.
36465         (all_preds_critical_p): New function.
36466         (has_pred_critical_p): New function.
36467         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36468         BB can have more than two predecessors and all incoming edges can be
36469         critical.
36470         (predicate_bbs): Skip predication for loop exit block, use build2_loc
36471         to compute predicate for true edge.
36472         (find_phi_replacement_condition): Delete this function.
36473         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36474         Allow interchange PHI arguments if EXTENDED is false.
36475         Change check that block containing reduction statement candidate
36476         is predecessor of phi-block since phi may have more than two arguments.
36477         (phi_args_hash_traits): New helper structure.
36478         (struct phi_args_hash_traits): New type.
36479         (phi_args_hash_traits::hash): New function.
36480         (phi_args_hash_traits::equal_keys): New function.
36481         (gen_phi_arg_condition): New function.
36482         (predicate_scalar_phi): Add handling of phi nodes with more than two
36483         arguments, delete COND and TRUE_BB arguments, insert body of
36484         find_phi_replacement_condition to predicate ordinary phi nodes.
36485         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36486         delete call of find_phi_replacement_condition and invoke
36487         predicate_scalar_phi with two arguments.
36488         (insert_gimplified_predicates): Add assert that non-predicated block
36489         don't have statements to insert.
36490         (ifcvt_split_critical_edges): New function.
36491         (ifcvt_split_def_stmt): Likewise.
36492         (ifcvt_walk_pattern_tree): Likewise.
36493         (stmt_is_root_of_bool_pattern): Likewise.
36494         (ifcvt_repair_bool_pattern): Likewise.
36495         (ifcvt_local_dce): Likewise.
36496         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36497         is copy of inner or outer loop force_vectorize field, invoke
36498         ifcvt_split_critical_edges, ifcvt_local_dce and
36499         ifcvt_repair_bool_pattern for aggressive if-conversion.
36501 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
36503         * config/aarch64/aarch64.md: Include xgene1.md.
36504         * config/aarch64/xgene1.md: New file.
36506 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36508         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36509         xgene1 (APM XGene-1) core definition.
36510         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36511         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36512         * doc/invoke.texi: Document -mcpu=xgene1.
36514 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36516         * dojump.h: New header file.
36517         * explow.h: Likewise.
36518         * expr.h: Remove includes.
36519         Move expmed.c prototypes to expmed.h.
36520         Move dojump.c prototypes to dojump.h.
36521         Move alias.c prototypes to alias.h.
36522         Move explow.c prototypes to explow.h.
36523         Move calls.c prototypes to calls.h.
36524         Move emit-rtl.c prototypes to emit-rtl.h.
36525         Move varasm.c prototypes to varasm.h.
36526         Move stmt.c prototypes to stmt.h.
36527         (saved_pending_stack_adjust): Move to dojump.h.
36528         (adjust_address): Move to explow.h.
36529         (adjust_address_nv): Move to emit-rtl.h.
36530         (adjust_bitfield_address): Likewise.
36531         (adjust_bitfield_address_size): Likewise.
36532         (adjust_bitfield_address_nv): Likewise.
36533         (adjust_automodify_address_nv): Likewise.
36534         * explow.c (expr_size): Move to expr.c.
36535         (int_expr_size): Likewise.
36536         (tree_expr_size): Likewise.
36537         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36538         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36539         * genemit.c (main): Generate includes statistics.h, real.h,
36540         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36541         stmt.h.
36542         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36543         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36544         explow.h, emit-rtl.h, stmt.h.
36545         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36546         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36547         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36548         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36549         emit-rtl.h, varasm.h, stmt.h.
36550         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36551         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36552         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36553         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36554         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36555         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36556         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36557         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36558         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36559         tm.h tree.h varasm.h vec.h wide-int.h.
36560         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36561         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36562         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36563         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36564         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36565         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36566         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36567         * loop-iv.c: Likewise.
36568         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36569         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36570         statistics.h stmt.h tree.h varasm.h wide-int.h.
36571         * lra-constraints.c: Likewise.
36572         * lra-eliminations.c: Likewise.
36573         * lra-lives.c: Likewise.
36574         * lra-remat.c: Likewise.
36575         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36576         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36577         statistics.h stmt.h tree.h varasm.h wide-int.h.
36578         * hw-doloop.c: Likewise.
36579         * ira-color.c: Likewise.
36580         * ira-emit.c: Likewise.
36581         * loop-doloop.c: Likewise.
36582         * loop-invariant.c: Likewise.
36583         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36584         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36585         statistics.h stmt.h tree.h varasm.h wide-int.h.
36586         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36587         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36588         statistics.h stmt.h tree.h varasm.h wide-int.h.
36589         * combine-stack-adj.c: Likewise.
36590         * cse.c: Likewise.
36591         * ddg.c: Likewise.
36592         * ifcvt.c: Likewise.
36593         * ira-costs.c: Likewise.
36594         * jump.c: Likewise.
36595         * lra-coalesce.c: Likewise.
36596         * lra-spills.c: Likewise.
36597         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36598         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36599         stmt.h varasm.h wide-int.h.
36600         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36601         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36602         varasm.h.
36603         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36604         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36605         statistics.h stmt.h varasm.h wide-int.h.
36606         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36607         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36608         varasm.h wide-int.h.
36609         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36610         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36611         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36612         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36613         statistics.h stmt.h.
36614         * config/tilepro/tilepro.c: Likewise.
36615         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36616         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36617         * config/pdp11/pdp11.c: Likewise.
36618         * config/xtensa/xtensa.c: Likewise.
36619         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36620         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36621         varasm.h.
36622         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36623         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36624         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36625         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36626         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36627         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36628         * rtl-chkp.c: Likewise.
36629         * tree-chkp-opt.c: Likewise.
36630         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36631         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36632         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36633         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36634         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36635         statistics.h stmt.h.
36636         * tree-vect-data-refs.c: Likewise.
36637         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36638         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36639         rtl.h statistics.h stmt.h varasm.h.
36640         * internal-fn.c: Likewise.
36641         * ipa-icf-gimple.c: Likewise.
36642         * lto-section-out.c: Likewise.
36643         * tree-data-ref.c: Likewise.
36644         * tree-nested.c: Likewise.
36645         * tree-outof-ssa.c: Likewise.
36646         * tree-predcom.c: Likewise.
36647         * tree-pretty-print.c: Likewise.
36648         * tree-scalar-evolution.c: Likewise.
36649         * tree-ssa-strlen.c: Likewise.
36650         * tree-vect-loop.c: Likewise.
36651         * tree-vect-patterns.c: Likewise.
36652         * tree-vect-slp.c: Likewise.
36653         * tree-vect-stmts.c: Likewise.
36654         * tsan.c: Likewise.
36655         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36656         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36657         stmt.h.
36658         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36659         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36660         statistics.h stmt.h varasm.h.
36661         * loop-unroll.c: Likewise.
36662         * ubsan.c: Likewise.
36663         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36664         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36665         stmt.h varasm.h.
36666         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36667         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36668         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36669         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36670         statistics.h stmt.h.
36671         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36672         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36673         statistics.h stmt.h varasm.h.
36674         * gimple-match-head.c: Likewise.
36675         * lto-cgraph.c: Likewise.
36676         * lto-section-in.c: Likewise.
36677         * lto-streamer-in.c: Likewise.
36678         * lto-streamer-out.c: Likewise.
36679         * tree-affine.c: Likewise.
36680         * tree-cfg.c: Likewise.
36681         * tree-cfgcleanup.c: Likewise.
36682         * tree-if-conv.c: Likewise.
36683         * tree-into-ssa.c: Likewise.
36684         * tree-ssa-alias.c: Likewise.
36685         * tree-ssa-copyrename.c: Likewise.
36686         * tree-ssa-dse.c: Likewise.
36687         * tree-ssa-forwprop.c: Likewise.
36688         * tree-ssa-live.c: Likewise.
36689         * tree-ssa-math-opts.c: Likewise.
36690         * tree-ssa-pre.c: Likewise.
36691         * tree-ssa-sccvn.c: Likewise.
36692         * tree-tailcall.c: Likewise.
36693         * tree-vect-generic.c: Likewise.
36694         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36695         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36696         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36697         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36698         * varasm.c: Likewise.
36699         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36700         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36701         varasm.h.
36702         * init-regs.c: Likewise.
36703         * ira.c: Likewise.
36704         * omp-low.c: Likewise.
36705         * stack-ptr-mod.c: Likewise.
36706         * tree-ssa-reassoc.c: Likewise.
36707         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36708         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36709         varasm.h.
36710         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36711         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36712         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36713         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36714         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36715         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36716         * tree-ssa-phiopt.c: Likewise.
36717         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36718         fixed-value.h hashtab.h real.h statistics.h stmt.h.
36719         * config/fr30/fr30.c: Likewise.
36720         * config/frv/frv.c: Likewise.
36721         * expr.c: Likewise.
36722         * final.c: Likewise.
36723         * optabs.c: Likewise.
36724         * passes.c: Likewise.
36725         * simplify-rtx.c: Likewise.
36726         * stmt.c: Likewise.
36727         * toplev.c: Likewise.
36728         * var-tracking.c: Likewise.
36729         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36730         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36731         * lower-subreg.c: Likewise.
36732         * postreload-gcse.c: Likewise.
36733         * ree.c: Likewise.
36734         * reginfo.c: Likewise.
36735         * store-motion.c: Likewise.
36736         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36737         fixed-value.h hashtab.h real.h stmt.h varasm.h.
36738         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36739         fixed-value.h hashtab.h statistics.h stmt.h.
36740         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36741         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36742         * except.c: Likewise.
36743         * explow.c: Likewise.
36744         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36745         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36746         varasm.h.
36747         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36748         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36749         * tree-ssa-structalias.c: Likewise.
36750         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36751         fixed-value.h insn-config.h real.h statistics.h.
36752         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36753         fixed-value.h insn-config.h real.h statistics.h stmt.h.
36754         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36755         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36756         * cfgbuild.c: Likewise.
36757         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36758         fixed-value.h real.h rtl.h statistics.h stmt.h.
36759         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36760         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36761         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36762         fixed-value.h real.h statistics.h stmt.h.
36763         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36764         fixed-value.h real.h statistics.h stmt.h varasm.h.
36765         * cprop.c: Likewise.
36766         * modulo-sched.c: Likewise.
36767         * postreload.c: Likewise.
36768         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36769         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36770         statistics.h stmt.h varasm.h.
36771         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36772         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36773         rtl.h statistics.h stmt.h varasm.h.
36774         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36775         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36776         varasm.h.
36777         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36778         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36779         varasm.h.
36780         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36781         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36782         varasm.h.
36783         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36784         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36785         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36786         function.h real.h statistics.h stmt.h varasm.h.
36787         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36788         insn-config.h real.h statistics.h stmt.h.
36789         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36790         statistics.h stmt.h.
36791         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36792         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36793         statistics.h stmt.h varasm.h.
36794         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36795         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36796         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36797         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36798         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36799         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36800         statistics.h stmt.h varasm.h.
36801         * ipa-polymorphic-call.c: Likewise.
36802         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36803         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36804         statistics.h stmt.h.
36805         * config/c6x/c6x.c: Likewise.
36806         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36807         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36808         statistics.h stmt.h varasm.h.
36809         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36810         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36811         stmt.h varasm.h.
36812         * ipa-split.c: Likewise.
36813         * tree-eh.c: Likewise.
36814         * tree-ssa-dce.c: Likewise.
36815         * tree-ssa-loop-niter.c: Likewise.
36816         * tree-vrp.c: Likewise.
36817         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36818         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36819         stmt.h.
36820         * config/nds32/nds32-fp-as-gp.c: Likewise.
36821         * config/nds32/nds32-intrinsic.c: Likewise.
36822         * config/nds32/nds32-isr.c: Likewise.
36823         * config/nds32/nds32-md-auxiliary.c: Likewise.
36824         * config/nds32/nds32-memory-manipulation.c: Likewise.
36825         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36826         * config/nds32/nds32-predicates.c: Likewise.
36827         * config/nds32/nds32.c: Likewise.
36828         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36829         fixed-value.h hashtab.h real.h statistics.h.
36830         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36831         fixed-value.h hashtab.h real.h statistics.h stmt.h.
36832         * config/arm/arm.c: Likewise.
36833         * config/avr/avr.c: Likewise.
36834         * config/bfin/bfin.c: Likewise.
36835         * config/h8300/h8300.c: Likewise.
36836         * config/i386/i386.c: Likewise.
36837         * config/ia64/ia64.c: Likewise.
36838         * config/iq2000/iq2000.c: Likewise.
36839         * config/m32c/m32c.c: Likewise.
36840         * config/m32r/m32r.c: Likewise.
36841         * config/m68k/m68k.c: Likewise.
36842         * config/mcore/mcore.c: Likewise.
36843         * config/mep/mep.c: Likewise.
36844         * config/mips/mips.c: Likewise.
36845         * config/mn10300/mn10300.c: Likewise.
36846         * config/moxie/moxie.c: Likewise.
36847         * config/pa/pa.c: Likewise.
36848         * config/rl78/rl78.c: Likewise.
36849         * config/rx/rx.c: Likewise.
36850         * config/s390/s390.c: Likewise.
36851         * config/sh/sh.c: Likewise.
36852         * config/sparc/sparc.c: Likewise.
36853         * config/spu/spu.c: Likewise.
36854         * config/stormy16/stormy16.c: Likewise.
36855         * config/v850/v850.c: Likewise.
36856         * config/vax/vax.c: Likewise.
36857         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36858         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36859         * config/msp430/msp430.c: Likewise.
36860         * predict.c: Likewise.
36861         * value-prof.c: Likewise.
36862         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36863         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36864         * config/microblaze/microblaze.c: Likewise.
36865         * config/nios2/nios2.c: Likewise.
36866         * config/rs6000/rs6000.c: Likewise.
36867         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36868         insn-config.h real.h rtl.h statistics.h stmt.h.
36869         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36870         insn-config.h real.h statistics.h stmt.h.
36871         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36872         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36873         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36874         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36875         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36876         fixed-value.h real.h statistics.h stmt.h.
36877         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36878         fixed-value.h statistics.h stmt.h.
36879         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36880         stmt.h.
36882 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36884         * gengtype.c (create_user_defined_type): Workaround
36885         -Wmaybe-uninitialized false positives.
36886         * cse.c (fold_rtx): Likewise.
36887         * loop-invariant.c (gain_for_invariant): Likewise.
36889 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36891         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36892         set the memory attributes in all cases but clear MEM_EXPR if need be.
36894 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36896         PR tree-optimization/64434
36897         * cfgexpand.c (reorder_operands): New function.
36898         (expand_gimple_basic_block): Insert call of reorder_operands if
36899         optimized is true.
36901 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
36903         * config/mips/micromips.md (*swp): Remove explicit parallel.
36904         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36905         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36906         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36907         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36908         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36909         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36910         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36911         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36912         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36913         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36914         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36915         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36916         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36917         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36918         (mips_wrdsp): Likewise.
36919         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36920         parallel.
36921         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36922         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36923         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36924         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36925         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36926         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36927         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36928         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36929         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36931 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36933         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36934         (mips_print_operand): Support 'y' to print exact log2 in decimal
36935         of a const_int.
36936         * config/mips/mips.h (ISA_HAS_LSA): New define.
36937         (ISA_HAS_DLSA): Likewise.
36938         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36939         * config/mips/predicates.md (const_immlsa_operand): New predicate.
36941 2015-01-15  Martin Liska  <mliska@suse.cz>
36943         PR target/64377
36944         * optc-save-gen.awk: Add support for array types.
36946 2015-01-15  Richard Biener  <rguenther@suse.de>
36948         PR middle-end/64365
36949         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36950         for MEM_REF access functions with the same base can never partially
36951         overlap.
36953 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
36955         * common.opt: New option -fstack-protector-explicit.
36956         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36957         (stack_protect_decl_phase): Handle stack_protect attribute for
36958         explicit stack protection requests.
36959         (expand_used_vars): Similarly.
36960         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36961         * doc/extend.texi: Add documentation for "stack_protect" attribute.
36962         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36964 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
36966         PR target/53988
36967         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36968         reg-reg copies.
36969         (sh_extending_set_of_reg): New struct.
36970         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36971         sh_remove_reg_dead_or_unused_notes): New Declarations.
36972         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36973         sh_find_extending_set_of_reg, sh_split_tst_subregs,
36974         sh_extending_set_of_reg::use_as_extended_reg): New functions.
36975         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36976         convert to insn_and_split and use new function sh_split_tst_subregs.
36978 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
36980         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36981         option.
36982         (Optimization Options): Move -fuse-ld documentation to...
36983         (Link Options): ...here.
36985 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36987         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36988         offsets.
36989         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36990         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36991         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36992         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36993         instead of ZR for the memory operand of LL/SC.
36994         (compare_and_swap_12, sync_add<mode>): Likewise.
36995         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36996         (sync_new_<optab>_12, sync_nand_12): Likewise.
36997         (sync_old_nand_12, sync_new_nand_12): Likewise.
36998         (sync_sub<mode>, sync_old_add<mode>): Likewise.
36999         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37000         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37001         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37002         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37003         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37004         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37005         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37006         * doc/md.texi (ZC): Update description.
37008 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37010         * builtins.c (expand_builtin_atomic_exchange): Remove error when
37011         memory model is CONSUME.
37012         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37013         expand_builtin_atomic_store): Change invalid memory model errors to
37014         warnings.
37015         (expand_builtin_atomic_clear): Change invalid model errors to warnings
37016         and issue warning for CONSUME.
37018 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
37020         * lto-cgraph: Update function comments for
37021         lto_symtab_encoder_encode_*.
37023 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37025         * Makefile.in (site.exp): Do not set ENABLE_LTO.
37027 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37029         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37030         * lto-cgraph.c (select_what_to_stream): Remove argument, use
37031         lto_stream_offload_p instead.
37032         * lto-streamer.h (select_what_to_stream): Remove argument.
37033         * passes.c (ipa_write_summaries): Likewise.
37034         * tree-pass.h (ipa_write_summaries): Likewise.
37036 2015-01-14  Richard Biener  <rguenther@suse.de>
37038         PR tree-optimization/59354
37039         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37040         groups larger than the slp group size as having gaps.
37042 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37044         PR middle-end/59448
37045         * builtins.c (get_memmodel): Promote consume to acquire always.
37047 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37049         PR target/64386
37050         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37051         V32HImode.
37053 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37055         PR target/64393
37056         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37057         Enable AVX512BW.
37058         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37059         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37060         AVX512VBMI, as it implies AVX512BW.
37062 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37064         PR target/64387
37065         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37066         (vec_unpacks_hi_v16sf): Ditto.
37068 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37070         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37071         is not available.
37073 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37075         * doc/invoke.texi (mapcs): Mention deprecation.
37076         (mapcs-frame): Likewise.
37078 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37080         PR target/64453
37081         * config/arm/arm.c (callee_saved_reg_p): Define.
37082         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37083         register is callee saved instead of !call_used_regs[reg].
37084         (thumb1_compute_save_reg_mask): Likewise.
37086 2015-01-14  Hale Wang  <hale.wang@arm.com>
37088         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37089         Cortex-M7.
37091 2015-01-14  Richard Biener  <rguenther@suse.de>
37093         PR lto/64415
37094         * tree-inline.c (insert_debug_decl_map): Check destination
37095         function MAY_HAVE_DEBUG_STMTS.
37096         (insert_init_debug_bind): Likewise.
37097         (insert_init_stmt): Remove redundant check.
37098         (remap_gimple_stmt): Drop debug stmts if the destination
37099         function has var-tracking assignments disabled.
37101 2015-01-14  Martin Liska  <mliska@suse.cz>
37103         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37104         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37106 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37108         PR target/64460
37109         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37110         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37112 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37114         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37115         level from an ARCH; do not inject the default.
37116         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37117         MIPS_ISA_LEVEL_SPEC.
37118         (MIPS_ISA_NAN2008_SPEC): Update comment.
37119         (BASE_DRIVER_SELF_SPECS): Likewise.
37120         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37121         MIPS_DEFAULT_ISA_LEVEL_SPEC.
37122         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37123         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37124         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37126 2015-01-14  Richard Biener  <rguenther@suse.de>
37128         PR tree-optimization/64493
37129         PR tree-optimization/64495
37130         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37131         assign the proper vectorized PHI to the inner loop exit PHIs.
37133 2015-01-14  Joey Ye  <joey.ye@arm.com>
37135         * config/arm/arm.c (arm_compute_save_reg_mask):
37136         Do not save lr in case of tail call.
37137         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37139 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
37141         * tree-vrp.c (check_array_ref): Emit more warnings
37142         for warn_array_bounds >= 2.
37143         * common.opt: New option -Warray-bounds=.
37144         * doc/invoke.texi: Document -Warray-bounds=.
37146 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
37148         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37149         (mforbid-fp-as-gp): Remove.
37150         (mex9): Remove.
37151         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37152         (nds32_symbol_load_store_p): Remove.
37153         (nds32_fp_as_gp_check_available): Clean up implementation.
37154         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37155         cases.
37156         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37157         fp-as-gp and ex9 cases.
37159 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37161         * tree-profile.c (init_ic_make_global_vars): Drop workaround
37162         for bintuils bug 14342.
37163         (init_ic_make_global_vars): Likewise.
37164         (gimple_init_edge_profiler): Likewise.
37165         (gimple_gen_ic_func_profiler): Likewise.
37167 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37169         * ipa-inline.c (inline_small_functions): Swap the operands in
37170         enum.
37172 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37174         PR ipa/64481
37175         * ipa-inline-analysis.c (node_growth_cache): Remove.
37176         (initialize_growth_caches): Do not initialize it.
37177         (free_growth_caches): Do not free it.
37178         (do_estimate_growth): Rename to ...
37179         (estimate_growth): ... this one; drop growth cache code.
37180         (growth_likely_positive): Always go the heuristics way.
37181         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37182         (reset_edge_caches): Do not reset node growth.
37183         (heap_edge_removal_hook): Do not maintain cache.
37184         (inline_small_functions): Likewise; strenghten sanity check.
37185         (ipa_inline): Do not maintain caches.
37186         * ipa-inline.h (node_growth_cache): Remove.
37187         (do_estimate_growth): Remove to ...
37188         (estimate_growth): this one; remove inline version.
37189         (reset_node_growth_cache): Remove.
37191 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37193         PR ipa/64565
37194         * ipa-inline.c (inline_small_functions): Update callee keys after
37195         resolving speculation
37196         (inline_small_functions): Always check monotonicity of the queue.
37198 2015-01-13  Marek Polacek  <polacek@redhat.com>
37200         PR middle-end/64391
37201         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37203 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37205         PR rtl-optimization/64286
37206         * ree.c (combine_reaching_defs): Move part of comment earlier,
37207         remove !SCALAR_INT_MODE_P check.
37208         (add_removable_extension): Don't add vector mode
37209         extensions if all uses of the source register aren't the same
37210         vector extensions.
37212 2015-01-13  Renlin Li  <renlin.li@arm.com>
37214         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37215         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37217 2015-01-13  Martin Liska  <mliska@suse.cz>
37219         * ipa-icf.c (sem_function::equals_private): Call new functions
37220         cl_target_option_print_diff and cl_optimization_print_diff.
37221         * optc-save-gen.awk (cl_target_option_print_diff): New function.
37222         (cl_optimization_print_diff): Likewise.
37223         * opth-gen.awk: Likewise.
37225 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
37227         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37228         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37229         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37230         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37231         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37232         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37234 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37236         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37237         instead of src mode.
37239 2015-01-13  Richard Biener  <rguenther@suse.de>
37241         PR lto/64373
37242         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37243         DECL_CONTEXT.
37245 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37247         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37248         volatile mems.
37249         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37251 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37253         PR middle-end/63974
37254         * cfgexpand.c (expand_computed_goto): Don't call
37255         convert_memory_address here.
37257 2015-01-13  Richard Biener  <rguenther@suse.de>
37259         PR tree-optimization/64406
37260         * tree-loop-distibution.c (pass_loop_distribution::execute):
37261         Reset the SCEV hashtable if we distributed anything.
37263 2015-01-13  Richard Biener  <rguenther@suse.de>
37265         PR tree-optimization/64404
37266         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37267         SLP types for CSEd loads.
37269 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37271         PR tree-optimization/64436
37272         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37273         merge of two symbolic numbers for a bitwise OR to ...
37274         (perform_symbolic_merge): This. Also fix computation of the range and
37275         end of the symbolic number corresponding to the result of a bitwise OR.
37277 2015-01-13  Richard Biener  <rguenther@suse.de>
37279         PR tree-optimization/64568
37280         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37281         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37283 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37285         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37286         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37288 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37290         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37291         target-specific symbol_ref flag.
37292         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37293         resides in rodata section.
37294         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37295         (nds32_encode_section_info): New function.
37297 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37299         * config/nds32/nds32.md (call): Use pseudo instruction bal which
37300         clobbers TA_REGNUM if large code model is specified.
37301         (call_register): Likewise.
37302         (call_immediate): Likewise.
37303         (call_value): Likewise.
37304         (call_value_register): Likewise.
37305         (call_value_immediate): Likewise.
37307 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37309         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37310         (TARGET_CMODEL_MEDIUM): New macro.
37311         (TARGET_CMODEL_LARGE): New macro.
37312         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37313         code model setting in assembly code.
37315 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37317         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37318         Remove MASK_GP_DIRECT flag.
37319         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37320         one of the multilib default options.
37321         * config/nds32/nds32.opt (mgp-direct): Remove.
37322         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37323         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
37325 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37327         * config/nds32/nds32.opt (mcmodel): Add new option.
37328         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37329         to describe code model.
37331 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
37333         PR target/64479
37334         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37336 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
37338         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37339         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37340         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37341         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37342         __builtin_sh_set_fpscr.
37344 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37346         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37347         after a funtion name just to indicate it is a function.
37348         ([-fsanitize-undefined-trap-on-error]): Likewise.
37349         ([-fdbg-cnt=]): Likewise.
37350         ([-mmemcpy]): Likewise.
37351         ([-mflush-func]): Likewise.
37352         ([-msynci]): Likewise.
37354 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37356         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37357         example.
37359 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
37361         PR tree-optimization/64563
37362         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37363         instead of != VR_VARYING.
37365         PR target/64513
37366         * config/i386/i386.c (ix86_expand_prologue): Add
37367         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37369         PR tree-optimization/64454
37370         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37371         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37372         for signed or [0, op1 - 1] for unsigned modulo.
37373         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37374         even if op1 does not satisfy integer_pow2p.
37376         PR other/64370
37377         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37379 2015-01-12  Jeff Law  <law@redhat.com>
37381         PR target/64461
37382         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37383         (trunchiqi2, truncsihi2): Similarly.
37385         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37386         rather than calling F.
37388 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37390         * tsan.c (instrument_expr): Use force_gimple_operand.
37391         Use may_be_nonaddressable_p instead of is_gimple_addressable.
37393 2015-01-12  Richard Biener  <rguenther@suse.de>
37395         PR tree-optimization/64530
37396         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37397         back dr1.
37399 2015-01-12  Richard Biener  <rguenther@suse.de>
37401         PR middle-end/64357
37402         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37403         latches properly.
37405 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37407         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37408         Cortex-A17 tuning parameters.
37409         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37411 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37413         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37414         * config/arm/arm.c (arm_macro_fusion_p): New function.
37415         (arm_macro_fusion_pair_p): Likewise.
37416         (TARGET_SCHED_MACRO_FUSION_P): Define.
37417         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37418         (ARM_FUSE_NOTHING): Likewise.
37419         (ARM_FUSE_MOVW_MOVT): Likewise.
37420         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37421         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37422         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37423         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37424         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37425         arm_cortex_a5_tune): Specify fuseable_ops value.
37427 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
37429         PR bootstrap/64561
37430         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37431         test for PIE with copy reloc.
37432         * configure: Regenerated.
37434 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37436         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37437         in gen_rtx_REG.
37438         (arm_tls_descseq_addr): Likewise.
37439         (arm_gen_movmemqi): Likewise.
37440         (arm_expand_epilogue_apcs_frame): Likewise.
37441         (arm_expand_epilogue): Likewise.
37442         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
37443         in gen_rtx_REG.
37445 2015-01-12  Martin Liska  <mliska@suse.cz>
37447         PR ipa/64550
37448         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37449         volatility for correct operands.
37451 2015-01-12  Martin Liska  <mliska@suse.cz>
37453         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37454         indication that a function is not leaf.
37455         (sem_function::compare_polymorphic_p): Likewise.
37457 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37459         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37460         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37461         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37462         fold-const.h, tree-check.h.
37464 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37466         PR ipa/63967
37467         PR ipa/64425
37468         * ipa-inline.c (compute_uninlined_call_time,
37469         compute_inlined_call_time): Use counts for extra precision when
37470         needed possible.
37471         (big_speedup_p): Fix formating.
37472         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37473         (relative_time_benefit): Remove.
37474         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37475         merge guessed and read profile paths.
37476         (inline_small_functions): Count only !optimize_size functions into
37477         initial size; be more lax about sanity check when profile is used;
37478         be sure to update inlined function profile when profile is read.
37480 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37482         PR ipa/63470
37483         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37484         cost when edge becomes direct.
37485         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37486         is resolved or when introducing new speculation.
37488 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
37490         PR ipa/64551
37491         PR ipa/64552
37492         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37493         '||' to fix typo issue.
37495         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37496         accept and return NULL.
37498 2015-01-12  Martin Liska  <mliska@suse.cz>
37500         * cgraph.c (cgraph_edge::remove_callee): Move function to header
37501         file for being inlined.
37502         (cgraph_set_edge_callee): Delete.
37503         (cgraph_edge::redirect_callee): Move function to header file
37504         for being inlined.
37505         (cgraph_edge::make_direct): Use new function.
37506         (cgraph_edge::dump_edge_flags): New function created from
37507         static dump_edge_flags function.
37508         (cgraph_node::dump): Use new function.
37509         (cgraph_edge::verify_count_and_frequency): New function created
37510         from verify_edge_count_and_frequency.
37511         (cgraph_edge::verify_corresponds_to_fndecl): New function created
37512         from verify_edge_corresponds_to_fndecl.
37513         (verify_edge_corresponds_to_fndecl): Delete.
37514         (cgraph_node::verify_node): Use new function.
37515         * cgraph.h (cgraph_edge::set_callee): New function.
37516         (cgraph_edge::dump_edge_flags): Likewise.
37517         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37519 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
37521         * ipa-utils.c (estimate_function_body_sizes): Do not
37522         free node params when called late with early=true.
37524 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
37526         * doc/md.texi (Instruction Patterns): Rewrite text for
37527         clarity.
37528         (Example): Likewise.
37530 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
37532         * doc/invoke.texi (Option Summary): Break long lines.
37533         [(-fdiagnostics-color)]: Put long literal in @smallexample
37534         instead of inline.
37535         [(-fsanitize-recover)]: Likewise.
37536         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37537         [(-ffast-math)]: Likewise.
37538         [(--param max-inline-insns-recursive)]: Likewise.
37539         [(--param max-inline-recursive-depth)]: Likewise.
37540         [(-mno-text-section-literals)]: Likewise.
37542 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
37544         * doc/install.texi: Update for libgomp being renamed from "GNU
37545         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37546         Runtime Library".
37547         * doc/sourcebuild.texi: Likewise.
37549 2015-01-10  Anthony Green  <green@moxielogic.com>
37551         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37552         mul.x availability for moxiebox configuration.
37554 2015-01-09  Anthony Green  <green@moxielogic.com>
37556         * config/moxie/moxie.md: Tabify assembly output.
37558 2015-01-09  Anthony Green  <green@moxielogic.com>
37560         * config/moxie/moxie.md (CC_REG): Correct register definition.
37562 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
37564         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37565         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
37566         of log files.
37568 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37570         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37572 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
37573             Jakub Jelinek  <jakub@redhat.com>
37575         PR middle-end/64412
37576         * lto-streamer.h (lto_stream_offload_p): New declaration.
37577         * lto-streamer.c (lto_stream_offload_p): New variable.
37578         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37579         at the same time as section_name_prefix.
37580         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37581         if lto_stream_offload_p.
37582         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37583         stream TREE_TARGET_OPTION if lto_stream_offload_p.
37584         (write_ts_function_decl_tree_pointers): Don't
37585         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37586         * tree-streamer-in.c (unpack_value_fields): Don't stream
37587         TREE_TARGET_OPTION in if ACCEL_COMPILER.
37588         (lto_input_ts_function_decl_tree_pointers): Don't stream
37589         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37590         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37591         instead of section_name_prefix string comparisons.
37593 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
37595         PR rtl-optimization/64536
37596         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37597         tablejumps.
37599 2015-01-09  Michael Collison  <michael.collison@linaro.org>
37601         PR tree-optimization/64322
37602         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37603         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37605 2015-01-09  Tom de Vries  <tom@codesourcery.com>
37607         PR rtl-optimization/64539
37608         * regcprop.c (kill_clobbered_values): Factor out of ...
37609         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
37610         instead of note_stores with kill_clobbered_value.
37612 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37614          * ginclude/unwind-arm-common.h: Revert previous commit.
37616 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37618         * config.gcc (arm*-*-freebsd*): New configuration.
37619         * config/arm/freebsd.h: New file.
37620         * config.host: Add extra components for arm*-*-freebsd*.
37621         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37622         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37624 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37626         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37627         for -mcpu=e6500.
37628         * config/rs6000/t-rtems: Add e6500 multilibs.
37630 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37632         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37633         MPC8540.
37635 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37637         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37638         MULTILIB_EXCEPTIONS.
37640 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37642         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37643         MULTILIB_EXCEPTIONS.
37645 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37647         * config/arm/t-rtems-eabi: Rename to...
37648         * config/arm/t-rtems: ...this.
37649         * config/arm/rtems-eabi.h: Rename to...
37650         * config/arm/rtems.h: ...this.
37651         * config.gcc (arm*-*-rtems*): Reflect changes above.
37653 2015-01-09  Richard Biener  <rguenther@suse.de>
37655         PR tree-optimization/64410
37656         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37657         on the LHS.
37658         (execute_update_addresses_taken): Deal with that.
37659         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37660         loads/stores for complex variables.
37662 2015-01-09  Martin Liska  <mliska@suse.cz>
37664         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37665         name comparison.
37666         (func_checker::compare_memory_operand): New function.
37667         (func_checker::compare_operand): Split case to newly
37668         added functions.
37669         (func_checker::compare_cst_or_decl): New function.
37670         (func_checker::compare_gimple_call): Identify
37671         memory operands.
37672         (func_checker::compare_gimple_assign): Likewise.
37673         * ipa-icf-gimple.h: New function.
37675 2015-01-09  Martin Liska  <mliska@suse.cz>
37677         PR ipa/64503
37678         * sreal.c (sreal::dump): Change unsigned format to signed for
37679         m_exp value.
37680         (sreal::to_double): Replace exp2 with scalbln.
37682 2015-01-09  Martin Liska  <mliska@suse.cz>
37684         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37685         * ipa-icf.c (sem_function::equals_private): Add support for target and
37686         (sem_item_optimizer::merge_classes): Remove redundant function
37687         optimization flags comparison.
37688         * tree.h (target_opts_for_fn): New function.
37690 2015-01-09  Tom de Vries  <tom@codesourcery.com>
37692         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37694 2015-01-09  Kito Cheng  <kito@0xlab.org>
37696         PR rtl-optimization/64348
37697         * lra-constraints.c (split_reg): Fix caller-save store/restore
37698         instruction generation.
37700 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
37702         PR gcov-profile/61790
37703         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37704         long long.  Fallback to int64_t if host doesn't have long long and
37705         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
37707 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37709         PR tree-optimization/63989
37710         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37711         from 1000 to 10000.
37712         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37713         (get_stridx): If we don't have a record for certain SSA_NAME,
37714         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37715         constant offset, call get_stridx_plus_constant.
37716         (get_stridx_plus_constant): New function.
37717         (zero_length_string): Don't use get_stridx here.
37719         PR target/55023
37720         PR middle-end/64388
37721         * dse.c (struct insn_info): Mention frame_read set also
37722         before reload for tail calls on some targets.
37723         (scan_insn): Revert 2014-12-22 change.  Set frame_read
37724         also before reload for tail calls if
37725         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
37726         instead of add_non_frame_wild_read for non-const/memset
37727         tail calls after reload.
37729 2015-01-08  Jason Merrill  <jason@redhat.com>
37731         * ubsan.c (do_ubsan_in_current_function): New.
37732         (pass_ubsan::gate): Use it.
37733         * ubsan.h: Declare it.
37734         * convert.c (convert_to_integer): Use it.
37736 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37738         PR target/64338
37739         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37740         compare_code when it is unconditionally overwritten afterwards.
37741         Use ix86_reverse_condition instead of reverse_condition.  Don't
37742         change code if *reverse_condition* returned UNKNOWN and don't
37743         swap ct/cf and negate diff in that case.
37745 2015-01-08  Mike Stump  <mikestump@comcast.net>
37747         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37748         (pass_tsan_O0::gate): Likewise.
37749         * extend.texi (Function Attributes): Add no_sanitize_thread
37750         documentation.
37752 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
37754         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37755         for registering builtins.
37756         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37757         add -fopenmp to the argv_obstack used when invoking
37758         compile_for_target.
37760         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37761         add "-m32" or "-m64" to argv_obstack.
37762         (generate_host_descr_file): Likewise, when invoking host_compiler.
37763         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37764         ld.
37766 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37768         * config/sh/sh-mem.cc: Use constant as second operand when emitting
37769         tstsi_t insns.
37771 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37773         PR target/55212
37774         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37775         constant load if constant operand fits into I08.
37777 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37779         PR sanitizer/64336
37780         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37781         and TREE_THIS_VOLATILE for MEM_REFs.
37782         (build5_stat): Fix up initialization of TREE_READONLY and
37783         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37785 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
37787         PR target/64533
37788         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37789         of r for the second alternative of the destination operand.
37791 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
37793         PR target/36557
37794         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37796 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37798         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37799         keywords.
37800         ([-fivar-visibility], [-fvisibility]): Likewise.
37802 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37804         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37805         the file where @code, @command, etc is more appropriate.
37807 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
37809         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37810         of -mrecip= documentation.
37812 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37814         PR target/64505
37815         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37816         correct reload handler if -m32 -mpowerpc64 is used.
37818 2015-01-06  Tom de Vries  <tom@codesourcery.com>
37820         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37822 2015-01-08  Christian Bruel  <christian.bruel@st.com>
37824         PR target/64507
37825         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37827 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37829         PR tree-optimization/63259
37830         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37831         if optab exists for 16bit byteswap.
37833 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
37835         * opts.c (common_handle_option): Add support for
37836         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37837         * doc/invoke.texi: Document -fno-sanitize=all,
37838         -f{,no-}sanitize-recover=all.  Document that
37839         -fsanitize=float-cast-overflow is not enabled
37840         by -fsanitize=undefined.  Fix up documentation
37841         of -f{,no-}sanitize-recover.
37843 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
37845         * config.gcc: Add Visium support.
37846         * configure.ac: Likewise.
37847         * configure: Regenerate.
37848         * doc/extend.texi (interrupt attribute): Add Visium.
37849         * doc/invoke.texi: Document Visium options.
37850         * doc/install.texi: Document Visium target.
37851         * doc/md.texi: Document Visium constraints.
37852         * common/config/visium: New directory.
37853         * config/visium: Likewise.
37855 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37857         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37858         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37860 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37862         * combine.c (combine_validate_cost): Do not count the cost of a
37863         split I2 twice.  Do not display it twice in the dump, either.
37865 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37867         Revert parts of r219199.
37868         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37869         <inttypes.h>.
37870         ([-Wtraditional]): Restore markup on <limits.h>.
37872 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
37874         PR c++/31397
37875         * doc/invoke.texi: Document -Wsuggest-override.
37877 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
37879         PR rtl-optimization/64287
37880         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37881         (process_options): Disable flag_ipa_ra if profiling.
37883 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37885         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37887 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
37889         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37890         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37891         put under #if TARGET_LOOPS guard.
37893 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
37895         * config/i386/i386.c (output_387_binary_op): Use std::swap.
37897 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
37899         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37900         * rtl.h (refers_to_regno_p): Add overload.
37901         * cse.c: Use it.
37902         * bt-load.c: Likewise.
37903         * combine.c: Likewise.
37904         * df-scan.c: Likewise.
37905         * sched-deps.c: Likewise.
37906         * config/s390/s390.c: Likewise.
37907         * config/m32r/m32r.c: Likewise.
37908         * config/rs6000/spe.md: Likewise.
37909         * config/rs6000/rs6000.c: Likewise.
37910         * config/pa/pa.c: Likewise.
37911         * config/stormy16/stormy16.c: Likewise.
37912         * config/cris/cris.c: Likewise.
37913         * config/arc/arc.md: Likewise.
37914         * config/arc/arc.c: Likewise.
37915         * config/sh/sh.md: Likewise.
37916         * config/sh/sh.c: Likewise.
37917         * config/frv/frv.c: Likewise.
37919 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37921         PR sanitizer/64265
37922         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37923         call as cleanup of the whole body.
37924         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37925         * tsan.c (replace_func_exit): New function.
37926         (instrument_func_exit): Moved earlier.
37927         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37928         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37929         been found.
37930         (tsan_pass): Don't call instrument_func_exit.
37931         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37932         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37933         inlining.
37935         PR sanitizer/64344
37936         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37937         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37938         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
37939         if the result is integer_zerop, return NULL_TREE.
37940         * convert.c (convert_to_integer): Pass expr as ARG.
37942         PR tree-optimization/64465
37943         * tree-inline.c (redirect_all_calls): During inlining
37944         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37945         changed the stmt to a non-throwing call.
37947 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37949         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37950         etc markup throughout the file.
37952 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37954         Enable experimental TSAN support for Ada.
37955         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37957 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37959         PR tree-optimization/64494
37960         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37961         clear SSA_NAME_ANTI_RANGE_P flag.
37963 2015-01-05  Marek Polacek  <polacek@redhat.com>
37965         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37967 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37969         Update copyright years.
37971         * gcc.c (process_command): Update copyright notice dates.
37972         * gcov-dump.c: Ditto.
37973         * gcov.c: Ditto.
37974         * doc/cpp.texi: Bump @copying's copyright year.
37975         * doc/cppinternals.texi: Ditto.
37976         * doc/gcc.texi: Ditto.
37977         * doc/gccint.texi: Ditto.
37978         * doc/gcov.texi: Ditto.
37979         * doc/install.texi: Ditto.
37980         * doc/invoke.texi: Ditto.
37982         * auto-profile.c, auto-profile.h: Fix up Copyright line.
37984 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
37986         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37987         verb tense, etc.
37988         ([-fvtable-verify], [-fvtv-debug]): Likewise.
37989         ([-Wabi]): Likewise.
37990         ([-fmessage-length]): Likewise.
37991         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37992         ([-Wno-discarded-qualifiers]): Likewise.
37993         ([-Wnodiscarded-array-qualifiers]): Likewise.
37994         ([-Wno-virtual-move-assign]): Likewise.
37995         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37996         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37997         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37998         ([-fsanitize-undefined-trap-on-error]): Likewise.
37999         ([-floop-interchange]): Likewise.
38000         ([-ftree-coalesce-inlined-vars]): Likewise.
38001         ([-fvect-cost-model]): Likewise.
38002         ([-flto]): Likewise.
38003         ([--param]): Likewise.
38004         (Spec Files): Likewise.
38005         ([-mstrict-align]): Likewise.
38006         ([-mfix-cortex-a53-835769]): Likewise.
38007         ([-march], [-mtune]): Likewise.
38008         ([-mpic-register]): Likewise.
38009         ([-munaligned-access]): Likewise.
38010         ([-msp8]): Likewise.
38011         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38012         (AVR Built-in Macros): Likewise.
38013         ([-mpreferred-stack-boundary]): Likewise.
38014         ([-mtune-crtl]): Likewise.
38015         ([-mashf]): Likewise.
38016         ([-mmcu=]): Likewise.
38017         ([-minrt]): Likewise.
38018         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38019         ([-mupper-regs]): Likewise.
38020         ([-matomic-model]): Likewise.
38021         ([-mdiv]): Likewise.
38022         ([-mzdcbranch]): Likewise.
38023         ([-mdisable-callt]): Likewise.
38024         ([-msoft-float]): Likewise.
38025         ([-m8byte-align]): Likewise.
38026         ([-fstack-reuse]): Likewise.
38028 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38030         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38031         Fix markup, light copy-editing.
38032         ([-fauto-profile]): Rewrite to fix formatting and content
38033         problems.
38035 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38037         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38038         Copy-edit description.
38039         ([-fisolate-erroneous-paths-attribute]): Likewise.
38040         * common.opt (fisolate-erroneous-paths-dereference):
38041         Copy-edit description.
38042         (fisolate-erroneous-paths-attribute): Likewise.
38044 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38046         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38047         tidy grammar.
38049 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38051         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38052         ([-fvtv-debug]): Likewise.
38053         ([-Wc++-compat]): Likewise.
38054         ([-Wc++11-compat]): Likewise.
38055         ([-Wc++14-compat]): Likewise.
38056         ([-Wno-sized-deallocation]): Likewise.
38057         ([-femit-class-debug-always]): Likewise.
38058         ([-femit-struct-debug-detailed]): Likewise.
38059         ([-fno-keep-inline-dllexport]): Likewise.
38060         ([-fira-algorithm]): Likewise.
38061         ([-fira-region]): Likewise.
38062         ([-flra-remat]): Likewise.
38063         ([-fipa-ra]): Likewise.
38064         ([-fhoist-adjacent-loads]): Likewise.
38065         ([-fisolate-erroneous-paths-dereference]): Likewise.
38066         ([-fisolate-erroneous-paths-attribute]): Likewise.
38067         ([-ftree-switch-conversion]): Likewise.
38068         ([-ftree-tail-merge]): Likewise.
38069         ([-ftree-loop-if-convert]): Likewise.
38070         ([-ftree-loop-if-convert-stores]): Likewise.
38071         ([-ftree-loop-distribution]): Likewise.
38072         ([-ftree-loop-distribute-patterns]): Likewise.
38073         ([-flto-compression-level]): Likewise.
38074         ([-flto-report]): Likewise.
38075         ([-flto-report-wpa]): Likewise.
38076         ([-fuse-linker-plugin]): Likewise.
38077         ([-mfix-cortex-a53-835769]): Likewise.
38078         ([-mno-fix-cortex-a53-835769]): Likewise.
38079         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38080         explicit listing; add a note to the discussion indicating they
38081         exist.  Reorder table to group similar options.  Add missing
38082         @opindex entries.  Add @need commands throughout the table to
38083         allow it to be split across multiple pages.
38084         ([-m8bit-idiv]): Fix @opindex.
38085         ([-mavx256-split-unaligned-load]): Likewise.
38086         ([-mavx256-split-unaligned-store]): Likewise.
38087         ([-mstack-protector-guard]): Likewise.
38088         ([-mcpu=]): Likewise.
38089         ([-mcpu]): Likewise.
38090         ([-mpointer-size=]): Likewise.
38092 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
38094         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38095         instead of `m' constraint.  Likewise for unnamed movb comparison
38096         patterns using reg_before_reload_operand predicate.
38097         * config/pa/predicates.md (reg_before_reload_operand): Tighten
38098         predicate to reject register index and LO_SUM DLT memory forms
38099         after reload.
38101 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38103         * doc/invoke.texi (Option Summary): Fix spelling of
38104         -fdevirtualize-at-ltrans.
38105         ([-fdevirtualize]): Fix markup.
38106         ([-fdevirtualize-speculatively]): Fix typo.
38107         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
38108         implementor-speaky.
38109         * common.opt (fdevirtualize-at-ltrans): Likewise.
38110         * ipa-devirt.c: Fix typos in comments throughout the file.
38111         (ipa_devirt): Fix typos in format strings for dump output.
38113 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38115         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38116         discussion of defaults, light copy-editing.
38118 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38120         * tsan.c (instrument_expr): corrected previous checkin.
38122 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38124         Instrument bit field and unaligned accesses for TSAN.
38125         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38126         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38127         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38128         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38129         unaligned memory regions.
38131 2015-01-01  Anthony Green  <green@moxielogic.com>
38133         * config/moxie/predicates.md (moxie_general_movsrc_operand):
38134         Restrict move source register offsets to 16 bits.
38136 Copyright (C) 2015 Free Software Foundation, Inc.
38138 Copying and distribution of this file, with or without modification,
38139 are permitted in any medium without royalty provided the copyright
38140 notice and this notice are preserved.