[ARM][cleanup] Remove uses of CONST_DOUBLE_HIGH/LOW
[official-gcc.git] / gcc / ChangeLog
blob07f574f17b1f608314a783670dfe461dd737ca02
1 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * config/arm/arm.c (neon_valid_immediate): Remove integer
4         CONST_DOUBLE handling.  It should never occur.
6 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
8         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
9         (ATOMIC_LDOP): Likewise.
10         (atomic_ldop): Likewise.
11         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
12         (ATOMIC_LDOP): Likewise.
13         (atomic_ldop): Likewise.
15 2015-11-10  Martin Liska  <mliska@suse.cz>
17         * alloc-pool.h (allocate_raw): New function.
18         (operator new (size_t, object_allocator<T> &a)): Use the
19         function instead of object_allocator::allocate).
21 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
23         * config/i386/sse.md (HALFMASKMODE): New attribute.
24         (DOUBLEMASKMODE): New attribute.
25         (vec_pack_trunc_qi): New.
26         (vec_pack_trunc_<mode>): New.
27         (vec_unpacks_lo_hi): New.
28         (vec_unpacks_lo_si): New.
29         (vec_unpacks_lo_di): New.
30         (vec_unpacks_hi_hi): New.
31         (vec_unpacks_hi_<mode>): New.
33 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
35         * optabs.c (expand_binop_directly): Allow scalar mode for
36         vec_pack_trunc_optab.
37         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
38         boolean vector producers from pattern sequence when computing VF.
39         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
40         vect_recog_mask_conversion_pattern.
41         (search_type_for_mask): Choose the smallest
42         type if different size types are mixed.
43         (build_mask_conversion): New.
44         (vect_recog_mask_conversion_pattern): New.
45         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
46         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
47         load with pattern.
48         (vectorizable_conversion): Support boolean vectors.
49         (free_stmt_vec_info): Allow patterns for statements with no lhs.
50         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
52 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
54         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
55         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
56         Cast mask to FP mode if required.
57         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
58         (vcond_mask_<mode><avx512fmaskmodelower>): New.
59         (vcond_mask_<mode><sseintvecmodelower>): New.
60         (vcond_mask_<mode><sseintvecmodelower>): New.
61         (vcond_mask_v2div2di): New.
62         (vcond_mask_<mode><sseintvecmodelower>): New.
63         (vcond_mask_<mode><sseintvecmodelower>): New.
65 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
67         * optabs-query.h (get_vcond_mask_icode): New.
68         * optabs-tree.c (expand_vec_cond_expr_p): Use
69         get_vcond_mask_icode for VEC_COND_EXPR with mask.
70         * optabs.c (expand_vec_cond_mask_expr): New.
71         (expand_vec_cond_expr): Use get_vcond_mask_icode
72         when possible.
73         * optabs.def (vcond_mask_optab): New.
74         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
75         generate redundant comparison for COND_EXPR.
76         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
77         as a condition.
78         (vectorizable_condition): Likewise.
79         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
80         cond_exp with no embedded comparison.
81         (vect_build_slp_tree_1): Likewise.
83 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
85         * config/i386/sse.md (maskload<mode>): Rename to ...
86         (maskload<mode><sseintvecmodelower>): ... this.
87         (maskstore<mode>): Rename to ...
88         (maskstore<mode><sseintvecmodelower>): ... this.
89         (maskload<mode><avx512fmaskmodelower>): New.
90         (maskstore<mode><avx512fmaskmodelower>): New.
92 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
94         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
95         (expand_MASK_STORE): Adjust to maskstore optab changes.
96         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
97          Adjust to maskload, maskstore optab changes.
98         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
99         * optabs.def (maskload_optab): Transform into convert optab.
100         (maskstore_optab): Likewise.
101         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
102         can_vec_mask_load_store_p signature change.
103         (predicate_mem_writes): Use boolean mask.
104         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
105         can_vec_mask_load_store_p signature change.  Allow invariant masks.
106         (vectorizable_operation): Ignore type precision for boolean vectors.
108 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
110         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
111         (const_vector_mask_from_tree): New.
112         (const_vector_from_tree): Use const_vector_mask_from_tree
113         for boolean vectors.
114         * optabs-query.h (get_vec_cmp_icode): New.
115         * optabs-tree.c (expand_vec_cmp_expr_p): New.
116         * optabs-tree.h (expand_vec_cmp_expr_p): New.
117         * optabs.c (vector_compare_rtx): Add OPNO arg.
118         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
119         (expand_vec_cmp_expr): New.
120         * optabs.def (vec_cmp_optab): New.
121         (vec_cmpu_optab): New.
122         * optabs.h (expand_vec_cmp_expr): New.
123         * tree-vect-generic.c (expand_vector_comparison): Add vector
124         comparison optabs check.
125         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
126         operations for VF.  Add mask type computation.
127         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
128         (vectorizable_comparison): New.
129         (vect_analyze_stmt): Add vectorizable_comparison.
130         (vect_transform_stmt): Likewise.
131         (vect_init_vector): Support boolean vector invariants.
132         (vect_get_vec_def_for_operand): Add VECTYPE arg.
133         (vectorizable_condition): Directly provide vectype for invariants
134         used in comparison.
135         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
136         (enum vect_var_kind): Add vect_mask_var.
137         (enum stmt_vec_info_type): Add comparison_vec_info_type.
138         (vectorizable_comparison): New.
139         (vect_get_vec_def_for_operand): Add VECTYPE arg.
140         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
141         (vect_create_destination_var): Likewise.
142         * tree-vect-patterns.c (check_bool_pattern): Check fails
143         if we can vectorize comparison directly.
144         (search_type_for_mask): New.
145         (vect_recog_bool_pattern): Support cases when bool pattern
146         check fails.
147         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
148         comparison statements.
149         (vect_get_constant_vectors): Support boolean vector
150         constants.
151         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
152         (ix86_expand_int_vec_cmp): New.
153         (ix86_expand_fp_vec_cmp): New.
154         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
155         op_true and op_false.
156         (ix86_int_cmp_code_to_pcmp_immediate): New.
157         (ix86_fp_cmp_code_to_pcmp_immediate): New.
158         (ix86_cmp_code_to_pcmp_immediate): New.
159         (ix86_expand_mask_vec_cmp): New.
160         (ix86_expand_fp_vec_cmp): New.
161         (ix86_expand_int_sse_cmp): New.
162         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
163         (ix86_expand_int_vec_cmp): New.
164         (ix86_get_mask_mode): New.
165         (TARGET_VECTORIZE_GET_MASK_MODE): New.
166         * config/i386/sse.md (avx512fmaskmodelower): New.
167         (vec_cmp<mode><avx512fmaskmodelower>): New.
168         (vec_cmp<mode><sseintvecmodelower>): New.
169         (vec_cmpv2div2di): New.
170         (vec_cmpu<mode><avx512fmaskmodelower>): New.
171         (vec_cmpu<mode><sseintvecmodelower>): New.
172         (vec_cmpuv2div2di): New.
174 2015-11-10  Richard Biener  <rguenther@suse.de>
176         PR tree-optimization/68240
177         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
178         properly.
179         (visit_phi): For PHIs with just a single executable edge
180         take its value directly.
181         (expressions_equal_p): Handle VN_TOP properly.
183 2015-11-10  Richard Biener  <rguenther@suse.de>
185         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
186         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
187         conservatively.
189 2015-11-10  Richard Biener  <rguenther@suse.de>
191         PR tree-optimization/56118
192         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
193         cost favor vectorized version.
195 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
197         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
198         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
199         (neg_not_op): New code attribute.
201 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
203         * ifcvt.c (noce_try_inverse_constants): New function.
204         (noce_process_if_block): Call it.
205         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
206         * optabs.def (negcc_optab, notcc_optab): Declare.
207         * optabs.c (emit_conditional_neg_or_complement): New function.
208         * doc/tm.texi (Standard Names): Document negcc, notcc names.
210 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
212         PR rtl-optimization/68236
213         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
214         if insn_queue doesn't exist.
215         (haifa_sched_finish): Reset insn_queue to NULL.
217 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
219         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
220         (build_def_use): Initialize terminated_this_insn.
221         (find_best_rename_reg): Pick and check register from the tied chain.
222         (regrename_do_replace): Mark head as renamed.
223         (struct du_head *terminated_this_insn). New static variable.
224         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
225         * regrename.h (struct du_head): Add tied_chain, renamed members.
227 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
229         PR bootstrap/68256
230         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
231         Return false.
233 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
235         PR target/57845
236         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
237         not promote the mode for aggregate types.
239 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
241         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
242         * omp-low.c (build_oacc_routine_dims): New.
244 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
246         * config/rs6000/constraints.md (wF constraint): New constraints
247         for power9/toc fusion.
248         (wG constraint): Likewise.
250         * config/rs6000/predicates.md (u6bit_cint_operand): New
251         predicate, recognize 0..63.
252         (upper16_cint_operand): New predicate for power9 and toc fusion.
253         (fpr_reg_operand): Likewise.
254         (toc_fusion_or_p9_reg_operand): Likewise.
255         (toc_fusion_mem_raw): Likewise.
256         (toc_fusion_mem_wrapped): Likewise.
257         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
258         address range.
259         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
260         instead.
261         (fusion_addis_mem_combo_load): Add support for power9 fusion of
262         floating point loads, floating point stores, and gpr stores.
263         (fusion_addis_mem_combo_store): Likewise.
264         (fusion_offsettable_mem_operand): Likewise.
266         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
267         declarations.
268         (emit_fusion_load_store): Likewise.
269         (fusion_p9_p): Likewise.
270         (expand_fusion_p9_load): Likewise.
271         (expand_fusion_p9_store): Likewise.
272         (emit_fusion_p9_load): Likewise.
273         (emit_fusion_p9_store): Likewise.
274         (fusion_wrap_memory_address): Likewise.
276         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
277         elements for power9 fusion.
278         (rs6000_debug_print_mode): Rework debug information to print more
279         information about fusion.
280         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
281         support.
282         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
283         offsettable memory address.
284         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
285         (emit_fusion_gpr_load): Move most of the code from
286         emit_fusion_gpr_load into emit_fusion-addis that handles both
287         power8 and power9 fusion.
288         (emit_fusion_addis): Likewise.
289         (emit_fusion_load_store): Likewise.
290         (fusion_wrap_memory_address): Add support for TOC fusion.
291         (fusion_split_address): Likewise.
292         (fusion_p9_p): Add support for power9 fusion.
293         (expand_fusion_p9_load): Likewise.
294         (expand_fusion_p9_store): Likewise.
295         (emit_fusion_p9_load): Likewise.
296         (emit_fusion_p9_store): Likewise.
298         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
299         new instructions in ISA 3.0.
300         (TARGET_CTZ): Likewise.
301         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
302         (TARGET_TOC_FUSION_FP): Likewise.
304         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
305         fusion unspecs.
306         (UNSPEC_FUSION_ADDIS): Likewise.
307         (QHSI mode iterator): New iterator for power9 fusion.
308         (GPR_FUSION): Likewise.
309         (FPR_FUSION): Likewise.
310         (mod<mode>3): Add support for ISA 3.0
311         modulus instructions.
312         (umod<mode>3): Likewise.
313         (divmod peephole): Likewise.
314         (udivmod peephole): Likewise.
315         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
316         instructions.
317         (ctz<mode>2_h): Likewise.
318         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
319         (ashdi3_extswsli_dot): Likewise.
320         (ashdi3_extswsli_dot2): Likewise.
321         (power9 fusion splitter): New power9/toc fusion support.
322         (toc_fusionload_<mode>): Likewise.
323         (toc_fusionload_di): Likewise.
324         (fusion_gpr_load_<mode>): Update predicate function.
325         (power9 fusion peephole2s): New power9/toc fusion support.
326         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
327         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
328         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
329         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
330         (fusion_p9_<mode>_constant): Likewise.
332 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
334         * optabs.c (prepare_libcall_arg): New function.
335         (expand_fixed_convert): Add call to prepare_libcall_arg.
337 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
339         * sched-int.h (dump_rgn_dependencies_dot): Declare
340         * sched-rgn.c (dump_rgn_dependencies_dot): New function
341         * print-rtl.h (print_insn): Add prototype
343         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
344         * common.opt (-fsched-verbose): Set default value to 1.
345         * invoke.texi (-fsched-verbose): Update the option's description.
347 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
349         * config/visium/visium.h (PRINT_OPERAND): Delete.
350         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
351         (PRINT_OPERAND_ADDRESS): Likewise.
352         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
353         to...
354         (visium_print_operand_punct_valid_p): ...this.  New function.
355         (TARGET_PRINT_OPERAND): Define to...
356         (print_operand): Rename to...
357         (visium_print_operand): ...this.
358         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
359         (visium_output_address): Rename to...
360         (visium_print_operand_address): ...this.
361         (print_operand_address): Delete.
363 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
365         PR middle-end/68259
366         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
367         Check that the type of the first operand is an aggregate type.
369 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
371         * omp-low.c: Fix some OpenACC comment typos.
372         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
373         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
374         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
376 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
378         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
380 2015-11-09  Jeff Law  <law@redhat.com>
382         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
383         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
384         Fix comment typo.
386 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
388         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
389         ISA 3.0 (power9).
390         (-mpower9-vector): Likewise.
391         (-mpower9-dform): Likewise.
392         (-mpower9-minmax): Likewise.
393         (-mtoc-fusion): Likewise.
394         (-mmodulo): Likewise.
395         (-mfloat128-hardware): Likewise.
397         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
398         mask for ISA 3.0 (power9).
399         (POWERPC_MASKS): Add new ISA 3.0 switches.
400         (power9 cpu): Add power9 cpu.
402         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
403         power9.
404         (ASM_CPU_SPEC): Likewise.
405         (EXTRA_SPECS): Likewise.
407         * config/rs6000/rs6000-opts.h (enum processor_type): Add
408         PROCESSOR_POWER9.
410         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
411         power9.
412         (rs6000_debug_reg_global): Add support for power9 fusion.
413         (rs6000_setup_reg_addr_masks): Cache mode size.
414         (rs6000_option_override_internal): Until real power9 tuning is
415         added, use -mtune=power8 for -mcpu=power9.
416         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
417         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
418         of Altivec registers.
419         (rs6000_option_override_internal): Add support for ISA 3.0
420         switches.
421         (rs6000_loop_align): Add support for power9 cpu.
422         (rs6000_file_start): Likewise.
423         (rs6000_adjust_cost): Likewise.
424         (rs6000_issue_rate): Likewise.
425         (insn_must_be_first_in_group): Likewise.
426         (insn_must_be_last_in_group): Likewise.
427         (force_new_group): Likewise.
428         (rs6000_register_move_cost): Likewise.
429         (rs6000_opt_masks): Likewise.
431         * config/rs6000/rs6000.md (cpu attribute): Add power9.
432         * config/rs6000/rs6000-tables.opt: Regenerate.
434         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
435         _ARCH_PWR9 if power9 support is available.
437         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
438         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
440         * configure.ac: Determine if the assembler supports the ISA 3.0
441         instructions.
442         * config.in (HAVE_AS_POWER9): Likewise.
443         * configure: Regenerate.
445         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
446         switches.
448 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
450         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
451         Remove integer CONST_DOUBLE handling.  It should never occur.
453 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
455         PR target/68129
456         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
457         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
458         Delete VOIDmode case.  Assert that mode is not VOIDmode.
459         * config/aarch64/predicates.md (const0_operand): Remove const_double
460         match.
462 2015-11-09  Martin Liska  <mliska@suse.cz>
464         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
465         body_info release function.
466         * ipa-prop.c (ipa_release_body_info): New function.
467         (ipa_analyze_node): Call the function.
468         (ipa_node_params::~ipa_node_params): Release known_csts.
469         * ipa-prop.h (ipa_release_body_info): Declare.
471 2015-11-09  Martin Liska  <mliska@suse.cz>
473         * gcc.c (record_temp_file): Release name string.
474         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
475         of vec.
476         * lra-lives.c (free_live_range_list): Utilize
477         lra_live_range_pool for allocation and deallocation.
478         (create_live_range): Likewise.
479         (copy_live_range): Likewise.
480         (lra_merge_live_ranges): Likewise.
481         (remove_some_program_points_and_update_live_ranges): Likewise.
482         (lra_create_live_ranges_1): Release point_freq_vec that can
483         be not freed from previous iteration of the function.
484         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
485         vec.
486         * tree-sra.c (sra_deinitialize): Release all vectors in
487         base_access_vec.
488         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
489         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
490         Release edge_info for a removed edge.
491         (thread_through_all_blocks): Free region vector.
492         * tree-ssa.h (free_dom_edge_info): Declare function extern.
494 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
496         * optabs.c (expand_vec_cond_expr): Always get sign from type.
497         * tree.c (wide_int_to_tree): Support negative values for boolean.
498         (build_nonstandard_boolean_type): Use signed type for booleans.
500 2015-11-09  Richard Biener  <rguenther@suse.de>
502         PR tree-optimization/68248
503         * tree-vect-generic.c (expand_vector_operations_1): Handle
504         scalar rhs2.
506 2015-11-09  Richard Biener  <rguenther@suse.de>
508         PR tree-optimization/56118
509         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
510         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
511         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
512         function.
513         (vect_slp_analyze_data_ref_dependences): Instead of computing
514         all dependences of the region DRs just analyze the code motions
515         SLP vectorization will perform.  Remove SLP instances that
516         cannot have their store/load motions applied.
517         (vect_analyze_data_refs): Allow DRs without a vectype
518         in BB vectorization.
520 2015-11-09  Julian Brown  <julian@codesourcery.com>
522         * final.c (output_asm_insn): Pass VOIDmode to output_address.
523         (output_address): Add MODE argument. Pass to print_operand_address
524         hook.
525         * targhooks.c (default_print_operand_address): Add MODE argument.
526         * targhooks.h (default_print_operand_address): Update prototype.
527         * output.h (output_address): Update prototype.
528         * target.def (print_operand_address): Add MODE argument.
529         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
530         output_address.
531         (print_operand): Pass access mode to output_address.
532         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
533         argument.
534         (mcore_print_operand): Update calls to mcore_print_operand_address.
535         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
536         output_address.
537         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
538         output_address.
539         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
540         global.
541         (tilegx_print_operand): Don't set above global. Update calls to
542         output_address.
543         (tilegx_print_operand_address): Add MODE argument. Use instead of
544         output_memory_reference_mode global.
545         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
546         (frv_print_operand): Pass mode to frv_print_operand_address calls.
547         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
548         output_address.
549         * config/cris/cris.c (cris_print_operand_address): Add MODE
550         argument.
551         (cris_print_operand): Pass mode to output_address calls.
552         * config/spu/spu.c (print_operand): Pass mode to output_address
553         calls.
554         * config/aarch64/aarch64.h (aarch64_print_operand)
555         (aarch64_print_operand_address): Remove prototypes.
556         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
557         global.
558         (aarch64_print_operand): Make static. Update calls to
559         output_address.
560         (aarch64_print_operand_address): Add MODE argument. Use instead of
561         aarch64_memory_reference_mode global.
562         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
563         hooks.
564         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
565         Delete macro definitions.
566         * config/pa/pa.c (pa_print_operand): Pass mode in output_address
567         calls.
568         * config/xtensa/xtensa.c (print_operand): Pass mode in
569         output_address calls.
570         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
571         argument.
572         (h83000_print_operand): Update calls to h8300_print_operand_address
573         and output_address.
574         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
575         argument.
576         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
577         global.
578         (tilepro_print_operand): Pass mode to output_address.
579         (tilepro_print_operand_address): Add MODE argument. Use instead of
580         output_memory_reference_mode.
581         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
582         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
583         to output_address calls.
584         (nvptx_print_operand_address): Add MODE argument.
585         * config/alpha/alpha.c (print_operand): Pass mode argument in
586         output_address calls.
587         * config/m68k/m68k.c (print_operand): Pass mode argument in
588         output_address call.
589         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
590         (avr_print_operand): Update calls to avr_print_operand_address.
591         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
592         argument. Update calls to output_address.
593         (sparc_print_operand): Pass mode to output_address.
594         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
595         argument.
596         (iq2000_print_operand): Pass mode in output_address calls.
597         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
598         MODE argument.
599         (xstormy16_print_operand): Pass mode to
600         xstormy16_print_operand_address calls.
601         * config/mips/mips.c (mips_print_operand): Update calls to
602         output_address.
603         (mips_print_operand_address): Add MODE argument.
604         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
605         to output_address.
606         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
607         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
608         output_address.
609         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
610         (rx_print_operand): Update calls to output_address,
611         rx_print_operand_address.
612         * config/nds32/nds32.c (nds32_print_operand): Update calls to
613         output_address.
614         (nds32_print_operand_address): Add MODE argument.
615         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
616         output_address calls.
617         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
618         output_address call.
619         (c6x_print_address_operand): Update calls to output_address.
620         (c6x_print_operand_address): Pass mode to above.
621         * config/v850/v850.c (v850_print_operand_address): Add MODE
622         argument.
623         (v850_print_operand): Pass mode to v850_print_operand_address,
624         output_address.
625         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
626         argument.
627         (mmix_print_operand): Pass mode in output_address calls.
628         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
629         (sh_print_operand): Pass mem mode to output_address,
630         sh_print_operand_address.
631         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
632         argument.
633         (cr16_print_operand): Pass mode to output_address,
634         cr16_print_operand_address.
635         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
636         output_address.
637         * config/microblaze/microblaze.c (print_operand): Pass mode to
638         output_address.
639         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
640         output_address.
641         (nios2_print_operand_address): Add MODE argument. Update call to
642         nios2_print_operand_address.
643         * config/s390/s390.c (print_operand): Pass mode to output_address.
644         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
645         argument.
646         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
647         output_address.
648         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
649         Use instead of output_memory_reference_mode.
650         (output_memory_reference_mode): Delete global.
651         (arm_print_operand): Pass mem mode to output_address.
652         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
653         argument.
654         (m32r_print_operand): Pass mode to output_address.
655         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
656         argument.
657         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
658         * config/i386/i386.c (ix86_print_operand): Pass mode to
659         output_address calls.
660         (ix86_print_operand_address): Add MODE argument.
662 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
664         PR middle-end/68251
665         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
666         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
667         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
668         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
670 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
672         PR rtl-optimization/67749
673         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
674         case before emitting the two blocks.  Instead modify the register
675         in the corresponding final insn of the basic block.
677 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
679         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
680         assembler syntax.
681         Support Solaris ld.
682         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
684         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
685         HAVE_INITFINI_ARRAY_SUPPORT.
686         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
687         value.
689         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
690         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
691         Don't check HAVE_AS_SPARC_NOBITS.
692         Heed SECTION_NOTYPE.
694         * configure: Regenerate.
695         * config.in: Regenerate.
697 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
699         PR middle-end/68253
700         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
702 2015-11-09  Richard Henderson  <rth@redhat.com>
704         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
705         __SEG_GS, __SEG_TLS.
706         (ix86_register_pragmas): Register address spaces __seg_fs,
707         __seg_gs, __seg_tls.
708         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
709         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
710         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
711         * config/i386/i386.c (ix86_decompose_address): Likewise.
712         (ix86_legitimate_address_p): Likewise.
713         (memory_address_length): Likewise.  Check mem address space too.
714         (ix86_print_operand): Use ix86_print_operand_address_as.
715         (ix86_print_operand_address_as): Rename from
716         ix86_print_operand_address, add new addr_space_t parameter.
717         Validate that either the parameter or the ix86_address segment
718         is default address space.  Handle ADDR_SPACE_SEG_TLS.
719         (ix86_print_operand_address): New.
720         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
721         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
722         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
723         (ix86_addr_space_zero_address_valid): New.
724         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
725         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
726         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
727         * config/i386/predicates.md (address_no_seg_operand): Likewise.
728         (vsib_address_operand): Likewise.
729         (address_mpx_no_base_operand): Likewise.
730         (address_mpx_no_index_operand): Likewise.
731         * doc/extend.texi (x86 Named Address Spaces): New section.
733         * config/i386/i386.c (ix86_check_no_addr_space): New.
734         (decide_alg): Add have_as parameter.
735         (alg_usable_p): Likewise; disable rep algorithms if set.
736         (ix86_expand_set_or_movmem): Notice if either MEM has a
737         non-default address space.
738         (ix86_expand_strlen): Likewise.
739         * config/i386/i386.md (strmov, strset): Likewise.
740         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
741         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
742         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
743         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
744         *cmpstrnqi_1, *strlenqi_1): Likewise.
746         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
747         (*movabs<mode>_2): Likewise.
749         * dwarf2out.c (modified_type_die): Pass the address space number
750         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
751         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
752         * targhooks.c (default_addr_space_debug): New.
753         * targhooks.h (default_addr_space_debug): Declare.
754         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
755         * doc/tm.texi: Rebuild.
757         * gimple.c (check_loadstore): Return false when 0 is a valid address.
758         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
759         null when 0 is valid in the source address space.
760         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
761         * targhooks.c (default_addr_space_zero_address_valid): New.
762         * targhooks.h (default_addr_space_zero_address_valid): Declare.
763         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
764         * doc/tm.texi: Rebuild.
766         * cselib.c (add_mem_for_addr): Compare address spaces when
767         matching memories.
768         (cselib_lookup_mem): Likewise.
769         * fold-const.c (operand_equal_p): Check address spaces of
770         pointer types before checking integer constants.
772         PR tree-opt/66768
773         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
774         the correct type for the base.
776 2015-11-09  Jeff Law  <law@redhat.com>
778         * tree-into-ssa.c (names_to_release): No longer static.
779         * tree-into-ssa.h (names_to_release): Declare.
780         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
781         (release_free_names_and_compact_live_names): New function extracted
782         from pass_release_ssa_names::execute.
783         (pass_release_ssa_names::execute): Use it.
785 2015-11-09  Alan Modra  <amodra@gmail.com>
787         * gensupport.c (add_mnemonic_string): Make len param a size_t.
788         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
789         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
790         return value.
792 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
794         PR rtl-optimization/68182
795         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
796         branch with only one successor just like unconditional branches.
798 2015-11-08  Jeff Law  <law@redhat.com>
800         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
801         non-FSM path has no edges marked with EDGE_DFS_BACK.
802         (ssa_redirect_edges): No longer call mark_loop_for_removal.
803         (thread_single_edge, def_split_header_continue_p): Remove.
804         (bb_ends_with_multiway_branch): Likewise.
805         (thread_through_loop_header): Remove cases of threading from
806         latch through the header.  Simplify knowing we won't thread
807         the latch.
808         (thread_through_all_blocks): Simplify knowing that only the FSM
809         threader needs to handle backedges.
811 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
813         * doc/extend.texi (type attributes): Document scalar_storage_order.
814         (Structure-Packing Pragmas): Rename into...
815         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
816         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
817         (Warnings): Document -Wno-scalar-storage-order.
818         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
819         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
820         extract_bit_field and store_bit_field.
821         (initialize_argument_information): Adjust call to store_expr.
822         (load_register_parameters): Adjust call to extract_bit_field.
823         * expmed.c (check_reverse_storage_order_support): New function.
824         (check_reverse_float_storage_order_support): Likewise.
825         (flip_storage_order): Likewise.
826         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
827         of the value if it is true.  Pass REVERSE to recursive call after
828         adjusting the target offset.
829         Do not use extraction or movstrict instruction if REVERSE is true.
830         Pass REVERSE to store_fixed_bit_field.
831         (store_bit_field): Add REVERSE parameter and pass to it to above.
832         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
833         store_split_bit_field and store_fixed_bit_field_1.
834         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
835         order of the value if it is true and adjust the target offset.
836         (store_split_bit_field): Add REVERSE parameter and pass it to
837         store_fixed_bit_field.  Adjust the target offset if it is true.
838         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
839         of the value if it is true.  Pass REVERSE to recursive call after
840         adjusting the target offset.
841         Do not use extraction or subreg instruction if REVERSE is true.
842         Pass REVERSE to extract_fixed_bit_field.
843         (extract_bit_field): Add REVERSE parameter and pass to it to above.
844         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
845         extract_split_bit_field and extract_fixed_bit_field_1.
846         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
847         order of the value if it is true and adjust the target offset.
848         (extract_split_bit_field): Add REVERSE parameter and pass it to
849         extract_fixed_bit_field.  Adjust the target offset if it is true.
850         * expmed.h (flip_storage_order): Declare.
851         (store_bit_field): Adjust prototype.
852         (extract_bit_field): Likewise.
853         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
854         (emit_group_store): Adjust call to store_bit_field.
855         (copy_blkmode_from_reg): Likewise.
856         (copy_blkmode_to_reg): Likewise.
857         (write_complex_part): Likewise.
858         (read_complex_part): Likewise.
859         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
860         that it isn't true if the target is a register.
861         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
862         and flip the storage order of the value.
863         <BIT_IOR_EXPR>: Flip the storage order of the value.
864         (get_bit_range): Adjust call to get_inner_reference.
865         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
866         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
867         with reverse storage order.
868         (store_expr_with_bounds): Add REVERSE parameter and pass it to
869         recursive calls and call to store_bit_field.  Force the value into a
870         register if it is true and then flip the storage order of the value.
871         (store_expr): Add REVERSE parameter and pass it to above.
872         (categorize_ctor_elements_1): Adjust call to
873         initializer_constant_valid_p.
874         (store_constructor_field): Add REVERSE parameter and pass it to
875         recursive calls and call to store_field.
876         (store_constructor): Add REVERSE parameter and pass it to calls to
877         store_constructor_field and store_expr.  Set it to true for an
878         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
879         (store_field): Add REVERSE parameter and pass it to recursive calls
880         and calls to store_expr and store_bit_field.  Temporarily flip the
881         storage order of the value with record type and integral mode and
882         adjust the shift if it is true.
883         (get_inner_reference): Add PREVERSEP parameter and set it to true
884         upon encoutering a reference with reverse storage order.
885         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
886         (expand_constructor): Adjust call to store_constructor.
887         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
888         of the union type to store_expr in the MEM case and assert that it
889         isn't set in the REG case.  Adjust call to store_field.
890         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
891         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
892         get_inner_reference and extract_bit_field. Temporarily flip the
893         storage order of the value with record type and integral mode and
894         adjust the shift if it is true.  Flip the storage order of the value
895         at the end if it is true.
896         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
897         get_inner_reference.  Do not fetch an inner reference if it is true.
898         * expr.h (store_expr_with_bounds): Ajust prototype.
899         (store_expr): Likewise.
900         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
901         REF_REVERSE_STORAGE_ORDER on the reference according to it.
902         (optimize_bit_field_compare): Deal with reverse storage order.
903         Adjust calls to get_inner_reference and make_bit_field_ref.
904         (decode_field_reference): Add PREVERSEP parameter and adjust call to
905         get_inner_reference.
906         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
907         to decode_field_reference and make_bit_field_ref.
908         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
909         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
910         (fold_comparison): Adjust call to get_inner_reference.
911         (split_address_to_core_and_offset): Adjust call to
912         get_inner_reference.
913         * gimple-expr.c (useless_type_conversion_p): Return false for array
914         types with different TYPE_REVERSE_STORAGE_ORDER flag.
915         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
916         REF_REVERSE_STORAGE_ORDER flag.
917         * lto-streamer-out.c (hash_tree): Deal with
918         TYPE_REVERSE_STORAGE_ORDER.
919         * output.h (assemble_real): Adjust prototype.
920         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
921         * stor-layout.c (finish_record_layout): Propagate the
922         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
923         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
924         (TYPE_SATURATING): Adjust.
925         (REF_REVERSE_STORAGE_ORDER): Document.
926         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
927         set it to true upon encoutering a reference with reverse storage
928         order.
929         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
930         * tree-inline.c (remap_gimple_op_r): Propagate the
931         REF_REVERSE_STORAGE_ORDER flag.
932         (copy_tree_body_r): Likewise.
933         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
934         store_expr.
935         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
936         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
937         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
938         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
939         REF_REVERSE_STORAGE_ORDER flag.
940         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
941         (gimple_canonical_types_compatible_p): Likewise.
942         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
943         (TYPE_SATURATING): Adjust.
944         (REF_REVERSE_STORAGE_ORDER): New flag.
945         (reverse_storage_order_for_component_p): New inline predicate.
946         (storage_order_barrier_p): Likewise.
947         (get_inner_reference): Adjust prototype.
948         * varasm.c: Include expmed.h.
949         (assemble_variable_contents): Adjust call to output_constant.
950         (assemble_real): Add REVERSE parameter.  Flip the storage
951         order of the value if REVERSE is true.
952         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
953         (assemble_constant_contents): Adjust call to output_constant.
954         (output_constant_pool_2): Adjust call to assemble_real.
955         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
956         TYPE_REVERSE_STORAGE_ORDER.
957         (initializer_constant_valid_p): Add REVERSE parameter.
958         (output_constant): Add REVERSE parameter.
959         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
960         <REAL_TYPE>: Adjust call to assemble_real.
961         <COMPLEX_TYPE>: Pass it to recursive calls.
962         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
963         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
964         (struct oc_local_state): Add REVERSE field.
965         (output_constructor_array_range): Adjust calls to output_constant.
966         (output_constructor_regular_field): Likewise.
967         (output_constructor_bitfield): Adjust call to output_constructor.
968         Flip the storage order of the value if REVERSE is true.
969         (output_constructor): Add REVERSE parameter.  Set it to true for an
970         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
971         output_constructor_bitfield.
972         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
973         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
974         * builtins.c (get_object_alignment_2): Likewise.
975         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
976         and get_ref_base_and_extent.
977         * dbxout.c (dbxout_expand_expr): Likewise.
978         * dwarf2out.c (add_var_loc_to_decl): Likewise.
979         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
980         (loc_list_from_tree): Likewise.
981         (fortran_common): Likewise.
982         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
983         get_ref_base_and_extent.
984         (get_base_constructor): Likewise.
985         (fold_const_aggregate_ref_1): Likewise.
986         * gimple-laddress.c (pass_laddress::execute): Adjust call to
987         get_inner_reference.
988         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
989         get_inner_reference and bail out on reverse storage order.
990         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
991         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
992         build_ref_for_offset.
993         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
994         get_ref_base_and_extent.
995         (ipa_polymorphic_call_context): Likewise.
996         (extr_type_from_vtbl_ptr_store): Likewise.
997         (check_stmt_for_type_change): Likewise.
998         (get_dynamic_type): Likewise.
999         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1000         get_ref_base_and_extent.
1001         (compute_complex_assign_jump_func): Likewise.
1002         (get_ancestor_addr_info): Likewise.
1003         (compute_known_type_jump_func): Likewise.
1004         (determine_known_aggregate_parts): Likewise.
1005         (ipa_get_adjustment_candidate): Likewise.
1006         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1007         MEM_REF.
1008         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1009         (build_ref_for_offset): Adjust prototype.
1010         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1011         get_inner_reference.
1012         * tree-affine.c (tree_to_aff_combination): Adjust call to
1013         get_inner_reference.
1014         (get_inner_reference_aff): Likewise.
1015         * tree-data-ref.c (split_constant_offset_1): Likewise.
1016         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
1017         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1018         get_inner_reference.
1019         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1020         (dump_access): Print new fields.
1021         (create_access): Adjust call to get_ref_base_and_extent and set the
1022         REVERSE flag according to the result.
1023         (completely_scalarize_record): Set the REVERSE flag.
1024         (scalarize_elem): Add REVERSE parameter.
1025         (build_access_from_expr_1): Preserve storage order barriers.
1026         (build_accesses_from_assign): Likewise.
1027         (build_ref_for_offset): Add REVERSE parameter and set the
1028         REF_REVERSE_STORAGE_ORDER flag accordingly.
1029         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1030         the REF_REVERSE_STORAGE_ORDER flag if there are components.
1031         (analyze_access_subtree): Likewise.
1032         (create_artificial_child_access): Set the REVERSE flag.
1033         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1034         (turn_representatives_into_adjustments): Propagate REVERSE flag.
1035         (ipa_sra_check_caller): Adjust call to get_inner_reference.
1036         * tree-ssa-alias.c (ao_ref_base): Adjust call to
1037         get_ref_base_and_extent.
1038         (aliasing_component_refs_p): Likewise.
1039         (stmt_kills_ref_p_1): Likewise.
1040         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1041         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1042         Return true if reverse storage order.
1043         <BIT_FIELD_REF>: Likewise.
1044         <COMPONENT_REF>: Likewise.
1045         <ARRAY_REF>: Likewise.
1046         <ARRAY_RANGE_REF>: Likewise.
1047         (split_address_cost): Likewise.  Bail out if reverse storage order.
1048         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1049         get_inner_reference.  Bail out if reverse storage order.
1050         (bswap_replace): Adjust call to get_inner_reference.
1051         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1052         the REF_REVERSE_STORAGE_ORDER flag.
1053         <BIT_FIELD_REF>: Likewise.
1054         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1055         barriers.
1056         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1057         to the REF_REVERSE_STORAGE_ORDER flag.
1058         <BIT_FIELD_REF>: Likewise.
1059         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1060         (contains_storage_order_barrier_p): New predicate.
1061         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1062         Punt on storage order barriers if necessary.
1063         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1064         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1065         call to get_ref_base_and_extent.
1066         (do_structure_copy): Likewise.
1067         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1068         get_inner_reference.
1069         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
1070         order.
1071         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1072         * ubsan.c (instrument_bool_enum_load): Likewise.
1073         (instrument_object_size): Likewise.
1074         * var-tracking.c (track_expr_p): Adjust call to
1075         get_ref_base_and_extent
1076         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1077         get_inner_reference.
1078         * config/s390/s390.c (s390_expand_atomic): Adjust call to
1079         store_bit_field.
1080         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1081         extract_bit_field.
1082         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1084 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1086         * config/sparc/sparc.opt (mfix-at697f): Add final period.
1088 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
1090         PR rtl-optimization/67864
1091         * common/config/i386/i386-common.c (ix86_option_optimization_table)
1092         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1093         at -Os and up.
1095 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1097         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1098         internal functions.
1100 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1102         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1103         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1105 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1107         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1108         * internal-fn.c: Don't undef it here.
1109         * tree-core.h: Likewise.
1111 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1113         * builtins.c (fold_builtin_nan): Delete.
1114         (fold_builtin_memcmp): Remove case where both arguments are constant.
1115         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1116         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1117         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1118         * fold-const-call.c: Include fold-const.h.
1119         (host_size_t_cst_p): New function.
1120         (build_cmp_result, fold_const_builtin_nan): Likewise.
1121         (fold_const_call_1): New function, split out from...
1122         (fold_const_call): ...here (for all three interfaces).  Handle
1123         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1125 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1127         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1128         (fold_builtin_1): Don't call them.
1129         * fold-const-call.c: Include tm.h.
1130         (fold_const_call_ss): New variant for integer-to-integer folds.
1131         (fold_const_call): Call it.
1133 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1135         * builtins.c (fold_builtin_classify): Move constant cases to...
1136         * fold-const-call.c (fold_const_call_ss): ...here.
1138 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1140         * builtins.h (c_getstr): Move to...
1141         * fold-const.h (c_getstr): ...here.
1142         * builtins.c (c_getstr): Move to...
1143         * fold-const.c (c_getstr): ...here.
1145 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1147         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1148         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1150 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1152         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1153         the dominance info; free it if we can't.
1154         (pass_call_cdce::execute): Don't free the dominance info here.
1156 2015-11-06  Jeff Law <law@redhat.com>
1158         * tree-ssa-threadedge.c (dummy_simplify): Remove.
1159         (thread_around_empty_blocks): Remove backedge_seen_p argument.
1160         If we thread to a backedge, then return false.  Update recursive
1161         call to eliminate backedge_seen_p argument.
1162         (thread_through_normal_block): Remove backedge_seen_p argument.
1163         Remove backedge_seen_p argument from calls to
1164         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
1165         If we thread to a backedge, then return 0.
1166         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
1167         pass it to thread_through_normal_block or thread_through_empty_blocks.
1168         For joiner handling, if we see a backedge, do not try normal
1169         threading.
1171 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1173         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1174         * graphite-poly.c (new_scop): Initialize original_schedule.
1175         (free_scop): Free original_schedule.
1176         * graphite-poly.h (struct scop): Add field original_schedule.
1177         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1178         (build_poly_scop): Call build_scop_original_schedule.
1180 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1182         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1183         (build_pbb_minimal_scattering_polyhedrons): New.
1184         (build_scop_scattering): Remove.
1185         (build_scop_minimal_scattering): New.
1186         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1187         (build_poly_scop): Call build_scop_minimal_scattering.
1189 2015-11-06  Jeff Law <law@redhat.com>
1191         * cfg-flags.def (IGNORE): New edge flag.
1192         * tree-vrp.c (identify_jump_threads): Mark and clear edges
1193         scheduled for removal with EDGE_IGNORE around call into
1194         jump threader.  Do no thread across edges with EDGE_IGNORE,
1195         but do allow threading across those with EDGE_DFS_BACK.
1197 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
1199         * doc/md.texi (multi-alternative constraints): Don't document
1200         alternatives inherently tied to reload for the user documentation.
1202 2015-11-06  Michael Collison  <michael.collison@linaro.org
1203             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1205         Revert:
1206         2015-08-01  Michael Collison  <michael.collison@linaro.org
1207                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1209         * config/arm/arm.md (*arm_smin_cmp): New pattern.
1210         (*arm_umin_cmp): Likewise.
1212 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
1214         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1215         wording.
1216         * omp-low.c (check_omp_nesting_restrictions): Update for the
1217         various new OpenMP 4.5 nesting restrictions, clarified
1218         nesting glossary, closely nested region relationship clarified
1219         to mean explicit or implicit parallel regions (target/teams),
1220         use %</%> or %qs where appropriate.
1222 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1223             Sebastian Pop  <s.pop@samsung.com>
1225         * graphite-scop-detection.c (loop_is_valid_scop): Call
1226         optimize_loop_nest_for_speed_p.
1228 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1229             Sebastian Pop  <s.pop@samsung.com>
1231         * graphite-optimize-isl.c (optimize_isl): Call
1232         isl_options_set_schedule_maximize_band_depth.
1234 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1235             Sebastian Pop  <s.pop@samsung.com>
1237         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1238         and exit edges should not be a part of irreducible loop.
1239         (scop_detection::can_represent_loop_1): Loops should not be
1240         irreducible.
1241         (scop_detection::harmful_stmt_in_region): All the basic block
1242         should belong to reducible loops.
1244 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
1246         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1247         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1248         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1249         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1250         (aarch64_tbx4v8qi): Rename to...
1251         aarch64_tbx4<mode>): ... this.
1252         (aarch64_qtbl3<mode>): New pattern.
1253         (aarch64_qtbx3<mode>): New pattern.
1254         (aarch64_qtbl4<mode>): New pattern.
1255         (aarch64_qtbx4<mode>): New pattern.
1256         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1257         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1258         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1259         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1260         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1261         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1262         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1263         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1264         functions.
1266 2015-11-06  Mike Stump  <mikestump@comcast.net>
1268         PR debug/66728
1269         * dwarf2out.c (get_full_len): Return a value based upon the actual
1270         precision needed for the value.
1271         (add_const_value_attribute): Use a maximal wide-int for
1272         CONST_WIDE_INTs, not VOIDmode.
1273         (output_die): Don't ever output NULL with printf.
1275         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1276         BLKmode nor VOIDmode values.
1278 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1280         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1281         and "range2".
1282         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1283         * diagnostic-core.h (warning_at_rich_loc): New declaration.
1284         (error_at_rich_loc): New declaration.
1285         (permerror_at_rich_loc): New declaration.
1286         (inform_at_rich_loc): New declaration.
1287         * diagnostic-show-locus.c (adjust_line): Delete.
1288         (struct point_state): New struct.
1289         (class colorizer): New class.
1290         (class layout_point): New class.
1291         (class layout_range): New class.
1292         (struct line_bounds): New.
1293         (class layout): New class.
1294         (colorizer::colorizer): New ctor.
1295         (colorizer::~colorizer): New dtor.
1296         (layout::layout): New ctor.
1297         (layout::print_source_line): New method.
1298         (layout::print_annotation_line): New method.
1299         (layout::get_state_at_point): New method.
1300         (layout::get_x_bound_for_row): New method.
1301         (diagnostic_show_locus): Reimplement in terms of class layout.
1302         (diagnostic_print_caret_line): Delete.
1303         * diagnostic.c (diagnostic_initialize): Replace
1304         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1305         (diagnostic_set_info_translated): Convert param from location_t
1306         to rich_location *.  Eliminate calls to set_location on the
1307         message in favor of storing the rich_location ptr there.
1308         (diagnostic_set_info): Convert param from location_t to
1309         rich_location *.
1310         (diagnostic_build_prefix): Break out array into...
1311         (diagnostic_kind_color): New variable.
1312         (diagnostic_get_color_for_kind): New function.
1313         (diagnostic_report_diagnostic): Colorize the option_text
1314         using the color for the severity.
1315         (diagnostic_append_note): Update for change in signature of
1316         diagnostic_set_info.
1317         (diagnostic_append_note_at_rich_loc): New function.
1318         (emit_diagnostic): Update for change in signature of
1319         diagnostic_set_info.
1320         (inform): Likewise.
1321         (inform_at_rich_loc): New function.
1322         (inform_n): Update for change in signature of diagnostic_set_info.
1323         (warning): Likewise.
1324         (warning_at): Likewise.
1325         (warning_at_rich_loc): New function.
1326         (warning_n): Update for change in signature of diagnostic_set_info.
1327         (pedwarn): Likewise.
1328         (permerror): Likewise.
1329         (permerror_at_rich_loc): New function.
1330         (error): Update for change in signature of diagnostic_set_info.
1331         (error_n): Likewise.
1332         (error_at): Likewise.
1333         (error_at_rich_loc): New function.
1334         (sorry): Update for change in signature of diagnostic_set_info.
1335         (fatal_error): Likewise.
1336         (internal_error): Likewise.
1337         (internal_error_no_backtrace): Likewise.
1338         (source_range::debug): New function.
1339         * diagnostic.h (struct diagnostic_info): Eliminate field
1340         "override_column".  Add field "richloc".
1341         (struct diagnostic_context): Add field "colorize_source_p".
1342         (diagnostic_override_column): Delete.
1343         (diagnostic_set_info): Convert param from location_t to
1344         rich_location *.
1345         (diagnostic_set_info_translated): Likewise.
1346         (diagnostic_append_note_at_rich_loc): New function.
1347         (diagnostic_num_locations): New function.
1348         (diagnostic_expand_location): Get the location from the
1349         rich_location.
1350         (diagnostic_print_caret_line): Delete.
1351         (diagnostic_get_color_for_kind): New declaration.
1352         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1353         (error_cb): Update for change in signature of "error" callback.
1354         (fatal_at): Likewise.
1355         (warning_at): Likewise.
1356         * input.c (linemap_client_expand_location_to_spelling_point): New.
1357         * pretty-print.c (text_info::set_range): New method.
1358         (text_info::get_location): New method.
1359         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1360         (struct text_info): Eliminate "locations" array in favor of
1361         "m_richloc", a rich_location *.
1362         (textinfo::set_location): Add a "caret_p" param, and reimplement
1363         in terms of a call to set_range.
1364         (textinfo::get_location): Eliminate inline implementation in favor of
1365         an out-of-line reimplementation.
1366         (textinfo::set_range): New method.
1367         * rtl-error.c (diagnostic_for_asm): Update for change in signature
1368         of diagnostic_set_info.
1369         * tree-diagnostic.c (default_tree_printer): Update for new
1370         "caret_p" param for textinfo::set_location.
1371         * tree-pretty-print.c (percent_K_format): Likewise.
1373 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1375         Properly apply.
1376         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1377         * config/aarch64/aarch64.c
1378         (aarch64_can_use_per_function_literal_pools_p): New.
1379         (aarch64_use_blocks_for_constant_p): Adjust declaration
1380         and use aarch64_can_use_function_literal_pools_p.
1381         (aarch64_select_rtx_section): Update.
1383 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1385         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1386         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1387         (arm_output_multireg_pop): Likewise.
1388         (output_move_double):  Likewise.
1389         (output_move_quad):  Likewise.
1390         (output_return_instruction): Likewise.
1391         (arm_print_operand): Remove support for %( and %. print modifiers.
1392         (arm_output_shift): Make unified asm.
1393         (arm_declare_function_name): Likewise.
1394         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1395         (ASM_APP_OFF): Adjust.
1396         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1397         (ASM_OUTPUT_REG_POP): Likewise.
1398         * config/arm/arm.md: Adjust uses of %., %(, %)
1399         * config/arm/sync.md: Likewise.
1400         * config/arm/thumb2.md: Likewise.
1401         * config/arm/ldmstm.md: Regenerate.
1402         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1403         * doc/invoke.texi (masm-unified-syntax): Update documentation.
1405 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1407         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1409 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1411         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1412         add OEP_MATCH_SIDE_EFFECTS.
1413         * fold-const.c (operand_equal_p): Update documentation; handle
1414         OEP_MATCH_SIDE_EFFECTS.
1415         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1416         OEP_MATCH_SIDE_EFFECTS.
1418 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
1419             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1421         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1422         * config/aarch64/aarch64-protos.h: Declare.
1423         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1424         frsqrts.
1425         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1426         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1427         code when applicable.
1428         * config/aarch64/aarch64.md: Added enum entries.
1429         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1430         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1431         macros for assembly checks.
1432         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1433         frsqrts and frsqrte are not emitted.
1434         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1435         frsqrts and frsqrte are emitted.
1436         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1438 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1440         PR ipa/68057
1441         PR ipa/68220
1442         * ipa-polymorphic-call.c
1443         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1444         issue when offset is out of range.
1445         (contains_type_p): Fix out of range check, clear dynamic flag.
1447 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
1449         * config.gcc (e6500): Fix cpu_is_64bit typo.
1451 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
1453         * tree-sra.c (completely_scalarize): Properly handle negative array
1454         indices using offset_int.
1456 2015-11-06  Richard Biener  <rguenther@suse.de>
1458         * alloc-pool.h (object_allocator::allocate): Default-initialize
1459         object.
1461 2015-11-06  Richard Biener  <rguenther@suse.de>
1463         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1464         * lra.c (init_reg_info): Truncate copy_vec instead of
1465         re-allocating a new one and leaking the old.
1466         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1467         bb_infos vec.
1468         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1469         * postreload-gcse.c (free_mem): Free modify_mem_list and
1470         canon_modify_mem_list.
1472 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
1474         PR tree-optimization/68145
1475         * tree-vect-stmts.c (vectorizable_operation): Fix
1476         determination for booleans.
1478 2015-11-06  Tom de Vries  <tom@codesourcery.com>
1480         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1481         cond_jump, instead of split after last nondebug insn before cond_jump.
1482         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1483         returning.
1485 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1487         PR target/68088
1488         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1489         subregs from accumulator and make sure it's a register.
1491 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
1493         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1494         low part to scalar.
1495         (reduc_uplus_<mode>): Remove.
1496         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1497         loongson_extract_lo_<mode>.
1498         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1499         reduc_smax_<mode>, reduc_smax_<mode>, use vec
1500         loongson_extract_lo_<mode>.
1501         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1503 2015-11-06  Richard Biener  <rguenther@suse.de>
1505         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1506         members.
1507         (vect_stmt_in_region_p): Declare.
1508         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1509         (destroy_bb_vec_info): Likewise.
1510         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1511         (vect_get_and_check_slp_defs): Likewise.
1512         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1513         (vect_slp_bb): Likewise.
1514         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1515         in terms of vect_stmt_in_region_p.
1516         (vect_pattern_recog): Iterate over the BB region.
1517         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1518         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1519         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1520         * config/i386/i386.c: Include gimple-iterator.h.
1521         * config/aarch64/aarch64.c: Likewise.
1523 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
1525         PR rtl-optimization/67753
1526         PR rtl-optimization/64164
1527         * function.c (assign_parm_setup_block): Avoid allocating a
1528         stack slot if we don't have an ABI-reserved one.  Emit the
1529         copy to target_reg in the conversion seq if the copy from
1530         entry_parm is in it too.  Don't use the conversion seq to copy
1531         a PARALLEL to a REG or a CONCAT.
1533 2015-11-06  Richard Biener  <rguenther@suse.de>
1535         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1536         equal_keys.
1538 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
1539             Thomas Schwinge  <thomas@codesourcery.com>
1540             James Norris  <jnorris@codesourcery.com>
1543         * gimplify.c (gimplify_scan_omp_clauses): Add support for
1544         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
1545         (gimplify_adjust_omp_clauses): Likewise.
1546         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1547         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1548         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1549         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1550         (omp_clause_code_name): Likewise.
1551         (walk_tree_1): Handle OMP_CLAUSE_TILE.
1552         * tree.h (OMP_TILE_LIST): New macro.
1554 2015-11-05  Martin Sebor  <msebor@redhat.com>
1556         PR c++/67942
1557         * doc/invoke.texi (-Wplacement-new): Document new option.
1559 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
1561         PR tree-optimization/65963
1562         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1563         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1565 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
1567         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1568         (noce_convert_multiple_sets): Likewise.
1569         (noce_process_if_block): Call them.
1571 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1573         * gimple-fold.c: Include omp-low.h.
1574         (fold_internal_goacc_dim): New.
1575         (gimple_fold_call): Call it.
1577 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
1578             Ilya Verbin  <ilya.verbin@intel.com>
1580         * builtin-types.def
1581         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1582         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1583         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1584         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1585         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1586         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1587         (struct cgraph_simd_clone_arg): Adjust comment.
1588         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1589         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
1590         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1591         to GOMP_target_data_ext.
1592         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1593         to GOMP_target_update_ext.
1594         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1595         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1596         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1597         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1598         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1599         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1600         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1601         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1602         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1603         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1604         * tree-core.h (enum omp_clause_schedule_kind): Add
1605         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1606         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1607         OMP_CLAUSE_SCHEDULE_LAST value.
1608         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1609         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1610         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1611         OMP_FOR_CHECK.  Remove comment.
1612         * tree-pretty-print.c (dump_omp_clause): Handle
1613         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1614         Simplify.  Print schedule clause modifiers.
1615         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1616         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1617         cases.
1618         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1619         (omp_default_clause): Tweak for
1620         private/firstprivate/is_device_ptr variables on target
1621         construct and use_device_ptr on target data.
1622         (omp_check_private): Likewise.
1623         (omp_notice_variable): For references check whether what it refers
1624         to has mappable type, rather than the reference itself.
1625         (omp_is_private): Diagnose linear iteration variables on non-simd
1626         constructs.
1627         (omp_no_lastprivate): Return true only for Fortran.
1628         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1629         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1630         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1631         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1632         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
1633         lastprivate and linear when combined with distribute.  Gimplify
1634         variable low-bound for array reduction.  Look through
1635         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1636         reductions.
1637         (gimplify_adjust_omp_clauses_1): For implicit references to
1638         variables with reference type and when not ref to scalar or
1639         ref to pointer, map what they refer to using tofrom and
1640         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1641         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1642         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1643         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
1644         Diagnose the same var on both firstprivate and lastprivate on
1645         distribute construct.
1646         (gimplify_omp_for): Fix up handling of predetermined
1647         lastprivate or linear iter vars when combined with distribute.
1648         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1649         functions.
1650         (gimplify_omp_workshare): Call optimize_target_teams.
1651         * omp-low.c (struct omp_region): Add sched_modifiers field.
1652         (struct omp_for_data): Likewise.
1653         (omp_any_child_fn_dumped): New variable.
1654         (extract_omp_for_data): Fill in sched_modifiers, and mask out
1655         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1656         from sched_kind.
1657         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1658         bits of OMP_CLAUSE_SCHED_KIND.
1659         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1660         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
1661         for array section reductions.
1662         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1663         for distribute parallel for, if there are lastprivate clauses on the
1664         for.
1665         (lower_rec_input_clauses): Handle non-zero low-bound on array
1666         section reductions.
1667         (lower_reduction_clauses): Likewise.
1668         (lower_send_clauses): Look through POINTER_PLUS_EXPR
1669         for array section reductions.
1670         (expand_parallel_call): Use nonmonotonic entrypoints for
1671         nonmonotonic: dynamic/guided.
1672         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1673         child_fn if current_function_decl has assembler name set, but child_fn
1674         does not.  Dump the header and IL of the child function when not in SSA
1675         form.
1676         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
1677         arguments to BUILT_IN_GOMP_TARGET.
1678         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1679         Initialize the extra _looptemp_ clause to fd->loop.n2.
1680         (expand_omp_for): Use nonmonotonic entrypoints for
1681         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
1682         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
1683         again if we have dumped any child functions.
1684         (lower_omp_for_lastprivate): Determine the right count variable
1685         for distribute simd, or distribute parallel for{, simd}.
1686         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1687         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
1688         support.
1689         (simd_clone_clauses_extract): Handle variable step
1690         for references and arguments passed by reference.
1691         (simd_clone_mangle): Mangle ref/uval/val variable steps.
1692         (simd_clone_adjust_argument_types): Handle
1693         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1694         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1695         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1696         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1697         (simd_clone_linear_addend): New function.
1698         (simd_clone_adjust): Handle variable step like similarly
1699         to constant step, use simd_clone_linear_addend to determine
1700         the actual step at runtime.
1702 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1704         * target.def (goacc.dim_limit): New hook.
1705         * targhooks.h (default_goacc_dim_limit): Declare.
1706         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1707         * doc/tm.texi: Rebuilt.
1708         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1709         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1710         (default_goacc_dim_limit): New.
1711         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1712         (nvptx_goacc_dim_limit) New.
1713         (TARGET_GOACC_DIM_LIMIT): Override.
1714         * tree-vrp.c: Include omp-low.h, target.h.
1715         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1716         IFN_GOACC_DIM_POS.
1718 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
1720         * tree-vect-generic.c (do_compare): Use -1 for true
1721         result instead of 1.
1723 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1725         * config/aarch64/aarch64.c
1726         (aarch64_can_use_per_function_literal_pools_p): New.
1727         (aarch64_use_blocks_for_constant_p): Adjust declaration
1728         and use aarch64_can_use_function_literal_pools_p.
1729         (aarch64_select_rtx_section): Update.
1731 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
1733         * targhooks.c (default_get_mask_mode): Use BLKmode in
1734         case target doesn't support required vector mode.
1735         * stor-layout.c (layout_type); Check for BLKmode.
1737 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
1738             Sebastian Pop  <s.pop@samsung.com>
1740         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1741         Remove use of parameter_rename_map.
1742         (copy_def): Remove.
1743         (copy_internal_parameters): Remove.
1744         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1745         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1746         (free_sese_info): Do not free parameter_rename_map.
1747         (set_rename): Do not use parameter_rename_map.
1748         (rename_uses): Update call to set_rename.
1749         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1750         * sese.h (parameter_rename_map_t): Remove.
1751         (struct sese_info_t): Remove field parameter_rename_map.
1753 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
1754             Sebastian Pop  <s.pop@samsung.com>
1756         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1757         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1758         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1759         anonymous namespace.
1760         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1761         (isl_id_for_pbb): Use a buffer of size 10.
1762         (isl_id_for_ssa_name): Same.
1763         * sese.c (set_rename): Add more dumps.
1765 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1767         * omp-low.c (struct omp_context): Remove reduction_map field.
1768         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1769         (new_omp_context, delete_omp_context, scan_omp_target): Remove
1770         reduction_map handling.
1771         (lower_omp_target): Remove obsolete openacc reduction handling.
1773 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1775         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1777 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1778             Cesar Philippidis  <cesar@codesourcery.com>
1780         * config/nvptx/nvptx.c: Include gimple headers.
1781         (worker_red_size, worker_red_align, worker_red_name,
1782         worker_red_sym): New.
1783         (nvptx_option_override): Initialize worker reduction buffer.
1784         (nvptx_file_end): Write out worker reduction buffer var.
1785         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1786         nvptx_expand_cmp_swap): New builtin expanders.
1787         (enum nvptx_builtins): New.
1788         (nvptx_builtin_decls): New.
1789         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1790         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1791         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1792         nvptx_lockless_update): New helpers.
1793         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1794         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1795         (nvptx_goacc_reduction): New.
1796         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1797         TARGET_BUILTIN_DECL): Override.
1798         (TARGET_GOACC_REDUCTION): Override.
1800 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1801             Cesar Philippidis  <cesar@codesourcery.com>
1803         * internal-fn.def (GOACC_REDUCTION): New.
1804         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1805         * internal-fn.c (expand_GOACC_REDUCTION): New.
1806         * target.def (goacc.reduction): New OpenACC hook.
1807         * targhooks.h (default_goacc_reduction): Declare.
1808         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1809         * doc/tm.texi: Rebuilt.
1810         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1811         scan_sharing_clauses): Remove oacc reduction handling here.
1812         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1813         (oacc_lower_reduction_var_helper): Delete.
1814         (lower_oacc_reductions): New.
1815         (lower_reduction_clauses): Don't handle OpenACC reductions here.
1816         (lower_oacc_head_tail): Call lower_oacc_reductions.
1817         (oacc_gimple_assign, oacc_init_reduction_array,
1818         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1819         oacc_process_reduction_data): Delete.
1820         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
1821         dummy OpenACC gang reduction for reductions at outer level.
1822         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1823         (default_goacc_reduction): New.
1824         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1826 2015-11-04  Martin Liska  <mliska@suse.cz>
1828         * cgraphunit.c (cgraph_node::expand_thunk): Call
1829         allocate_struct_function before init_function_start.
1830         (cgraph_node::expand): Use push_cfun and pop_cfun.
1831         * config/i386/i386.c (ix86_code_end): Call
1832         allocate_struct_function before init_function_start.
1833         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1834         * function.c (init_function_start): Move preamble to all
1835         callers.
1836         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1837         (execute_one_pass): Handle newly added TODO_discard_function.
1838         (execute_pass_list_1): Terminate if cfun equals to NULL.
1839         (execute_pass_list): Do not push and pop cfun, expect that
1840         cfun is set.
1841         * tree-pass.h (TODO_discard_function): Define.
1843 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
1845         * cfganal.c (inverted_post_order_compute): Remove conditional
1846         compilation, use flag_checking.
1847         * config.in: Regenerate.
1848         * configure: Regenerate.
1849         * configure.ac: Remove ENABLE_CHECKING.
1850         * genconditions.c: Do not #undef ENABLE_CHECKING.
1851         * sese.h (bb_in_region): Comment out broken check.
1852         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1853         conditional compilation, use flag_checking.
1855 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1857         PR tree-optimization/67742
1858         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1859         field.
1860         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1861         (create_variable_info_for_1): Add and handle handle_param parameter.
1862         Add restrict handling.
1863         (create_variable_info_for): Call create_variable_info_for_1 with extra
1864         arg.
1865         (make_param_constraints): Drop restrict_name parameter.  Ignore
1866         vi->only_restrict_pointers.
1867         (intra_create_variable_infos): Call create_variable_info_for_1 with
1868         extra arg.  Remove restrict handling.  Call make_param_constraints with
1869         one fewer arg.
1871 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1873         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1874         variable.
1876 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1878         * config/arm/coff.h: Remove.
1880 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1882         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1883         check for aggregate types and beef up comment for mode check.
1885 2015-11-03  Richard Biener  <rguenther@suse.de>
1887         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1888         data references here.
1889         * tree-vect-loop.c: Include cgraph.h.
1890         (vect_analyze_loop_2): Collect data references here.
1891         * tree-vect-slp.c (find_bb_location): Inline ...
1892         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
1893         Factor in vect_slp_transform_bb.
1894         (vect_slp_transform_bb): Removed.
1895         (vect_slp_analyze_bb_1): Collect data references here.
1896         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1897         vect_slp_bb.
1898         * tree-vectorizer.h (vect_slp_bb): Declare.
1899         (vect_slp_analyze_bb): Remove.
1900         (vect_slp_transform_bb): Remove.
1901         (find_bb_location): Remove.
1902         (vect_analyze_data_refs): Remove stmt count reference parameter.
1904 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
1906         * multiple_target.c (create_dispatcher_calls): Add target check
1907         on ifunc.
1908         (create_target_clone): Change assembler name for versioned declarations.
1910 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
1911             Chung-Lin Tang  <cltang@codesourcery.com>
1913         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1914         * omp-low.c (check_omp_nesting_restrictions): Allow
1915         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1916         contexts.
1918 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
1920         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1921         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1922         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1923         builtin.
1924         (vmulxq_f32): Likewise.
1925         (vmulx_f64): New.
1926         (vmulxq_f64): Rewrite to call fmulx builtin.
1927         (vmulxs_f32): Likewise.
1928         (vmulxd_f64): Likewise.
1929         (vmulx_lane_f32): Remove.
1930         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1932 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
1934         * config/aarch64/aarch64.md (*movhf_aarch64): Use
1935         aarch64_reg_or_fp_zero for second operand.
1937 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
1939         * gimple-expr.c: Include hash-set.h and rtl.h.
1940         (mark_addressable_queue): New var.
1941         (mark_addressable): Factor actual marking into...
1942         (mark_addressable_1): ... this.  Queue it up during expand.
1943         (mark_addressable_2): New.
1944         (flush_mark_addressable_queue): New.
1945         * gimple-expr.h (flush_mark_addressable_queue): Declare.
1946         * cfgexpand.c: Include gimple-expr.h.
1947         (pass_expand::execute): Flush mark_addressable queue.
1949 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
1951         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1952         bb_no_side_effects_p tests...
1953         (tree_ssa_ifcombine_bb): ... here.
1955         PR tree-optimization/68083
1956         * tree-ssa-ifcombine.c: Include tree-ssa.h.
1957         (bb_no_side_effects_p): Test for undefined uses too.
1958         * tree-ssa.c (gimple_uses_undefined_value_p): New.
1959         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1961 2015-11-02  Jeff Law <law@redhat.com>
1963         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1964         cases where the loop latch edge is in the middle of an FSM path.
1966 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1968         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1969         (make_param_constraints): ... this.  Add and handle restrict_name
1970         parameter.  Handle is_full_var case.
1971         (intra_create_variable_infos): Use make_param_constraints.
1973 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1975         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1976         make_copy_constraint call with make_constraint_from call.
1978 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
1980         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1981         PIE executables.
1983 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
1985         * builtins.h (fold_fma): Move to fold-const-call.h.
1986         * builtins.c: Include fold-const-call.h.
1987         (mathfn_built_in_2): New function, split out from...
1988         (mathfn_built_in_1): ...here.
1989         (do_real_to_int_conversion, fold_const_builtin_pow)
1990         (fold_const_builtin_logb, fold_const_builtin_significand)
1991         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1992         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1993         (fold_builtin_sincos): Use fold_const_call to handle constants.
1994         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1995         checks for ERROR_MARK.  Use fold_const_call to handle constant
1996         folds for math functions.
1997         (fold_fma): Move to fold-const-call.c.
1998         * fold-const.c: Include fold-const-call.h.
1999         * Makefile.in (OBJS): Add fold-const-call.o.
2000         (PLUGIN_HEADERS): Add fold-const-call.h.
2001         * realmpfr.h (real_from_mpfr): Allow the format to be specified
2002         directly.
2003         * realmpfr.c (real_from_mpfr): Likewise.
2004         * fold-const-call.h, fold-const-call.c: New files.
2006 2015-11-02  Julian Brown  <julian@codesourcery.com>
2008         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2009         brackets and semicolon.
2011 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
2013         Revert:
2014         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2016         PR tree-optimization/65963
2017         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2018         LSHIFT_EXPRs as equivalent MULT_EXPRs.
2020 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2022         PR middle-end/68166
2023         * fold-const.c: Include "md5.h".
2025 2015-11-01  Jeff Law <law@redhat.com>
2027         * vmsdbgout.c: Revert unused header file reduction patch.
2029         * config/mcore/mcore.c: Include regs.h.
2031 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2033         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2035 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2037         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2038         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2039         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2041 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2043         * ggc-common.c: Restore needed header for checking=release.
2045 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2047         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2049 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2051         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2052         existing varinfo for arguments.
2054 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2056         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2057         create_function_info_for.  Dump constraints generated during
2058         create_function_info_for. Move intra_create_variable_infos call and
2059         function-return-values-escape bit to ...
2060         (create_function_info_for): ... here, and merge
2061         intra_create_variable_infos call with argument loop.  Add and handle
2062         nonlocal_p parameter.
2064 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2066         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2067         updating is alap, and seperated from preceding code.  Make sure
2068         insert_vi_for_tree is seperated from surrounding code.
2070 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2072         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2074 2015-10-30  Jeff Law <law@redhat.com>
2075             Nathan Sidwell  <nathan@acm.org>
2077         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2078         args.
2079         (MOVE_MAX): Set to 8.
2081 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
2083         * cgraph.c: Include context.h for offloading.
2084         * varpool.c: Include context.h and omp-low.h.
2086 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
2088         * rtl.h (contains_symbol_ref_p): Declare.
2089         (SYMBOL_REF_P): Define.
2090         * rtlanal.c (contains_symbol_ref_p: New function.
2091         * lra-constraints.c (contains_symbol_ref_p): Remove.
2092         * var-tracking.c (contains_symbol_ref): Remove.
2093         (track_expr_p): Use contains_symbol_ref_p instead of
2094         contains_symbol_ref.
2096 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2098         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2099         * fold-const.c (get_array_ctor_element_at_index): New.
2100         (fold): Remove binary-search through CONSTRUCTOR, call previous.
2102         * fold-const.h (get_array_ctor_element_at_index): New.
2104 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2106         * Makefile.in (OBJS): Add multiple_target.o.
2107         * attrib.c (make_attribute): Moved from config/i386/i386.c
2108         * config/i386/i386.c (make_attribute): Deleted.
2109         * multiple_target.c (create_dispatcher_calls): New.
2110         (get_attr_len): Ditto.
2111         (get_attr_str): Ditto.
2112         (separate_attrs): Ditto.
2113         (is_valid_asm_symbol): Ditto.
2114         (create_new_asm_name): Ditto.
2115         (create_target_clone): Ditto.
2116         (expand_target_clones): Ditto.
2117         (ipa_target_clone): Ditto.
2118         (ipa_dispatcher_calls): Ditto.
2119         * passes.def (pass_target_clone): Two new ipa passes.
2120         * tree-pass.h (make_pass_target_clone): Ditto.
2121         * doc/extend.texi (target_clones): New attribute description.
2123 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
2125         PR rtl-optimization/68106
2126         * lra-remat.c (input_regno_present_p): Process hard regs
2127         explicitly present in machine description insns.
2128         (call_used_input_regno_present_p): Ditto.
2129         (calculate_gen_cands): Ditto.
2130         (do_remat): Ditto.
2132 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
2134         * config/arm/neon-testgen.ml: Fix comment typo.
2136 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2138         * rtlanal.c (reg_set_p): Expand function comment.
2140 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
2142         * alias.c: Remove unused headers.
2143         * asan.c: Likewise.
2144         * attribs.c: Likewise.
2145         * auto-inc-dec.c: Likewise.
2146         * auto-profile.c: Likewise.
2147         * bb-reorder.c: Likewise.
2148         * bitmap.c: Likewise.
2149         * bt-load.c: Likewise.
2150         * builtins.c: Likewise.
2151         * caller-save.c: Likewise.
2152         * calls.c: Likewise.
2153         * ccmp.c: Likewise.
2154         * cfg.c: Likewise.
2155         * cfganal.c: Likewise.
2156         * cfgbuild.c: Likewise.
2157         * cfgcleanup.c: Likewise.
2158         * cfgexpand.c: Likewise.
2159         * cfghooks.c: Likewise.
2160         * cfgloop.c: Likewise.
2161         * cfgloopanal.c: Likewise.
2162         * cfgloopmanip.c: Likewise.
2163         * cfgrtl.c: Likewise.
2164         * cgraph.c: Likewise.
2165         * cgraphbuild.c: Likewise.
2166         * cgraphclones.c: Likewise.
2167         * cgraphunit.c: Likewise.
2168         * cilk-common.c: Likewise.
2169         * combine-stack-adj.c: Likewise.
2170         * combine.c: Likewise.
2171         * compare-elim.c: Likewise.
2172         * convert.c: Likewise.
2173         * coverage.c: Likewise.
2174         * cppbuiltin.c: Likewise.
2175         * cprop.c: Likewise.
2176         * cse.c: Likewise.
2177         * cselib.c: Likewise.
2178         * data-streamer-in.c: Likewise.
2179         * data-streamer-out.c: Likewise.
2180         * data-streamer.c: Likewise.
2181         * dbxout.c: Likewise.
2182         * dce.c: Likewise.
2183         * ddg.c: Likewise.
2184         * debug.c: Likewise.
2185         * df-core.c: Likewise.
2186         * df-problems.c: Likewise.
2187         * df-scan.c: Likewise.
2188         * dfp.c: Likewise.
2189         * dojump.c: Likewise.
2190         * dominance.c: Likewise.
2191         * domwalk.c: Likewise.
2192         * double-int.c: Likewise.
2193         * dse.c: Likewise.
2194         * dumpfile.c: Likewise.
2195         * dwarf2asm.c: Likewise.
2196         * dwarf2cfi.c: Likewise.
2197         * dwarf2out.c: Likewise.
2198         * emit-rtl.c: Likewise.
2199         * except.c: Likewise.
2200         * explow.c: Likewise.
2201         * expmed.c: Likewise.
2202         * expr.c: Likewise.
2203         * final.c: Likewise.
2204         * fixed-value.c: Likewise.
2205         * fold-const.c: Likewise.
2206         * function.c: Likewise.
2207         * fwprop.c: Likewise.
2208         * gcse.c: Likewise.
2209         * generic-match-head.c: Likewise.
2210         * ggc-common.c: Likewise.
2211         * gimple-builder.c: Likewise.
2212         * gimple-expr.c: Likewise.
2213         * gimple-fold.c: Likewise.
2214         * gimple-iterator.c: Likewise.
2215         * gimple-low.c: Likewise.
2216         * gimple-match-head.c: Likewise.
2217         * gimple-pretty-print.c: Likewise.
2218         * gimple-ssa-isolate-paths.c: Likewise.
2219         * gimple-ssa-strength-reduction.c: Likewise.
2220         * gimple-streamer-in.c: Likewise.
2221         * gimple-streamer-out.c: Likewise.
2222         * gimple-walk.c: Likewise.
2223         * gimple.c: Likewise.
2224         * gimplify-me.c: Likewise.
2225         * gimplify.c: Likewise.
2226         * godump.c: Likewise.
2227         * graph.c: Likewise.
2228         * graphds.c: Likewise.
2229         * haifa-sched.c: Likewise.
2230         * hw-doloop.c: Likewise.
2231         * ifcvt.c: Likewise.
2232         * init-regs.c: Likewise.
2233         * internal-fn.c: Likewise.
2234         * ipa-chkp.c: Likewise.
2235         * ipa-comdats.c: Likewise.
2236         * ipa-cp.c: Likewise.
2237         * ipa-devirt.c: Likewise.
2238         * ipa-icf-gimple.c: Likewise.
2239         * ipa-icf.c: Likewise.
2240         * ipa-inline-analysis.c: Likewise.
2241         * ipa-inline-transform.c: Likewise.
2242         * ipa-inline.c: Likewise.
2243         * ipa-polymorphic-call.c: Likewise.
2244         * ipa-profile.c: Likewise.
2245         * ipa-prop.c: Likewise.
2246         * ipa-pure-const.c: Likewise.
2247         * ipa-ref.c: Likewise.
2248         * ipa-reference.c: Likewise.
2249         * ipa-split.c: Likewise.
2250         * ipa-utils.c: Likewise.
2251         * ipa-visibility.c: Likewise.
2252         * ipa.c: Likewise.
2253         * ira-build.c: Likewise.
2254         * ira-color.c: Likewise.
2255         * ira-conflicts.c: Likewise.
2256         * ira-costs.c: Likewise.
2257         * ira-emit.c: Likewise.
2258         * ira-lives.c: Likewise.
2259         * ira.c: Likewise.
2260         * jump.c: Likewise.
2261         * langhooks.c: Likewise.
2262         * lcm.c: Likewise.
2263         * lists.c: Likewise.
2264         * loop-doloop.c: Likewise.
2265         * loop-init.c: Likewise.
2266         * loop-invariant.c: Likewise.
2267         * loop-iv.c: Likewise.
2268         * loop-unroll.c: Likewise.
2269         * lower-subreg.c: Likewise.
2270         * lra-assigns.c: Likewise.
2271         * lra-coalesce.c: Likewise.
2272         * lra-constraints.c: Likewise.
2273         * lra-eliminations.c: Likewise.
2274         * lra-lives.c: Likewise.
2275         * lra-remat.c: Likewise.
2276         * lra-spills.c: Likewise.
2277         * lra.c: Likewise.
2278         * lto-cgraph.c: Likewise.
2279         * lto-compress.c: Likewise.
2280         * lto-opts.c: Likewise.
2281         * lto-section-in.c: Likewise.
2282         * lto-section-out.c: Likewise.
2283         * lto-streamer-in.c: Likewise.
2284         * lto-streamer-out.c: Likewise.
2285         * lto-streamer.c: Likewise.
2286         * mcf.c: Likewise.
2287         * mode-switching.c: Likewise.
2288         * modulo-sched.c: Likewise.
2289         * optabs.c: Likewise.
2290         * opts-global.c: Likewise.
2291         * passes.c: Likewise.
2292         * plugin.c: Likewise.
2293         * postreload-gcse.c: Likewise.
2294         * postreload.c: Likewise.
2295         * predict.c: Likewise.
2296         * print-tree.c: Likewise.
2297         * profile.c: Likewise.
2298         * real.c: Likewise.
2299         * realmpfr.c: Likewise.
2300         * recog.c: Likewise.
2301         * ree.c: Likewise.
2302         * reg-stack.c: Likewise.
2303         * regcprop.c: Likewise.
2304         * reginfo.c: Likewise.
2305         * regrename.c: Likewise.
2306         * regstat.c: Likewise.
2307         * reload.c: Likewise.
2308         * reload1.c: Likewise.
2309         * reorg.c: Likewise.
2310         * resource.c: Likewise.
2311         * rtl-chkp.c: Likewise.
2312         * rtl-error.c: Likewise.
2313         * rtlanal.c: Likewise.
2314         * rtlhooks.c: Likewise.
2315         * sanopt.c: Likewise.
2316         * sched-deps.c: Likewise.
2317         * sched-ebb.c: Likewise.
2318         * sched-rgn.c: Likewise.
2319         * sdbout.c: Likewise.
2320         * sel-sched-dump.c: Likewise.
2321         * sel-sched-ir.c: Likewise.
2322         * sel-sched.c: Likewise.
2323         * sese.c: Likewise.
2324         * shrink-wrap.c: Likewise.
2325         * simplify-rtx.c: Likewise.
2326         * stack-ptr-mod.c: Likewise.
2327         * statistics.c: Likewise.
2328         * stmt.c: Likewise.
2329         * stor-layout.c: Likewise.
2330         * store-motion.c: Likewise.
2331         * stringpool.c: Likewise.
2332         * symtab.c: Likewise.
2333         * target-globals.c: Likewise.
2334         * targhooks.c: Likewise.
2335         * toplev.c: Likewise.
2336         * tracer.c: Likewise.
2337         * trans-mem.c: Likewise.
2338         * tree-affine.c: Likewise.
2339         * tree-call-cdce.c: Likewise.
2340         * tree-cfg.c: Likewise.
2341         * tree-cfgcleanup.c: Likewise.
2342         * tree-chkp-opt.c: Likewise.
2343         * tree-chkp.c: Likewise.
2344         * tree-chrec.c: Likewise.
2345         * tree-complex.c: Likewise.
2346         * tree-data-ref.c: Likewise.
2347         * tree-dfa.c: Likewise.
2348         * tree-diagnostic.c: Likewise.
2349         * tree-dump.c: Likewise.
2350         * tree-eh.c: Likewise.
2351         * tree-emutls.c: Likewise.
2352         * tree-if-conv.c: Likewise.
2353         * tree-inline.c: Likewise.
2354         * tree-into-ssa.c: Likewise.
2355         * tree-iterator.c: Likewise.
2356         * tree-loop-distribution.c: Likewise.
2357         * tree-nested.c: Likewise.
2358         * tree-nrv.c: Likewise.
2359         * tree-object-size.c: Likewise.
2360         * tree-outof-ssa.c: Likewise.
2361         * tree-parloops.c: Likewise.
2362         * tree-phinodes.c: Likewise.
2363         * tree-predcom.c: Likewise.
2364         * tree-pretty-print.c: Likewise.
2365         * tree-profile.c: Likewise.
2366         * tree-scalar-evolution.c: Likewise.
2367         * tree-sra.c: Likewise.
2368         * tree-ssa-address.c: Likewise.
2369         * tree-ssa-alias.c: Likewise.
2370         * tree-ssa-ccp.c: Likewise.
2371         * tree-ssa-coalesce.c: Likewise.
2372         * tree-ssa-copy.c: Likewise.
2373         * tree-ssa-dce.c: Likewise.
2374         * tree-ssa-dse.c: Likewise.
2375         * tree-ssa-forwprop.c: Likewise.
2376         * tree-ssa-ifcombine.c: Likewise.
2377         * tree-ssa-live.c: Likewise.
2378         * tree-ssa-loop-ch.c: Likewise.
2379         * tree-ssa-loop-im.c: Likewise.
2380         * tree-ssa-loop-ivcanon.c: Likewise.
2381         * tree-ssa-loop-ivopts.c: Likewise.
2382         * tree-ssa-loop-manip.c: Likewise.
2383         * tree-ssa-loop-niter.c: Likewise.
2384         * tree-ssa-loop-prefetch.c: Likewise.
2385         * tree-ssa-loop-unswitch.c: Likewise.
2386         * tree-ssa-loop.c: Likewise.
2387         * tree-ssa-math-opts.c: Likewise.
2388         * tree-ssa-operands.c: Likewise.
2389         * tree-ssa-phiopt.c: Likewise.
2390         * tree-ssa-phiprop.c: Likewise.
2391         * tree-ssa-pre.c: Likewise.
2392         * tree-ssa-propagate.c: Likewise.
2393         * tree-ssa-reassoc.c: Likewise.
2394         * tree-ssa-scopedtables.c: Likewise.
2395         * tree-ssa-sink.c: Likewise.
2396         * tree-ssa-strlen.c: Likewise.
2397         * tree-ssa-structalias.c: Likewise.
2398         * tree-ssa-tail-merge.c: Likewise.
2399         * tree-ssa-ter.c: Likewise.
2400         * tree-ssa-threadupdate.c: Likewise.
2401         * tree-ssa-uncprop.c: Likewise.
2402         * tree-ssa-uninit.c: Likewise.
2403         * tree-ssa.c: Likewise.
2404         * tree-ssanames.c: Likewise.
2405         * tree-stdarg.c: Likewise.
2406         * tree-streamer-in.c: Likewise.
2407         * tree-streamer-out.c: Likewise.
2408         * tree-streamer.c: Likewise.
2409         * tree-switch-conversion.c: Likewise.
2410         * tree-tailcall.c: Likewise.
2411         * tree-vect-data-refs.c: Likewise.
2412         * tree-vect-generic.c: Likewise.
2413         * tree-vect-loop-manip.c: Likewise.
2414         * tree-vect-loop.c: Likewise.
2415         * tree-vect-patterns.c: Likewise.
2416         * tree-vect-slp.c: Likewise.
2417         * tree-vect-stmts.c: Likewise.
2418         * tree-vectorizer.c: Likewise.
2419         * tree-vrp.c: Likewise.
2420         * tree.c: Likewise.
2421         * tsan.c: Likewise.
2422         * ubsan.c: Likewise.
2423         * value-prof.c: Likewise.
2424         * var-tracking.c: Likewise.
2425         * varasm.c: Likewise.
2426         * varpool.c: Likewise.
2427         * vmsdbgout.c: Likewise.
2428         * vtable-verify.c: Likewise.
2429         * web.c: Likewise.
2430         * wide-int-print.cc: Likewise.
2431         * wide-int.cc: Likewise.
2432         * xcoffout.c: Likewise.
2434 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
2436         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2437         between pass numbering and execution order.
2439 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2441         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2442         check for dependencies.
2444 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2446         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2447         CDI_DOMINATORS.
2449 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2451         * real.h (format_helper): New.
2452         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2453         (real_from_target, real_nan, real_2expN, real_value_truncate)
2454         (significand_size, real_from_string2, exact_real_inverse)
2455         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2456         (real_round, real_isinteger, real_from_integer): Replace
2457         machine_mode arguments with format_helper arguments.
2458         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2459         (real_from_integer, real_nan, real_2expN, real_convert)
2460         (real_value_truncate, exact_real_truncate, real_to_target)
2461         (real_from_target, significand_size, real_powi, real_trunc)
2462         (real_floor, real_ceil, real_round, real_isinteger): Replace
2463         machine_mode arguments with format_helper arguments.
2464         (real_to_target_fmt, real_from_target_fmt): Delete.
2465         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2466         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2467         argument with real_format.
2468         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2470 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2472         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2473         (fixed_to_decimal, fixed_convert_from_real)
2474         (real_convert_from_fixed): Fix mode arguments to real_2expN.
2476 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2478         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2479         SCALAR_FLOAT_MODE_P.
2481 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2483         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2484         (completely_scalarize): Comment zero-length arrays.
2485         (get_access_replacement): Correct comment re. precondition.
2487 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2489         * config/i386/i386.c (get_builtin_code_for_version): Set priority
2490         for PROCESSOR_ZNVER1.
2491         (enum processor_model): Add M_AMDFAM17H_znver1.
2492         (struct arch_names_table): Likewise.
2493         * doc/extend.texi: ADD znver1.
2495 2015-10-30  Richard Biener  <rguenther@suse.de>
2497         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2498         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
2499         zeros to be folded to VECTOR_CSTs.
2500         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2501         * fold-const.c (fold): Use build_vector_from_ctor.
2503 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
2505         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2506         "mov %0.h[0], %1.h[0] to "neon_move".
2507         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2508         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2509         "mov_imm".
2510         (*cmovsi_insn_uxtw): Likewise.
2512 2015-10-30  Tom de Vries  <tom@codesourcery.com>
2514         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2515         unsigned, and initialize, and use initial value instead of hardcoded
2516         constant.  Add generic constraints dumping section.  Don't dump global
2517         initializers constraints dumping section if empty.  Don't update
2518         variable from if unused.
2520 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
2522         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2523         flag_checking and/or CHECKING_P to eliminate conditional compilation
2524         on ENABLE_CHECKING.
2525         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2526         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2527         * config/i386/i386.c (ix86_print_operand_address): Likewise.
2528         (output_387_binary_op): Likewise.
2529         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2530         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2531         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2532         Likewise.
2533         * config/rs6000/rs6000.h: Likewise.
2534         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2536 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2538         * config/sh/sh.opt (mfdpic): Add missing period.
2540 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
2542         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2543         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2544         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2545         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2546         mcore_base_register_rtx_p, mcore_legitimate_index_p,
2547         mcore_legitimate_address_p): New functions.
2548         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2550 2015-10-29  Jeff Law  <law@redhat.com>
2552         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2553         method.
2554         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2555         * tree-ssa-threadedge.c
2556         (record_temporary_equivalences_from_stmts_at_dest): Remove
2557         backedge_seen argument and associated code which invalidated
2558         equivalences based on the value of that argument.
2559         (thread_through_normal_block): Corresponding changes.
2561 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2563         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2564         function earlier in the file.
2565         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2566         df_regs_ever_live_p.
2568 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2570         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2571         by ignoring it.
2573 2015-10-29  Richard Henderson  <rth@redhat.com>
2575         PR target/68124
2576         PR rtl-opt/67609
2577         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2578         sse check to the exact conditions of PR 67609.
2580 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2582         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2583         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2584         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2585         of the traditional names that TFmode uses for handling IEEE
2586         extended double. If -mfloat128, add KFmode functions for all of
2587         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2588         make TFmode use the same emulation functions as KFmode.
2589         (init_float128_ibm): Likewise.
2590         (init_float128_ieee): Likewise.
2591         (rs6000_generate_compare): For IEEE 128-bit floating point
2592         comparisons, call the unordered comparison function instead of the
2593         ordered comparison function.
2594         (rs6000_expand_float128_convert): Deal with operands that are
2595         memory operands. Restructure the code to use a switch statement on
2596         the mode. Add support for TFmode defaulting to either IBM extended
2597         double or IEEE 128-bit floating point. If the underlying types are
2598         the same, use a move instead of a conversion function.
2599         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2600         use for IEEE 128-bit floating point constants with -mfloat128.
2601         (rs6000_c_mode_for_suffix): Likewise.
2602         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2603         128-bit floating point with IBM extended double floating point.
2604         (rs6000_invalid_binary_op): Likewise.
2605         (rs6000_gen_le_vsx_permute): On little endian systems generate a
2606         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2607         types that can go in vector registers.
2608         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2609         point types that can go in vector registers on little endian
2610         PowerPC systems.
2611         (mark_swaps_for_removal): Likewise.
2612         (rs6000_analyze_swaps): Likewise.
2613         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2615         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2616         rework IEEE 128-bit floating point insns to deal with TFmode being
2617         either IBM extended double or IEEE 128-bit floating point.
2618         (IFKF): Likewise.
2619         (IBM128): Update iterator to add condition that the mode is IBM
2620         extended double.
2621         (IEEE128): New iterator for IEEE 128-bit floating point.
2622         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2623         (FLOAT128): Likewise.
2624         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2625         iterator.
2626         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2627         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2628         instead of hard coding TFmode or KFmode.
2629         (negtf2_internal): Likewise.
2630         (neg<mode>2_internal): Likewise.
2631         (abs<mode>2): Likewise.
2632         (abstf2_internal): Likewise.
2633         (abs<mode>2_internal): Likewise.
2634         (ieee_128bit_neg<mode>2): Likewise.
2635         (ieee_128bit_neg<mode>2_internal): Likewise.
2636         (ieee_128bit_abs<mode>2): Likewise.
2637         (ieee_128bit_abs<mode>2_internal): Likewise.
2638         (ieee_128bit_nabs<mode>2): Likewise.
2639         (ieee_128bit_nabs<mode>2_internal): Likewise.
2640         (extendiftf2): Add explicit conversions between 128-bit floating
2641         point types. Drop the old conversions that had become unwieldy.
2642         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2643         (extendifkf2): Likewise.
2644         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2645         (extendtfkf2): Likewise.
2646         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2647         (trunciftf2): Likewise.
2648         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2649         (truncifkf2): Likewise.
2650         (float<SDI:mode><IFKF:mode>2): Likewise.
2651         (trunckftf2): Likewise.
2652         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2653         (trunctfif2): Likewise.
2654         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2655         (extenddftf2): Rework 128-bit floating point conversions to
2656         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2657         KFmode expanders into one function.
2658         (extenddf<mode>2): Likewise.
2659         (extenddftf2_fprs): Likewise.
2660         (extenddf<mode>2_fprs): Likewise.
2661         (extenddftf2_vsx): Likewise.
2662         (extenddf<mode>2_vsx): Likewise.
2663         (extendsftf2): Likewise.
2664         (extendsf<mode>2): Likewise.
2665         (trunctfdf2): Likewise.
2666         (trunc<mode>df2): Likewise.
2667         (trunctfdf2_internal1): Likewise.
2668         (trunc<mode>df2_internal1): Likewise.
2669         (trunctfdf2_internal2): Likewise.
2670         (trunc<mode>df2_internal2): Likewise.
2671         (trunctfsf2): Likewise.
2672         (trunc<mode>sf2): Likewise.
2673         (trunctfsf2_fprs): Likewise.
2674         (trunc<mode>sf2_fprs): Likewise.
2675         (floatsit2f): Likewise.
2676         (floatsi<mode>2): Likewise.
2677         (fix_trunc_helper): Likewise.
2678         (fix_trunc_helper<mode>): Likewise.
2679         (fix_trunctfsi2): Likewise.
2680         (fix_trunc<mode>si2): Likewise.
2681         (fix_trunctfsi2_fprs): Likewise.
2682         (fix_trunc<mode>si2_fprs): Likewise.
2683         (fix_trunctfsi2_internal): Likewise.
2684         (fix_trunc<mode>si2_internal): Likewise.
2685         (fix_trunctfdi2): Likewise.
2686         (fix_trunc<mode>di2): Likewise.
2687         (fixuns_trunctf<mode>2): Likewise.
2688         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2689         (floatditf2): Likewise.
2690         (floatdi<mode>2): Likewise.
2691         (floatuns<mode>tf2): Likewise.
2692         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2693         (cmptf_internal1): Use a mode iterator to add support for both
2694         types (IFmode, TFmode) that support IBM extended double.
2695         (cmp<mode>_internal1): Likewise.
2696         (cmptf_internal2): Likewise.
2697         (cmp<mode>_internal2): Likewise.
2699         * doc/extend.texi (Floating Types): Document __ibm128 and
2700         __float128 on PowerPC.
2702         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2703         -mfloat128 and -mno-float128.
2705 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2707         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2708         floating point modes that can go in vector registers.
2709         (MODES_TIEABLE_P): Move tests for vector modes before tests for
2710         scalar floating point, so that IEEE 128-bit floating point that
2711         can go in vector registers bind with vectors and not FP.
2712         (struct rs6000_args): Add libcall field.
2714         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2715         and -mfloat128-software switches.  Replace them with a binary
2716         -mfloat128 switch.
2717         (-mfloat128): Likewise.
2719         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2720         128-bit floating point types in GPRs, even if the appropriate
2721         option enabling the type was not used.
2722         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2723         debugging.
2724         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2725         pre-decrement on IEEE 128-bit floating point values.
2726         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2727         is IEEE 128-bit floating point.
2728         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2729         128-bit floating point types that can go in vector registers.
2730         (rs6000_option_override_internal): Change -mfloat128-none and
2731         -mfloat128-software to -mfloat128, and move code to be near other
2732         VSX option handling.
2733         (rs6000_option_override_internal): Disable -mfloat128 if we don't
2734         have the Altivec ABI.
2735         (rs6000_init_builtins): Don't make TFmode use either IFmode or
2736         KFmode floating point nodes. Instead, have three separate nodes.
2737         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2738         eventually moving the long double default to IEEE 128-bit floating
2739         point.
2740         (rs6000_opt_masks): Add -mfloat128.
2741         (struct rs6000_opt_var): Fix typo in comment.
2742         (init_cumulative_args): Initialize libcall field in
2743         CUMULATIVE_ARGS.
2744         (rs6000_function_arg): Treat library functions as if they had
2745         prototypes to prevent IEEE 128-bit support functions from passing
2746         arguments in both GPRs and vector registers.
2747         (rs6000_arg_partial_bytes): Likewise.
2749         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2750         an option that can be turned on via -mcpu=<xxx>.
2752         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2753         longer used.
2755         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2756         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2757         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2758         double is IBM extended double.
2760         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2761         SUBREGs.
2763 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
2765         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2766         * genconditions.c: Define CHECKING_P in the generated code.
2767         * genextract.c: Use flag_checking in insn_extract.
2768         * gengtype.c (main): Remove conditional compilation.
2769         * gengtype.h: Likewise.
2771 2015-10-29  Jeff Law  <law@redhat.com>
2773         PR tree-optimization/67892
2774         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2775         in comment.
2776         (thread_through_normal_block): If we have seen a backedge, then
2777         do nothing.  No longer call find_jump_threads_backwards here.
2778         (thread_across_edge): Use find_jump_threads_backwards to find
2779         jump threads if the old style threader was not successful.
2780         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2781         gsi_last_nondebug_bb.  Return NULL if the block does not end
2782         with a control statement.
2783         (find_jump_threads_backwards): Setup code moved here from
2784         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
2785         single edge argument instead of name & block.
2786         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2787         prototype.
2789 2015-10-29  Tom de Vries  <tom@codesourcery.com>
2791         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2792         types.
2794 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
2796         * omp-low.c (lower_omp_target): Remove unreachable code & merge
2797         ifs.
2799 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
2801         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2803 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2805         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2806         guard_bb0 and use guard_bb throughout.
2808 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2810         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2811         unnecessary label.
2813 2015-10-29  Richard Biener  <rguenther@suse.de>
2815         PR middle-end/68142
2816         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2817         overflow.
2819 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2821         * alias.c: Reorder #include statements and remove duplicates.
2822         * asan.c: Likewise.
2823         * attribs.c: Likewise.
2824         * auto-inc-dec.c: Likewise.
2825         * auto-profile.c: Likewise.
2826         * bb-reorder.c: Likewise.
2827         * bt-load.c: Likewise.
2828         * builtins.c: Likewise.
2829         * caller-save.c: Likewise.
2830         * calls.c: Likewise.
2831         * ccmp.c: Likewise.
2832         * cfg.c: Likewise.
2833         * cfganal.c: Likewise.
2834         * cfgbuild.c: Likewise.
2835         * cfgcleanup.c: Likewise.
2836         * cfgexpand.c: Likewise.
2837         * cfghooks.c: Likewise.
2838         * cfgloop.c: Likewise.
2839         * cfgloopanal.c: Likewise.
2840         * cfgloopmanip.c: Likewise.
2841         * cfgrtl.c: Likewise.
2842         * cgraph.c: Likewise.
2843         * cgraphbuild.c: Likewise.
2844         * cgraphclones.c: Likewise.
2845         * cgraphunit.c: Likewise.
2846         * cilk-common.c: Likewise.
2847         * combine-stack-adj.c: Likewise.
2848         * combine.c: Likewise.
2849         * compare-elim.c: Likewise.
2850         * convert.c: Likewise.
2851         * coverage.c: Likewise.
2852         * cppbuiltin.c: Likewise.
2853         * cprop.c: Likewise.
2854         * cse.c: Likewise.
2855         * cselib.c: Likewise.
2856         * data-streamer-in.c: Likewise.
2857         * data-streamer-out.c: Likewise.
2858         * data-streamer.c: Likewise.
2859         * dbxout.c: Likewise.
2860         * dce.c: Likewise.
2861         * ddg.c: Likewise.
2862         * debug.c: Likewise.
2863         * df-core.c: Likewise.
2864         * df-problems.c: Likewise.
2865         * df-scan.c: Likewise.
2866         * dfp.c: Likewise.
2867         * dojump.c: Likewise.
2868         * dominance.c: Likewise.
2869         * double-int.c: Likewise.
2870         * dse.c: Likewise.
2871         * dumpfile.c: Likewise.
2872         * dwarf2asm.c: Likewise.
2873         * dwarf2cfi.c: Likewise.
2874         * dwarf2out.c: Likewise.
2875         * emit-rtl.c: Likewise.
2876         * except.c: Likewise.
2877         * explow.c: Likewise.
2878         * expmed.c: Likewise.
2879         * expr.c: Likewise.
2880         * final.c: Likewise.
2881         * fixed-value.c: Likewise.
2882         * fold-const.c: Likewise.
2883         * function.c: Likewise.
2884         * fwprop.c: Likewise.
2885         * gcse.c: Likewise.
2886         * generic-match-head.c: Likewise.
2887         * ggc-common.c: Likewise.
2888         * gimple-builder.c: Likewise.
2889         * gimple-expr.c: Likewise.
2890         * gimple-fold.c: Likewise.
2891         * gimple-iterator.c: Likewise.
2892         * gimple-low.c: Likewise.
2893         * gimple-match-head.c: Likewise.
2894         * gimple-pretty-print.c: Likewise.
2895         * gimple-ssa-isolate-paths.c: Likewise.
2896         * gimple-ssa-strength-reduction.c: Likewise.
2897         * gimple-streamer-in.c: Likewise.
2898         * gimple-streamer-out.c: Likewise.
2899         * gimple-walk.c: Likewise.
2900         * gimple.c: Likewise.
2901         * gimplify-me.c: Likewise.
2902         * gimplify.c: Likewise.
2903         * godump.c: Likewise.
2904         * graph.c: Likewise.
2905         * graphite-poly.c: Likewise.
2906         * haifa-sched.c: Likewise.
2907         * hw-doloop.c: Likewise.
2908         * ifcvt.c: Likewise.
2909         * incpath.c: Likewise.
2910         * init-regs.c: Likewise.
2911         * internal-fn.c: Likewise.
2912         * ipa-chkp.c: Likewise.
2913         * ipa-comdats.c: Likewise.
2914         * ipa-cp.c: Likewise.
2915         * ipa-devirt.c: Likewise.
2916         * ipa-icf-gimple.c: Likewise.
2917         * ipa-icf.c: Likewise.
2918         * ipa-inline-analysis.c: Likewise.
2919         * ipa-inline-transform.c: Likewise.
2920         * ipa-inline.c: Likewise.
2921         * ipa-polymorphic-call.c: Likewise.
2922         * ipa-profile.c: Likewise.
2923         * ipa-prop.c: Likewise.
2924         * ipa-pure-const.c: Likewise.
2925         * ipa-ref.c: Likewise.
2926         * ipa-reference.c: Likewise.
2927         * ipa-split.c: Likewise.
2928         * ipa-utils.c: Likewise.
2929         * ipa-visibility.c: Likewise.
2930         * ipa.c: Likewise.
2931         * ira-build.c: Likewise.
2932         * ira-color.c: Likewise.
2933         * ira-conflicts.c: Likewise.
2934         * ira-costs.c: Likewise.
2935         * ira-emit.c: Likewise.
2936         * ira-lives.c: Likewise.
2937         * ira.c: Likewise.
2938         * jump.c: Likewise.
2939         * langhooks.c: Likewise.
2940         * lcm.c: Likewise.
2941         * lists.c: Likewise.
2942         * loop-doloop.c: Likewise.
2943         * loop-init.c: Likewise.
2944         * loop-invariant.c: Likewise.
2945         * loop-iv.c: Likewise.
2946         * loop-unroll.c: Likewise.
2947         * lower-subreg.c: Likewise.
2948         * lra-assigns.c: Likewise.
2949         * lra-coalesce.c: Likewise.
2950         * lra-constraints.c: Likewise.
2951         * lra-eliminations.c: Likewise.
2952         * lra-lives.c: Likewise.
2953         * lra-remat.c: Likewise.
2954         * lra-spills.c: Likewise.
2955         * lra.c: Likewise.
2956         * lto-cgraph.c: Likewise.
2957         * lto-compress.c: Likewise.
2958         * lto-opts.c: Likewise.
2959         * lto-section-in.c: Likewise.
2960         * lto-section-out.c: Likewise.
2961         * lto-streamer-in.c: Likewise.
2962         * lto-streamer-out.c: Likewise.
2963         * lto-streamer.c: Likewise.
2964         * mode-switching.c: Likewise.
2965         * modulo-sched.c: Likewise.
2966         * omp-low.c: Likewise.
2967         * optabs.c: Likewise.
2968         * opts-global.c: Likewise.
2969         * passes.c: Likewise.
2970         * plugin.c: Likewise.
2971         * postreload-gcse.c: Likewise.
2972         * postreload.c: Likewise.
2973         * predict.c: Likewise.
2974         * print-tree.c: Likewise.
2975         * profile.c: Likewise.
2976         * real.c: Likewise.
2977         * realmpfr.c: Likewise.
2978         * recog.c: Likewise.
2979         * ree.c: Likewise.
2980         * reg-stack.c: Likewise.
2981         * regcprop.c: Likewise.
2982         * reginfo.c: Likewise.
2983         * regrename.c: Likewise.
2984         * regstat.c: Likewise.
2985         * reload.c: Likewise.
2986         * reload1.c: Likewise.
2987         * reorg.c: Likewise.
2988         * resource.c: Likewise.
2989         * rtl-chkp.c: Likewise.
2990         * rtl-error.c: Likewise.
2991         * rtlanal.c: Likewise.
2992         * rtlhooks.c: Likewise.
2993         * sanopt.c: Likewise.
2994         * sched-deps.c: Likewise.
2995         * sched-ebb.c: Likewise.
2996         * sched-rgn.c: Likewise.
2997         * sese.c: Likewise.
2998         * shrink-wrap.c: Likewise.
2999         * simplify-rtx.c: Likewise.
3000         * stack-ptr-mod.c: Likewise.
3001         * statistics.c: Likewise.
3002         * stmt.c: Likewise.
3003         * stor-layout.c: Likewise.
3004         * store-motion.c: Likewise.
3005         * stringpool.c: Likewise.
3006         * symtab.c: Likewise.
3007         * target-globals.c: Likewise.
3008         * targhooks.c: Likewise.
3009         * toplev.c: Likewise.
3010         * tracer.c: Likewise.
3011         * trans-mem.c: Likewise.
3012         * tree-affine.c: Likewise.
3013         * tree-call-cdce.c: Likewise.
3014         * tree-cfg.c: Likewise.
3015         * tree-cfgcleanup.c: Likewise.
3016         * tree-chkp-opt.c: Likewise.
3017         * tree-chkp.c: Likewise.
3018         * tree-chrec.c: Likewise.
3019         * tree-complex.c: Likewise.
3020         * tree-data-ref.c: Likewise.
3021         * tree-dfa.c: Likewise.
3022         * tree-diagnostic.c: Likewise.
3023         * tree-dump.c: Likewise.
3024         * tree-eh.c: Likewise.
3025         * tree-emutls.c: Likewise.
3026         * tree-if-conv.c: Likewise.
3027         * tree-inline.c: Likewise.
3028         * tree-into-ssa.c: Likewise.
3029         * tree-iterator.c: Likewise.
3030         * tree-loop-distribution.c: Likewise.
3031         * tree-nested.c: Likewise.
3032         * tree-nrv.c: Likewise.
3033         * tree-object-size.c: Likewise.
3034         * tree-outof-ssa.c: Likewise.
3035         * tree-parloops.c: Likewise.
3036         * tree-phinodes.c: Likewise.
3037         * tree-predcom.c: Likewise.
3038         * tree-pretty-print.c: Likewise.
3039         * tree-profile.c: Likewise.
3040         * tree-scalar-evolution.c: Likewise.
3041         * tree-sra.c: Likewise.
3042         * tree-ssa-address.c: Likewise.
3043         * tree-ssa-alias.c: Likewise.
3044         * tree-ssa-ccp.c: Likewise.
3045         * tree-ssa-coalesce.c: Likewise.
3046         * tree-ssa-copy.c: Likewise.
3047         * tree-ssa-dce.c: Likewise.
3048         * tree-ssa-dom.c: Likewise.
3049         * tree-ssa-dse.c: Likewise.
3050         * tree-ssa-forwprop.c: Likewise.
3051         * tree-ssa-ifcombine.c: Likewise.
3052         * tree-ssa-live.c: Likewise.
3053         * tree-ssa-loop-ch.c: Likewise.
3054         * tree-ssa-loop-im.c: Likewise.
3055         * tree-ssa-loop-ivcanon.c: Likewise.
3056         * tree-ssa-loop-ivopts.c: Likewise.
3057         * tree-ssa-loop-manip.c: Likewise.
3058         * tree-ssa-loop-niter.c: Likewise.
3059         * tree-ssa-loop-prefetch.c: Likewise.
3060         * tree-ssa-loop-unswitch.c: Likewise.
3061         * tree-ssa-loop.c: Likewise.
3062         * tree-ssa-math-opts.c: Likewise.
3063         * tree-ssa-operands.c: Likewise.
3064         * tree-ssa-phiopt.c: Likewise.
3065         * tree-ssa-phiprop.c: Likewise.
3066         * tree-ssa-pre.c: Likewise.
3067         * tree-ssa-propagate.c: Likewise.
3068         * tree-ssa-reassoc.c: Likewise.
3069         * tree-ssa-sccvn.c: Likewise.
3070         * tree-ssa-scopedtables.c: Likewise.
3071         * tree-ssa-sink.c: Likewise.
3072         * tree-ssa-strlen.c: Likewise.
3073         * tree-ssa-structalias.c: Likewise.
3074         * tree-ssa-tail-merge.c: Likewise.
3075         * tree-ssa-ter.c: Likewise.
3076         * tree-ssa-threadedge.c: Likewise.
3077         * tree-ssa-threadupdate.c: Likewise.
3078         * tree-ssa-uncprop.c: Likewise.
3079         * tree-ssa-uninit.c: Likewise.
3080         * tree-ssa.c: Likewise.
3081         * tree-ssanames.c: Likewise.
3082         * tree-stdarg.c: Likewise.
3083         * tree-streamer-in.c: Likewise.
3084         * tree-streamer-out.c: Likewise.
3085         * tree-streamer.c: Likewise.
3086         * tree-switch-conversion.c: Likewise.
3087         * tree-tailcall.c: Likewise.
3088         * tree-vect-data-refs.c: Likewise.
3089         * tree-vect-generic.c: Likewise.
3090         * tree-vect-loop-manip.c: Likewise.
3091         * tree-vect-loop.c: Likewise.
3092         * tree-vect-patterns.c: Likewise.
3093         * tree-vect-slp.c: Likewise.
3094         * tree-vect-stmts.c: Likewise.
3095         * tree-vectorizer.c: Likewise.
3096         * tree-vrp.c: Likewise.
3097         * tree.c: Likewise.
3098         * tsan.c: Likewise.
3099         * ubsan.c: Likewise.
3100         * value-prof.c: Likewise.
3101         * var-tracking.c: Likewise.
3102         * varasm.c: Likewise.
3103         * varpool.c: Likewise.
3104         * vtable-verify.c: Likewise.
3105         * web.c: Likewise.
3106         * wide-int-print.cc: Likewise.
3107         * wide-int.cc: Likewise.
3108         * xcoffout.c: Likewise.
3110 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
3112         * Makefile.in (NO_PIE_CFLAGS): New.
3113         (NO_PIE_FLAG): Likewise.
3114         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3115         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3116         (BUILD_NO_PIE_CFLAGS): Likewise.
3117         (BUILD_NO_PIE_FLAG): Likewise.
3118         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3119         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3120         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3121         $(BUILD_NO_PIE_CFLAGS).
3122         (BUILD_CXXFLAGS): Likewise.
3123         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3124         $(BUILD_NO_PIE_FLAG).
3125         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
3126         (BUILD_NO_PIE_FLAG): Likewise.
3127         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3128         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3129         * configure: Regenerated.
3131 2015-10-29  Richard Biener  <rguenther@suse.de>
3133         PR middle-end/56956
3134         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3135         unsigned conditonal negation to ABS_EXPR.
3137 2015-10-29  Richard Biener  <rguenther@suse.de>
3139         * gimple-match-head.c (gimple_simplify): Remove premature checking
3140         of builtin_decl_implicit of function calls we simplify.
3142 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
3144         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3145         (get_computation_cost_at): Ditto.
3146         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3147         and inv_expr_id.
3149 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3151         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3152         superfluous code.
3154 2015-10-28  Jason Merrill  <jason@redhat.com>
3156         * Makefile.in (TAGS): Include libcpp and libiberty.
3158 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3160         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3161         (extract_omp_for_data): Remove OpenACC special handling of
3162         chunking.
3164         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3165         (struct parallel): Update comment.
3166         (nvptx_reorg): Likewise.
3167         (nvptx_neuter): Cleanup whitespace.
3169 2015-10-28  Richard Henderson  <rth@redhat.com>
3171         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3173 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3175         PR target/67839
3176         * config/avr/predicates.md (low_io_address_operand): Don't
3177         consider MODE when computing upper bound.
3178         (io_address_operand): Likewise.
3180 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
3182         * fold-const.c (operand_equal_p): Do not verify that types are
3183         compatible for MEM_REFs.
3185 2015-10-28  Richard Biener  <rguenther@suse.de>
3187         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3188         in simplifying VEC_COND_EXPR conditions.
3190 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3192         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3193         into vi_next of a full_var.
3195 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3197         * tree-ssa-structalias.c (new_var_info, make_heapvar)
3198         (make_constraint_from_restrict, make_constraint_from_global_restrict)
3199         (create_function_info_for, create_variable_info_for_1)
3200         (create_variable_info_for): Add and handle add_id parameter.
3201         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3202         (init_base_vars): Add extra argument to calls to new_var_info.
3203         (get_vi_for_tree): Add extra argument to call to
3204         create_variable_info_for.
3205         (process_constraint, do_deref, process_all_all_constraints): Add extra
3206         argument to calls to new_scalar_tmp_constraint_exp.
3207         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3208         argument to calls to make_heapvar.
3209         (make_restrict_var_constraints): Add extra argument to call to
3210         make_constraint_from_global_restrict.
3211         (intra_create_variable_infos): Add extra argument to call to
3212         create_variable_info_for_1.
3213         (ipa_pta_execute): Add extra argument to call to
3214         create_function_info_for.
3216 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3218         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3219         (sibcall_value): Likewise.
3221 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3223         * config/nvptx/nvptx.h (struct machine_function): Add
3224         axis_predicate.
3225         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3226         nvptx_expand_oacc_join): Declare.
3227         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3228         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3229         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3230         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3231         UNSPECV_JOINING, UNSPECV_JOIN): New.
3232         (BITS, BITD): New mode iterators.
3233         (br_true_uni, br_false_uni): New.
3234         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3235         (oacc_dim_size, oacc_dim_pos): New.
3236         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3237         (oacc_fork, oacc_join): New.
3238         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3239         (worker_load<mode>, worker_store<mode>): New.
3240         (nvptx_barsync): New.
3241         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3242         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3243         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3244         worker_bcast_sym): New.
3245         (nvptx_option_override): Initialize worker broadcast buffer.
3246         (nvptx_emit_forking, nvptx_emit_joining): New.
3247         (nvptx_init_axis_predicate): New.
3248         (nvptx_declare_function_name): Init axis predicates.
3249         (nvptx_expand_call): Add fork/join markers around routine call.
3250         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3251         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3252         (nvptx_gen_vcast): New.
3253         (struct wcast_data_t): New.
3254         (enum propagate_mask): New.
3255         (nvptx_gen_wcast): New.
3256         (nvptx_print_operand): Add 'S' case.
3257         (struct parallel): New.
3258         (parallel::parallel, parallel::~parallel): New.
3259         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3260         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3261         nvptx_find_par, nvptx_discover_pars): New.
3262         (nvptx_propagate): New.
3263         (vprop_gen, nvptx_vpropagate): New.
3264         (wprop_gen, nvptx_wpropagate): New.
3265         (nvptx_wsync): New.
3266         (nvptx_single, nvptx_skip_par): New.
3267         (nvptx_process_pars, nvptx_neuter_pars): New.
3268         (ntptx_reorg): Split blocks, generate parallel structure, apply
3269         neutering.
3270         (nvptx_cannot_copy_insn_p): New.
3271         (nvptx_file_end): Emit worker broadcast decl.
3272         (nvptx_goacc_fork_join): New.
3273         (TARGET_CANNOT_COPY_INSN_P): Override.
3274         (TARGET_GOACC_FORK_JOIN): Override.
3276 2015-10-28  Richard Biener  <rguenther@suse.de>
3278         * fold-const.c (negate_expr_p): Adjust the division case to
3279         properly avoid introducing undefined overflow.
3280         (fold_negate_expr): Likewise.
3282 2015-10-28  Richard Biener  <rguenther@suse.de>
3284         PR tree-optimization/65962
3285         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3286         Avoid creating loop carried dependences also for outer loops
3287         of the loop a use to replace is in.
3289 2015-10-28  Richard Biener  <rguenther@suse.de>
3291         * common.opt (fchecking): New flag controlling flag_checking.
3292         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3293         * timevar.c (timer::print): Adjust output.
3294         * doc/invoke.texi (fchecking): Document.
3296 2015-10-28  Richard Biener  <rguenther@suse.de>
3298         PR middle-end/68067
3299         * fold-const.c (negate_expr_p): We cannot negate plus or minus
3300         if overflow is not wrapping.  Likewise multiplication unless
3301         one operand is constant and not power of two.
3302         (fold_negate_expr): Adjust accordingly.
3304 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3306         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3307         fields.
3308         (is_oacc_parallel, is_oacc_kernels): New.
3309         (enclosing_target_ctx): May return NULL.
3310         (ctx_in_oacc_kernels_region): New.
3311         (check_oacc_kernel_gwv): New.
3312         (oacc_loop_or_target_p): Delete.
3313         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
3314         operands.  Strip reductions fro kernels.
3315         (scan_omp_target): Don't calculate gwv mask.
3316         (lower_oacc_head_mark, lower_oacc_loop_marker,
3317         lower_oacc_head_tail): New.
3318         (struct oacc_collapse): New.
3319         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3320         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3321         Remove OpenACC handling.
3322         (expand_oacc_for): New.
3323         (expand_omp_for): Call expand_oacc_for.
3324         (lower_omp_for): Call lower_oacc_head_tail.
3326 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
3328         * attribs.c (check_attribute_tables): New function, broken out from...
3329         (init_attributes): Use it.
3330         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3331         gcc_checking_assert and checking_* functions to eliminate
3332         ENABLE_CHECKING conditionals.
3333         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3334         (pass_expand::execute): Likewise.
3335         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3336         * cgraphunit.c (mark_functions_to_output): Likewise.
3337         (cgraph_node::expand_thunk): Likewise.
3338         (symbol_table::compile): Likewise.
3339         * ddg.c (add_cross_iteration_register_deps): Likewise.
3340         (create_ddg_all_sccs): Likewise.
3341         * df-core.c (df_finish_pass, df_analyze): Likewise.
3342         * diagnostic-core.h: Likewise.
3343         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3344         * dominance.c (calculate_dominance_info): Likewise.
3345         * dwarf2out.c (add_AT_die_ref): Likewise.
3346         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3347         (loc_list_from_tree, gen_lexical_block_die): Likewise.
3348         gen_type_die_with_usage, gen_type_die): Likewise.
3349         (dwarf2out_decl): Likewise.
3350         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3351         * except.c (duplicate_eh_regions): Likewise.
3352         * fwprop.c (register_active_defs, update_df_init): Likewise.
3353         (fwprop_init, fwprop_done): Likewise.
3354         (update_uses): Likewise.
3355         * ggc-page.c (ggc_grow): Likewise.
3356         * gimplify.c (gimplify_body): Likewise.
3357         (gimplify_hasher::equal): Likewise.
3358         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3359         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3360         Likewise.
3361         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3362         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3363         * hash-table.h (::find_empty_slot_for_expand): Likewise.
3364         * ifcvt.c (if_convert): Likewise.
3365         * ipa-cp.c (ipcp_propagate_stage): Likewise.
3366         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3367         (odr_type_p, odr_types_equivalent_p): Likewise.
3368         (add_type_duplicate, get_odr_type): Likewise.
3369         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3370         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3371         (sem_item_optimizer::verify_classes): Likewise.
3372         (sem_item_optimizer::traverse_congruence_split): Likewise.
3373         (sem_item_optimizer::checking_verify_classes): New.
3374         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3375         method.
3376         * cfgrtl.c (commit_edge_insertions): Likewise.
3377         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3378         (rtl_flow_call_edges_add): Likewise.
3379         * cgraph.c (symbol_table::create_edge): Likewise.
3380         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3381         * cgraph.h (symtab_node): Likewise.
3382         (symtab_node::checking_verify_symtab_nodes): Define.
3383         (cgraph_node::checking_verify_cgraph_nodes): Define.
3384         * cfghooks.h (checking_verify_flow_info): Define.
3385         * cfgloop.h (checking_verify_loop_structure): Define.
3386         * dominance.h (checking_verify_dominators): Define.
3387         * et-forest.c: Fix comment.
3388         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3389         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3390         ENABLE_CHECKING conditionals.
3391         * ipa-inline-transform.c (save_inline_function_body): Likewise.
3392         * ipa-inline.c (inline_small_functions): Likewise.
3393         (early_inliner): Likewise.
3394         * ipa-inline.h (estimate_edge_growth): Likewise.
3395         * ipa-visibility.c (function_and_variable_visibility): Likewise.
3396         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3397         (ipa_single_use): Likewise.
3398         * ira-int.h: Likewise.
3399         * ira.c (ira): Likewise.
3400         * loop-doloop.c (doloop_optimize_loops): Likewise.
3401         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3402         * loop-invariant.c (move_loop_invariants): Likewise.
3403         * lra-assigns.c (lra_assign): Likewise.
3404         * lra-constraints.c (lra_constraints): Likewise.
3405         * lra-eliminations.c (lra_eliminate): Likewise.
3406         * lra-int.h (struct lra_reg): Likewise.
3407         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3408         (lra_create_live_ranges_1): Likewise.
3409         * lra-remat.c (create_remat_bb_data): Likewise.
3410         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3411         (lra): Likewise.
3412         (check_rtl): Always define. Remove incorrect guard around
3413         extract_constrain_insn call.
3414         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3415         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3416         ENABLE_CHECKING conditionals.
3417         * lto-streamer-out.c (DFS::DFS): Likewise.
3418         (lto_output): Likewise.
3419         * lto-streamer.c (lto_streamer_init): Likewise.
3420         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3421         expand_omp_target, execute_expand_omp): Likewise.
3422         (lower_omp_target): Likewise.
3423         * passes.c (execute_function_todo): Likewise.
3424         (execute_todo, execute_one_pass): Likewise.
3425         (verify_curr_properties): Always define.
3426         * predict.c (tree_estimate_probability: Use flag_checking,
3427         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3428         ENABLE_CHECKING conditionals.
3429         (propagate_freq): Likewise.
3430         * pretty-print.c (pp_format): Likewise.
3431         * real.c (real_to_decimal_for_mode): Likewise.
3432         * recog.c (split_all_insns): Likewise.
3433         * regcprop.c (kill_value_one_regno): Likewise.
3434         (copy_value): Likewise.
3435         (validate_value_data): Define unconditionally.
3436         * reload.c: Fix comment.
3437         * timevar.c: Include options.h
3438         * tree-ssa.h (checking_verify_ssa): Define.
3439         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3440         * sched-deps.c (CHECK): Remove unused macro.
3441         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3442         gcc_checking_assert and checking_* functions to eliminate
3443         ENABLE_CHECKING conditionals.
3444         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3445         * sel-sched.c (struct moveop_static_params): Likewise.
3446         (find_best_reg_for_expr, move_cond_jump): Likewise.
3447         (move_op_orig_expr_not_found): Likewise.
3448         (code_motion_process_successors, move_op): Likewise.
3449         * ssa-iterators.h (first_readonly_imm_use): Likewise.
3450         (next_readonly_imm_use): Likewise.
3451         * store-motion.c (compute_store_table): Likewise.
3452         * symbol-summary.h (function_summary::function_summary): Likewise.
3453         * target.h (cumulative_args_t): Likewise.
3454         (get_cumulative_args, pack_cumulative_args): Likewise.
3455         * timevar.c: (timer::print): Likewise.
3456         * trans-mem.c (ipa_tm_execute): Likewise.
3457         * tree-cfg.c (move_stmt_op): Likewise.
3458         (move_sese_region_to_fn): Likewise.
3459         (gimple_flow_call_edges_add): Likewise.
3460         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3461         Likewise.
3462         * tree-eh.c (remove_unreachable_handlers): Likewise.
3463         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3464         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3465         * tree-into-ssa.c (update_ssa): Likewise.
3466         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3467         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3468         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3469         * tree-predcom.c (suitable_component_p): Likewise.
3470         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3471         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3472         * tree-ssa-live.c (verify_live_on_entry): Likewise.
3473         * tree-ssa-live.h (register_ssa_partition): Likewise.
3474         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3475         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3476         (tree_transform_and_unroll_loop): Likewise.
3477         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3478         * tree-ssa-operands.c (get_expr_operands): Likewise.
3479         * tree-ssa-propagate.c (replace_exp_1): Likewise.
3480         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3481         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3482         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3483         * tree-ssanames.c (release_ssa_name_fn): Likewise.
3484         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3485         * tree-vect-loop-manip.c
3486         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3487         (slpeel_checking_verify_cfg_after_peeling): Likewise.
3488         (vect_do_peeling_for_loop_bound): Likewise.
3489         (vect_do_peeling_for_alignment): Likewise.
3490         * tree-vrp.c (supports_overflow_infinity): Likewise.
3491         (set_value_range): Likewise.
3492         * tree.c (free_lang_data_in_cgraph): Likewise.
3493         * value-prof.c (gimple_remove_histogram_value): Likewise.
3494         (free_hist): Likewise.
3495         * var-tracking.c (canonicalize_values_star): Likewise.
3496         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3498 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3500         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3501         IFN_GOACC_LOOP): New.
3502         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3503         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3504         IFN_UNIQUE_OACC_TAIL_MARK.
3505         (enum ifn_goacc_loop_kind): New.
3506         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3507         IFN_UNIQUE_OACC_JOIN cases.
3508         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3509         (expand_GOACC_LOOP): New.
3510         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3511         * omp-low.c: Include gimple-pretty-print.h.
3512         (struct oacc_loop): New.
3513         (enum oacc_loop_flags): New.
3514         (oacc_thread_numbers): New.
3515         (oacc_xform_loop): New.
3516         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3517         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3518         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3519         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3520         oacc_loop_discovery): New.
3521         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3522         oacc_loop_process): New.
3523         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3524         (execute_oacc_device_lower): Discover & process loops.  Process
3525         internal fns.
3526         * target.def (goacc.fork_join): Change sense of hook, clarify
3527         documentation.
3528         * doc/tm.texi: Regenerated.
3530 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3532         * target-insns.def (oacc_fork, oacc_join): Define.
3533         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3534         (goacc.fork_join): New GOACC hook.
3535         * targhooks.h (default_goacc_fork_join): Declare.
3536         * omp-low.c (default_goacc_forkjoin): New.
3537         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3538         * doc/tm.texi: Regenerate.
3540 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3542         * omp-low.c (oacc_init_rediction_array): New.
3543         (oacc_initialize_reduction_data): Initialize array.
3545 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3547         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3549 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3551         * internal-fn.c (expand_UNIQUE): New.
3552         * internal-fn.h (enum ifn_unique_kind): New.
3553         * internal-fn.def (IFN_UNIQUE): New.
3554         * target-insns.def (unique): Define.
3555         * gimple.h (gimple_call_internal_unique_p): New.
3556         * gimple.c (gimple_call_same_target_p): Check internal fn
3557         uniqueness.
3558         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3559         * tree-ssa-threadedge.c
3560         (record_temporary_equivalences_from_stmts): Likewise.
3561         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3563 2015-10-27  Richard Henderson  <rth@redhat.com>
3565         PR rtl-opt/67609
3566         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3567         narrowing subregs on SSE and MMX registers.
3568         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3569         appear to be sub-words of multi-register pseudos must be rejected.
3570         * doc/tm.texi: Regenerate.
3572 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3574         PR target/68102
3575         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3576         operands[0] is a reg before taking its REGNO in split condition.
3577         (*movdi_aarch64): Likewise.
3579 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3581         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3582         Handle floating point inner modes properly.
3584 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
3586         * tree-vect-looop.c
3587         (vectorizable_live_operation): Change iterator.
3589 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3590             Aditya Kumar  <aditya.k7@samsung.com>
3592         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3593           function to schedule based on isl_schedule_node.
3594         (get_schedule_map_st): New schedule optimizer based on
3595         isl_schedule_node.
3596         (scop_get_domains): New. Return the isl_union_set containing the
3597         domains of all the pbbs.
3598         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3600 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
3602         PR target/67215
3603         * calls.c (prepare_call_address): Don't handle -fno-plt here.
3604         * config/i386/i386.c (ix86_expand_call): Generate indirect call
3605         via GOT for -fno-plt.  Support indirect call via GOT for x32.
3606         * config/i386/predicates.md (sibcall_memory_operand): Allow
3607         GOT memory operand.
3609 2015-10-27  Richard Biener  <rguenther@suse.de>
3611         PR tree-optimization/68104
3612         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3613         strided access check ...
3614         (vect_compute_data_refs_alignment): ... here.
3616 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
3617             Joseph Myers  <joseph@codesourcery.com>
3618             Mark Shinwell  <shinwell@codesourcery.com>
3619             Andrew Stubbs  <ams@codesourcery.com>
3620             Rich Felker <dalias@libc.org>
3622         * config.gcc: Handle --enable-fdpic.
3623         * config/sh/constraints.md (Ccl): New constraint.
3624         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3625         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3626         __SH_FDPIC__.
3627         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3628         library functions.
3629         * config/sh/sh-protos.h (function_symbol_result): New struct.
3630         (function_symbol): Return function_symbol_result.
3631         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3632         declarations.
3633         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3634         target hook.
3635         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3636         (sh_option_override): Force -fPIC if FDPIC is in effect.
3637         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3638         UNSPEC_GOTOFFFUNCDESC cases.
3639         (prepare_move_operands): Use FDPIC initial GOT register for
3640         TLS-related GOT access; inhibit cross-section address offset constants
3641         for FDPIC.
3642         (sh_assemble_integer): New function.
3643         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3644         PC-relative call sites.
3645         (expand_ashiftrt): Adapt invocation of function_symbol.
3646         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3647         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3648         UNSPEC_GOTOFFFUNCDESC.
3649         (legitimize_pic_address): Resolve function symbols to function
3650         descriptors for FDPIC.  Do not use GOT-relative addressing for local
3651         data that may be read-only on FDPIC.
3652         (sh_emit_storesi, sh_emit_storehi): New functions.
3653         (sh_trampoline_init): Generate FDPIC trampolines.
3654         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3655         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3656         (sh_output_mi_thunk): Generate FDPIC call.
3657         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
3658         FDPIC, generate call site labels to use PC-relative addressing rather
3659         than GOT-relative addressing.
3660         (sh_conditional_register_usage): Make PIC register fixed and call used
3661         when FDPIC is in effect.
3662         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3663         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3664         sh_get_fdpic_reg_initial_val): New functions.
3665         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3666         Handle -mfdpic.
3667         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3668         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3669         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3670         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3671         FDPIC_SELF_SPECS.
3672         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3673         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3674         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3675         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3676         constants.
3677         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3678         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3679         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3680         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3681         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3682         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3683         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3684         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3685         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3686         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3687         block_move_real, block_lump_real, block_move_real_i4,
3688         block_lump_real_i4): Add support for FDPIC calls.
3689         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3690         call_value_pop): Adjust for new function_symbol signature.
3691         * config/sh/sh.opt (-mfdpic): New option.
3692         * doc/install.texi (Options specification): Document --enable-fdpic.
3693         * doc/invoke.texi (SH Options): Document -mfdpic.
3696 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3698         PR tree-optimization/65963
3699         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3700         LSHIFT_EXPRs as equivalent MULT_EXPRs.
3702 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3704         PR target/67929
3705         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3706         * config/arm/constraints.md (Dp): Update callsite.
3707         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3709 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3711         * builtins.c (fold_builtin_load_exponent): Rename to...
3712         (fold_const_builtin_load_exponent): ...this and only handle
3713         constant arguments.
3714         (fold_builtin_2): Update accordingly.
3715         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3717 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3719         * builtins.c (fold_builtin_logb): Rename to...
3720         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3721         (fold_builtin_significand): Rename to...
3722         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3723         (fold_builtin_1): Update accordingly.
3725 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3727         * builtins.c (fold_builtin_fmin_fmax): Delete.
3728         (fold_builtin_2): Handle constant fmin and fmax arguments here.
3729         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3731 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
3733         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3734         for register extension into sign and zero register extension.
3735         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3736         for sign and zero register extension.
3737         (cortexa57_addrcost_table): Likewise.
3738         (xgene1_addrcost_table): Likewise.
3740 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3742         * fold-const.c (fold_minmax): Delete.
3743         (fold_binary_loc): Don't call it.
3744         * match.pd: Add rules previously handled by fold_minmax.
3746 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3748         * builtins.c (fold_builtin_fma): Remove constant handling.
3749         (fold_builtin_3): Handle constant fma arguments here.
3751 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3753         * builtins.c (fold_builtin_fabs): Remove constant handling.
3754         (fold_builtin_abs): Likewise.
3756 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3758         * builtins.c (fold_builtin_copysign): Delete.
3759         (fold_builtin_2): Handle constant copysign arguments here.
3760         * match.pd: Add rules previously handled by fold_builtin_copysign.
3762 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3764         * builtins.c (fold_builtin_signbit): Delete.
3765         (fold_builtin_2): Handle constant signbit arguments here.
3766         * match.pd: Add rules previously handled by fold_builtin_signbit.
3768 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3770         * match.pd: Handle sqrt(x) cmp 0 specially.
3772 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
3774         * tree-vect-generic.c (expand_vector_operations_1): Check
3775         optab type before using it.
3777 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3779         * config/aarch64/aarch64-protos.h
3780         (struct tune_params): Add autoprefetcher_model field.
3781         * config/aarch64/aarch64.c: Include params.h
3782         (generic_tunings): Specify autoprefetcher_model value.
3783         (cortexa53_tunings): Likewise.
3784         (cortexa57_tunings): Likewise.
3785         (cortexa72_tunings): Likewise.
3786         (thunderx_tunings): Likewise.
3787         (xgene1_tunings): Likewise.
3788         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3789         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3790         (aarch64_override_options_internal): Set
3791         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3793 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3795         * builtins.c (fold_builtin_exponent): Delete.
3796         (fold_builtin_2): Handle constant expN arguments here.
3797         * match.pd: Fold expN(logN(x)) -> x.
3799 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3801         * builtins.c (fold_builtin_powi): Delete.
3802         (fold_builtin_2): Handle constant powi arguments here.
3803         * match.pd: Add rules previously handled by fold_builtin_powi.
3805 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3807         * builtins.c (fold_builtin_pow): Delete in favor of...
3808         (fold_const_builtin_pow): ...this new function.  Only handle constant
3809         arguments.
3810         (fold_builtin_2): Update accordingly.
3811         * match.pd: Add rules previously handled by fold_builtin_pow.
3813 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3815         * builtins.c (fold_builtin_hypot): Delete.
3816         (fold_builtin_2): Handle constant hypot arguments here.
3817         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
3818         hypot(x, x) to fabs(x)*sqrt(2).
3820 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3822         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3823         instead of make_ssa_name if not yet in SSA form.
3825 2015-10-27  Richard Biener  <rguenther@suse.de>
3827         * cfg.c (free_edge): Add function argument and use it instead of cfun.
3828         (clear_edges): Likewise.
3829         * cfg.h (clear_edges): Adjust prototype.
3830         * cfgexpand.c (pass_expand::execute): Adjust.
3831         * cfgloop.c (release_recorded_exits): Add function argument and use
3832         it instead of cfun.
3833         * cfgloop.h (release_recorded_exits): Adjust prototype.
3834         (loops_state_satisfies_p): Add overload with function argument.
3835         (loops_state_set): Likewise.
3836         (loops_state_clear): Likewise.
3837         (struct loop_iterator): Add function argument to constructor
3838         and iterator and use it instead of cfun.
3839         (FOR_EACH_LOOP_FN): New macro.
3840         (loop_optimizer_finalize): Add overload with function argument.
3841         * loop-init.c (loop_optimizer_init): Adjust.
3842         (fix_loop_structure): Likewise.
3843         (loop_optimizer_finaliz): Add function argument and use it
3844         instead of cfun.
3845         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3846         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3847         * cgraph.c (release_function_body): Do not push/pop cfun.
3848         * final.c (rest_of_clean_state): Adjust.
3849         * graphite.c (graphite_finalize): Likewise.
3850         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3851         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3852         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3853         (tree_unroll_loops_completely): Likewise.
3854         (pass_complete_unrolli::execute): Likewise.
3855         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3856         Add function argument and use it instead of cfun.
3857         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3858         Adjust prototype.
3859         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3860         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3861         instead of cfun.
3862         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3863         * tree-ssanames.c (fini_ssanames): Add function argument and use it
3864         instead of cfun.
3865         * tree-ssanames.c (fini_ssanames): Adjust prototype.
3866         * tree-vrp.c (execute_vrp): Adjust.
3867         * value-prof.c (free_histograms): Add function argument and use it
3868         instead of cfun.
3869         * value-prof.h (free_histograms): Adjust prototype.
3871 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3873         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3874         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3875         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
3877 2015-10-27  Tom de Vries  <tom@codesourcery.com>
3879         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3880         field_type.
3882 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
3884         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3885         (inv_can_prop_to_addr_use): New function.
3886         (record_use): Call can_prop_to_addr_uses, set the new field.
3887         (get_inv_cost): Count cost if inv can't be propagated into its
3888         address uses.
3890 2015-10-26  Doug Evans  <dje@google.com>
3892         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3894 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3896         * match.pd (fold_widened_comparison): Apply simplifications to all
3897         integral types.
3899 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
3901         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3902         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3903         * doc/tm.texi: Regenerated.
3904         * reorg.c (dbr_schedule): Use new hook.
3905         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3907 2015-10-26  Jeff Law  <law@redhat.com>
3909         PR tree-optimization/68013
3910         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3911         Make sure the first block in the path is in VISITED_BBs.
3913 2015-10-26  Richard Biener  <rguenther@suse.de>
3914         Dominik Vogt  <vogt@linux.vnet.ibm.com>
3916         PR middle-end/67443
3917         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3918         Properly prune ref->ref for accesses outside of ref.
3920 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3922         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3923         new statements to be inserted if inplace.  Allow calls to have
3924         nonempty sequences.
3926 2015-10-26  Richard Biener  <rguenther@suse.de>
3928         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3929         (do_valueize): New function.
3930         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3931         replace_uses_by.
3932         * tree-ssa-threadedge.c: Remove builtins.h include, include
3933         gimple-fold.h
3934         (fold_assignment_stmt): Remove.
3935         (threadedge_valueize): New function.
3936         (record_temporary_equivalences_from_stmts): Use
3937         gimple_fold_stmt_to_constant_1, note additional cleanup
3938         opportunities.
3940 2015-10-26  Richard Biener  <rguenther@suse.de>
3942         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3943         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3945 2015-10-26  Alan Hayward <alan.hayward@arm.com>
3947         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3948         VEC_COND_EXPR types.
3950 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3952         * auto-inc-dec.c (insert_move_insn_before): Delete.
3953         (attempt_change): Remember to cost the simple move in the
3954         FORM_PRE_ADD and FORM_POST_ADD cases.
3956 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3958         PR target/68091
3959         * config/sh/sh.c (sh_vector_mode_supported_p): Use
3960         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3962 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3964         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3965         factored out of ...
3966         (intra_create_variable_infos): ... here.
3968 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3970         * tree-ssa-structalias.c (intra_create_variable_infos): Add
3971         restrict_pointer_p and recursive_restrict_p variables.
3973 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3975         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3976         get_vi_for_tree call.
3978 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3980         PR middle-end/67989
3981         * optabs.c (expand_atomic_compare_and_swap): Handle case when
3982         ptarget_oval or ptarget_bool are const0_rtx.
3984 2015-10-26  Christian Bruel  <christian.bruel@st.com>
3986         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3987         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3988         * cp/method.c (implicitly_declare_fn): Likewise.
3989         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3990         * java/class.c (add_method_1): Likewise.
3992 2015-10-26  Richard Biener  <rguenther@suse.de>
3994         * alloc-pool.h (base_pool_allocator): Use placement new.
3995         (base_pool_allocator::remove): Likewise.  Compute size outside of
3996         flag_checking.
3998 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4000         * builtins.c (do_real_to_int_conversion): New function.
4001         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4002         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4003         arguments here.
4004         * match.pd: Add rules previously handled by fold_fixed_mathfn
4005         and fold_builtin_int_roundingfn.
4007 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4009         * match.pd: Use macros to define built-in operator lists.
4011 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
4012             Richard Biener  <rguenther@suse.de>
4014         * genmatch.c (dt_simplify::gen): Skip captures that are
4015         part of the result.
4016         (parser::parse_expr): Allow captures in results too.
4017         * builtins.c (fold_builtin_cexp): Delete.
4018         (fold_builtin_1): Handle constant cexp arguments here.
4019         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4021 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
4023         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4024         conditional compilation.
4025         (base_pool_allocator::remove): Use flag_checking.
4027 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
4029         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4031         PR middle-end/68079
4032         * dojump.c (do_compare_and_jump): Canonicalize both function and
4033         method types.
4035 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
4037         PR target/68084
4038         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4039         for =@ccae.
4041 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4043         PR ipa/pr67600
4044         * ipa-polymorphic-call.c
4045         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4046         instance offset with offset of outer type.
4048 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4050         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4052 2015-10-23  Caroline Tice  <cmtice@google.com>
4054         (from Richard Biener
4055         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
4056         call to iterative_hash_host_wide_int.
4058 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4060         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4061         Define as yes.
4063 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4065         * tree-vect-generic.c (expand_vector_operations_1): Check
4066         optab exists before use it.
4068 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4070         * tree-vect-generic.c (expand_vector_condition): Avoid
4071         uninitialized variable warning.
4073 2015-10-23  Jeff Law  <law@redhat.com>
4075         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4076         here.  Instead...
4077         (execute_todo): Call it here.
4078         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4079         statistics
4080         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4082 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4083             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4085         * config.gcc (enable_secureplt): Add *-linux*-musl*.
4087 2015-10-23  Jeff Law  <law@redhat.com>
4089         PR tree-optimization/67830
4090         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4091         Explicitly verify the mask has no bits outside the type of
4092         the innermost operands.
4094 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4095             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4097         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4098         (MUSL_DYNAMIC_LINKER64): Define.
4099         (GNU_USER_DYNAMIC_LINKER32): Update.
4100         (GNU_USER_DYNAMIC_LINKER64): Update.
4101         (CHOOSE_DYNAMIC_LINKER): Update.
4103         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4104         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4105         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4106         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4107         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4108         (CHOOSE_DYNAMIC_LINKER): Update.
4109         (INCLUDE_DEFAULTS): Redefine.
4111         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4113 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4115         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4116         comparing addresses.
4118 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4120         * fold-const.c (operand_equal_p): Handle matching of vector
4121         constructors.
4123 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4125         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4127 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
4128             Andrew Pinski  <apinski@cavium.com>
4130         PR rtl-optimization/67736
4131         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4132         of gen_lowpart.
4134 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4136         PR middle-end/68066
4137         * tree.c (build_truth_vector_type): Support BLK mode
4138         returned for boolean vector.
4140 2015-10-23  Alan Hayward <alan.hayward@arm.com>
4142         PR tree-optimization/65947
4143         * tree-vect-loop.c
4144         (vect_is_simple_reduction_1): Find condition reductions.
4145         (vect_model_reduction_cost): Add condition reduction costs.
4146         (get_initial_def_for_reduction): Add condition reduction initial var.
4147         (vect_create_epilog_for_reduction): Add condition reduction epilog.
4148         (vectorizable_reduction): Condition reduction support.
4149         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4150         * doc/sourcebuild.texi (Vector-specific attributes): Document
4151         vect_max_reduc
4153 2015-10-23  Richard Biener  <rguenther@suse.de>
4155         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4156         and builtins.def.
4158 2015-10-23  Richard Biener  <rguenther@suse.de>
4159             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4161         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4162         into (A ^ B) - B to match.pd
4163         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4165         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4166         New simplifier.
4167         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4168         New simplifier.
4169         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4170         New simplifier.
4171         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4172         New simplifier.
4173         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4174         INTEGER_CST@1)): New simplifier.
4176 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
4178         * builtins.c (integer_valued_real_p): Move to fold-const.c.
4179         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4180         (fold_builtin_ceil, fold_builtin_round): Delete.
4181         (fold_builtin_1): Handle constant trunc, floor, ceil and round
4182         arguments here.
4183         * convert.c (convert_to_real): Remove narrowing of rounding
4184         functions.
4185         * fold-const.h (integer_valued_real_unary_p)
4186         (integer_valued_real_binary_p, integer_valued_real_call_p)
4187         (integer_valued_real_single_p, integer_valued_real_p): Declare.
4188         * fold-const.c (tree_single_nonnegative_warnv_p): Move
4189         name_registered_for_update_p check to SSA_NAME case statement.
4190         Don't call tree_simple_nonnegative_warnv_p for SSA names.
4191         (integer_valued_real_unary_p, integer_valued_real_binary_p)
4192         (integer_valued_real_call_p, integer_valued_real_single_p)
4193         (integer_valued_real_invalid_p): New functions.
4194         (integer_valued_real_p): Move from fold-const.c and rework
4195         to call the functions above.  Handle SSA names.
4196         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4197         * gimple-fold.c (gimple_assign_integer_valued_real_p)
4198         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4199         (gimple_stmt_integer_valued_real_p): New functions.
4200         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4201         Fold f(x)->x for the same f if x is known to be integer-valued.
4202         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4203         the result.  Canonicalize floor(x) as trunc(x) if x is
4204         nonnegative.
4206 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4208         * tree-ssa-structalias.c (intra_create_variable_infos): Use
4209         make_constraint_from.
4211 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4213         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4214         setting of is_full_var in case of a single field.
4216 2015-10-22  Martin Sebor  <msebor@redhat.com>
4218         PR driver/68043
4219         * config/i386/i386.opt: Add missing periods to the ends of sentences.
4220         * config/msp430/msp430.opt: Same.
4222 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4224         * doc/extend.exp (Global Register Variables): Rewrite.
4226 2015-10-22  Jeff Law  <law@redhat.com>
4228         * genattrtab.c (main): If we do not have any annul-true or annul-false
4229         slots, then write out a dummy eligible_for_annul_true or
4230         eligible_for_annul_false as needed.
4232 2015-10-22  Nick Clifton  <nickc@redhat.com>
4234         * config/msp430/msp430.opt: Add -msilicon-errata and
4235         -msilicon-errata-warn.
4236         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4237         assembler.
4238         * doc/invoke.texi: Document new options.
4240 2015-10-22  Richard Biener  <rguenther@suse.de>
4242         PR tree-optimization/58497
4243         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4244         (expand_vector_operations_1): Use it.  Lower operations on
4245         all uniform vectors to scalar operations if the HW supports it.
4247 2015-10-22  Richard Biener  <rguenther@suse.de>
4249         PR tree-optimization/19049
4250         PR tree-optimization/65962
4251         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4252         to strided accesses if single-element interleaving doesn't work.
4254 2015-10-22  Richard Biener  <rguenther@suse.de>
4256         PR middle-end/68046
4257         PR middle-end/61893
4258         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4259         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4260         (expand_unop): Likewise.
4262 2015-10-22  Richard Biener  <rguenther@suse.de>
4264         * fold-const.c (fold_addr_of_array_ref_difference): Properly
4265         convert operands before folding a MINUS_EXPR.
4266         (fold_binary_loc): Move simplification of MINUS_EXPR on
4267         converted POINTER_PLUS_EXPRs ...
4268         * match.pd: ... here.
4270 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4272         * builtins.c (fold_builtin_tan): Delete.
4273         (fold_builtin_1): Handle constant tan arguments here.
4274         * match.pd: Simplify (tan (atan x)) to x.
4276 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4278         * builtins.c (fold_builtin_cproj): Delete.
4279         (fold_builtin_1): Handle constant arguments here.
4280         (build_complex_cproj): Move and rename to...
4281         * tree.c: (build_complex_inf): ...this.
4282         * tree.h (build_complex_inf): Declare.
4283         * match.pd: Fold cproj(x)->x if x has no infinity.
4284         Use build_complex_inf for existing cproj rules.
4286 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4288         PR target/68015
4289         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4290         already have a comparison result.
4292 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4294         PR target/63304
4295         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4296         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4297         (aarch64_classify_address): Likewise.
4298         (aarch64_secondary_reload): Likewise.
4299         (aarch64_override_options_after_change_1): Adjust.
4300         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4301         Use aarch64_nopcrelative_literal_loads.
4302         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4303         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4304         Declare.
4306 2015-10-21  Martin Sebor  <msebor@redhat.com>
4308         PR driver/68043
4309         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4310         (print_filtered_help): Reference aliased option's name and encourage
4311         readers to use it in preference to the alias if the former is not
4312         documented.  Mention when using an option is diagnosed.
4313         * gcc.c (display_help): End each sentence with a period.
4315         * common.opt: End each sentence that describes an option with
4316         a period.
4317         * config/aarch64/aarch64.opt: Same.
4318         * config/alpha/alpha.opt: Same.
4319         * config/arc/arc.opt: Same.
4320         * config/arm/arm.opt: Same.
4321         * config/avr/avr.opt: Same.
4322         * config/bfin/bfin.opt: Same.
4323         * config/c6x/c6x.opt: Same.
4324         * config/cr16/cr16.opt: Same.
4325         * config/cris/cris.opt: Same.
4326         * config/cris/linux.opt: Same.
4327         * config/darwin.opt: Same.
4328         * config/epiphany/epiphany.opt: Same.
4329         * config/fr30/fr30.opt: Same.
4330         * config/frv/frv.opt: Same.
4331         * config/ft32/ft32.opt: Same.
4332         * config/g.opt: Same.
4333         * config/h8300/h8300.opt: Same.
4334         * config/i386/cygming.opt: Same.
4335         * config/i386/djgpp.opt: Same.
4336         * config/i386/i386.opt: Same.
4337         * config/i386/interix.opt: Same.
4338         * config/i386/mingw-w64.opt: Same.
4339         * config/i386/mingw.opt: Same.
4340         * config/ia64/ia64.opt: Same.
4341         * config/ia64/ilp32.opt: Same.
4342         * config/iq2000/iq2000.opt: Same.
4343         * config/linux.opt: Same.
4344         * config/lm32/lm32.opt: Same.
4345         * config/lynx.opt: Same.
4346         * config/m32c/m32c.opt: Same.
4347         * config/m32r/m32r.opt: Same.
4348         * config/m68k/ieee.opt: Same.
4349         * config/m68k/m68k.opt: Same.
4350         * config/mcore/mcore.opt: Same.
4351         * config/mep/mep.opt: Same.
4352         * config/microblaze/microblaze.opt: Same.
4353         * config/mips/mips.opt: Same.
4354         * config/mmix/mmix.opt: Same.
4355         * config/mn10300/mn10300.opt: Same.
4356         * config/moxie/moxie.opt: Same.
4357         * config/msp430/msp430.opt: Same.
4358         * config/nios2/elf.opt: Same.
4359         * config/nios2/nios2.opt: Same.
4360         * config/nvptx/nvptx.opt: Same.
4361         * config/pa/pa-hpux.opt: Same.
4362         * config/pa/pa-hpux1010.opt: Same.
4363         * config/pa/pa-hpux1111.opt: Same.
4364         * config/pa/pa-hpux1131.opt: Same.
4365         * config/pa/pa.opt: Same.
4366         * config/pa/pa64-hpux.opt: Same.
4367         * config/pdp11/pdp11.opt: Same.
4368         * config/rl78/rl78.opt: Same.
4369         * config/rs6000/476.opt: Same.
4370         * config/rs6000/aix64.opt: Same.
4371         * config/rs6000/darwin.opt: Same.
4372         * config/rs6000/linux64.opt: Same.
4373         * config/rs6000/rs6000.opt: Same.
4374         * config/rs6000/sysv4.opt: Same.
4375         * config/s390/s390.opt: Same.
4376         * config/s390/tpf.opt: Same.
4377         * config/sh/sh.opt: Same.
4378         * config/sol2.opt: Same.
4379         * config/sparc/long-double-switch.opt: Same.
4380         * config/sparc/sparc.opt: Same.
4381         * config/spu/spu.opt: Same.
4382         * config/stormy16/stormy16.opt: Same.
4383         * config/tilegx/tilegx.opt: Same.
4384         * config/tilepro/tilepro.opt: Same.
4385         * config/v850/v850.opt: Same.
4386         * config/vax/vax.opt: Same.
4387         * config/visium/visium.opt: Same.
4388         * config/vms/vms.opt: Same.
4389         * config/vxworks.opt: Same.
4390         * config/xtensa/xtensa.opt: Same.
4392 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4393             Sebastian Pop  <s.pop@samsung.com>
4395         * graphite-scop-detection.c (parameter_index_in_region): Update call to
4396         invariant_in_sese_p_rec.
4397         * graphite-sese-to-poly.c (extract_affine): Same.
4398         * sese.c (invariant_in_sese_p_rec): Pass in an extra
4399         parameter has_vdefs.
4400         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4401         variable depends on virtual definitions in the current region.
4402         * sese.h (invariant_in_sese_p_rec): Update declaration.
4404 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4405             Sebastian Pop  <s.pop@samsung.com>
4407         * graphite-scop-detection.c (build_scops): Do not handle scops
4408         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4409         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4411 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
4413         * config.in: Regenerate.
4414         * configure: Regenerate.
4415         * configure.ac (CHECKING_P): Define.
4416         * system.h: Use CHECKING_P.
4418 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4420         PR ipa/67056
4421         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4422         is negative we don't know the type.
4423         (check_stmt_for_type_change): Skip constructors of non-polymorphic
4424         types as those won't help devirutalization.
4426 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4428         * fold-const.c (operand_equal_p): Add code matching empty constructors.
4430 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4432         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4433         comments.
4434         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4435         Add comments on sign of the result.
4436         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4437         Recurse on operand #1 instead of operand #0.
4438         <CEIL_MOD_EXPR>: Do not recurse.
4439         <ROUND_MOD_EXPR>: Likewise.
4441 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4443         * cfgrtl.c (pass_free_cfg::execute): Adjust.
4444         * final.c (dbr_sequence_length): Always define.
4445         (shorten_branches): Adjust.
4446         * genattr-common.c (main): Always define DELAY_SLOTS.
4447         * genattr.c (main): Unconditionally declare functions and define
4448         macros related to delay slots.
4449         * genattrtab.c (write_eligible_delay): Adjust.
4450         (main): Always write out delay slot functions.
4451         * opts.c (default_options_table): Adjust.
4452         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4453         (redirect_with_delay_list_safe_p): Likewise.
4454         (fill_simple_delay_slots): Likewise.
4455         (fill_slots_from_thread): Likewise.
4456         (make_return_insns): Likewise.
4457         (dbr_schedule): Likewise.
4458         (rest_of_handle_delay_slots): Likewise.
4459         (pass_delay_slots::gate): Likewise.
4460         * toplev.c (process_options): Likewise.
4462 2015-10-21  Richard Henderson  <rth@redhat.com>
4464         * targhooks.c (default_addr_space_pointer_mode): Remove check
4465         for generic address space.
4466         (default_addr_space_address_mode): Likewise.
4467         (default_addr_space_valid_pointer_mode): Likewise.
4468         (default_addr_space_legitimate_address_p): Likewise.
4469         (default_addr_space_legitimize_address): Likewise.
4470         * target.def (addr_space.pointer_mode): Update documentation
4471         of default behavior.
4472         (addr_space.address_mode): Likewise.
4473         * tm.texi: Update.
4475         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4476         address spaces.
4478 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4480         * builtins.c (fold_builtin_cabs): Delete.
4481         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
4482         * match.pd: Add rules previously handled by fold_builtin_cabs.
4484 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4486         * fold-const.h (fold_strip_sign_ops): Delete.
4487         * fold-const.c (fold_strip_sign_ops): Likewise.
4488         (fold_unary_loc, fold_binary_loc): Remove calls to it.
4489         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4490         (fold_builtin_ccos): Delete.
4491         (fold_builtin_pow): Don't call fold_strip_sign_ops.
4492         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4493         Remove fndecl argument.
4494         (fold_builtin_1): Update calls accordingly.  Handle constant
4495         cos, cosh, ccos and ccosh here.
4497 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4499         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4500         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4501         * common.opt (fssa-backprop): New option.
4502         * fold-const.h (negate_mathfn_p): Declare.
4503         * fold-const.c (negate_mathfn_p): Make public.
4504         * timevar.def (TV_TREE_BACKPROP): New.
4505         * tree-pass.h (make_pass_backprop): Declare.
4506         * passes.def (pass_backprop): Add.
4507         * gimple-ssa-backprop.c: New file.
4509 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4510             Sebastian Pop  <s.pop@samsung.com>
4512         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4513         Do not call create_empty_if_region_on_edge when cond_expr is true.
4514         (translate_isl_ast_node_for): Check whether a guard has been generated.
4516 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4518         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4519         (operator=): Removed.
4520         (dr_info): Make alias_set number the last argument with default
4521         value of invalid_alias_set.
4522         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4523         of dr_info.
4524         (rewrite_reductions_out_of_ssa): Iterate only through the
4525         basic blocks which are inside region.
4526         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4527         * sese.h (struct sese_l): Removed assignment operator.
4528         (split_region_for_bb): Removed dead code.
4530 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4532         * graphite-poly.h (struct dr_info): Removed conversion constructor.
4533         (struct scop): Renamed scop::region to scop::scop_info
4534         (scop_set_region): Same.
4535         (SCOP_REGION): Removed
4536         (SCOP_CONTEXT): Removed.
4537         (POLY_SCOP_P): Removed.
4538         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4539         Rename scop->region to scop->scop_info.
4540         (add_parameters_to_ivs_params): Same.
4541         (graphite_regenerate_ast_isl): Same.
4542         * graphite-poly.c (new_scop): Same.
4543         (free_scop): Same.
4544         (print_scop_params): Same.
4545         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4546         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4547         (dot_all_scops_1): Rename scop->region to scop->scop_info.
4548         (scop_detection::nb_pbbs_in_loops): Same.
4549         (find_scop_parameters): Same.
4550         (try_generate_gimple_bb): Same.
4551         (gather_bbs::before_dom_children): Same.
4552         (gather_bbs::after_dom_children): Same.
4553         (build_scops): Same.
4554         * graphite-sese-to-poly.c (build_scop_scattering): Same.
4555         (extract_affine_chrec): Same.
4556         (extract_affine): Same.
4557         (set_scop_parameter_dim): Same.
4558         (build_loop_iteration_domains): Same.
4559         (create_pw_aff_from_tree): Same.
4560         (add_param_constraints): Same.
4561         (build_scop_iteration_domain): Same.
4562         (build_scop_drs): Same.
4563         (analyze_drs_in_stmts): Same.
4564         (insert_out_of_ssa_copy_on_edge): Same.
4565         (rewrite_close_phi_out_of_ssa):Same.
4566         (rewrite_reductions_out_of_ssa):Same.
4567         (handle_scalar_deps_crossing_scop_limits):Same.
4568         (rewrite_cross_bb_scalar_deps):Same.
4569         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4570         (build_poly_scop):Same.
4571         (build_alias_set): Use pointer to dr_info.
4572         * graphite.c (print_graphite_scop_statistics):
4573         (graphite_transform_loops):
4574         * sese.h (struct sese_l): Remove conversion constructor.
4576 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4578         PR middle-end/67966
4579         * tree.c (verify_type): Verify that TYPE_MODE match
4580         between TYPE_CANONICAL and type.
4581         * expr.c (store_expr_with_bounds): Revert my previous change.
4582         * expmed.c (store_bit_field_1): Revert prevoius change.
4583         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4584         to match for all types.
4586 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
4588         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4589         nesting.
4591 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4593         * doc/tm.texi: Regenerated.
4594         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4595         * stor-layout.c (layout_type): Use mode to get vector mask size.
4596         * target.def (get_mask_mode): New.
4597         * targhooks.c (default_get_mask_mode): New.
4598         * targhooks.h (default_get_mask_mode): New.
4599         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4600         for boolean vector.
4601         * tree.c (MAX_BOOL_CACHED_PREC): New.
4602         (nonstandard_boolean_type_cache): New.
4603         (build_nonstandard_boolean_type): New.
4604         (make_vector_type): Vector mask has no canonical type.
4605         (build_truth_vector_type): New.
4606         (build_same_sized_truth_vector_type): New.
4607         (truth_type_for): Support vector masks.
4608         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4609         (build_truth_vector_type): New.
4610         (build_same_sized_truth_vector_type): New.
4611         (build_nonstandard_boolean_type): New.
4612         * tree-cfg.c (verify_gimple_comparison) Require boolean
4613         vector type for vector comparison.
4614         (verify_gimple_assign_ternary): Likewise.
4615         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4616         condition operand.
4617         * tree-vect-stmts.c (vectorizable_condition): Use boolean
4618         vector type for vector comparison.
4619         * tree-vect-generic.c (elem_op_func): Add new operand to hold
4620         vector type.
4621         (do_unop): Adjust to modified function type.
4622         (do_binop): Likewise.
4623         (do_plus_minus): Likewise.
4624         (do_negate); Likewise.
4625         (expand_vector_piecewise): Likewise.
4626         (do_cond): Likewise.
4627         (do_compare): Use comparison instead of condition.
4628         (expand_vector_divmod): Use boolean vector type for comparison.
4629         (expand_vector_operations_1): Skip scalar mask operations.
4631 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4633         * omp-low.c (simd_clone_create): Set in_other_partition
4634         for created clones.
4636 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4638         * doc/extend.exp (Local Register Variables): Rewrite.
4640 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4642         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4643         and x*x in cases where the operands are sign ops.  Extend these
4644         rules to handle copysign as a sign op (including for cos, cosh
4645         and pow, which already treated negate and abs as sign ops).
4647 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
4649         PR target/68018
4650         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4651         for 64-bit MS_ABI targets also when default incoming stack boundary
4652         is overriden.
4654 2015-10-21  Richard Biener  <rguenther@suse.de>
4656         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4657         cond stmts, enhanced and split out from ...
4658         (vn_phi_eq): ... here.
4660 2015-10-21  Richard Biener  <rguenther@suse.de>
4662         PR middle-end/68031
4663         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4664         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4665         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
4666         make sure they are not registered for update.
4668 2015-10-21  Richard Biener  <rguenther@suse.de>
4670         PR tree-optimization/68026
4671         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4672         unsigned VARYING values.
4674 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
4676         * asan.c (asan_emit_stack_protection): Don't pass local stack to
4677         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4678         NULL and use local stack than.
4679         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4680         in addition to __asan_init.
4681         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4682         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4683         * asan.h (asan_intercepted_p): Handle new string builtins.
4684         * ubsan.c (ubsan_use_new_style_p): New function.
4685         (ubsan_instrument_float_cast): If location is unknown, assign
4686         input_location to loc. Propagate loc to ubsan_create_data if
4687         ubsan_use_new_style_p returned true.
4689 2015-10-21  Jeff Law  <law@redhat.com>
4691         * Makefile.in (OBJS): Remove sched-vis.c
4692         * sched-vis.c: Removed.  Code moved into...
4693         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
4694         * rtl.h: Remove prototypes for functions now living in print-rtl.c
4695         * print-rtl.h Add prototypes for new functions in print-rtl.c.
4696         * auto-inc-dec.c: Include print-rtl.h
4697         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4698         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4700         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4701         ATTRIBUTE_UNUSED.
4703 2015-10-21  Richard Biener  <rguenther@suse.de>
4704             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4706         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4707         to match.pd.
4708         Move (a * (1 << b)) is (a << b) to match.pd.
4709         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4710         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4711         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4713         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4714         New simplifier.
4715         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4716         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4717         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4718         : New simplifier.
4719         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4720         New simplifier.
4721         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4723 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
4724             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4725             Alan Modra  <amodra@gmail.com>
4727         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4728         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4729         (LINK_SPEC): Add %(link_secure_plt).
4730         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4731         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4733 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
4734             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4736         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4737         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4739 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4741         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4742         New function.
4743         (fusion_load_store): Use it.
4744         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4745         ldp and stp in VD modes.
4746         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4747         (store_pair<mode>, VD): Likewise.
4749 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
4751         PR rtl-optimization/67609
4752         * lra-splill.c (lra_final_code_change): Don't remove all
4753         sub-registers.
4755 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4757         * simplify-rtx.c (simplify_binary_operation): If either operand was
4758         a constant pool reference use them if all other simplifications failed.
4760 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4762         * config/aarch64/aarch64.md
4763         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4764         * config/aarch64/aarch64-simd.md
4765         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4766         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4767         (aarch64_fpconst_pow_of_2): New function.
4768         (aarch64_vec_fpconst_pow_of_2): Likewise.
4769         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4770         prototype.
4771         (aarch64_vec_fpconst_pow_of_2): Likewise.
4772         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4773         (aarch64_fp_vec_pow2): Likewise.
4775 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
4777         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4778         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
4779         * config/alpha/alpha.c (alpha_function_arg_advance): Update
4780         ALPHA_ARG_SIZE usage.
4781         (alpha_arg_partial_bytes): Ditto.
4783 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4785         PR target/66810
4786         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4787         error_mark_node decls.
4789 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4791         PR target/67963
4792         PR target/67985
4793         * common/config/i386/i386-common.c (ix86_handle_option): Remove
4794         OPT_miamcu handling.
4795         * config/i386/i386.c (PTA_NO_80387): New macro.
4796         (processor_alias_table): Add PTA_NO_80387 to lakemont.
4797         (ix86_option_override_internal): Update MASK_80387 from
4798         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
4799         SSE math only if 80387 is supported.  Don't change
4800         MASK_FLOAT_RETURNS.
4801         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4802         80387 is supported.
4803         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4804         if TARGET_80387 is true and TARGET_IAMCU is false.
4805         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4806         is true and TARGET_IAMCU_P is false.
4808 2015-10-20  Richard Biener  <rguenther@suse.de>
4810         PR tree-optimization/68017
4811         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4813 2015-10-20  Martin Liska  <mliska@suse.cz>
4815         * cgraphclones.c (cgraph_node::create_virtual_clone):
4816         Verify cgraph_node.local.versionable instead of calling
4817         tree_versionable_function_p.
4818         * ipa-cp.c (determine_versionability): Save the information
4819         to ipa_node_params summary.
4820         (ipcp_versionable_function_p): Use it.
4821         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4822         (ipcp_generate_summary): Do not compute cgraph_node
4823         versionability.
4824         * ipa-inline-analysis.c (inline_generate_summary): Compute
4825         versionability for all cgraph nodes.
4826         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4827         ipa_node_params::versionability.
4828         * ipa-prop.h (struct ipa_node_params): Declare it.
4830 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4832         PR other/67868
4833         * varasm.c (assemble_variable): Move special vtv handling to..
4834         (handle_vtv_comdat_sections): .. here. New function.
4835         (output_object_block): Handle vtv sections.
4837 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4839         PR target/66912
4840         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4842 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
4844         * doc/extend.texi: Update documentation WRT inline functions.
4846 2015-10-20  Alan Modra  <amodra@gmail.com>
4848         PR go/66870
4849         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4850         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4851         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4853 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
4855         PR rtl-optimization/66790
4856         * df.h (DF_MIR): New macro.
4857         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4858         (DF_MIR_INFO_BB): New macro.
4859         (DF_MIR_IN, DF_MIR_OUT): New macros.
4860         (struct df_mir_bb_info): New.
4861         (df_mir): New macro.
4862         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4863         declarations.
4864         (df_mir_get_bb_info): New.
4865         * df-problems.c (struct df_mir_problem_data): New.
4866         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4867         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4868         df_mir_confluence_0, df_mir_confluence_n,
4869         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4870         df_mir_bottom_dump, df_mir_verify_solution_start,
4871         df_mir_verify_solution_end): New.
4872         (problem_MIR): New.
4873         (df_mir_add_problem, df_mir_simulate_one_insn): New.
4874         * timevar.def (TV_DF_MIR): New.
4875         * ree.c: Include bitmap.h
4876         (add_removable_extension): Add an INIT_REGS parameter.  Use it
4877         to skip zero-extensions that may get an uninitialized register.
4878         (find_removable_extensions): Compute must-initialized registers
4879         using the MIR dataflow problem. Update the call to
4880         add_removable_extension.
4881         (find_and_remove_re): Call df_mir_add_problem.
4883 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
4885         * common/config/mn10300/mn10300-common.c
4886         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4887         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4889 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
4891         * doc/extend.texi (Explicit Register Variables): Simplify and
4892         avoid unnecessary and confusion abbreviations.  Update cross
4893         references.
4894         doc/implement-c.tex: Update cross reference.
4896 2015-10-19  Jeff Law  <law@redhat.com>
4898         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4899         that create irreducible loops unless the path elimiantes a multiway
4900         branch.
4902 2015-10-19  Richard Biener  <rguenther@suse.de>
4904         PR tree-optimization/67975
4905         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4906         * tree-cfg.c (extract_true_false_controlled_edges): Split out
4907         core worker from ...
4908         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4909         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4910         instead of block number for PHIs with two or one args.
4911         (vn_phi_eq): Compare edge predicates of PHIs that are in different
4912         blocks.
4914 2015-10-19  Richard Biener  <rguenther@suse.de>
4916         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4917         (gimple_stmt_nonnegative_warnv_p): Use it.
4918         * match.pd (CPROJ): New operator list.
4919         (cproj (complex ...)): Move simplifications from ...
4920         * builtins.c (fold_builtin_cproj): ... here.
4922 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4924         * config/i386/i386.c (ix86_expand_vector_move): Use
4925         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4926         alignment.
4928 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4930         * doc/invoke.texi: Replace @optindex with @opindex.
4932 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4934         PR target/67995
4935         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4936         arch= is set,  clear all bits in x_ix86_isa_flags, except for
4937         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4939 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
4941         PR middle-end/68002
4942         * common.opt (fkeep-static-functions): New option.
4943         * doc/invoke.texi: Document it.
4944         * cgraphunit.c (cgraph_node::finalize_function): Use it.
4946 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4948         * sched-int.h (struct autopref_multipass_data_): Remove offset
4949         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
4950         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4951         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
4952         (autopref_rank_data): New function.
4953         (autopref_rank_for_schedule): Use it.
4954         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4956 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
4958         PR other/65800
4959         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4961 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4963         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4964         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
4965         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4966         (STANDARD_STARTFILE_PREFIX_1): New.
4967         (STANDARD_STARTFILE_PREFIX_2): New.
4969 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4971         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4972         (darwin_driver_init): Note a version-min when provided on the c/l.
4973         * config/darwin.h (%darwin_minversion): Remove.
4974         * config/i386/darwin.h: Likewise.
4975         * config/rs6000/darwin.h: Likewise.
4976         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4977         rather than an arbitrary constant.
4979 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4981         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4982         PPC, detect conflicts between -arch and multilib settings.  Detect
4983         and warn about conflicts between multiple -arch definitions.
4985 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4987         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4989 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4991         * lra-constraints.c (add_next_usage_insn): Change argument type
4992         from rtx to rtx_insn *.
4994 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
4996         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4997         for Lakemont.
4999 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
5001         * config/tilepro/gen-mul-tables.cc: Adjust include files.
5002         * config/tilegx/mul-tables.c: Regenerate.
5003         * config/tilepro/mul-tables.c: Regenerate.
5005         * config/tilegx/tilegx-c.c: Adjust include files.
5006         * config/tilegx/tilegx.c: Likewise.
5007         * config/tilepro/tilepro-c.c: Likewise.
5008         * config/tilepro/tilepro.c: Likewise.
5009         * config/aarch64/aarch64-builtins.c: Likewise.
5010         * config/aarch64/aarch64.c: Likewise.
5011         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5012         * config/alpha/alpha.c: Likewise.
5013         * config/arc/arc.c: Likewise.
5014         * config/arm/aarch-common.c: Likewise.
5015         * config/arm/arm-builtins.c: Likewise.
5016         * config/arm/arm-c.c: Likewise.
5017         * config/arm/arm.c: Likewise.
5018         * config/avr/avr-c.c: Likewise.
5019         * config/avr/avr-devices.c: Likewise.
5020         * config/avr/avr-log.c: Likewise.
5021         * config/avr/avr.c: Likewise.
5022         * config/bfin/bfin.c: Likewise.
5023         * config/c6x/c6x.c: Likewise.
5024         * config/cr16/cr16.c: Likewise.
5025         * config/cris/cris.c: Likewise.
5026         * config/darwin-c.c: Likewise.
5027         * config/darwin-driver.c: Likewise.
5028         * config/darwin.c: Likewise.
5029         * config/default-c.c: Likewise.
5030         * config/epiphany/epiphany.c: Likewise.
5031         * config/epiphany/mode-switch-use.c: Likewise.
5032         * config/epiphany/resolve-sw-modes.c: Likewise.
5033         * config/fr30/fr30.c: Likewise.
5034         * config/frv/frv.c: Likewise.
5035         * config/ft32/ft32.c: Likewise.
5036         * config/glibc-c.c: Likewise.
5037         * config/h8300/h8300.c: Likewise.
5038         * config/i386/host-cygwin.c: Likewise.
5039         * config/i386/host-mingw32.c: Likewise.
5040         * config/i386/i386-c.c: Likewise.
5041         * config/i386/i386.c: Likewise.
5042         * config/i386/msformat-c.c: Likewise.
5043         * config/i386/winnt-cxx.c: Likewise.
5044         * config/i386/winnt-stubs.c: Likewise.
5045         * config/i386/winnt.c: Likewise.
5046         * config/ia64/ia64-c.c: Likewise.
5047         * config/ia64/ia64.c: Likewise.
5048         * config/iq2000/iq2000.c: Likewise.
5049         * config/lm32/lm32.c: Likewise.
5050         * config/m32c/m32c-pragma.c: Likewise.
5051         * config/m32c/m32c.c: Likewise.
5052         * config/m32r/m32r.c: Likewise.
5053         * config/mcore/mcore.c: Likewise.
5054         * config/mep/mep-pragma.c: Likewise.
5055         * config/mep/mep.c: Likewise.
5056         * config/microblaze/microblaze-c.c: Likewise.
5057         * config/microblaze/microblaze.c: Likewise.
5058         * config/mips/mips-tables.opt
5059         * config/mips/mips.c: Likewise.
5060         * config/mmix/mmix.c: Likewise.
5061         * config/mn10300/mn10300.c: Likewise.
5062         * config/moxie/moxie.c: Likewise.
5063         * config/msp430/msp430-c.c: Likewise.
5064         * config/msp430/msp430.c: Likewise.
5065         * config/nds32/nds32-cost.c: Likewise.
5066         * config/nds32/nds32-fp-as-gp.c: Likewise.
5067         * config/nds32/nds32-intrinsic.c: Likewise.
5068         * config/nds32/nds32-isr.c: Likewise.
5069         * config/nds32/nds32-md-auxiliary.c: Likewise.
5070         * config/nds32/nds32-memory-manipulation.c: Likewise.
5071         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5072         * config/nds32/nds32-predicates.c: Likewise.
5073         * config/nds32/nds32.c: Likewise.
5074         * config/nios2/nios2.c: Likewise.
5075         * config/nvptx/mkoffload.c: Likewise.
5076         * config/nvptx/nvptx.c: Likewise.
5077         * config/pa/pa.c: Likewise.
5078         * config/pdp11/pdp11.c: Likewise.
5079         * config/rl78/rl78-c.c: Likewise.
5080         * config/rl78/rl78.c: Likewise.
5081         * config/rs6000/host-darwin.c: Likewise.
5082         * config/rs6000/rs6000-c.c: Likewise.
5083         * config/rs6000/rs6000-linux.c: Likewise.
5084         * config/rs6000/rs6000.c: Likewise.
5085         * config/rx/rx.c: Likewise.
5086         * config/s390/s390-c.c: Likewise.
5087         * config/s390/s390.c: Likewise.
5088         * config/sh/sh-c.c: Likewise.
5089         * config/sh/sh-mem.cc: Likewise.
5090         * config/sh/sh.c: Likewise.
5091         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5092         * config/sh/sh_treg_combine.cc: Likewise.
5093         * config/sol2-c.c: Likewise.
5094         * config/sol2-cxx.c: Likewise.
5095         * config/sol2-stubs.c: Likewise.
5096         * config/sol2.c: Likewise.
5097         * config/sparc/sparc-c.c: Likewise.
5098         * config/sparc/sparc.c: Likewise.
5099         * config/spu/spu-c.c: Likewise.
5100         * config/spu/spu.c: Likewise.
5101         * config/stormy16/stormy16.c: Likewise.
5102         * config/v850/v850-c.c: Likewise.
5103         * config/v850/v850.c: Likewise.
5104         * config/vax/vax.c: Likewise.
5105         * config/visium/visium.c: Likewise.
5106         * config/vms/vms-c.c: Likewise.
5107         * config/vms/vms.c: Likewise.
5108         * config/vxworks.c: Likewise.
5109         * config/winnt-c.c: Likewise.
5110         * config/xtensa/xtensa.c: Likewise.
5112 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5114         PR target/67745
5115         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5116         (FUNCTION_BOUNDARY_P): New macro:
5117         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5118         New hook.
5119         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5120         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5121         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5122         * function.c (allocate_struct_function): Call
5123         relayout_function hook.
5124         * passes.c (rest_of_decl_compilation): Likewise.
5126 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5128         PR target/67745
5129         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5130         * config/arm/arm.c (arm_option_override_internal): Call
5131         arm_override_options_after_change_1.
5132         (arm_override_options_after_change): New function.
5133         (arm_override_options_after_change_1): Likewise.
5134         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5136 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5138         Revert:
5139         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5140         empty constructors.
5142 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5144         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5145         argument is an ADDR_EXPR.
5147 2015-10-16  Richard Biener  <rguenther@suse.de>
5149         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5150         and get rid of force_gimple_operand_gsi.
5151         (gimple_fold_builtin_memory_chk): Likewise.
5152         (gimple_fold_builtin_stxcpy_chk): Likewise.
5153         (rewrite_to_defined_overflow): Likewise.
5154         (gimple_convert_to_ptrofftype): New function.
5155         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5157 2015-10-16  Richard Biener  <rguenther@suse.de>
5159         * tree-nested.h (build_addr): Adjust prototype.
5160         * tree-nested.c (build_addr): Remove context argument and use
5161         mark_addressable.
5162         (get_static_chain): Adjust calls to build_addr.
5163         (convert_nl_goto_reference): Likewise.
5164         (convert_tramp_reference_op): Likewise.
5165         (finalize_nesting_tree_1): Likewise.
5166         * value-prof.c (gimple_ic): Likewise.
5167         * gimple-low.c (lower_builtin_setjmp): Likewise.
5168         * tree-parloops.c (take_address_of): Likewise.
5169         (create_call_for_reduction_1): Likewise.
5170         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5171         (gimple_gen_ic_func_profiler): Likewise.
5173 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5175         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5176         empty constructors.
5178 2015-10-16  Michael Collison  <michael.collison@linaro.org>
5179             Andrew Pinski <andrew.pinski@caviumnetworks.com>
5181         * match.pd ((x < y) && (x < z) -> x < min (y,z),
5182         (x > y) and (x > z) -> x > max (y,z))
5184 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
5185             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5187         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5188         (DYNAMIC_LINKER): Renamed to ...
5189         (GLIBC_DYNAMIC_LINKER): This.
5190         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5192 2015-10-15  Marek Polacek  <polacek@redhat.com>
5194         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5195         gimple_call_builtin instead of is_gimple_call.
5197 2015-10-15  Richard Biener  <rguenther@suse.de>
5199         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5201 2015-10-15  Richard Biener  <rguenther@suse.de>
5203         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5204         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5205         * tree-vect-loop.c (get_initial_def_for_induction): Drop
5206         use of force_gimple_operand in favor of gimple_build.
5207         Use vect_get_new_ssa_name.
5208         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5209         (vectorizable_mask_load_store): Likewise.
5210         (vectorizable_call): Likewise.
5211         (vectorizable_store): Likewise.
5212         (vectorizable_load): Likewise.
5213         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5215 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
5217         PR tree-optimization/67945
5218         * tree-pass.h (PROP_gimple_opt_math): New property flag.
5219         * generic-match-head.c (canonicalize_math_p): New function.
5220         * gimple-match-head.c: Include tree-pass.h.
5221         (canonicalize_math_p): New function.
5222         * match.pd: Group math built-in rules into simplifications
5223         and canonicalizations.  Guard the latter with canonicalize_math_p.
5224         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5225         PROP_gimple_opt_math property.
5227 2015-10-15  Marek Polacek  <polacek@redhat.com>
5229         PR tree-optimization/67953
5230         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5232 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
5234         * config.gcc: Recognize "." in architecture base name for AArch64.
5236 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5238         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5239         ROUND_UP macro.
5240         * config/mips/mips.c (mips_setup_incoming_varargs): Use
5241         ROUND_DOWN to calculate off.
5242         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5243         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5244         rounded_size.
5246 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5248         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5250 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
5251             Torvald Riegel  <triegel@redhat.com>
5253         PR target/67281
5254         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5255         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5256         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5257         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5258         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
5259         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5260         trechkpt, treclaim, tsr, ttest): New define_expands.
5261         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5262         __TM_FENCE__ for htm.
5263         * doc/extend.texi: Update documentation for htm builtins.
5265 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5267         PR target/67967
5268         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5269         REG_CFA_EXPRESSION to aligned SSE stores.
5271 2015-10-14  Jeff Law  <law@redhat.com>
5273         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5274         num_threaded_edges for successful FSM threads too.
5276 2015-10-14  Richard Biener  <rguenther@suse.de>
5278         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5279         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
5280         (vect_get_vec_def_for_operand): Remove unused parameter.
5281         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5282         (vect_create_epilog_for_reduction): Likewise.
5283         (vectorizable_reduction): Likewise.
5284         (vectorizable_live_operation): Likewise.
5285         * tree-vect-patterns.c (type_conversion_p): Likewise.
5286         (vect_recog_vector_vector_shift_pattern): Likewise.
5287         (check_bool_pattern): Likewise.
5288         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5289         (vect_analyze_slp_cost_1): Likewise.
5290         * tree-vect-stmts.c (process_use): Likewise.
5291         (vect_get_vec_def_for_operand): Do not handle reductions.
5292         (vect_get_vec_defs): Adjust.
5293         (vectorizable_mask_load_store): Likewise.
5294         (vectorizable_call): Likewise.
5295         (vectorizable_simd_clone_call): Likewise.
5296         (vect_get_loop_based_defs): Likewise.
5297         (vectorizable_conversion): Likewise.
5298         (vectorizable_assignment): Likewise.
5299         (vectorizable_shift): Likewise.
5300         (vectorizable_operation): Likewise.
5301         (vectorizable_store): Likewise.
5302         (vectorizable_load): Likewise.
5303         (vect_is_simple_cond): Likewise.
5304         (vectorizable_condition): Likewise.
5305         (vect_is_simple_use): Remove unused parameters.
5306         (vect_is_simple_use_1): Adjust and rename.
5308 2015-10-14  Richard Biener  <rguenther@suse.de>
5310         PR tree-optimization/67915
5311         * match.pd: Handle comparisons of addresses of STRING_CSTs.
5312         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5313         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5314         stmt folding in favor of GIMPLE one.
5316 2015-10-14  Marek Polacek  <polacek@redhat.com>
5318         PR tree-optimization/67815
5319         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5320         (reassociate_bb): Call it.
5322 2015-10-14  Richard Biener  <rguenther@suse.de>
5324         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5325         Reset info at start.
5326         (vect_analyze_group_access_1): Add debug print.
5327         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5328         (vect_compute_single_scalar_iteration_cost): ... to this.
5329         (vect_analyze_loop_2): Adjust.
5330         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5331         * tree-vectorizer.h: ... here.
5332         (add_stmt_info_to_vec): Remove.
5333         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5335 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5337         * targhooks.c (default_target_option_pragma_parse): Do not warn if
5338         called on behalf of "#pragma GCC pop_options".
5340 2015-10-14  Tom de Vries  <tom@codesourcery.com>
5342         * cfganal.c (verify_no_unreachable_blocks): New function.
5343         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5344         verify_no_unreachable_blocks.
5345         cfganal.h (verify_no_unreachable_blocks): Declare.
5347 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
5349         * common.opt: Add flag_checking.
5350         * system.h (CHECKING_P): Define.
5352 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
5353             Aldy Hernandez  <aldyh@redhat.com>
5354             Ilya Verbin  <ilya.verbin@intel.com>
5356         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5357         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5358         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5359         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5360         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5361         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5362         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5363         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5364         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5365         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5366         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5367         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5368         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5369         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5370         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5371         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5372         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5373         (struct cgraph_simd_clone_arg): Adjust comment.
5374         * coretypes.h (struct gomp_ordered): New forward decl.
5375         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5376         set critical clauses to it.
5377         (gimple_build_omp_ordered): Return gomp_ordered * instead of
5378         gimple *.  Add CLAUSES argument, set ordered clauses to it.
5379         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5380         GIMPLE_OMP_ORDERED.
5381         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5382         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5383         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
5384         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5385         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
5386         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5387         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
5388         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5389         renumber
5390         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5391         (gomp_critical): Add clauses field.
5392         (gomp_ordered): New struct.
5393         (is_a_helper <gomp_ordered *>::test): New inline.
5394         (gimple_build_omp_critical): Add CLAUSES argument.
5395         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
5396         instead of gimple *.
5397         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5398         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5399         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5400         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5401         inline functions.
5402         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5403         (dump_gimple_omp_target): Handle enter data and exit data.
5404         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5405         (dump_gimple_omp_critical): Print clauses.
5406         (dump_gimple_omp_ordered): New function.
5407         (dump_gimple_omp_task): Handle taskloop.
5408         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5409         GIMPLE_OMP_ORDERED.
5410         * gimple-walk.c (walk_gimple_op): Walk clauses on
5411         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5412         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5413         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5414         (struct gimplify_omp_ctx): Add loop_iter_var,
5415         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5416         and target_firstprivatize_array_bases fields.
5417         (delete_omp_context): Release loop_iter_var.
5418         (gimplify_bind_expr): Handle ORT_NONE.
5419         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5420         ORT_COMBINED_TARGET.
5421         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5422         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5423         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
5424         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
5425         ctx->target_map_scalars_firstprivate.
5426         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
5427         data sharing clauses.  For data sharing clause with VLA decl
5428         on omp target/target data don't add firstprivate for the pointer.
5429         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5430         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5431         the addition of ORT_COMBINED_TARGET.
5432         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
5433         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
5434         pointers as zero length array sections and
5435         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5436         data sharing.
5437         (omp_check_private): Handle omp_member_access_dummy_var vars.
5438         (find_decl_expr): New function.
5439         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
5440         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5441         Handle OMP_CLAUSE_GANG separately.  Handle
5442         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5443         clauses.  Diagnose linear clause on combined
5444         distribute {, parallel for} simd construct, unless it is the loop
5445         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5446         Handle map clauses with COMPONENT_REF.  Initialize
5447         ctx->target_map_scalars_firstprivate,
5448         ctx->target_firstprivatize_array_bases and
5449         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
5450         linear clause even to target region if combined.  Remove
5451         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5452         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
5453         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5454         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
5455         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5456         For linear clause on worksharing loop combined with parallel add
5457         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
5458         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
5459         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
5460         taskloop if needed.
5461         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5462         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5463         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5464         GOMP_MAP_POINTER.
5465         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
5466         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5467         in target body.  Handle removal of struct mapping if struct is not
5468         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
5469         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
5470         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
5471         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5472         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5473         clause appear together.  Handle
5474         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
5475         clause if it has map-type-modifier always.  Handle
5476         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5477         clauses.
5478         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5479         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5480         callers.
5481         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
5482         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
5483         iterators in doacross loops.
5484         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5485         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
5486         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
5487         for the addition of ORT_COMBINED_TARGET.
5488         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5489         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
5490         and OMP_TARGET_EXIT_DATA.
5491         (gimplify_omp_ordered): New function.
5492         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5493         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
5494         Gimplify clauses on OMP_CRITICAL.
5495         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5496         expand_GOMP_SIMD_ORDERED_END): New functions.
5497         * internal-fn.def (GOMP_SIMD_ORDERED_START,
5498         GOMP_SIMD_ORDERED_END): New internal functions.
5499         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5500         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5501         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5502         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5503         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5504         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5505         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5506         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5507         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5508         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5509         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5510         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5511         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5512         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5513         adjust type.
5514         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5515         GOMP_target_data_41, adjust type.
5516         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5517         GOMP_target_update_41, adjust type.
5518         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5519         field.
5520         (struct omp_for_data): Add ordered and simd_schedule fields.
5521         (omp_member_access_dummy_var, unshare_and_remap_1,
5522         unshare_and_remap, is_taskloop_ctx): New functions.
5523         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5524         (extract_omp_for_data): Handle taskloops and doacross loops
5525         and simd schedule modifier.
5526         (omp_adjust_chunk_size): New function.
5527         (get_ws_args_for): Use it.
5528         (lookup_sfield): Change first argument to splay_tree_key,
5529         add overload with first argument tree.
5530         (maybe_lookup_field): Likewise.
5531         (use_pointer_for_field): Handle omp_member_access_dummy_var.
5532         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5533         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5534         (build_outer_var_ref): Add LASTPRIVATE argument, handle
5535         taskloops and omp_member_access_dummy_var vars.
5536         (build_sender_ref): Change first argument to splay_tree_key,
5537         add overload with first argument tree.
5538         (install_var_field): For mask & 8 use &DECL_UID as key instead
5539         of the tree itself.
5540         (fixup_child_record_type): Const qualify *.omp_data_i.
5541         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5542         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5543         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5544         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5545         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5546         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5547         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5548         kinds.
5549         (add_taskreg_looptemp_clauses): New function.
5550         (scan_omp_parallel): Use it.
5551         (scan_omp_task): Likewise.
5552         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5553         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5554         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5555         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
5556         sandwiched taskloop constructs.  Type check
5557         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
5558         region.  Diagnose depend(source) or depend(sink:...) on
5559         target constructs or task/taskloop.
5560         (handle_simd_reference): Use get_name.
5561         (lower_rec_input_clauses): Likewise.  Ignore all
5562         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5563         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
5564         before passing it to omp_clause_{default,copy}_ctor.  Handle
5565         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
5566         lastprivate_firstprivate flag for linear that needs copyin and
5567         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5568         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5569         on taskloop lookup decl in outer context.  Pass true to
5570         build_outer_var_ref lastprivate argument.  Handle
5571         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5572         outside of outer taskloop for.
5573         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5574         OMP_CLAUSE_DECL.
5575         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5576         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
5577         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
5578         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
5579         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5580         abstract origin.  Handle omp_member_access_dummy_var vars.
5581         (expand_parallel_call): Use expand_omp_build_assign.
5582         (expand_task_call): Handle taskloop construct expansion.  Add
5583         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
5584         integers.  Add priority argument to GOMP_task* calls.  Or in
5585         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5586         GOMP_task call.
5587         (expand_omp_build_assign): Add prototype.  Add AFTER
5588         argument, if true emit statements after *GSI_P and continue linking.
5589         (expand_omp_taskreg): Adjust expand_task_call caller.
5590         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5591         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5592         zero_iter2_bb and first_zero_iter2 arguments, handle computation
5593         of counts even for ordered loops.
5594         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5595         (expand_omp_ordered_source, expand_omp_ordered_sink,
5596         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5597         functions.
5598         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
5599         clauses on worksharing loop.  Handle DOACROSS loop expansion.
5600         (expand_omp_for_static_nochunk): Handle linear clauses on
5601         worksharing loop.  Adjust expand_omp_for_init_counts
5602         callers.
5603         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
5604         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
5605         expand_omp_for_init_counts callers.
5606         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5607         functions.
5608         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5609         Handle doacross loops.
5610         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5611         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
5612         GOMP_target_{41,update_41,enter_exit_data} libcalls.
5613         (expand_omp): Don't expand ordered depend constructs here, record
5614         ord_stmt instead for later expand_omp_for_generic.
5615         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5616         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5617         clause as stand-alone directive.
5618         (lower_omp_ordered_clauses): New function.
5619         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5620         don't lower anything.
5621         (lower_omp_for_lastprivate): Use last _looptemp_ clause
5622         on taskloop for comparison.
5623         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
5624         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5625         expansion for linear adjustments.
5626         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5627         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5628         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
5629         to tree * pointing to the stmt's clauses.
5630         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5631         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5632         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5633         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5634         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5635         clauses.  Always use short kind and 8-bit align shift.
5636         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5637         (struct lower_omp_regimplify_operands_data): New type.
5638         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5639         New functions.
5640         (lower_omp_1): Use lower_omp_regimplify_operands instead of
5641         gimple_regimplify_operands.
5642         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5643         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5644         clause as stand-alone directive.
5645         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5646         (simd_clone_mangle): Mangle the various linear kinds
5647         per the new ABI.
5648         (simd_clone_adjust_argument_types): Handle
5649         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5650         (simd_clone_init_simd_arrays): Don't do anything for uval.
5651         (simd_clone_adjust): Handle
5652         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5653         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5654         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5655         * omp-low.h (omp_member_access_dummy_var): New prototype.
5656         * passes.def (pass_simduid_cleanup): Schedule another copy of the
5657         pass after all optimizations.
5658         * tree.c (omp_clause_code_name): Add entries for
5659         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5660         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5661         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
5662         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5663         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5664         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
5665         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5666         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5667         clauses.
5668         * tree-core.h (enum omp_clause_linear_kind): New.
5669         (struct tree_omp_clause): Change type of map_kind
5670         from unsigned char to unsigned int.  Add subcode.if_modifier
5671         and subcode.linear_kind fields.
5672         (enum omp_clause_code): Add
5673         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5674         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5675         (OMP_CLAUSE_REDUCTION): Document
5676         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5677         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5678         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5679         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
5680         operand.
5681         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
5682         operand.
5683         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5684         codes.
5685         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5686         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5687         char.
5688         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5689         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5690         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5691         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5692         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5693         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5694         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5695         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5696         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5697         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5698         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5699         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5700         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5701         * tree-inline.c (remap_gimple_stmt): Handle clauses on
5702         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
5703         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5704         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5705         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5706         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5707         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5708         (convert_local_omp_clauses): Likewise.
5709         * tree-pretty-print.c (dump_omp_clause): Handle
5710         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5711         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5712         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5713         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5714         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
5715         GOMP_MAP_FORCE_DEALLOC.  Handle
5716         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5717         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5718         and clauses on OMP_ORDERED and OMP_CRITICAL.
5719         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5720         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5721         (vectorize_loops): Adjust comments.
5722         (pass_simduid_cleanup::execute): Likewise.
5723         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5724         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5725         * wide-int.h (wi::gcd): New.
5727 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
5729         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5730         (ix86_function_arg_advance): Ditto.
5731         (ix86_function_arg): Ditto.
5732         (ix86_gimplify_va_arg): Ditto.
5733         (ix86_class_max_nregs): Ditto.
5734         (inline_memory_move_cost): Ditto.
5735         (ix86_set_reg_reg_cost): Ditto.
5736         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5738 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
5740         PR middle-end/67912
5741         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5743 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
5745         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5746         ROUND_UP macro and UNITS_PER_WORD * 2.
5747         * config/sparc/sparc.c (sparc_compute_frame_size):
5748         Use ROUND_UP and ROUND_DOWN macros where applicable.
5749         (function_arg_record_value, function_arg_record_value_1)
5750         (function_arg_record_value_1): Ditto.
5751         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5752         alignment to double-word.
5753         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5754         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5755         rounded_size.
5757 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5759         * rtl.h (print_insn): Fix prototype.
5761 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5763         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5764         -1.  Add assert that returned entry matches phi argument.
5765         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5766         free_stmt_vec_info_vec ...
5767         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
5768         with -1.
5770 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
5772         PR tree-optimization/67909, 67947
5773         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5774         really skip the inner loop.
5776 2015-10-13  Jeff Law  <law@redhat.com>
5778         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5779         Allow single block jump threading paths.
5781 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5783         PR tree-optimization/67476
5784         * doc/invoke.texi (@item parloops-schedule): New item.
5785         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5786         * tree-parloops.c: Include params-enum.h.
5787         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5789 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5791         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5792         * params-enum.h: New file.
5793         * opts.c (handle_param): Handle case that param arg is a string.
5794         * params-list.h: Handle DEFPARAMENUM5 in params.def.
5795         * params.c (find_param): New function, factored out of ...
5796         (set_param_value): ... here.
5797         (param_string_value_p): New function.
5798         * params.h (struct param_info): Add value_names field.
5799         (find_param, param_string_value_p): Declare.
5801 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5803         PR tree-optimization/67476
5804         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5806 2015-10-13  Richard Biener  <rguenther@suse.de>
5808         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5809         the data dependence vector.
5810         (vect_peeling_hash_insert): Get the peeling hash table as argument.
5811         (vect_peeling_hash_get_lowest_cost): Likewise.
5812         (vect_enhance_data_refs_alignment): Adjust.
5813         (struct _vect_peel_info, struct _vect_peel_extended_info,
5814         struct peel_info_hasher): Move from ...
5815         * tree-vectorizer.h: ... here.
5816         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5817         (LOOP_VINFO_PEELING_HTAB): Likewise.
5818         (struct _loop_vec_info): Remove min_profitable_iters and
5819         peeling_htab members.
5820         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5821         here.
5822         (destroy_loop_vec_info): Adjust.
5823         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5824         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5825         to estimate alias versioning cost.
5826         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5828 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
5830         * real.h (real_isinteger): Declare.
5831         * real.c (real_isinteger): New function.
5832         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5833         if y is an even integer.
5835 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5837         revert:
5838         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5839         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5840         counts when these are more informative.
5842 2015-10-12  Jeff Law  <law@redhat.com>
5844         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5845         (fsm_find_control_stmt_paths): Change name of first argument to
5846         more accurately relfect what it really is.  Handle simplification
5847         of GIMPLE_COND after finding a thread path for NAME.
5848         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5849         nontrivial conditions to be handled by FSM threader.
5850         (thread_through_normal_block): Extract the name to looup via
5851         FSM threader from COND_EXPR.
5853         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5854         restriction that traced SSA_NAME is a user variable.
5856 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5858         PR tree-optimization/67476
5859         * omp-low.c (expand_omp_for_generic): Add missing phis.
5861 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5863         PR tree-optimization/67476
5864         * omp-low.c (expand_omp_for_generic): Handle simple latch.
5866 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
5868         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5869         tables: add tbl3 and tbx4.
5870         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5871         (aarch64_tbx4v8qi): New.
5872         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5873         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5874         Rewrite using builtin functions.
5875         * config/aarch64/iterators.md (UNSPEC_TBX): New.
5877 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5879         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5880         ROUND_UP macro.
5881         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5882         Use ROUND_UP and ROUND_DOWN macros where applicable.
5883         (rs6000_darwin64_record_arg_flush): Ditto.
5884         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5885         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5886         rounded_size.
5888 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5890         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5891         (AARCH64_ROUND_DOWN): Ditto.
5892         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5894 2015-10-12  Richard Biener  <rguenther@suse.de>
5896         PR ipa/67783
5897         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5898         code that analyzes IVs on each stmt but in a cheaper way avoiding
5899         quadratic behavior.
5901 2015-10-12  Nick Clifton  <nickc@redhat.com>
5903         * config/msp430/msp430.c (msp430_mcu_names): Rename to
5904         msp430_mcu_data, add fields for ISA and hardware multiply
5905         support.  Import latest data from the devices.csv file.
5906         (msp430_override_option): Use the data from the new array.
5907         (msp430_use_f5_series_hwmult): Likewise.
5908         (use_32bit_hwmult): Likewise.
5909         (msp430_no_hwmult): Likewise.
5910         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5911         MCU names.
5912         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5913         not recognised then no hardware multiply support is assumed and
5914         that only the MSP430 ISA is allowed.
5916 2015-10-12  Richard Biener  <rguenther@suse.de>
5918         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5919         related code ...
5920         (vect_analyze_loop_2): ... here.
5922 2015-10-11  Jason Merrill  <jason@redhat.com>
5924         PR c++/67557
5925         * expr.c (store_field): Call store_constructor directly when
5926         storing a CONSTRUCTOR into a target smaller than its type.
5927         Guard against unsafe bitwise copy.
5929 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5931         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5932         counts when these are more informative.
5934 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5936         * tree-profile.c (tree_profiling): Do not clear
5937         pure/const when not instrumenting.
5938         (pass tree_profile): Add dump of symtab.
5940 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5942         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5943         addresses.
5944         (fold_addr_of_array_ref_difference): Likewise.
5946 2015-10-11  Jeff Law  <law@redhat.com>
5948         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5949         tree-ssa-threadbackward.c.
5950         (fsm_find_control_statement_thread_paths): Likewise.
5951         (thread_through_normal_block): Break out FSM bits and move them
5952         into a new function in tree-ssa-threadbackward.c.  Call new function
5953         instead.
5954         Minimize header file usage.
5955         * tree-ssa-threadbackward.h: New file.
5956         * tree-ssa-threadbackward.c: Likewise.
5957         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5959 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
5961         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5963 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
5965         PR rtl-optimization/67864
5966         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5967         fallthrough edges for conditional jumps.  Don't sort candidate
5968         edges if not optimizing for speed.
5970 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5972         * defaults.h (REVERSE_CONDITION): New default definition.
5973         * jump.c (reversed_comparison_code_parts): Adjust.
5975 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5977         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5978         check HARD_FRAME_POINTER_IS_ARG_POINTER.
5980 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5982         * defaults.h (FRAME_ADDR_RTX): New default definition.
5983         * builtins.c (expand_builtin_return_addr): Adjust.
5985 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5987         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5988         * builtins.c (expand_builtin_return_addr): Adjust.
5990 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5992         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5993         * builtins.c (expand_builtin_return_addr): Adjust.
5994         * doc/tm.texi: Likewise.
5995         * doc/tm.texi.in: Likewise.
5996         * except.c (expand_builtin_unwind_init): Likewise.
5998 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6000         * builtins.c (expand_builtin_return_addr): Adjust.
6001         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6003 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6005         * tree.c (type_with_interoperable_signedness): New.
6006         (gimple_canonical_types_compatible_p): Use it.
6007         * tree.h (type_with_interoperable_signedness): Declare
6009 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6011         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6012         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6013         when OEP_ADDRESS_OF is se.
6015 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6016             Sebastian Pop  <s.pop@samsung.com>
6018         * graphite-dependences.c (scop_get_dependences): Add dump of the
6019         data dependence graph.
6020         * graphite-poly.c (print_isl_union_map): New.
6021         (debug_isl_union_map): New.
6022         * graphite-poly.h (print_isl_union_map): Declare.
6023         (debug_isl_union_map): Declare.
6025 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6026             Sebastian Pop  <s.pop@samsung.com>
6028         * graphite-poly.c (print_iteration_domain): Remove verbosity.
6029         Remove OpenScop formatting.
6030         (print_iteration_domains): Same.
6031         (debug_iteration_domain): Same.
6032         (debug_iteration_domains): Same.
6033         (print_pdr): Same.
6034         (debug_pdr): Same.
6035         (dump_gbb_cases): Same.
6036         (dump_gbb_conditions): Same.
6037         (print_pdrs): Same.
6038         (debug_pdrs): Same.
6039         (print_pbb_body): Same.
6040         (print_pbb): Same.
6041         (print_scop_params): Same.
6042         (print_scop_context): Same.
6043         (print_scop): Same.
6044         (debug_pbb_domain): Same.
6045         (debug_pbb): Same.
6046         (debug_scop_context): Same.
6047         (debug_scop): Same.
6048         (debug_scop_params): Same.
6049         * graphite-poly.h: Same.
6050         * graphite.c (graphite_transform_loops): Same.
6052 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6054         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6055         call that isn't needed.
6057 2015-10-09  Jeff Law  <law@redhat.com>
6059         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6060         rather than moving each name to the freelist individually.
6062 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
6064         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6065         * frame-header-opt.c: New file.
6066         * config/mips/mips-proto.h (mips_register_frame_header_opt):
6067         Add prototype.
6068         * config/mips/mips.c (mips_compute_frame_info): Check
6069         optimize_call_stack flag.
6070         (mips_option_override): Register new frame_header_opt pass.
6071         (mips_frame_info, mips_int_mask, mips_shadow_set,
6072         machine_function): Move these types to...
6073         * config/mips/mips.h: here.
6074         (machine_function): Add does_not_use_frame_header and
6075         optimize_call_stack fields.
6076         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6077         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6078         Document new flags.
6079         * config/mips/mips.opt (mframe-header-opt): Add new option.
6081 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
6083         * config/i386/i386.c
6084         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6085         ROUND_DOWN where applicable.
6087 2015-10-09  Jeff Law  <law@redhat.com>
6089         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6090         correct statement.
6092 2015-10-09  Renlin Li  <renlin.li@arm.com>
6094         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6095         operands[0] and operands[2].
6096         (neon_vtrn<mode>_insn): Likewise.
6097         (neon_vzip<mode>_insn): Likewise.
6099 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6101         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6102         ((X & C2) << C1): Expand to...
6103         (X {&,^,|} C2 << C1): ...This.
6104         ((X & C2) >> C1): Expand to...
6105         (X {&,^,|} C2 >> C1): ...This.
6107 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
6109         PR target/67895
6110         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6111         Adjust embedded rounding/SAE specifier position.
6112         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6113         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6114         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6115         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6116         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6117         Likewise.
6118         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6120 2015-10-09  Martin Jambor  <mjambor@suse.cz>
6122         tree-optimization/67794
6123         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6124         between types of state,ents but accept original definitions as a
6125         parameter.
6126         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6127         iterate over definitions.
6129 2015-10-09  James Norris  <jnorris@codesourcery.com>
6131         * config/rs6000/rs6000.c (rs6000_offload_options): New.
6132         (TARGET_OFFLOAD_OPTIONS): New.
6134 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
6136         PR middle-end/67891
6137         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6139         PR middle-end/67766
6140         * function.c (expand_function_end): Move return value
6141         promotion past the handling of PARALLELs and CONCATs.
6143         PR rtl-optimization/67828
6144         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6145         (tree_may_unswitch_on): Don't unswitch on expressions
6146         involving undefined values.
6148 2015-10-09  Richard Biener  <rguenther@suse.de>
6150         * genmatch.c (print_operand): Fix formatting.
6151         (dt_node::append_simplify): Warn for multiple simplifiers
6152         that match the same pattern.
6153         * match.pd (log (exp @0)): Remove duplicates.
6155 2015-10-09  Richard Biener  <rguenth@suse.de>
6157         PR target/67366
6158         * gimple-fold.c (optabs-query.h): Include
6159         (gimple_fold_builtin_memory_op): Allow unaligned stores
6160         when movmisalign_optabs are available.
6162 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6164         PR target/67366
6165         * config/arm/arm.md (movmisalign<mode>): New.
6166         * config/arm/iterators.md (HSI): New.
6168 2015-10-09  Richard Biener  <rguenther@suse.de>
6170         PR tree-optimization/67891
6171         * gimple-match.h (gimple_simplified_result_is_gimple_val):
6172         New helper.
6173         (gimple_resimplify1): Declare.
6174         (gimple_resimplify2): Likewise.
6175         (gimple_resimplify3): Likewise.
6176         * gimple-match-head.c (gimple_resimplify1): Export.
6177         (gimple_resimplify2): Likewise.
6178         (gimple_resimplify3): Likewise.
6179         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6180         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6181         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6182         to avoid creating stmts without VN info.
6184 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
6186         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6187         of availability.
6189 2015-10-08  Jeff Law  <law@redhat.com>
6191         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6192         and release_ssa_name in two places.
6193         (gimple_stringop_fixed_value): Similarly.
6195         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6196         release_defs.
6198         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6199         unlink_stmt_vdef and release_ssa_name_fn.
6201         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6202         release_defs.
6204 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
6206         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6207         SSE register save area to 16 bytes only if the incoming stack
6208         boundary is no less than 16 bytes.
6210 2015-10-08  Jeff Law  <law@redhat.com>
6212         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6213         release_ssa_name.  Fix typo in comment.
6215 2015-10-08  Nathan Sidwell  <nathan@acm.org>
6217         * config/nvptx/nvptx.h (struct machine_function): Add comment.
6218         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6219         may return pointer as well as in memory.
6220         (nvptx_output_return): Likewise.
6222 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6224         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6225         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
6226         * match.pd: Add rules previously handled by fold_builtin_sqrt
6227         and fold_builtin_cbrt.
6229 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6231         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6232         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6233         * fold-const.h (tree_unary_nonnegative_warnv_p)
6234         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6235         (tree_expr_nonnegative_warnv_p): Add depth parameters.
6236         * fold-const.c: Include gimple-fold.h and params.h.
6237         (tree_ssa_name_nonnegative_warnv_p): New function.
6238         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6239         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6240         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6241         Add a depth parameter and increment it for recursive calls to
6242         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
6243         to handle SSA names.
6244         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6245         (gimple_stmt_nonnegative_warnv_p): Declare.
6246         * tree-vrp.c (remove_range_assertions): Remove assert that condition
6247         cannot be proven false.
6248         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6249         (gimple_stmt_nonnegative_warnv_p): Move to...
6250         * gimple-fold.c: ...here.  Add depth parameters and pass them
6251         down to the tree routines.  Accept statements that aren't
6252         assignments or calls but just return false for them.
6253         (gimple_val_nonnegative_real_p): Delete.
6254         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6255         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6256         Check HONOR_NANs first.
6258 2015-10-08  Martin Jambor  <mjambor@suse.cz>
6260         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
6261         unnecessary MIN.
6263 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6265         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6266         in the tail of outer-loop.
6268 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
6270         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6271         return UI_NONE.
6273 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6275         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6276         "cfghooks.h", add prototypes for introduced new functions.
6277         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6278         checks on ability of loop unswitching to tree_unswitch_single_loop;
6279         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6280         on innermost loop check.
6281         (tree_unswitch_single_loop): Add all required checks on ability of
6282         loop unswitching under zero recursive level guard.
6283         (tree_unswitch_outer_loop): New function.
6284         (find_loop_guard): Likewise.
6285         (empty_bb_without_guard_p): Likewise.
6286         (used_outside_loop_p): Likewise.
6287         (get_vop_from_header): Likewise.
6288         (hoist_guard): Likewise.
6289         (check_exit_phi): Likewise.
6291 2015-10-08  Marek Polacek  <polacek@redhat.com>
6293         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6294         ops element.
6296 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6298         PR c/65345
6299         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6300         create_tmp_var_raw instead of create_tmp_var.
6302 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
6304         * expr.c (store_expr_with_bounds): Handle aggregate moves from
6305         BLKmode.
6306         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6307         to define gimple type system; compare aggregates only by size.
6309 2015-10-07  Jeff Law  <law@redhat.com>
6311         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6312         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6313         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
6314         unnecessarily.
6316 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6317             Sebastian Pop  <s.pop@samsung.com>
6319         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6320         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6321         (generate_isl_schedule): Same.
6322         * graphite-optimize-isl.c (scop_get_domains): Same.
6323         (apply_schedule_map_to_scop): Same.
6324         * graphite-poly.c (print_iteration_domains): Same.
6325         (remove_gbbs_in_scop): Same.
6326         (new_scop): Same.
6327         (free_scop): Same.
6328         (print_scop): Same.
6329         * graphite-poly.h (struct scop): Rename bbs to pbbs.
6330         (SCOP_BBS): Remove.
6331         * graphite-scop-detection.c (compare_bb_depths): Remove.
6332         (graphite_sort_dominated_info): Remove.
6333         (try_generate_gimple_bb): Move out of scop_detection.
6334         (all_non_dominated_preds_marked_p): Remove.
6335         (build_scop_bbs_1): Remove.
6336         (build_scop_bbs): Remove.
6337         (nb_pbbs_in_loops): Do not use SCOP_BBS.
6338         (find_scop_parameters): Same.
6339         (sese_dom_walker): Rename gather_bbs.
6340         (before_dom_children): Call try_generate_gimple_bb and collect gbb
6341         and pbb.
6342         (build_scops): Call gather_bbs.
6343         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6344         (add_conditions_to_constraints): Same.
6345         (build_scop_iteration_domain): Same.
6346         (build_scop_drs): Same.
6347         (new_pbb_from_pbb): Same.
6348         * sese.c (new_sese_info): Create bbs.
6349         * sese.h (struct sese_info_t): Add bbs.
6351 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
6353         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6354         encoding in 64-bit mode.
6356 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
6358         PR target/66697
6359         * config/i386/i386.c (ix86_option_override_internal): Always use
6360         8-byte minimum stack boundary in 64-bit mode.
6361         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6362         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6363         Add a REG_CFA_EXPRESSION note if needed.
6364         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6365         (ix86_handle_force_align_arg_pointer_attribute): New.
6366         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6367         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6368         with ix86_handle_force_align_arg_pointer_attribute.
6369         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6371 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6372             Sebastian Pop  <s.pop@samsung.com>
6374         * graphite-scop-detection.c (parameter_index_in_region): Remove
6375         use of SESE_ADD_PARAMS.
6376         (find_scop_parameters): Same.
6377         * sese.c (new_sese_info): Same.
6378         * sese.h (struct sese_info_t): Remove add_params.
6379         (SESE_ADD_PARAMS): Remove.
6381 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6382             Sebastian Pop  <s.pop@samsung.com>
6384         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6385         an sese_info_p.
6386         (copy_def): Same.
6387         (copy_internal_parameters): Same.
6388         (translate_isl_ast_to_gimple): Use an sese_l.
6389         (build_iv_mapping): Same.
6390         * graphite-poly.c (new_sese): Rename new_sese_info.
6391         (free_sese): Rename free_sese_info.
6392         * graphite-poly.h (struct scop): Use an sese_info_p.
6393         (scop_set_region): Same.
6394         * graphite-scop-detection.c (struct sese_l): Moved...
6395         (get_entry_bb): Moved...
6396         (get_exit_bb): Moved...
6397         (parameter_index_in_region_1): Use an sese_info_p.
6398         (parameter_index_in_region): Same.
6399         (scan_tree_for_params): Same.
6400         (find_params_in_bb): Same.
6401         (sese_dom_walker): Use an sese_l.
6402         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6403         (reduction_phi_p): Same.
6404         (parameter_index_in_region_1): Use an sese_info_p.
6405         (propagate_expr_outside_region): Use an sese_l.
6406         * graphite.c: Replace uses of SCOP_REGION.
6407         * sese.c (sese_record_loop): Use an sese_info_p.
6408         (build_sese_loop_nests): Same.
6409         (sese_build_liveouts_use): Same.
6410         (sese_build_liveouts_bb): Same.
6411         (sese_build_liveouts_bb): Same.
6412         (sese_bad_liveouts_use): Same.
6413         (sese_reset_debug_liveouts_bb): Same.
6414         (sese_build_liveouts): Same.
6415         (new_sese): Renamed new_sese_info.
6416         (free_sese): Renamed free_sese_info.
6417         (set_rename): Use an sese_info_p.
6418         (graphite_copy_stmts_from_block): Same.
6419         (copy_bb_and_scalar_dependences): Same.
6420         (outermost_loop_in_sese_1): Use an sese_l.
6421         (outermost_loop_in_sese): Same.
6422         (if_region_set_false_region): Use an sese_info_p.
6423         (move_sese_in_condition): Same.
6424         (scalar_evolution_in_region): Use an sese_l.
6425         * sese.h (struct sese_l): ... here.
6426         (SESE_ENTRY): Remove.
6427         (SESE_ENTRY_BB): Remove.
6428         (SESE_EXIT): Remove.
6429         (SESE_EXIT_BB): Remove.
6430         (sese_contains_loop): Use an sese_info_p.
6431         (sese_nb_params): Same.
6432         (bb_in_sese_p): Use an sese_l.
6433         (stmt_in_sese_p): Same.
6434         (defined_in_sese_p): Same.
6435         (loop_in_sese_p): Same.
6436         (sese_loop_depth): Same.
6437         (struct ifsese_s): Use an sese_info_p.
6438         (gbb_loop_at_index): Use an sese_l.
6439         (nb_common_loops): Same.
6440         (scev_analyzable_p): Same.
6442 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6444         * config/i386/i386.c (ix86_conditional_register_usage): Use
6445         CALL_USED_REGISTERS_MASK.
6446         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6448 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6450         PR bootstrap/67385
6451         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6452         * configure: Regenerated.
6454 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6456         PR target/67850
6457         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6458         (ix86_set_current_function): This.
6459         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6461 2015-10-07  Richard Biener  <rguenther@suse.de>
6463         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6464         (vinfo_for_stmt): Adjust.
6465         (set_vinfo_for_stmt): Likewise.
6466         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6467         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6468         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6469         of inner loop.
6470         (vect_analyze_loop_1): Remove.
6471         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6472         inner loop when vectorizing an outer loop by splitting out from ...
6473         (vect_analyze_loop_form): ... here.
6475 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6477         PR c/65345
6478         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6479         Use create_tmp_var_raw instead of create_tmp_var.
6481 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
6483         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6484         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6485         * real.c (CACHED_FRACTION): New helper macro.
6486         (dconst_third_ptr): Use it.
6487         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6488         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6489         dconst_sixth.
6490         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6492 2015-10-06  Jeff Law  <law@redhat.com>
6494         PR tree-optimization/67816
6495         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6496         from remove_jump_threads_starting_at.  Accept an edge rather than
6497         a basic block.
6498         * tree-ssa-threadupdate.c (removed_edges): New hash table.
6499         (remove_jump_threads_including): Note edges that get removed from
6500         the CFG for later pruning of jump threading paths including them.
6501         (thread_through_all_blocks): Remove paths which include edges that
6502         have been removed.
6503         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6504         on each outgoing edges when optimizing away a control statement.
6506 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6508         * reorg.c (emit_delay_sequence): Store list of delay slot insns
6509         in a vector instead of rtx_insn_list.
6510         (add_to_delay_list): Likewise.
6511         (delete_from_delay_slot): Likewise.
6512         (optimize_skip): Likewise.
6513         (redirect_with_delay_list_safe_p): Likewise.
6514         (check_annul_list_true_false): Likewise.
6515         (steal_delay_list_from_target): Likewise.
6516         (steal_delay_list_from_fallthrough): Likewise.
6517         (redundant_insn): Likewise.
6518         (fill_simple_delay_slots): Likewise.
6519         (fill_slots_from_thread): Likewise.
6520         (fill_eager_delay_slots): Likewise.
6521         (relax_delay_slots): Likewise.
6523 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
6525         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6526         For -mgpopt=local, also exclude unintialized common symbols.
6527         * doc/invoke.texi (Nios II Options): Document the change.
6529 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6531         * config/aarch64/iterators.md (vwcore): Add missing cases for
6532          V4HF/V8HF modes.
6534 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6535             Sebastian Pop  <s.pop@samsung.com>
6537         * graphite-poly.c (new_scop): Initialize drs.
6538         * graphite-poly.h (struct dr_info): New.
6539         (struct scop): Add drs.
6540         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6541         (pdr_add_memory_accesses): Same.
6542         (build_poly_dr): Same.
6543         (build_alias_set): Same.
6544         (build_scop_drs): Same.
6545         (build_pbb_drs): Remove.
6546         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6547         * tree-data-ref.h (data_reference): Remove alias_set.
6549 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6550             Sebastian Pop  <s.pop@samsung.com>
6552         * graphite-poly.c (free_data_refs_aux): Remove.
6553         (free_gimple_poly_bb): Do not call free_data_refs_aux.
6554         * graphite-poly.h (struct base_alias_pair): Remove.
6555         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6556         base_alias_pair and dr->aux.
6557         (build_alias_set): Same.
6558         * tree-data-ref.c (create_data_ref): Initialize alias_set.
6559         * tree-data-ref.h (data_reference): Add alias_set.
6561 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6562             Sebastian Pop  <s.pop@samsung.com>
6564         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6565         Do not set PDR_BASE_OBJECT_SET.
6566         * graphite-poly.h (poly_dr): Same.
6567         (PDR_BASE_OBJECT_SET): Remove.
6568         (new_poly_dr): Update decl.
6569         * graphite-sese-to-poly.c (build_poly_dr): Update call to
6570         new_poly_dr.
6571         (write_alias_graph_to_ascii_dimacs): Remove.
6572         (write_alias_graph_to_ascii_dot): Remove.
6573         (write_alias_graph_to_ascii_ecc): Remove.
6574         (dr_same_base_object_p): Remove.
6575         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
6576         code.
6577         (build_base_obj_set_for_drs): Remove.
6578         (dump_alias_graphs): Remove.
6579         (build_scop_drs): Remove dead code.
6581 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
6582             Peter Bergner  <bergner@vnet.ibm.com>
6584         PR target/67808
6585         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6586         allow registers, but provide insns for the combiner to create for
6587         loads from memory. Separate VSX code from non-VSX code. For
6588         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6589         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6590         so that registers come before memory operations. Drop support from
6591         converting DFmode to TFmode, if the DFmode value is in a GPR
6592         register.
6593         (extenddftf2_fprs): Likewise.
6594         (extenddftf2_internal): Likewise.
6595         (extenddftf2_vsx): Likewise.
6596         (extendsftf2): In the expander, only allow registers, but provide
6597         insns for the combiner to create for stores and loads.
6599 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6601         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6602         from the decl parameter.
6604 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
6606         PR 67861
6607         * gimple-fold.c (gimple_fold_builtin): Add break after
6608         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6610 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6612         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6613         to scop->isl_context.
6615 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6617         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6618         (output_probe_stack_range): Rotate the loop and simplify.
6619         (thumb1_expand_prologue): Tweak sorry message.
6620         * config/arm/arm.md (probe_stack): Use bare string.
6622 2015-10-06  Nick Clifton  <nickc@redhat.com>
6624         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6626 2015-10-06  Nick Clifton  <nickc@redhat.com>
6628         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6629         (ATTR_PERSIST): New constant.
6630         (msp430_data_attr): New function - verifies an attribute that only
6631         applies to variables.
6632         (msp430_attributes): Add noinit and persistent attributes.
6633         (noinit_section): New variable.
6634         (presis_section): New variable.
6635         (TARGET_ASM_INIT_SECTIONS): Define.
6636         (msp430_init_sections): New function - initialises the noinit and
6637         persist section variables.
6638         (msp430_select_section): Add support for noinit and persist
6639         attributes.
6640         (msp430_section_type_flags): Likewise.
6641         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
6642         and persistent attributes.
6644 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6645             Sebastian Pop  <s.pop@samsung.com>
6647         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6648         (no_violations): Remove.
6649         (subtract_commutative_associative_deps): Remove.
6650         (compute_deps): Do not call subtract_commutative_associative_deps.
6651         (transform_is_safe): Remove.
6652         (graphite_legal_transform): Remove.
6653         * graphite-poly.h (graphite_legal_transform): Remove.
6655 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
6657         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6658         which are in this region are passed so gcc_assert and remove redundant
6659         computation.
6660         * sese.c (sese_build_liveouts): Pass only those bbs which are not
6661         in region.
6662         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6663         gcc_assert on that and remove unnecessary computation.
6664         (sese_build_liveouts_use): Same.
6666 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6668         * graphite-dependences.c (scop_get_reads): Renamed scop->context
6669         to scop->param_context.
6670         (scop_get_must_writes): Same.
6671         (scop_get_may_writes): Same.
6672         (scop_get_original_schedule): Same.
6673         (scop_get_transformed_schedule): Same.
6674         (subtract_commutative_associative_deps): Same.
6675         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6676         (generate_isl_context): Same.
6677         (generate_isl_schedule): Same.
6678         (scop_to_isl_ast): Same.
6679         (graphite_regenerate_ast_isl): Same.
6680         * graphite-optimize-isl.c (scop_get_domains): Same.
6681         (optimize_isl): Renamed scop->context to scop->param_context.
6682         * graphite-poly.c (new_poly_bb): Change the type of argument to
6683         gimple_poly_bb_p.
6684         (new_scop): Renamed scop->context to scop->param_context.
6685         (free_scop): Same.
6686         (print_scop_context): Same.
6687         * graphite-poly.h (new_poly_dr): Change the type of argument from
6688         void* to data_reference_p.
6689         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6690         (new_poly_bb): Change the type of argument from void* to
6691         gimple_poly_bb_p.
6692         (pbb_set_black_box): Same.
6693         (struct scop): Rename context to param_context, ctx to isl_context.
6694         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6695         Move declarations closer to assignment.
6696         (find_params_in_bb): Same.
6697         (find_scop_parameters): Same.
6698         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6699         Global to be used for statement IDs.
6700         (isl_id_for_pbb): Use ssa_name_version_typesize.
6701         (simple_copy_phi_p): Move declarations closer to assignment.
6702         (build_pbb_scattering_polyhedrons): Same.
6703         (build_scop_scattering): Same.
6704         (isl_id_for_ssa_name): Same.
6705         (extract_affine_name): Same.
6706         (extract_affine_int): Same.
6707         (extract_affine): Same.
6708         (set_scop_parameter_dim): Use renamed member.
6709         (build_loop_iteration_domains): Same.
6710         (add_param_constraints): Same.
6711         (build_scop_iteration_domain): Same.
6712         (pdr_add_data_dimensions): Same.
6713         (build_poly_dr): Same.
6714         (build_scop_drs): Move declarations closer to assignment.
6715         (analyze_drs_in_stmts): Same.
6716         (insert_out_of_ssa_copy): Same.
6717         (insert_out_of_ssa_copy_on_edge): Same.
6718         (propagate_expr_outside_region): Same.
6719         (rewrite_phi_out_of_ssa): Same.
6720         (rewrite_degenerate_phi): Same.
6721         (rewrite_reductions_out_of_ssa): Same.
6722         (rewrite_cross_bb_scalar_dependence): Same.
6723         (handle_scalar_deps_crossing_scop_limits): Same.
6724         (rewrite_cross_bb_scalar_deps): Same.
6725         * graphite.c (graphite_transform_loops): Use renamed member.
6727 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
6729         PR c/65345
6730         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6731         create_tmp_var_raw instead of create_tmp_var.
6733 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6735         PR c/65345
6736         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6737         Use create_tmp_var_raw instead of create_tmp_var.
6739 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
6741         PR target/67849
6742         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6743         split for upper-bank registers when target does not support
6744         AVX512VL.
6745         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6746         split when target does not support AVX512VL.
6748 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
6750         PR c/65345
6751         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6752         Adjust to use create_tmp_var_raw instead of create_tmp_var.
6754 2015-10-06  Nick Clifton  <nickc@redhat.com>
6756         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6757         multiplication.
6759 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6761         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6762         (case ${target}): Add znver1.
6763         * config/i386/cpuid.h(bit_CLZERO):  Define.
6764         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6765         -march=native recognize znver1 processors.
6766         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6767         znver1, clzero def_and_undef.
6768         * config/i386/i386.c (struct processor_costs znver1_cost): New.
6769         (m_znver1): New definition.
6770         (m_AMD_MULTIPLE): Includes m_znver1.
6771         (processor_target_table): Add znver1 entry.
6772         (ix86_target_string) : Add clzero entry.
6773         (static const char *const cpu_names): Add znver1 entry.
6774         (ix86_option_override_internal): Add znver1 instruction sets.
6775         (PTA_CLZERO) :  New definition.
6776         (ix86_option_override_internal): Handle new clzerooption.
6777         (ix86_issue_rate): Add znver1.
6778         (ix86_adjust_cost): Add znver1.
6779         (ia32_multipass_dfa_lookahead): Add znver1.
6780         (has_dispatch): Add znver1.
6781         * config/i386/i386.h (TARGET_znver1): New definition.
6782         (TARGET_CLZERO): Define.
6783         (TARGET_CLZERO_P): Define.
6784         (struct ix86_size_cost): Add TARGET_ZNVER1.
6785         (enum processor_type): Add PROCESSOR_znver1.
6786         * config/i386/i386.md (define_attr "cpu"): Add znver1.
6787         (set_attr znver1_decode): New definitions for znver1.
6788         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6789         (mclzero): New.
6790         * config/i386/mmx.md (set_attr znver1_decode): New definitions
6791         for znver1.
6792         * config/i386/sse.md (set_attr znver1_decode): Likewise.
6793         * config/i386/x86-tune.def:  Add znver1 tunings.
6794         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6795         * doc/invoke.texi: Add details about znver1
6797 2015-10-06  Richard Biener  <rguenther@suse.de>
6799         PR tree-optimization/67859
6800         * tree-ssa-pre.c (create_expression_by_pieces): Properly
6801         discard not inserted stmts.
6803 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
6805         * doc/extend.texi (Template Instantiation): Reorder options and
6806         de-emphasize -frepo.
6807         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6808         example instead of -frepo.
6810 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6812         PR c/65345
6813         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6814         use create_tmp_var_raw rather than create_tmp_var.
6816 2015-10-06  Richard Biener  <rguenther@suse.de>
6818         * tree-vectorizer.h (vec_info): New base class for...
6819         (_loop_vec_info): ... this and ...
6820         (_bb_vec_info): ... this.
6821         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6822         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6823         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6824         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6825         vect_destroy_datarefs): Adjust interface to take a vec_info *
6826         rather than both a loop_vec_info and a bb_vec_info argument.
6827         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6828         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6829         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6830         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6831         accordingly.
6832         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6833         (destroy_loop_vec_info, vect_analyze_loop_2,
6834         vect_is_simple_reduction_1, get_initial_def_for_induction,
6835         vect_create_epilog_for_reduction, vectorizable_reduction,
6836         vectorizable_live_operation, vect_transform_loop): Adjust.
6837         * tree-vect-patterns.c (type_conversion_p,
6838         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6839         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6840         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6841         check_bool_pattern, vect_recog_bool_pattern,
6842         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6843         * tree-vect-slp.c (vect_get_and_check_slp_defs,
6844         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6845         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6846         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6847         (new_bb_vec_info): Initialize base classs.
6848         * tree-vect-stmts.c (record_stmt_cost, process_use,
6849         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6850         vectorizable_mask_load_store, vectorizable_call,
6851         vectorizable_simd_clone_call, vectorizable_conversion,
6852         vectorizable_assignment, vectorizable_shift,
6853         vectorizable_operation, vectorizable_store,
6854         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6855         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6856         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6858 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6860         PR c/65345
6861         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6862         create_tmp_var_raw rather than create_tmp_var.
6864 2015-10-05  Marek Polacek  <polacek@redhat.com>
6866         * tree-ssa-loop-im.c
6867         (move_computations_dom_walker::before_dom_children): Don't set
6868         SSA_NAME_ANTI_RANGE_P.
6869         * tree-ssa-phiopt.c (value_replacement): Likewise.
6871 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6872             Sebastian Pop  <s.pop@samsung.com>
6874         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6876 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6877             Sebastian Pop  <s.pop@samsung.com>
6879         * graphite-poly.c (new_gimple_poly_bb): ... here.
6880         (free_data_refs_aux): ... here.
6881         (free_gimple_poly_bb): ... here.
6882         (remove_gbbs_in_scop): ... here.
6883         (new_scop): Call new_sese.
6884         (free_scop): Call remove_gbbs_in_scop and free_sese.
6885         * graphite-poly.h (base_alias_pair): ... here.
6886         (new_gimple_poly_bb): Declare.
6887         (free_gimple_poly_bb): Declare.
6888         * graphite-scop-detection.c (parameter_index_in_region_1):
6889         (parameter_index_in_region): ... here.
6890         (scan_tree_for_params): ... here.
6891         (find_params_in_bb): ... here.
6892         (find_scop_parameters): ... here.
6893         (build_scops): Call find_scop_parameters.
6894         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6895         (free_scops): Move...
6896         (single_pred_cond_non_loop_exit): Move...
6897         (sese_dom_walker::before_dom_children): Move...
6898         (sese_dom_walker::after_dom_children): Move...
6899         (build_poly_scop): Move...
6900         * graphite-sese-to-poly.h (base_alias_pair): Move...
6901         * graphite.c (free_scops): ... here.
6903 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6904             Sebastian Pop  <s.pop@samsung.com>
6906         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6907         (trivially_empty_bb_p): Move...
6908         (same_close_phi_node): Move...
6909         (new_gimple_poly_bb): Move...
6910         (compare_bb_depths): Move...
6911         (graphite_sort_dominated_info): Move...
6912         (remove_duplicate_close_phi): Move...
6913         (make_close_phi_nodes_unique): Move...
6914         (canonicalize_loop_closed_ssa): Move...
6915         (canonicalize_loop_closed_ssa_form): Move...
6916         (loop_ivs_can_be_represented): Move...
6917         (single_pred_cond_non_loop_exit): Move...
6918         (graphite_can_represent_init): Move...
6919         (graphite_can_represent_scev): Move...
6920         (stmt_has_simple_data_refs_p): Move...
6921         (stmt_has_side_effects):  Move...
6922         (graphite_can_represent_stmt): Move...
6923         (scop_detection): ... here.
6924         (sese_dom_walker): ... and here.
6925         (build_scops): Call all moved functions.
6926         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6927         (all_non_dominated_preds_marked_p): Move...
6928         (build_scop_bbs_1): Move...
6929         (build_scop_bbs): Move...
6930         (set_scop_parameter_dim): Move...
6931         (nb_pbbs_in_loops): Move...
6932         (build_poly_scop): Do not call all the moved functions.
6934 2015-10-05  Martin Jambor  <mjambor@suse.cz>
6935             Jan Hubicka  <hubicka@ucw.cz>
6937         * ipa-cp.c (ipcp_alignment_lattice): New type.
6938         (ipcp_param_lattices): Use the above to represent alignment.
6939         (ipcp_alignment_lattice::print): New function.
6940         (print_all_lattices): Use it to print alignment information.
6941         (ipcp_alignment_lattice::top_p): New function.
6942         (ipcp_alignment_lattice::bottom_p): Likewise.
6943         (ipcp_alignment_lattice::set_to_bottom): Likewise.
6944         (ipcp_alignment_lattice::meet_with_1): Likewise.
6945         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6946         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6947         (initialize_node_lattices): Likewise.
6948         (propagate_alignment_accross_jump_function): Work with the new class
6949         for alignment lattices.
6950         (propagate_constants_accross_call): Pass only the alignment lattice to
6951         propagate_alignment_accross_jump_function.
6952         (ipcp_store_alignment_results): Work with the new class for alignment
6953         lattices.
6955 2015-10-05  Marek Polacek  <polacek@redhat.com>
6957         PR tree-optimization/67821
6958         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6960 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
6962         PR other/65021
6963         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6964         function to...
6965         (mkoffload_cleanup): ... this.  Adjust all users.
6966         (maybe_unlink): Look at save_temps and verbose flags instead of
6967         debug flag.
6968         (main): Parse "-save-temps" flag.
6969         (generate_target_descr_file, generate_target_offloadend_file)
6970         (generate_host_descr_file, prepare_target_image): Pass it on.
6971         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6972         (mkoffload_cleanup): New function.
6973         (maybe_unlink): Look at save_temps and verbose flags instead of
6974         debug flag.
6975         (main): Instead of calling utils_cleanup, register atexit handler
6976         for mkoffload_cleanup.
6977         (main): Parse "-save-temps" flag.
6978         (compile_native, main): Pass it on.
6979         * lto-wrapper.c (compile_offload_image): Likewise.
6981 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6983         * gimple.h (gimple_op_ptr): Require a non const gimple *.
6984         (gimple_assign_lhs_ptr): Likewise.
6985         (gimple_assign_rhs1_ptr): Likewise.
6986         (gimple_assign_rhs2_ptr): Likewise.
6987         (gimple_assign_rhs3_ptr): Likewise.
6988         (gimple_call_lhs_ptr): Likewise.
6989         (gimple_call_fn_ptr): Likewise.
6990         (gimple_call_chain_ptr): Likewise.
6991                 (gimple_call_arg_ptr): Likewise.
6992                 (gimple_cond_lhs_ptr): Likewise.
6993         (gimple_cond_rhs_ptr): Likewise.
6994         (gimple_switch_index_ptr): Likewise.
6995         (gimple_return_retval_ptr): Likewise.
6997 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6999         * gimple.h (gimple_asm_input_op_ptr): Remove.
7000         (gimple_asm_output_op_ptr): Likewise.
7002 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7004         * gimple.h (gimple_location_ptr): Remove.
7005         * tree-vrp.c (check_all_array_refs): Adjust.
7007 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7009         * tree-ssa-operands.c (build_uses): store tree * instead of
7010         tree.
7011         (finalize_ssa_uses): Adjust.
7012         (append_use): Likewise.
7013         (verify_ssa_operands): Likewise.
7015 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7017         * real.h (build_real_truncate): Declare.
7018         * tree.c (build_real_truncate): New function.
7019         (strip_float_extensions): Use it.
7020         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7021         (fold_builtin_hypot, fold_builtin_pow): Likewise.
7022         * match.pd: Likewise.
7024 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7025            Jiong Wang  <jiong.wang@arm.com>
7027         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7029 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7031         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7032         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7033         (aarch64_print_operand, aarch64_float_const_representable_p)
7034         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7035         instead of REAL_VALUE_FROM_CONST_DOUBLE.
7036         * config/arc/arc.c (arc_print_operand): Likewise.
7037         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7038         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7039         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7040         Likewise.
7041         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7042         (consttable_16): Likewise.
7043         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7044         * config/avr/avr.c (avr_print_operand): Likewise.
7045         * config/bfin/bfin.md: Likewise (in a define_split).
7046         * config/c6x/c6x.md: Likewise (in a define_split).
7047         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7048         (cr16_print_operand): Likewise.
7049         * config/cris/cris.c (cris_print_operand): Likewise.
7050         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7051         * config/fr30/fr30.c (fr30_print_operand): Likewise.
7052         (fr30_const_double_is_zero): Likewise.
7053         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7054         * config/frv/frv.md: Likewise (in a define_split).
7055         * config/frv/predicates.md (int_2word_operand): Likewise.
7056         * config/h8300/h8300.c (h8300_print_operand): Likewise.
7057         * config/i386/i386.c (standard_80387_constant_p): Likewise.
7058         (ix86_print_operand, ix86_split_to_parts): Likewise.
7059         * config/i386/i386.md: Likewise (in a define_split).
7060         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7061         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7062         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7063         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7064         (print_operand): Likewise.
7065         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7066         * config/mep/mep.md: Likewise (in define_split).
7067         * config/microblaze/microblaze.c (microblaze_const_double_ok)
7068         (print_operand): Likewise.
7069         * config/mips/mips.md (consttable_float): Likewise.
7070         * config/mmix/mmix.c (mmix_intval): Likewise.
7071         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7072         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7073         * config/pa/pa.c (pa_singlemove_string): Likewise.
7074         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7075         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7076         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7077         (output_toc): Likewise.
7078         * config/rs6000/rs6000.md: Likewise (in define_splits).
7079         * config/rx/rx.c (rx_print_operand): Likewise.
7080         * config/s390/s390.c (s390_output_pool_entry): Likewise.
7081         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7082         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7083         (and also in define_splits).
7084         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7085         (fp_high_losum_p): Likewise.
7086         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7087         (*movsf_high): Likewise.
7088         * config/spu/spu.c (const_double_to_hwint): Likewise.
7089         * config/v850/v850.c (const_double_split): Likewise.
7090         * config/vax/vax.c (vax_float_literal): Likewise.
7091         * config/visium/visium.c (visium_expand_copysign): Likewise.
7092         * config/visium/visium.md: Likewise (in define_split).
7093         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7094         * config/xtensa/xtensa.c (print_operand): Likewise.
7095         (xtensa_output_literal): Likewise.
7096         * cprop.c (implicit_set_cond_p): Likewise.
7097         * dwarf2out.c (insert_float): Likewise.
7098         * expmed.c (expand_mult, make_tree): Likewise.
7099         * expr.c (compress_float_constant): Likewise.
7100         * rtlanal.c (split_double): Likewise.
7101         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7102         (simplify_const_unary_operation, simplify_binary_operation_1)
7103         (simplify_const_binary_operation): Likewise.
7104         (simplify_const_relational_operation): Likewise.
7105         * varasm.c (output_constant_pool_2): Likewise.
7107 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7109         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7110         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7111         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7112         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7113         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7114         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7115         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7116         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7117         (ix86_emit_swsqrtsf): Likewise.
7118         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7119         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7120         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7121         * config/pa/pa.c (pa_expand_builtin): Likewise.
7122         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7123         (rs6000_scale_v2df): Likewise.
7124         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7125         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7126         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7127         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7128         (vec_ctul): Likewise.
7129         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7130         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7131         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7132         * cse.c (fold_rtx): Likewise.
7133         * emit-rtl.c (immed_double_const): Likewise (in comments).
7134         (init_emit_once): Likewise.
7135         * expr.c (compress_float_constant, expand_expr_real_1)
7136         (const_vector_from_tree): Likewise.
7137         * optabs.c (expand_float, expand_fix): Likewise.
7138         * reg-stack.c (reg_to_stack): Likewise.
7139         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7140         (simplify_const_unary_operation, simplify_binary_operation_1)
7141         (simplify_const_binary_operation, simplify_relational_operation)
7142         (simplify_immed_subreg): Likewise.
7144 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7146         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7147         * doc/tm.texi: Regenerate.
7148         * real.h (REAL_ARITHMETIC): Delete.
7149         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7150         (ix86_expand_round_sse4): Use real_arithmetic instead of
7151         REAL_ARITHMETIC.
7152         * config/i386/sse.md (round<mode>2): Likewise.
7153         * rtl.h (rtx_to_tree_code): Likewise (in comment).
7154         * explow.c (rtx_to_tree_code): Likewise (in comment).
7155         * match.pd: Likewise.
7156         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7157         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7158         (expand_pow_as_sqrts): Likewise.
7159         * tree-pretty-print.c (dump_generic_node): Remove code that
7160         was conditional on REAL_ARITHMETIC being undefined.
7162 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7164         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7165         * doc/tm.texi: Regenerate.
7166         * real.h (real_less): Declare.
7167         (REAL_VALUES_LESS): Delete.
7168         * real.c (real_less): New function.
7169         (real_compare): Use it.
7170         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7171         of REAL_VALUES_LESS.
7172         * config/microblaze/microblaze.c (microblaze_const_double_ok):
7173         Likewise.
7174         * fold-const.c (fold_convert_const_int_from_real): Likewise.
7175         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7176         (simplify_const_relational_operation): Likewise.
7177         * tree-call-cdce.c (check_pow): Likewise.
7178         (gen_conditions_for_pow_cst_base): Likewise.
7180 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7182         * real.h (REAL_VALUES_IDENTICAL): Delete.
7183         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7184         instead of REAL_VALUES_IDENTICAL.
7185         * fold-const.c (operand_equal_p): Likewise.
7186         * ipa-icf.c (sem_variable::equals): Likewise.
7187         * tree-complex.c (some_nonzerop): Likewise.
7188         (expand_complex_multiplication): Likewise.
7189         * tree.c (simple_cst_equal): Likewise.
7190         * varasm.c (compare_constant): Likewise.
7192 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7194         * real.h (real_equal): Declare.
7195         (REAL_VALUES_EQUAL): Delete.
7196         * real.c (real_equal): New function.
7197         (real_compare): Use it.
7198         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7199         * doc/tm.texi: Regenerate.
7200         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7201         real_equal instead of REAL_VALUES_EQUAL.
7202         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7203         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7204         (fp_const_from_val): Likewise.
7205         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7206         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7207         (floating_exact_log2): Likewise.
7208         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7209         * config/vax/vax.c (vax_float_literal): Likewise.
7210         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7211         * cprop.c (implicit_set_cond_p): Likewise.
7212         * expmed.c (expand_mult): Likewise.
7213         * fold-const.c (const_binop): Likewise.
7214         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7215         (simplify_const_binary_operation): Likewise.
7216         (simplify_const_relational_operation): Likewise.
7217         * tree-call-cdce.c (check_pow): Likewise.
7218         (gen_conditions_for_pow_cst_base): Likewise.
7219         * tree-inline.c (estimate_num_insns): Likewise.
7220         * tree-ssa-dom.c (record_equality): Likewise.
7221         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7222         (gimple_expand_builtin_pow): Likewise.
7223         (pass_optimize_widening_mul::execute): Likewise.
7224         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7225         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7226         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7228 2015-10-05  Richard Biener  <rguenther@suse.de>
7230         PR ipa/67783
7231         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7232         consider loop header PHI defs as IVs.
7234 2015-10-05  Richard Biener  <rguenther@suse.de>
7236         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7237         call handling ...
7238         (create_expression_by_pieces): ... here and build GIMPLE
7239         calls directly.  Use gimple_build API and avoid force_gimple_operand.
7240         (insert_into_preds_of_block): Simplify.
7241         (do_regular_insertion): Add comment.
7243 2015-10-04  Jason Merrill  <jason@redhat.com>
7245         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7247 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
7249         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7250         check for general register.
7251         (ix86_emit_save_regs): Ditto.
7252         (ix86_emit_save_regs_using_mov): Ditto.
7253         (ix86_emit_restore_regs_using_pop): Ditto.
7254         (ix86_emit_restore_regs_using_mov): Ditto.
7256 2015-10-03  Marek Polacek  <polacek@redhat.com>
7258         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7259         (insn-dfatab.o): Likewise.
7261 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
7263         * config.gcc (xtensa*-*-uclinux*): New configuration.
7264         * config/xtensa/uclinux.h: New file.
7265         * config/xtensa/uclinux.opt: New file.
7267 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
7269         * doc/cpp.texi (Standard Predefined Macros): Document value of
7270         __cplusplus for C++14.
7272 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
7274         * gcc.c (process_command): Use spec_machine rather than
7275         spec_host_machine to build tooldir_prefix2.
7277 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7278             Bernd Schmidt  <bernds@codesourcery.com>
7280         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7281         (Token, Stmt): Remove structs.
7282         (decls, vars, fns): Remove variables.
7283         (alloc_comment, append_stmt, is_keyword): Remove macros.
7284         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7285         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7286         (parse_init, parse_file): Remove functions.
7287         (read_file): Accept a pointer to a length and store into it.
7288         (process): Don't try to parse the input file, just write it out as
7289         a string, but looking for maps.  Also write out the length.
7290         (main): Don't use "-S" to compile PTX code.
7292 2015-10-02  Jeff Law  <law@redhat.com>
7294         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7295         fixups.
7297 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7299         PR target/67822
7300         * config/nvptx/mkoffload.c (main): Scan the argument vector for
7301         -fopenmp, and skip generating an offloading image if specified.
7303 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
7305         * system.h (ROUND_UP): New macro definition.
7306         (ROUND_DOWN): Ditto.
7307         * ggc-page.c (ROUND_UP): Remove local macro definition.
7308         (PAGE_ALIGN): Implement using ROUND_UP macro.
7310         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7311         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7312         to align values.
7313         (ix86_compute_frame_layout): Ditto.
7314         (ix86_expand_prologue): Ditto.
7315         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7316         to round down values.
7317         (expand_set_or_movmem_via_rep): Ditto.
7319 2015-10-02  Marek Polacek  <polacek@redhat.com>
7321         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7323 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
7325         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7326         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7327         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7328         (free_gimple_bb): Renamed free_gimple_poly_bb.
7329         (try_generate_gimple_bb): Hoist loop invariant code.
7330         (analyze_drs_in_stmts): Same.
7331         (build_scop_drs): Call renamed functions.
7332         (new_pbb_from_pbb): Same.
7333         (scop_ivs_can_be_represented): Delete as functionality now moved to
7334         graphite-scop-detection.c
7335         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7337 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
7339         * graphite-scop-detection.c (stmt_has_side_effects): New function
7340           outlined from stmt_simple_for_scop_p.
7341         (graphite_can_represent_stmt): Same.
7342         (stmt_simple_for_scop_p): Moved code out of this function for better
7343         readability.
7345 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7347         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7348         F_AVX512IFMA.
7349         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7351 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7353         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7355 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
7357         PR rtl-optimization/67756
7358         * lra-constraints.c (match_reload): Add a new parameter.  Use it
7359         for creating a pseudo with the same value.
7360         (curr_insn_transform): Pass a new argument to match_reload.
7362 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7364         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7365         (expand_vec_perm_even_odd_1): Handle V64QImode.
7366         (ix86_expand_vec_perm_const_1): Try expansion with
7367         expand_vec_perm_even_odd_trunc as well.
7368         * config/i386/sse.md (VI124_AVX512F): Rename to ...
7369         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7370         to V54QI.
7371         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7372         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7373         to V32HI and V16SI.
7374         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7375         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7376         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7377         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7378         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7379         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7381 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7383         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7384         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7386 2015-10-02  Jason Merrill  <jason@redhat.com>
7388         PR c/59218
7389         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7390         (diagnose_tm_1_op): Also diagnose volatile accesses in
7391         transaction_safe function.
7393 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
7395         * system.h (malloc.h): Don't include obsolete header.
7397 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7399         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7400         (TLS_SECTION_ASM_FLAG): Delete.
7402 2015-10-02  Marek Polacek  <polacek@redhat.com>
7404         PR c/64249
7405         * doc/invoke.texi: Document -Wduplicated-cond.
7406         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7407         (insn-dfatab.o): Likewise.
7408         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7409         warning.
7411 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
7413         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7414         sequences.
7416 2015-10-02  Renlin Li  <renlin.li@arm.com>
7418         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7420 2015-10-02  Renlin Li  <renlin.li@arm.com>
7422         PR target/66776
7423         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7425 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7427         PR rtl-optimization/67786
7428         PR rtl-optimization/67787
7429         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7430         it modifies a reg used in the condition calculation.
7432 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
7434         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7435         alternatives for reads from memory and moves from general-purpose
7436         registers.
7437         (*aarch64_combinez_be<mode>): Likewise.
7439 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
7441         PR target/51726
7442         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7443         selectany within this function without need to keep attribute.
7444         (i386_pe_encode_section_info): Remove selectany-code.
7446 2015-10-02  Richard Biener  <rguenther@suse.de>
7448         * tree-ssa-sccvn.c (has_VN_INFO): New function.
7449         (free_scc_vn): Use it.
7450         (visit_use): Remove dead code and refactor to use gassign
7451         and use less indentation.
7453 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7455         PR target/67788
7456         PR target/67789
7457         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7458         (rs6000_cannot_copy_insn_p): New function.
7459         * config/rs6000/rs6000.md (cannot_copy): New attribute.
7460         (load_toc_v4_PIC_1_normal): Set cannot_copy.
7461         (load_toc_v4_PIC_1_476): Ditto.
7463 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7465         * graphite-scop-detection.c (struct sese_l): New conversion constructor
7466         so that this type can be pushed into a vec.
7467         (class scop_builder): use sese_l to collect scops.
7468         (get_scops): New getter function.
7469         (remove_intersecting_scops): Use sese_l instead of scops_p.
7470         (intersects): Same.
7471         (add_scop): Same.
7472         (subsumes): Same.
7473         (remove_subscops): Same.
7474         (build_scops): Add scops to vec<scops_p> once all the scops have been
7475         detected.
7477 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7479         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7480         Renamed type from gimple_bb_p to gimple_poly_bb_p.
7481         (translate_isl_ast_node_user): Same.
7482         * graphite-poly.c (new_poly_bb): Same.
7483         * graphite-poly.h (gbb_from_bb): Same.
7484         * sese.h: Same.
7485         * graphite-sese-to-poly.c (new_gimple_bb):
7486         gimple_bb_p -> gimple_poly_bb_p
7487         (build_scop_scattering): Same.
7488         (find_params_in_bb): Same.
7489         (add_conditions_to_domain): Same.
7490         (sese_dom_walker::before_dom_children): Same.
7491         (analyze_drs_in_stmts): Same.
7492         (new_pbb_from_pbb): Same.
7493         (free_data_refs_aux): New pointer to type base_alias_pair.
7494         * graphite-sese-to-poly.h: Same.
7495         * sese.c (if_region_set_false_region): Fixed Indentation.
7496         (move_sese_in_condition): Same.
7498 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7499             Aditya Kumar  <aditya.k7@samsung.com>
7501         PR tree-optimization/66980
7502         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7503         when data reference analysis has failed.
7505 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7506             Aditya Kumar  <aditya.k7@samsung.com>
7508         PR tree-optimization/67754
7509         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7510         scev analysis on the same loop nest as analyze_drs_in_stmts.
7511         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7512         renamed...
7513         (try_generate_gimple_bb): Call outermost_loop_in_sese.
7514         (analyze_drs_in_stmts): Same.
7515         * sese.c (outermost_loop_in_sese): ...here.
7517 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7518             Aditya Kumar  <aditya.k7@samsung.com>
7520         PR tree-optimization/67754
7521         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7522         recursion on the inner loops.
7524 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7526         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7527         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7528         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7529         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7530         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7532 2015-10-01  Marek Polacek  <polacek@redhat.com>
7534         PR c/65345
7535         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7536         create_tmp_var_raw rather than create_tmp_var.
7538 2015-10-01  Marek Polacek  <polacek@redhat.com>
7540         PR tree-optimization/67769
7541         * tree-ssa-phiopt.c (conditional_replacement): Call
7542         reset_flow_sensitive_info_in_bb.
7543         (minmax_replacement): Likewise.
7544         (abs_replacement): Likewise.
7546 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
7548         * builtins.c: Don't include gomp-constants.h.
7549         (fold_builtin_1): Don't fold acc_on_device here.
7550         * gimple-fold.c: Include gomp-constants.h.
7551         (gimple_fold_builtin_acc_on_device): New.
7552         (gimple_fold_builtin): Call it.
7554 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7556         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7557         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7559 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
7561         * config/arm/aarch-common-protos.h
7562         (aarch_accumulator_forwarding): New.
7563         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7564         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7565         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7566         * config/arm/cortex-a53.md: Rewrite.
7568 2015-10-01  Richard Biener  <rguenther@suse.de>
7570         * gimple-match.h (mprts_hook): Declare.
7571         * gimple-match.head.c (mprts_hook): Define.
7572         (maybe_push_res_to_seq): Use new hook.
7573         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7574         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7575         (vn_ssa_aux::has_constants): Remove.
7576         * tree-ssa-sccvn.c: Include gimple-match.h.
7577         (VN_INFO_GET): Assert we don't re-use SSA names.
7578         (vn_get_expr_for): Remove.
7579         (expr_has_constants): Likewise.
7580         (stmt_has_constants): Likewise.
7581         (simplify_binary_expression): Likewise.
7582         (simplify_unary_expression): Likewise.
7583         (vn_lookup_simplify_result): New hook.
7584         (visit_copy): Adjust.
7585         (visit_reference_op_call): Likewise.
7586         (visit_phi): Likewise.
7587         (visit_use): Likewise.
7588         (process_scc): Likewise.
7589         (init_scc_vn): Likewise.
7590         (visit_reference_op_load): Likewise.  Use match-and-simplify and
7591         a gimple seq for inserted expressions.
7592         (try_to_simplify): Remove GENERIC stmt combining code.
7593         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7594         * tree-ssa-pre.c (eliminate_insert): Adjust.
7595         (eliminate_dom_walker::before_dom_children): Likewise.
7597 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7599         * doc/invoke.texi (Optimization Options): Add
7600         -freorder-blocks-algorithm=.
7601         (Optimize Options) <-O>: Add -freorder-blocks.
7602         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
7603         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7604         <-freorder-blocks>: Also enabled at levels -O and -Os.
7605         <-freorder-blocks-algorithm=>: Document new option.
7607 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7609         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7610         with flag_reorder_blocks_algorithm.
7611         * common.opt (freorder-blocks-algorithm=): New flag.
7612         (reorder_blocks_algorithm): New enum.
7613         * flag-types.h (reorder_blocks_algorithm): New enum.
7614         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7615         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7617 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7619         * bb-reorder.c: Add intro comment.
7620         (reorder_basic_blocks_software_trace_cache): Print a header to
7621         the dump file.
7622         (edge_order): New function.
7623         (reorder_basic_blocks_simple): New function.
7624         (reorder_basic_blocks): Choose between the STC and the simple
7625         algorithms (always choose the former).
7627 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7629         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7630         function, factored out from ...
7631         (reorder_basic_blocks): ... here.
7633 2015-10-01  Tom de Vries  <tom@codesourcery.com>
7635         * tree-cfg.c (dump_function_to_file): Dump function attributes using
7636         __attribute__(()) string.  Move dumping of function attributes to before
7637         function name.
7639 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
7641         PR target/66870
7642         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7643         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7644         based on gold linker version.
7645         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7646         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7647         * configure, config.in: Regenerate.
7649 2015-10-01  Alan Modra  <amodra@gmail.com>
7651         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7652         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7653         (rs6000_output_mi_thunk): Likewise.
7655 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7657         * config/nvptx/mkoffload.c (process): Change offload data format.
7659 2015-09-30  Jeff Law  <law@redhat.com>
7661         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7662         with constant conditions.
7663         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7664         (remove_ctrl_stmt_and_useless_edges): No longer static.
7665         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7666         (remove_ctrl_stmt_and_useless_edges): Likewise.
7668 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7669             Cesar Philippidis  <cesar@codesourcery.com>
7671         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7672         (TARGET_GOACC_VALIDATE_DIMS): Override.
7673         * target.def (TARGET_GOACC): New target hook prefix.
7674         (validate_dims): New hook.
7675         * targhooks.h (default_goacc_validate_dims): New.
7676         * omp-low.c (oacc_validate_dims): New.
7677         (execute_oacc_device_lower): New.
7678         (default_goacc_validate_dims): New.
7679         (pass_data_oacc_device_lower): New.
7680         (pass_oacc_device_lower): New pass.
7681         (make_pass_oacc_device_lower): New.
7682         * tree-pass.h (make_pass_oacc_device_lower): Declare.
7683         * passes.def (pass_oacc_device_lower): Add it.
7684         * doc/tm.texi: Rebuilt.
7685         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7686         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7688 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7690         PR rtl-optimization/67037
7691         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7693 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
7695         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7696         * passes.c: Include tree-ssanames.h.
7697         (execute_function_todo): Flush the pending free SSA_NAMEs after
7698         eliminating unreachable basic blocks.
7699         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7700         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7701         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7702         (flush_ssanames_freelist): New function.
7703         (release_ssaname_fn): Put released names on the queue.
7704         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7705         * tree-ssanames.h (flush_ssanames_freelist): Declare.
7707 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7709         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7710         (generate_target_descr_file, generate_target_offloadend_file)
7711         (generate_host_descr_file, prepare_target_image): Pass it on.
7712         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7713         (compile_native, main): Pass it on.
7714         * lto-wrapper.c (compile_offload_image): Likewise.
7716 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7717             Ilya Verbin  <ilya.verbin@intel.com>
7718             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7720         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7721         (prepare_target_image, main): Refactor argv building to use
7722         obstacks.
7724 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7726         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7727         * config/spu/spu.c (spu_expand_atomic_op): New function.
7728         * config/spu/spu.md (AINT): New mode iterator.
7729         (ATOMIC): New code iterator.
7730         (atomic_name, atomic_pred): New code predicates.
7731         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7732         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7733         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7734         "atomic_<atomic_name>_fetch<mode>"): Likewise.
7736 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
7738         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7739         debug insns.
7740         (scalar_chain::convert_reg): Likewise.
7742 2015-09-30  Richard Biener  <rguenther@suse.de>
7744         * builtins.c: Add comment that no new simplifications should
7745         be added here.
7747 2015-09-30  Marek Polacek  <polacek@redhat.com>
7749         PR tree-optimization/67690
7750         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7751         reset_flow_sensitive_info_in_bb.
7752         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7753         * tree-ssanames.c: Include "gimple-iterator.h".
7754         (reset_flow_sensitive_info_in_bb): New function.
7755         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7757 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7759         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7760         variable, replacing it with...
7761         (offload_abi): ... this new variable.  Adjust all users.
7762         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7764 2015-09-30  Matthias Klose  <doko@ubuntu.com>
7766         * configure.ac: Remove extraneous ;;.
7767         * configure: Regenerate.
7769 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
7771         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7772         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7773         predicate, disallow register for operand 2.
7775 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
7777         * graphite-dependences.c (scop_get_dependences): Moved in down
7778         in order to be visible to its caller.
7779         * graphite-poly.h: Removed compute_deps, and extend_schedule.
7781 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
7782             Aditya Kumar  <aditya.k7@samsung.com>
7784         PR tree-optimization/67754
7785         * graphite-optimize-isl.c (optimize_isl): Call
7786         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7788 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7790         * builtins.c (expand_builtin_acc_on_device): Delete.
7791         (expand_builtin): Don't call it.
7792         (fold_builtin_1): Fold acc_on_device.
7794 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7796         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7797         (ix86_nsaved_sseregs): Likewise.
7799 2015-09-29  Jeff Law  <law@redhat.com>
7801         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7802         computation of unused value.
7804         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7805         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7806         inline macro expansion.
7808         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7810         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7811         (gen_shl_sext): Likewise.
7812         * config/sh/sh.md (divsi3): Likewise.
7813         (imm->ext_dest_operand splitter): Likewise.
7815 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
7816             Aditya Kumar  <aditya.k7@samsung.com>
7818         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7819         (nb_data_writes_in_bb): Remove.
7820         (split_pbb): Remove.
7821         (split_reduction_stmt): Remove.
7822         (is_reduction_operation_p): Remove.
7823         (phi_contains_arg): Remove.
7824         (follow_ssa_with_commutative_ops): Remove.
7825         (detect_commutative_reduction_arg): Remove.
7826         (detect_commutative_reduction_assign): Remove.
7827         (follow_inital_value_to_phi): Remove.
7828         (edge_initial_value_for_loop_phi): Remove.
7829         (initial_value_for_loop_phi): Remove.
7830         (used_outside_reduction): Remove.
7831         (detect_commutative_reduction): Remove.
7832         (translate_scalar_reduction_to_array_for_stmt): Remove.
7833         (remove_phi): Remove.
7834         (dr_indices_valid_in_loop): Remove.
7835         (close_phi_written_to_memory): Remove.
7836         (translate_scalar_reduction_to_array): Remove.
7837         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7838         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7839         (rewrite_commutative_reductions_out_of_ssa): Remove.
7840         (build_poly_scop): Remove call to
7841         rewrite_commutative_reductions_out_of_ssa.
7843 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
7845         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7846         Add new insn types for vector load and store pairs.
7847         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7848         types "neon_ldp{,_q}".
7849         * config/arm/cortex-a57.md (neon_load_c): Add insn types
7850         "neon_ldp{,_q}".
7851         (neon_store_complex): Add insn types "neon_stp{,_q}".
7852         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7853         "neon_{ldp,stp}_q".
7855 2015-09-29  Jeff Law  <law@redhat.com>
7857         * config/rx/constraints.md (Int08): Fix undefined left shift
7858         behaviour.
7859         (Sint08, Sint16, Sint24): Likewise.
7860         * config/rx/rx.c (rx_get_stack_layout): Likewise.
7862         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7863         behaviour.
7865         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7866         left shift behaviour.
7867         * config/msp430/constraints.md ('L' constraint): Similarly.
7868         ('Ys' constraint): Similarly.
7870 2015-09-29  Richard Biener  <rguenther@suse.de>
7872         PR tree-optimization/67170
7873         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7874         the translate function pointer parameter to get the
7875         bool whether to disambiguate only by reference.
7876         (walk_non_aliased_vuses): Likewise.
7877         * tree-ssa-alias.c (maybe_skip_until): Adjust.
7878         (get_continuation_for_phi_1): Likewise.
7879         (get_continuation_for_phi): Likewise.
7880         (walk_non_aliased_vuses): Likewise.
7881         * tree-ssa-sccvn.c (const_parms): New bitmap.
7882         (vn_reference_lookup_3): Adjust for interface change.
7883         Disambiguate parameters pointing to readonly memory.
7884         (free_scc_vn): Free const_parms.
7885         (run_scc_vn): Initialize const_parms from a fn spec attribute.
7887 2015-09-29  Richard Biener  <rguenther@suse.de>
7889         PR tree-optimization/67741
7890         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7891         builtin calls with correct signature.
7893 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
7895         PR target/65105
7896         * config/i386/i386.c: Include dbgcnt.h.
7897         (has_non_address_hard_reg): New.
7898         (convertible_comparison_p): New.
7899         (scalar_to_vector_candidate_p): New.
7900         (remove_non_convertible_regs): New.
7901         (scalar_chain): New.
7902         (scalar_chain::scalar_chain): New.
7903         (scalar_chain::~scalar_chain): New.
7904         (scalar_chain::add_to_queue): New.
7905         (scalar_chain::mark_dual_mode_def): New.
7906         (scalar_chain::analyze_register_chain): New.
7907         (scalar_chain::add_insn): New.
7908         (scalar_chain::build): New.
7909         (scalar_chain::compute_convert_gain): New.
7910         (scalar_chain::replace_with_subreg): New.
7911         (scalar_chain::replace_with_subreg_in_insn): New.
7912         (scalar_chain::emit_conversion_insns): New.
7913         (scalar_chain::make_vector_copies): New.
7914         (scalar_chain::convert_reg): New.
7915         (scalar_chain::convert_op): New.
7916         (scalar_chain::convert_insn): New.
7917         (scalar_chain::convert): New.
7918         (convert_scalars_to_vector): New.
7919         (pass_data_stv): New.
7920         (pass_stv): New.
7921         (make_pass_stv): New.
7922         (ix86_option_override): Created and register stv pass.
7923         (flag_opts): Add -mstv.
7924         (ix86_option_override_internal): Likewise.
7925         * config/i386/i386.md (SWIM1248x): New.
7926         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7927         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7928         (*anddi3_doubleword): New.
7929         (*zext<mode>_doubleword): New.
7930         (*zextsi_doubleword): New.
7931         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7932         (*<code>di3_doubleword): New.
7933         * config/i386/i386.opt (mstv): New.
7934         * dbgcnt.def (stv_conversion): New.
7936 2015-09-29  Tom de Vries  <tom@codesourcery.com>
7938         * tree-cfg.c (dump_function_to_file): Dump function attributes.
7940 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7942         PR target/67716
7943         * config/sh/sh.c (sh_override_options_after_change): New.
7944         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7945         (sh_option_override): Move align_loops, align_jumps and
7946         align_functions handling into sh_override_options_after_change.
7948 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7950         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7951         (nvptx_record_offload_symbol): Record function execution geometry.
7952         * config/nvptx/mkoffload.c (process): Include launch geometry in
7953         function data.
7954         * omp-low.c (oacc_launch_pack): New.
7955         (replace_oacc_fn_attrib): New.
7956         (set_oacc_fn_attrib): New.
7957         (get_oacc_fn_attrib): New.
7958         (expand_omp_target): Create keyed varargs for GOACC_parallel call
7959         generation.
7960         * omp-low.h (get_oacc_fn_attrib): Declare.
7961         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7962         (DEF_FUNCTION_TYPE_VAR_11): Delete.
7963         * tree.h (OMP_CLAUSE_EXPR): New.
7964         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7966 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7967             Sebastian Pop  <s.pop@samsung.com>
7969         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7971 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7972             Sebastian Pop  <s.pop@samsung.com>
7974         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7975         * graphite-scop-detection.c (struct sese_l): New type.
7976         (get_entry_bb): API for getting entry bb of SESE.
7977         (get_exit_bb): API for getting exit bb of SESE.
7978         (class debug_printer): New type.  Simple printer in debug mode.
7979         (trivially_empty_bb_p): New.  Return true when BB is empty or
7980         contains only debug instructions.
7981         (graphite_can_represent_expr): Call scalar_evoution_in_region
7982         instead of analyze_scalar_evolution.  Pass in scop instead of only
7983         the scop entry.
7984         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7985         scop entry.
7986         (stmt_simple_for_scop_p): Same.
7987         (harmful_stmt_in_bb): Same.
7988         (graphite_can_represent_loop): Deleted.
7989         (struct scopdet_info): Deleted.
7990         (scopdet_basic_block_info): Deleted.
7991         (build_scops_1): Deleted.
7992         (bb_in_sd_region): Deleted.
7993         (find_single_entry_edge): Deleted.
7994         (find_single_exit_edge): Deleted.
7995         (create_single_entry_edge): Deleted.
7996         (sd_region_without_exit): Deleted.
7997         (create_single_exit_edge): Deleted.
7998         (unmark_exit_edges): Deleted.
7999         (mark_exit_edges): Deleted.
8000         (create_sese_edges): Deleted.
8001         (build_graphite_scops): Deleted.
8002         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8003         (build_scops): Use the new scop_builder to build scops.
8004         (dot_all_scops_1): Use the new pretty printer.  Print loop father
8005         as well.
8006         (loop_body_is_valid_scop): New.  Return true if loop body is a
8007         valid scop.
8008         (class scop_builder): New.  Builds SCoPs for polyhedral
8009         optimizations.
8010         (scop_builder): New constructor.
8011         (static sese_l invalid_sese): sese_l with invalid edges.
8012         (get_sese): Get an sese (from a loop) if possible, invalid_sese
8013         otherwise.
8014         (get_nearest_dom_with_single_entry): Get nearest dominator of a
8015         basic_block with single entry.  Return NULL if we get to the
8016         beginning of a function.
8017         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8018         a basic_block with single exit.  Return NULL if we get to the
8019         beginning of a function.
8020         (print_sese): Pretty-print SESE.
8021         (merge_sese): Merge two SESEs if possible and return the new SESE.
8022         (build_scop_depth): Start building the SCoP within a loop nest.
8023         (build_scop_breadth): Start building the SCoP at a single loop
8024         depth.  Merge adjacent SESEs if valid.
8025         (can_represent_loop_1): Returns true if Graphite can represent
8026         loop inside SCoP.  Helper for can_represent_loop.
8027         (can_represent_loop): Returns true if Graphite can represent LOOP
8028         and all its nested loops in SCoP.
8029         (loop_is_valid_scop): Returns true if LOOP and all its nests
8030         constitute a valid SCoP.
8031         (region_has_one_loop): Returns true of a region has only one loop.
8032         (add_scop): Add SCoP to the list of valid scops.  Removes an
8033         already existing scop if it intersects with or subsumed by this one.
8034         (harmful_stmt_in_region): Returns true if SCoP has any statment
8035         which cannot be represented by Graphite.
8036         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8037         (remove_subscops): Remove any SCoP from the list of already found
8038         SCoPs, if subsumed by S1.
8039         (intersects): Return true if region bounded by SCoPs S1 and S2
8040         intersect.
8041         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8042         * graphite.c (print_graphite_scop_statistics):
8043         (print_graphite_statistics): Print SCoP info while debugging.
8044         (graphite_initialize): Early exit in case number of loops in a
8045         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8046         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8047         (graphite_finalize):
8048         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8049         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8050         (recompute_all_dominators): Recalculate POST_DOMINATORS.
8051         * tree-cfg.c (print_loops): Print the function name while printing
8052         loops.
8054 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8055             Sebastian Pop  <s.pop@samsung.com>
8057         PR tree-optimization/67700
8058         * graphite-sese-to-poly.c (parameter_index_in_region): Call
8059         invariant_in_sese_p_rec.
8060         (extract_affine): Same.
8061         (rewrite_cross_bb_scalar_deps): Call update_ssa.
8062         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
8063         * sese.h (invariant_in_sese_p_rec): Declare.
8065 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
8067         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8069 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
8071         Revert:
8072         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8073                     Jiong Wang  <jiong.wang@arm.com>
8075         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8076         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8077         (REG_CLASS_NAMES): Likewise.
8078         (REG_CLASS_CONTENTS): Likewise.
8079         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8080         (aarch64_register_move_cost): Likewise.
8081         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8082         possible.
8083         * config/aarch64/constraints.md (Uc0): New constraint.
8085 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
8087         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8089 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
8091         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8092         SECTION_EXCLUDE in XO mapping class.
8094 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
8096         PR target/54236
8097         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8098         and handle ne and eq codes.
8099         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8100         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
8101         CONST_INT_P.  Use reverse_condition.
8102         (sh_split_treg_set_expr): Likewise.
8104 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
8106         * config/arm/types.md (type): Add rotate_imm.
8107         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8108         ROR immediate case.
8109         (*rorsi3_insn_uxtw): Likewise.
8110         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8111         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8112         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8114 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8116         PR rtl-optimization/67481
8117         * ifcvt.c (contains_ccmode_rtx_p): New function.
8118         (insn_valid_noce_process_p): Use it.
8120 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8122         PR rtl-optimization/67456
8123         PR rtl-optimization/67464
8124         PR rtl-optimization/67465
8125         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8126         move in the mode of x.  Handle combination of complex and simple
8127         block pairs as well as the case when one is empty.
8129 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8131         * doc/gimple.texi: Update references to gimple_statement_base.
8132         * gdbhooks.py: Likewise.
8133         * gimple.h: Likewise.
8135 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8137         * config/sparc/driver-sparc.c: map LEON to leon3
8139 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8141         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8142           and make it inverse to change default
8143         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8144           supervisor mode
8145         * doc/invoke.texi: Document change of default
8147 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8149         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8150         true on %f0 for a target without FPU.
8151         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8152         without FPU.
8153         (untyped_return): Do not load %f0 for a target without FPU.
8155 2015-09-28  Andrew Pinski  <apinski@cavium.com>
8157         * config/aarch64/aarch64.md (prefetch):
8158         Change the predicate of operand 0 to register_operand.
8160 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
8162         * config/i386/predicates.md (register_sse4nonimm_operand): New
8163         predicate.
8164         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8165         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8166         Use register_sse4nonimm_operand as operand 0 predicate.
8167         (*vec_extractv8hi_sse2): Remove insn pattern.
8168         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8169         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8171 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
8172             Kaz Kojima  <kkojima@gcc.gnu.org>
8174         PR target/67391
8175         * config/sh/sh-protos.h (sh_lra_p): Declare.
8176         * config/sh/sh.c (sh_lra_p): Make non-static.
8177         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8178         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
8179         Expand into addsi3_scr if operands[2] if needed.
8180         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
8181         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
8182         (addsi3_scr, *addsi3): New insn_and_split patterns.
8184 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
8186         PR rtl-optimization/64164
8187         PR tree-optimization/67312
8188         PR middle-end/67340
8189         PR middle-end/67490
8190         PR bootstrap/67597
8191         * cfgexpand.c (parm_in_stack_slot_p): Remove.
8192         (ssa_default_def_partition): Remove.
8193         (get_rtl_for_parm_ssa_default_def): Remove.
8194         (set_rtl): Check that RTL assignments match expectations.
8195         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
8196         default def location for params and results.  Record SSA names
8197         or types in REG and MEM attrs, respectively.
8198         (set_parm_rtl): New.
8199         (expand_one_ssa_partition): Drop logic that assigned MEMs with
8200         unassigned addresses.
8201         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8202         deferred stack alloc vars.
8203         (expand_used_vars): Skip partitions holding parm default defs.
8204         Move adjust_one_expanded_partition_var loop...
8205         (pass_expand::execute): ... here.  Drop redundant assert.
8206         Adjust comments before the final loop over all ssa names.
8207         Require assigned rtl of parms and results to match exactly.
8208         Reset its attributes to match them, not any other variables in
8209         the same partition.
8210         (expand_debug_expr): Use entry value for PARM's default defs
8211         only iff they have zero nondebug uses.
8212         * cfgexpand.h (parm_in_stack_slot_p): Remove.
8213         (get_rtl_for_parm_ssa_default_def): Remove.
8214         (set_parm_rtl): Declare.
8215         * doc/invoke.texi: Improve wording.
8216         * explow.c (promote_decl_mode): Fix promote_function_mode for
8217         result decls not by reference.
8218         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8219         bypass TYPE_MODE to get the actual vector mode.
8220         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
8221         2015-08-19's changes as follows.  Drop include of
8222         basic-block.h and df.h.
8223         (rtl_for_parm): Remove.
8224         (maybe_reset_rtl_for_parm): Remove.
8225         (parm_in_unassigned_mem_p): Remove.
8226         (use_register_for_decl): Add logic for RESULT_DECLs matching
8227         assign_parms' behavior.
8228         (split_complex_args): Revert.
8229         (assign_parms_augmented_arg_list): Revert.  Add comment
8230         referencing the logic above.
8231         (assign_parm_adjust_stack_rtl): Revert.
8232         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
8233         of SET_DECL_RTL.  Set up a REG if the parm demands so.
8234         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
8235         calls into a single set_parm_rtl.  Set up a temporary RTL
8236         temporarily for expand_assignment.
8237         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
8238         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
8239         (assign_bounds): Revert.
8240         (assign_parms): Revert.  Use set_parm_rtl.
8241         (allocate_struct_function): Relayout result and parms of
8242         non-abstruct functions.
8243         (expand_function_start): Revert.  Use set_parm_rtl.  If the
8244         result is not a hard reg, create a pseudo from the promoted
8245         mode of the default def.  Promote static chain mode.
8246         * tree-outof-ssa.c (remove_ssa_form): Drop unused
8247         partition_has_default_def.  Set up
8248         partitions_for_parm_default_defs.
8249         (finish_out_of_ssa): Remove partition_has_default_def.
8250         Release partitions_for_parm_default_defs.
8251         * tree-outof-ssa.h (struct ssaexpand): Remove
8252         partition_has_default_def.  Add
8253         partitions_for_parm_default_defs.
8254         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8255         stor-layout.h.
8256         (build_ssa_conflict_graph): Fix conflict-detection of default
8257         defs of even unused default defs of params and results.
8258         (for_all_parms): New.
8259         (create_default_def): New.
8260         (register_default_def): New.
8261         (coalesce_with_default): New.
8262         (create_outofssa_var_map): Create default defs for all parms
8263         and results, and register their partitions.  Add GIMPLE_RETURN
8264         operands as coalesce candidates with results.  Add default
8265         defs of each parm or result as coalesce candidates with its
8266         other defs.  Mark each result def, and each default def of
8267         parms, as used_in_copy.
8268         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
8269         with the ssa names, even anonymous ones.  Drop
8270         parm_in_stack_slot_p calls.  Require same signedness and
8271         alignment.
8272         (coalesce_ssa_name): Add coalesce candidates for all defs of
8273         each parm and result, even unused ones.
8274         (parm_default_def_partition_arg): New type.
8275         (set_parm_default_def_partition): New.
8276         (get_parm_default_def_partitions): New.
8277         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8278         * tree-ssa-live.c (partition_view_init): Regard unused defs of
8279         parms and results as used.
8280         (verify_live_on_entry): Don't error out just because they're
8281         not live.
8283 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
8285         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8286         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8287         (output_fde): Don't output length for debug_frame on AIX.
8288         (output_call_frame_info): Don't output length for debug_frame on AIX.
8289         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8290         HAVE_XCOFF_DWARF_EXTRAS.
8291         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8292         HAVE_XCOFF_DWARF_EXTRAS.
8293         (output_compilation_unit_header): Don't output length on AIX.
8294         (output_pubnames): Don't output length on AIX.
8295         (output_aranges): Delete argument. Compute length locally. Don't
8296         output length on AIX.
8297         (output_line_info): Don't output length on AIX.
8298         (dwarf2out_finish): Don't compute aranges_length.
8299         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8300         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8301         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8302         symbol decoration for AIX.
8303         (rs6000_xcoff_debug_unwind_info): New.
8304         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8305         for SECTION_DEBUG.
8306         (rs6000_xcoff_declare_function_name): Emit different
8307         .function pseudo-op when DWARF2_DEBUG. Don't call
8308         xcoffout_declare_function for DWARF2_DEBUG.
8309         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8310         Redefine.
8311         * config/rs6000/aix71.h: New.
8312         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8313         locations support.
8314         * configure: Regenerate.
8315         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8316         DWARF support.
8318 2015-09-26  Jeff Law  <law@redhat.com>
8320         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8321         behaviour.
8322         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8323         behaviour.
8325         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8326         behaviour
8328         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8329         undefined behaviour.
8331         * config/cris/cris.md (asrandb): Fix left shift undefined
8332         behaviour.
8333         (asrandw): Likewise.
8335 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
8337         PR target/61578
8338         * lra-constarints.c (match_reload): Check presence of the input pseudo
8339         in the output operand.
8341 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8343         * doc/invoke.texi (-fsanitize): Minor wording tweak.
8345 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8347         * doc/invoke.texi (-fsanitize): Update URLs.
8349 2015-09-25  Teresa Johnson  <tejohnson@google.com>
8351         * opts.c (finish_options): Unset -freorder-blocks-and-partition
8352         if not using profile.
8354 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8356         PR pretty-print/67567
8357         * pretty-print.c (pp_string): Add gcc_checking_assert.
8358         * pretty-print.h (output_buffer_append_r): Likewise.
8360 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
8362         PR target/67675
8363         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8364         addr2 individually.  Don't emit logical or insn if one is known to
8365         be aligned approriately.
8366         (sh_expand_cmpnstr): Likewise.
8368 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
8370         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8371         __builtin_aarch64_fp[sc]r arguments into a register.
8373 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
8375         * config.gcc (x86_archs): Replace lakemount with lakemont.
8376         (with_cpu): Likewise.
8377         (with_arch): Likewise.
8378         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8379         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
8380         __tune_lakemount__ with __tune_lakemont__.
8381         * config/i386/i386.c (lakemount_cost): Renamed to ...
8382         (lakemont_cost): This.
8383         (m_LAKEMOUNT): Renamed to ...
8384         (m_LAKEMONT): This.
8385         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8386         (processor_target_table): Replace "lakemount" with "lakemont".
8387         (processor_alias_table): Likewise.
8388         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8389         PROCESSOR_LAKEMONT.
8390         (ix86_adjust_cost): Likewise.
8391         (ia32_multipass_dfa_lookahead): Likewise.
8392         * config/i386/i386.h (processor_type): Likewise.
8393         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8394         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
8395         Lakemount with Lakemont.
8397 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8399         * config.gcc (x86_archs): Replace iamcu with lakemount.
8400         (with_cpu): Likewise.
8401         (with_arch): Likewise.
8402         * doc/invoke.texi: Likewise.
8403         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8404         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
8405         __tune_iamcu__ with __tune_lakemount__.
8406         * config/i386/i386.c (iamcu_cost): Renamed to ...
8407         (lakemount_cost): This.
8408         (m_IAMCU): Renamed to ...
8409         (m_LAKEMOUNT): This.
8410         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8411         (processor_target_table): Replace "iamcu" with "lakemount".
8412         (processor_alias_table): Likewise.
8413         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8414         PROCESSOR_LAKEMOUNT.
8415         (ix86_adjust_cost): Likewise.
8416         (ia32_multipass_dfa_lookahead): Likewise.
8417         * config/i386/i386.h (processor_type): Likewise.
8418         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8420 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
8422         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8423         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8424         Declare.
8425         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8426         (pa_expand_compare_and_swap_loop): New.
8427         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8428         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8429         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8430         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8431         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8432         Revise.
8434 2015-09-24  Michael Collison  <michael.collison@linaro.org>
8436         PR other/57195
8437         * read-md.c (read_name): Allow mode iterators inside angle
8438         brackets in rtl expressions.
8440 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
8442         PR target/61578
8443         * ira-color.c (update_allocno_cost): Add parameter.
8444         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
8445         parameter.
8447 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8449         PR driver/67640
8450         * opts-common.c (prune_options): Discard all -fdiagnostics-color
8451         but the last one, which is moved to the front to be processed
8452         first.
8453         * opts.c (enable_warning_as_error): Reject options that do not
8454         control warnings.
8456 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8458         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8460 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8462         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8463         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8464         (aarch64_cannot_force_const_mem): Likewise.
8465         (aarch64_classify_address): Likewise.
8466         (aarch64_classify_symbolic_expression): Likewise.
8467         (aarch64_print_operand): Likewise.
8468         (aarch64_classify_symbol): Likewise.
8469         (aarch64_mov_operand_p): Likewise.
8470         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8471         (aarch64_mov_operand): Likewise.
8473 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
8475         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8476         for info->spe_gp_size.
8478 2015-09-24  Richard Biener  <rguenther@suse.de>
8480         PR lto/67699
8481         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8482         abstract origins.
8484 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
8486         * tree-object-size.c (plus_stmt_object_size)
8487         (cond_expr_object_size): Change the formal parameters from gimple
8488         to gimple *.
8489         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8490         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8491         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8493 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8495         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8496         Check for ld -type pie on Solaris 11.x and 12.
8497         * configure: Regenerate.
8498         * config.in: Regenerate.
8500         * gcc.c (LD_PIE_SPEC): Allow redefinition.
8502         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8503         (STARTFILE_SPEC): Use it.
8504         (ENDFILE_CRTEND_SPEC): Define.
8505         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8506         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8507         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8508         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8509         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8510         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8511         (ENDFILE_ARCH_SPEC): Define.
8512         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8514 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8516         * configure.ac (gcc_cv_solaris_crts): New test.
8517         * configure. Regenerate.
8518         * config.in: Regenerate.
8519         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8520         HAVE_SOLARIS_CRTS variant.
8522 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8524         * tree-inline.h (count_insns_seq): Delete prototype.
8525         (estimate_num_insns_seq): Define prototype.
8526         * tree-inline.c (count_insns_seq): Delete.
8527         (estimate_num_insns_seq): Remove static qualifier.
8528         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8529         with estimate_num_insns_seq.
8531 2015-09-24  Richard Biener  <rguenther@suse.de>
8533         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8534         members.
8535         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8536         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
8537         offset.
8538         (ao_ref_init_from_vn_reference): Record clique and base in the
8539         built base.
8540         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8542 2015-09-24  Richard Biener  <rguenther@suse.de>
8544         PR tree-optimization/48885
8545         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8546         as not including any restrict tags from other pointers.
8548 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8550         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8551         character when appending to offload_targets.
8553         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8554         offload targets by commas, not colons.
8555         * config.in: Regenerate.
8556         * configure: Likewise.
8557         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8558         instead of setting up the default offload targets here...
8559         (process_command): ..., do it here.
8560         libgomp/
8561         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8562         targets are separated by commas.
8563         * config.h.in: Regenerate.
8565 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8566             Nathan Sidwell  <nathan@codesourcery.com>
8568         * omp-low.h (omp_reduction_init_op): Declare.
8569         * omp-low.c (omp_reduction_init_op): New, broken out of ...
8570         (omp_reduction_init): ... here.  Call it.
8571         * tree-parloops.c (initialize_reductions): Use
8572         omp_reduction_init_op.
8574 2015-09-23   Richard Biener  <rguenther@suse.de>
8576         PR middle-end/67662
8577         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8578         undefined overflow unless they will cancel out.
8580 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8582         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8583         insn emit.
8585 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8587         PR c/49655
8588         * opts.h (write_langs): Declare.
8589         * opts-global.c (write_langs): Make it extern.
8591 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
8593         PR target/67391
8594         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8595         overlapping regs when matching the pattern.
8597 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
8599         * config/aarch64/aarch64-simd.md
8600         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8601         (aarch64_float_truncate_hi_v4sf_le): New.
8602         (aarch64_float_truncate_hi_v4sf_be): Likewise.
8604 2015-09-23  Richard Biener  <rguenther@suse.de>
8606         * tree-ssa-structalias.c (intra_create_variable_infos): Build
8607         representatives for all restrict qualified pointer destinations.
8609 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8611         * config/i386/i386.md (define_code_attr mshift): New.
8612         (define_mode_iterator SWI1248_AVX512BW): Rename ...
8613         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8614         only.
8615         (define_insn "*k<logic><mode>"): Use new iterator name.
8616         (define_insn "*<mshift><mode>3"): New.
8618 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
8620         PR middle-end/67649
8621         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8622         mark the block as accessible.
8624 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
8626         * function.c (thread_prologue_and_epilogue_insns): Delete
8627         orig_entry_edge argument to try_shrink_wrapping.
8628         * shrink-wrap.c (can_get_prologue): New function.
8629         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8630         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
8631         can_get_prologue where needed.  Remove code that finds a single
8632         edge for the prologue.  Remove code that tests if any reg clobbered
8633         by the prologue is live on the prologue edge.  Remove code that finds
8634         the new prologue edge after duplicating blocks.  Make a new prologue
8635         block and edge.
8636         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8638 2015-09-22  Jeff Law  <law@redhat.com>
8640         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8641         behavior.
8643 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
8645         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
8646         -Wtemplates, -Wnamespaces): Document.
8648 2015-09-22  Tom de Vries  <tom@codesourcery.com>
8650         PR tree-optimization/67671
8651         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8652         pointer references as restrict.
8654 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8656         * config/nios2/nios2.c (nios2_legitimize_address): When handling
8657         'reg + reloc' cases, allow first operand to be non-REG, and use
8658         force_reg() to enforce address pattern.
8660 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
8662         PR target/67480
8663         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8664         (define_mode_iterator VI12_AVX_AVX512F): New.
8665         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8666         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8667         (define_insn "*<code><mode>3"): ... Into new pattern using
8668         VI12_AVX_AVX512F iterators without masking.
8670 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8672         * config.gcc: Support "skylake-avx512".
8673         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8674         PROCESSOR_SKYLAKE_AVX512.
8675         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8676         (processor_target_table): Add "skylake-avx512".
8677         (PTA_SKYLAKE_AVX512): Define.
8678         (ix86_option_override_internal): Add "skylake_avx512".
8679         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8680         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8681         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8682         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8683         * doc/invoke.texi (skylake-avx512): New.
8685 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8687         * config/i386/i386.md (define_insn "kunpckhi"): Fix
8688         operand in pattern.
8689         (define_insn "kunpcksi"): Ditto.
8690         (define_insn "kunpckdi"): Ditto.
8692 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8694         * config/i386/i386.md (define_split not/xor SWI1248x): Use
8695         iterator instead of fixed modes.
8697 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8699         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8700         Adjust declaration.
8701         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8702         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
8703         out_result.  Update to support update-fetch operations.
8704         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8705         Adjust for change to aarch64_gen_atomic_ldop.
8706         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8707         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8708         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8709         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8710         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8712 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8714         * config/aarch64/aarch64-protos.h
8715         (aarch64_atomic_ldop_supported_p): Declare.
8716         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8717         (enum aarch64_atomic_load_op_code): New.
8718         (aarch64_emit_atomic_load_op): New.
8719         (aarch64_gen_atomic_ldop): Update to support load-operate
8720         patterns.
8721         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8722         to an expander.
8723         (aarch64_atomic_<atomic_optab><mode>): New.
8724         (aarch64_atomic_<atomic_optab><mode>_lse): New.
8725         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8726         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8727         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8729 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8731         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8732         (UNSPECV_ATOMIC_LDOP_OR): New.
8733         (UNSPECV_ATOMIC_LDOP_BIC): New.
8734         (UNSPECV_ATOMIC_LDOP_XOR): New.
8735         (UNSPECV_ATOMIC_LDOP_PLUS): New.
8736         (ATOMIC_LDOP): New.
8737         (atomic_ldop): New.
8738         (aarch64_atomic_load<atomic_ldop><mode>): New.
8740 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8742         * config/aarch64/aarch64.md
8743         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8744         pattern.
8746 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8748         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8749         Declare.
8750         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8751         (aarch64_gen_atomic_ldop): New.
8752         (aarch64_split_atomic_op): Fix whitespace and add a comment.
8753         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8754         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8755         (atomic_exchange<mode>): Replace with an expander.
8756         (aarch64_atomic_exchange<mode>): New.
8757         (aarch64_atomic_exchange<mode>_lse): New.
8758         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8759         (aarch64_atomic_swp<mode>): New.
8761 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8763         * tree-inline.c (expand_call_inline): Use inform for extra note.
8764         Do not give a note with UNKNOWN_LOCATION.
8765         Replace input_location with gimple_location (stmt).
8766         Use true/false instead of TRUE/FALSE.
8768 2015-09-22  Tom de Vries  <tom@codesourcery.com>
8770         PR tree-optimization/67666
8771         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8772         with single field non-conservative.
8774 2015-09-21  David S. Miller  <davem@davemloft.net>
8776         PR/67622
8777         Revert:
8778         2015-09-11  David S. Miller  <davem@davemloft.net>
8780         * config/sparc/constraints.md: Make "U" constraint a real register
8781         constraint.
8782         * config/sparc/sparc.c (TARGET_LRA_P): Define.
8783         (D_MODES, DF_MODES): Add missing cast.
8784         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8785         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8786         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8787         cost to 8.
8788         * config/sparc/sparc.h (PROMOTE_MODE): Define.
8789         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8790         provide these insn when flag_pic.
8792         2015-09-17  David S. Miller  <davem@davemloft.net>
8794         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8795         Declare.
8796         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8797         function.
8798         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8799         (HARD_REGNO_CALLER_SAVE_MODE): Define.
8800         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8801         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8802         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8803         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8804         provide when flag_pic.
8806 2015-09-21  Jeff Law  <law@redhat.com>
8808         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8809         behavior.
8811 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8813         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8815 2015-09-21  Richard Biener  <rguenther@suse.de>
8817         * passes.c (rest_of_decl_compilation): Do not call
8818         dwarf2out_early_global_decl for aliases.
8820 2015-09-21  Richard Biener  <rguenther@suse.de>
8822         PR debug/67664
8823         * dwarf2out.c (add_location_or_const_value_attribute): Remove
8824         attribute parameter.  Early exit if either DW_AT_const_value
8825         or DW_AT_location are present already.
8826         (gen_variable_die): Adjust caller.
8827         (dwarf2out_late_global_decl): Likewise.
8829 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8831         PR target/67657
8832         * config/sh/sh.c (sh_remove_overlapping_post_inc,
8833         sh_peephole_emit_move_insn): Add new functions.
8834         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8835         sh_peephole_emit_move_insn): Declere them.
8836         * config/sh/sh.md: Use them in various peephole2 patterns.
8838 2015-09-21  Richard Biener  <rguenther@suse.de>
8840         PR middle-end/67651
8841         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8842         address with -fno-delete-null-pointer-checks.
8844 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
8846         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8847         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8848         (reduc_uplus_v16qi): Remove.
8850         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8851         (reduc_<VEC_reduc_name>_v2df): Remove.
8852         (reduc_<VEC_reduc_name>_v4sf): Remove.
8853         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8855         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8856         gen_ function by removing * prefix.
8857         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8859 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8861         PR middle-end/60832
8862         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8863         Print i_bound without converting it to a tree.
8865 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
8867         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8868         operands[4] operands[5] swap with std::swap, removed tmp variable.
8869         (arm_evpc_neon_vzip): Replaced in0/in1 and
8870         out0/out1 swaps with std::swap, removed x variable.
8871         (arm_evpc_neon_vtrn): Replaced in0/int1 and
8872         out0/out1 swaos with std::swap, removed x variable.
8873         (arm_expand_vec_perm_const_1): Replaced
8874         d->op0/d->op1 swap with std::swap, removed x variable.
8875         (arm_evpc_neon_vuzp): Replaced in0/in1 and
8876         out0/out1 swaps with std::swap, removed x variable.
8878 2015-09-21  Jonathan Yong  <10walls@gmail.com>
8880         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8881         sysroot/usr/lib/32api for additional win32 libraries,
8882         fixes failing Cygwin bootstrapping.
8884 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8886         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8888 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8890         PR target/67126
8891         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8892         (*mov_t_msb_neg): Rewrite negc pattern.
8894 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8896         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8897         immediate generation code.
8899 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8901         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8902         redundant immediate generation code.
8904 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8906         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8907         (AARCH64_NUM_BITMASKS): Remove.
8908         (aarch64_bitmasks_cmp): Remove.
8909         (aarch64_build_bitmask_table): Remove.
8911 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8913         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8914         slow immediate matching loops with a faster algorithm.
8916 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8918         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8919         faster algorithm.
8921 2015-09-20  Jeff Law  <law@redhat.com>
8923         PR tree-optimization/47679
8924         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8925         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8926         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8927         (thread_through_normal_block): Use record_temporary_equivalences.
8929 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
8931         * coretypes.h (gimple): Change typedef to be a forward declaration.
8932         * gimple.h (gimple_statement_base): rename to gimple.
8933         * (all functions and types using gimple): Adjust.
8934         * *.[ch]: Likewise.
8936 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
8937             David Edelsohn  <dje.gcc@gmail.com>
8939         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8940         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8941         (EH_FRAME_THROUGH_COLLECT2): Define.
8942         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8943         (ASM_OUTPUT_DWARF_PCREL): Define.
8944         (ASM_OUTPUT_DWARF_DATAREL): Define.
8946 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
8948         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8949         of TARGET_ELF32.
8951 2015-09-18  Jeff Law  <law@redhat.com>
8953         PR tree-optimization/47679
8954         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
8955         it here ...
8956         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8957         object.  Update constructor.
8958         (pass_dominator::execute):  Corresponding chagnes to declaration
8959         and initialization of avail_exprs_stack.  Update constructor call
8960         for dom_opt_dom_walker object.
8961         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
8962         it down to children as needed.
8963         (record_equivalences_from_incoming_edge): Likewise.
8964         (eliminate_redundant_computations): Likewise.
8965         (record_equivalences_from_stmt): Likewise.
8966         (simplify_stmt_for_jump_threading): Likewise.
8967         (record_temporary_equivalences): Likewise.
8968         (optimize_stmt): Likewise.
8969         (dom_opt_dom_walker::thread_across_edge): Update access to
8970         avail_exprs_stack object and pass it to children as needed.
8971         (dom_opt_dom_walker::before_dom_children): Similarly.
8972         (dom_opt_dom_walker::after_dom_children): Similarly.
8973         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8974         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8975         Add avail_expr_stack argument.  Pass it to children as needed.
8976         (dummy_simplify): Likewise.
8977         (simplify_control_stmt_condition): Likewise.
8978         (thread_around_empty_blocks): Likewise.
8979         (thread_through_normal_block): Likewise.
8980         (thread_across_edge): Likewise.
8981         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8982         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8984         PR tree-optimization/47679
8985         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
8986         it here ...
8987         (dom_opt_dom_walker): New private member holding the const_and_copies
8988         object.  Update constructor.
8989         (pass_dominator::execute): Corresponding changes to declaration
8990         and initialization of const_and_copies.  Update constructor call
8991         for the dom_opt_dom_walker object.
8992         (record_temporary_equivalences): Accept const_and_copies argument
8993         pass it down to children as needed.
8994         (record_equality): Likewise.
8995         (record_equivalences_from_incoming_edge): Likewise.
8996         (cprop_into_successor_phis, optimize_stmt): Likewise.
8997         (eliminate_redundant_computations): Likewise.
8998         (dom_opt_dom_walker::thread_across_edge): Update access to
8999         const_and_copies object and pass it to children as needed.
9000         (dom_opt_dom_walker::before_dom_children): Similarly.
9001         (dom_opt_dom_walker::after_dom_children): Similarly.
9003         PR tree-optimization/47679
9004         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
9005         it into the avail_exprs_stack class.
9006         (pass_dominator::execute): Corresponding changes to declaration
9007         and initialization of avail_exprs.  Pass avail_exprs to
9008         dump_dominator_optimization_stats.
9009         (record_cond): Extract avail_exprs from avail_exprs_stack.
9010         (lookup_avail_expr): Similarly.
9011         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
9012         position in file.
9013         (dump_dominator_optimization_stats): Make static and prototype.
9014         Add argument for the hash table to dump.
9015         (debug_dominator_optimization_stats): Remove.
9016         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9017         prototype.
9018         (debug_dominator_optimization_stats): Similarly.
9019         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9020         "void" in prototype for pop_to_marker method.  Add accessor method
9021         for the underlying avail_exprs table.
9023         * tree-ssa-threadedge.c: Remove trailing whitespace.
9025 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
9027         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9028         unsigned.
9029         (pa_ldil_cint_p): Likewise.
9030         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9031         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9032         Update callers.
9033         * config/pa/pa.md: Likewise.
9035 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
9037         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9038         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9039         (diagnostic_show_locus): Likewise.
9040         (diagnostic_print_caret_line): Likewise.
9041         * diagnostic-show-locus.c: New file.
9043 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
9045         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9046         "back" parameter. Declare label in #if block.
9048 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
9050         PR middle-end/67619
9051         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9052         the address to a register.
9054 2015-09-18  Jeff Law  <law@redhat.com>
9056         PR tree-optimization/47679
9057         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9058         * tree-ssa-dom.c: Remove unnecessary header includes.
9059         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9060         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9061         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9062         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9063         (pass_phi_only_cprop::execute): Likewise.
9064         (make_pass_phi_only_cprop): Likewise.
9065         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
9066         uses of file scoped statics by passing the required objects
9067         as parameters wherever needed.
9069 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
9070             David Edelsohn  <dje.gcc@gmail.com>
9072         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9073         EH_FRAME_THROUGH_COLLECT2.
9074         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9075         DW_EH_PE_datarel.
9076         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9077         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
9078         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9079         * except.c (switch_to_exception_section): Use a read-only section
9080         even if EH_FRAME_SECTION_NAME is undefined.
9081         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9082         * collect2.c (write_c_file_stat): Provide dbase on AIX.
9083         (scan_prog_file): Don't export __dso_handle nor
9084         __gcc_unwind_dbase.
9085         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9086         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9087         (ASM_OUTPUT_DWARF_PCREL): Define.
9088         (ASM_OUTPUT_DWARF_DATAREL): Define.
9089         (EH_FRAME_THROUGH_COLLECT2): Define.
9090         (EH_FRAME_IN_DATA_SECTION): Delete.
9091         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9092         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9093         Declare.
9094         (rs6000_asm_output_dwarf_datarel): Declare.
9095         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9096         (rs6000_aix_asm_output_dwarf_datarel): New.
9097         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9098         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9099         (EH_FRAME_THROUGH_COLLECT2): Define.
9100         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9101         (EH_FRAME_THROUGH_COLLECT2): Define.
9102         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9103         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9104         (EH_FRAME_THROUGH_COLLECT2): New.
9105         (ASM_OUTPUT_DWARF_DATAREL): New.
9106         * doc/tm.texi: Regenerate.
9108 2015-09-18  Richard Biener  <rguenther@suse.de>
9110         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9111         we're in early phase.
9112         (schedule_generic_params_dies_gen): Likewise.
9113         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9114         work as possible, retaining unhandled cases.
9115         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9116         clear out generic_type_instances at the end.
9117         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9118         (dwarf2out_early_finish): ... here.  Do most of
9119         gen_remaining_tmpl_value_param_die_attribute here.
9121 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
9123         PR tree-optimization/67283
9124         * tree-sra.c (type_consists_of_records_p): Rename to...
9125         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9126         (completely_scalarize_record): Rename to...
9127         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9128         (scalarize_elem): New.
9129         (analyze_all_variable_accesses): Follow renamings.
9131 2015-09-18  Richard Biener  <rguenther@suse.de>
9133         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9134         in early-dwarf.
9136 2015-09-18  Richard Biener  <rguenther@suse.de>
9138         PR tree-optimization/66142
9139         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9140         treat MEM[&x] and x the same.
9141         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9142         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9143         when we simplified sth.
9144         (vn_reference_maybe_forwprop_address): Likewise.
9145         (valueize_refs_1): When we simplified through
9146         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9147         set valueized_anything to true.
9148         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9149         one ref kills the other instead of just a offset-based test.
9150         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9151         for the operand_equal_p test to compare bases and also compare
9152         sizes.
9154 2015-09-17  Christian Bruel  <christian.bruel@st.com>
9156         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9158 2015-09-17  Richard Henderson  <rth@redhat.com>
9160         PR libstdc++/65913
9161         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9162         pointers that encode the alignment of the object.
9164 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9166         PR rtl-optimization/66790
9167         * df-problems.c (LIVE): Amend documentation.
9169 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
9171         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9172         and optabs-tree.o.
9173         (GTFILES): Replace optabs.c with optabs-libfunc.c.
9174         * genopinit.c (main): Add an include guard to insn-opinit.h.
9175         Protect the rtx_code parts with NUM_RTX_CODE.
9176         * optabs.h: Split parts out to...
9177         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9178         * optabs.c: Split parts out to...
9179         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9180         * cilk-common.c: Include optabs-query.h rather than optabs.h.
9181         * fold-const.c: Likewise.
9182         * target-globals.c: Likewise.
9183         * tree-if-conv.c: Likewise.
9184         * tree-ssa-forwprop.c: Likewise.
9185         * tree-ssa-loop-prefetch.c: Likewise.
9186         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9187         Remove unncessary include files.
9188         * tree-ssa-phiopt.c: Likewise.
9189         * tree-ssa-reassoc.c: Likewise.
9190         * tree-switch-conversion.c: Likewise.
9191         * tree-vect-data-refs.c: Likewise.
9192         * tree-vect-generic.c: Likewise.
9193         * tree-vect-loop.c: Likewise.
9194         * tree-vect-patterns.c: Likewise.
9195         * tree-vect-slp.c: Likewise.
9196         * tree-vect-stmts.c: Likewise.
9197         * tree-vrp.c: Likewise.
9198         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9199         rather than optabs.h.
9200         * expr.c: Include optabs-tree.h.
9201         * function.c: Likewise.
9203 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9205         PR middle-end/65958
9206         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9207         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9208         * config/arm/arm.c: Include common/common-target.h.
9209         (use_return_insn): Return 0 if the static chain register was saved
9210         above a non-APCS frame.
9211         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9212         (struct scratch_reg): New.
9213         (get_scratch_register_on_entry): New function.
9214         (release_scratch_register_on_entry): Likewise.
9215         (arm_emit_probe_stack_range): Likewise.
9216         (output_probe_stack_range): Likewise.
9217         (arm_expand_prologue): Factor out code dealing with the IP register
9218         for nested function and adjust it for stack checking.
9219         Invoke arm_emit_probe_stack_range if static builtin stack checking
9220         is enabled.
9221         (thumb1_expand_prologue): Sorry out if static builtin stack checking
9222         is enabled.
9223         (arm_expand_epilogue): Add the saved static chain register, if any, to
9224         the amount of pre-pushed registers to pop.
9225         (arm_frame_pointer_required): Return true if static stack checking is
9226         enabled and we want to catch the exception with the EABI unwinder.
9227         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9228         (UNSPEC_PROBE_STACK_RANGE): Likewise.
9229         * config/arm/arm.md (probe_stack): New insn.
9230         (probe_stack_range): Likewise.
9232 2015-09-17  Richard Biener  <rguenther@suse.de>
9234         * genmatch.c (parser::parse_expr): Improve error message
9235         for mis-placed flags.
9237 2015-09-17  Richard Biener  <rguenther@suse.de>
9239         * passes.c (rest_of_decl_compilation): Always call early_global_decl
9240         debug hook when we created a varpool node.
9241         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9242         dwarf2out_early_global_decl, when not just add location or
9243         value attributes to existing DIEs.
9245 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
9247         * config/aarch64/aarch64.md (copysigndf3): New.
9248         (copysignsf3): Likewise.
9250 2015-09-17  David S. Miller  <davem@davemloft.net>
9252         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9253         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9254         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9255         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9256         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9257         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9258         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9259         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9260         provide when flag_pic.
9262 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9264         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9265         object_allocator change.
9267 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9269         PR tree-optimization/66388
9270         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9271         (dump_iv): Dump no_overflow information.
9272         (alloc_iv): Initialize new field for struct iv.
9273         (mark_bivs): Count number of no_overflow bivs.
9274         (find_deriving_biv_for_expr, record_biv_for_address_use): New
9275         functions.
9276         (idx_find_step): Call new functions above.
9277         (add_candidate_1, add_candidate): New paramter.
9278         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9279         (get_computation_aff): Simplify convertion of cand for BIV.
9280         (get_computation_cost_at): Step cand's base if necessary.
9282 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9284         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9285         parameter.
9286         (tree_simplify_using_condition): Ditto.
9287         (simplify_using_initial_conditions): Ditto.
9288         (loop_exits_before_overflow): Pass new argument to function
9289         simplify_using_initial_conditions.  Remove case for type conversions
9290         simplification.
9291         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9292         parameter.
9293         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9294         in iv base using loop initial conditions.
9296 2015-09-16  Jeff Law  <law@redhat.com>
9298         PR tree-optimization/47679
9299         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9300         (free_all_edge_infos): Use it.
9301         (allocate_edge_info): Free preexisting edge info data.
9302         (pass_dominator::execute): Set up initial edge info structures.
9303         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9304         thread_across_edge.
9305         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9306         If non-null, then push/pop markers appropriately.
9307         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9308         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9309         thread-across_edge.
9311 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
9313         * config/ft32/ft32.c: Fix the memory address space predicate.
9315 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9317         PR target/67573
9318         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9319         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9321 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9323         * toplev.h (check_global_declaration): Remove declaration.
9324         * toplev.c (check_global_declaration): Move to ...
9325         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9326         (analyze_functions): Update call.
9328 2015-09-16  David S. Miller  <davem@davemloft.net>
9330         * lra-constraints.c (simplify_operand_subreg): Do not assume that
9331         lowpart of a SUBREG has offset zero.
9333 2015-09-16  Jeff Law  <law@redhat.com>
9335         PR tree-optimization/47679
9336         * tree-ssa-dom.c (enum expr_kind): Moved from here to
9337         tree-ssa-scopedtables.h.
9338         (struct hashable_expr, class expr_hash_elt): Likewise.
9339         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9340         Move associated methods into tree-ssa-scopedtables.c.
9341         (avail_expr_hash, initialize_expr_from_cond): Similarly.
9342         (hashable_expr_equal_p, add_expr_commutative): Likewise.
9343         (add_hashable_expr): Likewise.
9344         (record_cond): Delete element directly.
9345         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9346         private copy ctor and assignment operator methods.
9347         (expr_elt_hasher): Inline trivial methods.
9348         (initialize_expr_from_cond): Prototype.
9349         * tree-ssa-scopedtables.c: Add necessary includes, functions and
9350         methods that were previously in tree-ssa-dom.c.  Improve various
9351         comments.
9353 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
9355         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9357 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
9359         PR bootstrap/67587
9360         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9361         fixup_partitions.
9363 2015-09-16  Richard Biener  <rguenther@suse.de>
9365         PR middle-end/67253
9366         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9367         location of possibly shared trees.
9369 2015-09-16  Richard Biener  <rguenther@suse.de>
9371         PR middle-end/67271
9372         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9374 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
9376         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9377         offset and size computations instead of HOST_WIDE_INT.
9379 2015-09-16  Richard Biener  <rguenther@suse.de>
9381         PR middle-end/67442
9382         * fold-const.c (extract_muldiv_1): Properly extend multiplication
9383         result before builting a tree via wide_int_to_tree.
9385 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
9387         * Makefile.in: Add memory-block.cc
9388         (pool_allocator::initialize): Use fixed block size.
9389         (pool_allocator::release): Use memory_block_pool.
9390         (pool_allocator::allocate): Likewise.
9391         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9392         object pools.
9393         * cfg.c (initialize_original_copy_tables): Likewise.
9394         * cselib.c (elt_list_pool, elt_loc_list_pool,
9395         cselib_val_pool): Likewise.
9396         * df-problems.c (df_chain_alloc): Likewise.
9397         * df-scan.c (df_scan_alloc): Likewise.
9398         * dse.c (cse_store_info_pool, rtx_store_info_pool,
9399         read_info_type_pool, insn_info_type_pool, bb_info_pool,
9400         group_info_pool, deferred_change_pool): Likewise.
9401         * et-forest.c (et_nodes, et_occurrences): Likewise.
9402         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9403         ipcp_agg_lattice_pool): Likewise.
9404         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9405         * ipa-profile.c (histogram_pool): Likewise.
9406         * ipa-prop.c (ipa_refdesc_pool): Likewise.
9407         * ira-build.c (live_range_pool, allocno_pool, object_pool,
9408         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9409         * ira-color.c (update_cost_record_pool): Likewise.
9410         * lra-lives.c (lra_live_range_pool): Likewise.
9411         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9412         * memory-block.cc: New file.
9413         * memory-block.h: New file.
9414         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9415         * sched-deps.c (sched_deps_init): Likewise.
9416         * sel-sched-ir.c (sched_lists_pool): Likewise.
9417         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9418         * tree-sra.c (access_pool): Likewise.
9419         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9420         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9421         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9422         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9423         * tree-ssa-strlen.c (strinfo_pool): Likewise.
9424         * tree-ssa-structalias.c (variable_info_pool): Likewise.
9425         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9426         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9428 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
9430         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9431         definition.
9432         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9433         call0 ABI.
9435 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
9437         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9438         to pass TLS call argument, according to current ABI.
9439         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9440         callx0 for TLS call, according to current ABI.
9442 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9444         * tree-eh.c (lower_try_finally_dup_block): Clear location information
9445         on stack restore statements.
9446         (decide_copy_try_finally): Do not consider a stack restore statement as
9447         coming from sources.
9449 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
9451         * config/alpha/alpha.c (alpha_expand_block_clear): Use
9452         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9454 2015-09-15  Jeff Law  <law@redhat.com>
9456         PR tree-optimization/47679
9457         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9458         methods and private members.
9459         (avail_exprs_stack): Similarly.  Change type of global
9460         from a pair of expr_hash_elt_t to the new class.
9461         (expr_elt_hasher::hash): Corresponding changes.
9462         (expr_elt_hasher::equal): Similarly.
9463         (avail_expr_hash): Similarly.
9464         (pass_dominator::execute): Similarly.
9465         (dom_opt_dom_walker::thread_across_edge): Similarly.
9466         (record_cond): Similarly.
9467         (dom_opt_dom_walker::before_dom_children): Similarly.
9468         (dom_opt_dom_walker::after_dom_children): Similarly.
9469         (lookup_avail_expr): Likewise.
9470         (initialize_hash_element): Now a expr_hash_elt constructor.
9471         (initialize_hash_element_from_expr): Similarly.
9472         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9473         (free_expr_hash_elt): Call dtor for the element.
9474         (remove_local_expressions_from_table): Now the "pop_to_marker"
9475         method in the available_exprs_stack class.
9476         (avail_expr_stack::record_expr): Method factored out.
9477         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9478         Fix formatting.
9479         (hashable_expr_equal_p): Fix formatting.
9481 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
9483         * input.h (location_get_source_line): Drop "expanded_location"
9484         param in favor of a file and line number.
9485         * input.c (location_get_source_line): Likewise.
9486         (dump_location_info): Update for change in signature of
9487         location_get_source_line.
9488         * diagnostic.c (diagnostic_print_caret_line): Likewise.
9490 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9492         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9493         Bump to 4KB for SJLJ exceptions.
9494         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
9495         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9496         * doc/tm.texi: Regenerate.
9498 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9500         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9501         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
9502         Update prototype.
9504 2015-09-15  Richard Biener  <rguenther@suse.de>
9506         PR tree-optimization/67470
9507         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9508         structure for PHI hoisting by inserting a forwarder block
9509         if appropriate.
9511 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9513         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9514         (arm_option_print): New function.
9516 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9518         PR target/52144
9519         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9520         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9521         Remove flags parameter.
9522         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9523         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9524         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9525         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9526         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9527         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9528         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9529         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9531 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9533         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9535         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9536         AARCH64_VALID_SIMD_DREG_MODE.
9538 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9540         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9541         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9542         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9543         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9544         aarch64_ld4_lane<mode>): Combine together, making...
9545         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9546         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9547         aarch64_st4_lane<mode>): Combine together, making...
9548         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9549         * config/aarch64/iterators.md (nregs): Add comment.
9551 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9553         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9554         Change operand mode from <V_TWO_ELEM> to BLK.
9555         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9556         (aarch64_vec_store_lanesoi_lane<mode): Likewise
9557         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9558         (aarch64_ld2_lane<mode>): Likewise.
9559         (aarch64_st2_lane<VQ:mode>): Likewise.
9560         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9562 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9564         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9565         Change operand mode from <V_FOUR_ELEM> to BLK.
9566         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9567         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9568         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9569         (aarch64_ld4_lane<mode>): Likewise.
9570         (aarch64_st4_lane<mode>): Likewise.
9571         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9573 2015-09-15  Richard Biener  <rguenther@suse.de>
9575         PR middle-end/67563
9576         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9577         transfer EH info from old to new stmt.
9578         (replace_call_with_value): Likewise.
9579         (replace_call_with_call_and_fold): Likewise.
9580         (gimple_fold_builtin_memory_op): Likewise.
9581         (gimple_fold_builtin_memset): Likewise.
9582         (gimple_fold_builtin_stpcpy): Likewise.
9583         (gimple_fold_call): Likewise.
9585 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9587         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9588         comment.
9589         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9590         (aarch64_simd_intEI_type_node): Likewise.
9591         (aarch64_simd_builtin_std_type): Remove EImode case.
9592         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9593         * config/aarch64/aarch64-modes.def: Remove EImode.
9595 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9597         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9598         Change operand mode from <V_THREE_ELEM> to BLK.
9599         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9600         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9601         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9602         (aarch64_ld3_lane<mode>): Likewise.
9603         (aarch64_st3_lane<mode>): Likewise.
9604         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9606 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9608         * config/aarch64/aarch64-simd.md
9609         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9610         Change all TImode operands to BLKmode.
9611         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9612         Change all EImode operands to BLKmode.
9613         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9614         Change all OImode operands to BLKmode.
9616         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9617         and call set_mem_size.
9618         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9620         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9622 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9624         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9625         to...
9626         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9628         (vec_store_lanesci_lane<mode>): Rename to...
9629         (aarch64_vec_store_lanesci_lane<mode>): ...this.
9631         (vec_store_lanesxi_lane<mode>): Rename to...
9632         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9634         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9635         aarch64_st4_lane<mode>): Follow renaming.
9637 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9639         * config/s390/s390.c (s390_const_operand_ok): Add missing
9640         brackets.
9642 2015-09-15  Richard Biener  <rguenther@suse.de>
9644         PR lto/67568
9645         * lto-streamer.h (lto_location_cache::current_sysp): Properly
9646         initialize.
9647         * lto-streamer-out.c (clear_line_info): Likewise.
9649 2015-09-15  Richard Biener  <rguenther@suse.de>
9651         * doc/match-and-simplify.texi: Fix wording.
9653 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
9655         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9656         unnecessary type conversion in op1.
9658 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9660         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9661         (dup_block_and_redirect): Delete function.
9662         (can_dup_for_shrink_wrapping): New function.
9663         (fix_fake_fallthrough_edge): New function.
9664         (try_shrink_wrapping): Rewrite function.
9665         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9667 2015-09-14  Rich Felker  <dalias@libc.org>
9669         * configure.ac: Change target pattern for sh TLS support
9670         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9671         * configure: Regenerate.
9673 2015-09-14  Jeff Law  <law@redhat.com>
9675         PR tree-optimization/47679
9676         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9677         type rather than void *.
9679 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9681         PR fortran/67460
9682         * diagnostic.c (diagnostic_initialize): Do not set
9683         some_warnings_are_errors.
9684         (diagnostic_finish): Use DK_WERROR count instead.
9685         (diagnostic_report_diagnostic): Do not set
9686         some_warnings_are_errors.
9687         * diagnostic.h (struct diagnostic_context): Remove
9688         some_warnings_are_errors.
9690 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
9692         * config/sparc/predicates.md (const_all_ones_operand): Use
9693         CONSTM1_RTX to simplify definition.
9695 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
9697         PR target/67061
9698         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9699         Handle call insns.
9701 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
9703         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9704         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9705         OPT_fshow_column to handled saved option cases.
9706         (append_compiler_options): Do not skip the above added options.
9708 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9710         PR target/63304
9711         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9712         nopcrelative_literal_loads.
9713         (aarch64_classify_address): Likewise.
9714         (aarch64_constant_pool_reload_icode): Define.
9715         (aarch64_secondary_reload): Handle secondary reloads for
9716         literal pools.
9717         (aarch64_override_options): Handle nopcrelative_literal_loads.
9718         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9719         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9720         Define.
9721         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9722         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9723         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9724         predicate.
9725         * doc/invoke.texi (mpc-relative-literal-loads): Document.
9727 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
9729         PR middle-end/67401
9730         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9731         sync_compare_and_swap_optab libcall to target_oval.
9733 2015-09-14  Marek Polacek  <polacek@redhat.com>
9735         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9736         value.
9737         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9739 2015-09-11  Mark Wielaard  <mjw@redhat.com>
9741         PR c/28901
9742         * toplev.c (check_global_declaration): Check and use
9743         warn_unused_const_variable.
9744         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9745         (-Wunused-variable): Remove non-constant. For C implies
9746         -Wunused-const-variable.
9747         (-Wunused-const-variable): New.
9749 2015-09-14  Richard Biener  <rguenther@suse.de>
9751         * doc/match-and-simplify.texi: Update for changed syntax
9752         of inner ifs and the new switch expression.
9754 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
9756         * config/i386/haswell.md: New file describing Haswell pipeline.
9757         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9758         haswell-like processors.
9759         (ix86_reassociation_width): Increase reassociation width for 64-bit
9760         Haswell processor family.
9761         * config/i386/i386.md: Introduce haswell cpu and include new md file.
9763 2015-09-14  Richard Biener  <rguenther@suse.de>
9765         * doc/match-and-simplify.texi: Fixup some formatting issues
9766         and document the 's' flag.
9768 2015-09-13  Olivier Hainque  <hainque@adacore.com>
9769             Eric Botcazou  <ebotcazou@adacore.com>
9771         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9772         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
9773         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9774         (TARGET_CPU_gr5): Likewise.
9775         (TARGET_CPU_gr6): Likewise.
9776         (MULTILIB_DEFAULTS): Likewise.
9777         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9778         for mcpu=gr5 and mcpu=gr6.
9779         (MULTILIB_DIRNAMES): Adjust accordingly.
9781 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9783         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9784         (mem_ref_p): Likewise.
9785         (outermost_indep_loop): Adjust.
9786         (mem_ref_in_stmt): Likewise.
9787         (determine_max_movement): Likewise.
9788         (mem_ref_alloc): Likewise.
9789         (record_mem_ref_loc): Likewise.
9790         (set_ref_stored_in_loop): Likewise.
9791         (mark_ref_stored): Likewise.
9792         (gather_mem_refs_stmt): Likewise.
9793         (mem_refs_may_alias_p): Likewise.
9794         (for_all_locs_in_loop): Likewise.
9795         (struct rewrite_mem_ref_loc): Likewise.
9796         (rewrite_mem_refs): Likewise.
9797         (struct first_mem_ref_loc_1): Likewise.
9798         (first_mem_ref_loc): Likewise.
9799         (struct sm_set_flag_if_changed): Likewise.
9800         (execute_sm_if_changed_flag_set): Likewise.
9801         (execute_sm): Likewise.
9802         (hoist_memory_references):
9803         (struct ref_always_accessed): Likewise.
9804         (ref_always_accessed_p): Likewise.
9805         (refs_independent_p): Likewise.
9806         (record_dep_loop): Likewise.
9807         (ref_indep_loop_p_1): Likewise.
9808         (ref_indep_loop_p_2): Likewise.
9809         (ref_indep_loop_p): Likewise.
9810         (can_sm_ref_p): Likewise.
9811         (find_refs_for_sm): Likewise.
9812         (tree_ssa_lim_finalize): Likewise.
9814 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9816         * dwarf2out.c (dw_attr_ref): Remove typedef.
9817         (dw_line_info_ref): Likewise.
9818         (pubname_ref): Likewise.
9819         (dw_ranges_ref): Likewise.
9820         (dw_ranges_by_label_ref): Likewise.
9821         (comdat_type_node_ref): Likewise.
9822         (get_AT): Adjust.
9823         (get_AT_low_pc): Likewise.
9824         (get_AT_hi_pc): Likewise.
9825         (get_AT_string): Likewise.
9826         (get_AT_flag): Likewise.
9827         (get_AT_unsigned): Likewise.
9828         (get_AT_ref): Likewise.
9829         (get_AT_file): Likewise.
9830         (remove_AT): Likewise.
9831         (print_die): Likewise.
9832         (check_die): Likewise.
9833         (die_checksum): Likewise.
9834         (attr_checksum_ordered): Likewise.
9835         (struct checksum_attributes): Likewise.
9836         (collect_checksum_attributes): Likewise.
9837         (die_checksum_ordered): Likewise.
9838         (same_die_p): Likewise.
9839         (is_declaration_die): Likewise.
9840         (clone_die): Likewise.
9841         (clone_as_declaration): Likewise.
9842         (copy_declaration_context): Likewise.
9843         (break_out_comdat_types): Likewise.
9844         (copy_decls_walk): Likewise.
9845         (output_location_lists): Likewise.
9846         (external_ref_hasher::hash): Likewise.
9847         (optimize_external_refs_1): Likewise.
9848         (build_abbrev_table): Likewise.
9849         (size_of_die): Likewise.
9850         (unmark_all_dies): Likewise.
9851         (size_of_pubnames): Likewise.
9852         (output_die_abbrevs): Likewise.
9853         (output_die): Likewise.
9854         (output_pubnames): Likewise.
9855         (add_ranges_num): Likewise.
9856         (add_ranges_by_labels): Likewise.
9857         (add_high_low_attributes): Likewise.
9858         (gen_producer_string): Likewise.
9859         (dwarf2out_set_name): Likewise.
9860         (new_line_info_table): Likewise.
9861         (prune_unused_types_walk_attribs): Likewise.
9862         (prune_unused_types_update_strings): Likewise.
9863         (prune_unused_types): Likewise.
9864         (resolve_addr): Likewise.
9865         (optimize_location_lists_1): Likewise.
9866         (index_location_lists): Likewise.
9867         (dwarf2out_finish): Likewise.
9869 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9871         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9873 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9875         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9876         (dump_asserts_for): Adjust.
9877         (register_new_assert_for): Likewise.
9878         (process_assert_insertions): Likewise.
9879         (insert_range_assertions): Likewise.
9881 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9883         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9884         and remove typedef.
9885         (new_temp_expr_table): Adjust.
9886         (free_temp_expr_table): Likewise.
9887         (version_to_be_replaced_p): Likewise.
9888         (make_dependent_on_partition): Likewise.
9889         (add_to_partition_kill_list): Likewise.
9890         (remove_from_partition_kill_list): Likewise.
9891         (add_dependence): Likewise.
9892         (finished_with_expr): Likewise.
9893         (process_replaceable): Likewise.
9894         (kill_expr): Likewise.
9895         (kill_virtual_exprs): Likewise.
9896         (mark_replaceable): Likewise.
9897         (find_replaceable_in_bb): Likewise.
9898         (find_replaceable_exprs): Likewise.
9899         (debug_ter): Likewise.
9901 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9903         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9904         (struct btr_user): Rename from btr_user_s.
9905         (struct btr_def): Rename from btr_def_s.
9906         (find_btr_def_group): Adjust.
9907         (add_btr_def): Likewise.
9908         (new_btr_user): Likewise.
9909         (note_other_use_this_block): Likewise.
9910         (compute_defs_uses_and_gen): Likewise.
9911         (link_btr_uses): Likewise.
9912         (build_btr_def_use_webs): Likewise.
9913         (block_at_edge_of_live_range_p): Likewise.
9914         (btr_def_live_range): Likewise.
9915         (combine_btr_defs): Likewise.
9916         (move_btr_def): Likewise.
9917         (migrate_btr_def): Likewise.
9918         (migrate_btr_defs): Likewise.
9920 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9922         * var-tracking.c (shared_hash_def): Rename to shared_hash.
9923         (shared_hash): Remove typedef.
9924         (struct dataflow_set): Adjust.
9925         (shared_hash_unshare): Likewise.
9926         (dataflow_set_merge): Likewise.
9927         (vt_initialize): Likewise.
9928         (vt_finalize): Likewise.
9930 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9932         * var-tracking.c (struct location_chain): Rename from
9933         location_chain_def.
9934         (struct variable_part): Adjust.
9935         (variable_htab_free): Likewise.
9936         (unshare_variable): Likewise.
9937         (get_init_value): Likewise.
9938         (get_addr_from_local_cache): Likewise.
9939         (drop_overlapping_mem_locs): Likewise.
9940         (val_reset): Likewise.
9941         (struct variable_union_info): Likewise.
9942         (variable_union): Likewise.
9943         (find_loc_in_1pdv): Likewise.
9944         (insert_into_intersection): Likewise.
9945         (intersect_loc_chains): Likewise.
9946         (canonicalize_loc_order_check): Likewise.
9947         (canonicalize_values_mark): Likewise.
9948         (canonicalize_values_star): Likewise.
9949         (canonicalize_vars_star): Likewise.
9950         (variable_merge_over_cur): Likewise.
9951         (remove_duplicate_values): Likewise.
9952         (variable_post_merge_new_vals): Likewise.
9953         (variable_post_merge_perm_vals): Likewise.
9954         (find_mem_expr_in_1pdv): Likewise.
9955         (dataflow_set_preserve_mem_locs): Likewise.
9956         (dataflow_set_remove_mem_locs): Likewise.
9957         (variable_part_different_p): Likewise.
9958         (onepart_variable_different_p): Likewise.
9959         (find_src_set_src): Likewise.
9960         (dump_var): Likewise.
9961         (set_slot_part): Likewise.
9962         (clobber_slot_part): Likewise.
9963         (delete_slot_part): Likewise.
9964         (vt_expand_var_loc_chain): Likewise.
9965         (emit_note_insn_var_location): Likewise.
9966         (vt_finalize): Likewise.
9968 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9970         * dse.c (store_info_t): Remove typedef.
9971         (group_info_t): Likewise.
9972         (const_group_info_t): Likewise.
9973         (deferred_change_t): Likewise.
9974         (get_group_info): Adjust.
9975         (free_store_info): Likewise.
9976         (canon_address): Likewise.
9977         (clear_rhs_from_active_local_stores): Likewise.
9978         (record_store): Likewise.
9979         (replace_read): Likewise.
9980         (check_mem_read_rtx): Likewise.
9981         (scan_insn): Likewise.
9982         (remove_useless_values): Likewise.
9983         (dse_step1): Likewise.
9984         (dse_step2_init): Likewise.
9985         (dse_step2_nospill): Likewise.
9986         (scan_stores_nospill): Likewise.
9987         (scan_reads_nospill): Likewise.
9988         (dse_step3_exit_block_scan): Likewise.
9989         (dse_step3): Likewise.
9990         (dse_step5_nospill): Likewise.
9991         (dse_step6): Likewise.
9993 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9995         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9996         (alias_set_entry): Remove typedef.
9997         (alias_set_subset_of): Adjust.
9998         (alias_sets_conflict_p): Likewise.
9999         (init_alias_set_entry): Likewise.
10000         (get_alias_set): Likewise.
10001         (new_alias_set): Likewise.
10002         (record_alias_subset): Likewise.
10004 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
10006         * doc/install.texi (Downloading the source): Mark up
10007         contrib/download_prerequisites properly and drop leading "./".
10009 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10011         * config/arc/arc.h: Remove define of STRUCT_VALUE.
10012         * config/lm32/lm32.h: Likewise.
10013         * config/mep/mep.h: Likewise.
10014         * config/visium/visium.h: Likewise.
10015         * system.h: Poison STRUCT_VALUE macro.
10017 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
10019         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10020         CONSTANT_P operands.
10022 2015-09-11  David S. Miller  <davem@davemloft.net>
10024         * config/sparc/constraints.md: Make "U" constraint a real register
10025         constraint.
10026         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10027         (D_MODES, DF_MODES): Add missing cast.
10028         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10029         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10030         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10031         cost to 8.
10032         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10033         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10034         provide these insn when flag_pic.
10036 2015-09-11  Jeff Law  <law@redhat.com>
10038         PR tree-optimization/47679
10039         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10040         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10041         member with m_.  Update inline member functions as necessary.  Add
10042         toplevel comment.
10043         * tree-ssa-scopedtables.c: Update const_and_copies's member
10044         functions to use m_ prefix to access the stack.
10046 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10048         * graphite-optimize-isl.c (disable_tiling): Remove.
10049         (get_schedule_for_band): Do not use disable_tiling.
10050         (get_prevector_map): Delete function.
10051         (enable_polly_vector): Remove.
10052         (get_schedule_for_band_list): Remove dead code.
10054 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10056         * graphite-optimize-isl.c (get_tile_map): Refactor.
10057         (get_schedule_for_band): Same.
10058         (getScheduleForBand): Same.
10059         (get_prevector_map): Same.
10060         (get_schedule_for_band_list): Same.
10061         (get_schedule_map): Same.
10062         (get_single_map): Same.
10063         (apply_schedule_map_to_scop): Same.
10064         (optimize_isl): Same.
10066 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10068         PR target/63304
10069         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10070         (movtf): Delete.
10071         * config/aarch64/iterators.md (GPF_TF_F16): New.
10072         (GPF_F16): Delete.
10074 2015-09-10  Nathan Sidwell  <nathan@acm.org>
10076         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10077         (nvptx_reorg): Adjust comments.
10079 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
10081         PR bootstrap/67363
10082         * configure.ac: Check if setenv and unsetenv are declared.
10083         * configure: Rebuild.
10084         * config.in: Rebuild.
10085         * system.h: Declare setenv and unsetenv if not declared.
10087 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10089         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10090         commentary to simplify permute mask adjustment equation.
10091         (special_handling_values): Add SH_VPERM.
10092         (const_load_sequence_p): New function.
10093         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10094         the mask loaded from the constant pool.
10095         (adjust_vperm): New function.
10096         (handle_special_swappables): Call adjust_vperm.
10097         (dump_swap_insn_table): Handle SH_VPERM.
10099 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10101         * shrink-wrap.c (requires_stack_frame_p): Remove static.
10102         * shrink-wrap.h (requires_stack_frame_p): Put back.
10104 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
10106         * reload1.c (elimination_costs_in_insn): Locally turn
10107         -Wmaybe-uninitialized into a warning.
10109 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
10111         * shrink-wrap.c (requires_stack_frame_p): Make static.
10112         (prepare_shrink_wrap): Likewise.
10113         (dup_block_and_redirect): Likewise.
10114         * shrink-wrap.h: Remove declarations of those functions.
10116 2015-09-10  Mark Wielaard  <mjw@redhat.com>
10118         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10120 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
10122         PR target/67506
10123         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10124         missing simplify_gen_subreg.
10126 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10128         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10129         the vector element is bigger than 64 bit.
10131 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10133         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10134         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10136 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10138         * config/s390/s390.c: Add V1TImode to constant pool modes.
10140 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10142         PR target/67439
10143         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10144         predicate.  Set predicable_short_it attr to "no".
10146 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
10148         PR rtl-optimization/67421
10149         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10150         left wide shift tranformation.
10152 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
10154         * common/config/arc/arc-common.c: Remove references to A5.
10155         * config/arc/arc-opts.h: Likewise.
10156         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10157         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10158         * config/arc/t-arc-newlib: Likewise.
10160 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
10162         * config/arc/arc.md (length): Fix attribute length for conditional
10163         executed instructions with long immediate.
10165 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10167         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10168         type for second alternative.
10170 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
10172         * doc/invoke.texi (Downloading GCC): Mention
10173         contrib/download_prerequisites script.
10175 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
10177         PR c++/67523
10178         * gimplify.c (gimplify_omp_for): If inner stmt is not found
10179         for combined loop, assert seen_error () and return GS_ERROR.
10181         PR middle-end/67521
10182         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10183         if decl is already in outer->variables.
10185         PR middle-end/67517
10186         * gimplify.c (gimplify_scan_omp_clauses): Instead of
10187         asserting that decl is not specified in octx->variables,
10188         break out of the loop if it is.
10190         PR c++/67514
10191         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10192         iterator is not explicitly determined, but is defined inside
10193         of the combined workshare region, handle it like if it has
10194         DECL_EXPR in OMP_FOR_PRE_BODY.
10196 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10198         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10199         (*cmp<mode>): Add assembler spacing.
10200         (setcc_int<mode>, set_cc_float<mode>): Likewise.
10201         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10202         level.
10203         (write_func_decl_from_insn): Refactor argument loops & comma emission.
10204         (nvptx_expand_call): Likewise.
10205         (nvptx_output_call_insn): Likewise.
10206         (nvptx_reorg_subreg): Add spacing.
10208 2015-09-09  Marek Polacek  <polacek@redhat.com>
10210         PR middle-end/67512
10211         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10212         for comparisons.
10214 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
10216         PR c++/53184
10217         * doc/invoke.texi ([Wsubobject-linkage]): Document.
10219 2015-09-09  Tom de Vries  <tom@codesourcery.com>
10221         * params-list.h: Add missing copyright notice.
10223 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10225         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10226         sel_truesi, not andsi.
10228 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10230         * config/arm/arm.md (*subsi3_compare0): Rename to...
10231         (subsi3_compare0): ... This.
10232         (modsi3): New define_expand.
10233         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10234         when operand is power of 2.
10236 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10238         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10239         (*neg<mode>2_compare0): Rename to...
10240         (neg<mode>2_compare0): ... This.
10241         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10242         Move check for speed inside the if-then-elses.  Reflect
10243         CSNEG sequence in MOD by power of 2 case.
10245 2015-09-09  Alan Modra  <amodra@gmail.com>
10247         PR target/67378
10248         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10249         reload replacement for PRE_MODIFY address reg.
10251 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
10253         PR tree-optimization/53852
10254         * config.in: Regenerate.
10255         * configure: Regenerate.
10256         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10257         * graphite-optimize-isl.c (optimize_isl): Stop computation when
10258         PARAM_MAX_ISL_OPERATIONS is reached.
10259         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10260         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10261         result equal to isl_stat_ok as the status now can be isl_error_quota.
10262         (subtract_commutative_associative_deps): Same.
10263         (compute_deps): Same.
10265 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10266             Sebastian Pop  <s.pop@samsung.com>
10268         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10269         Return the parameter if it was saved in corresponding
10270         parameter_rename_map of the region.
10271         (copy_def): Copy def from sese region to the newly created region.
10272         (copy_internal_parameters): Copy all the internal parameters defined
10273         within a region to the newly created region.
10274         (graphite_regenerate_ast_isl): Copy parameters to the new region before
10275         translating isl to gimple.
10276         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10277         the loop-nest does not have any data-references.
10278         (build_graphite_scops): Create a scop only when there is at least one
10279         loop inside it.
10280         (contains_only_close_phi_nodes): Deleted.
10281         (print_graphite_scop_statistics): Deleted
10282         (print_graphite_statistics): Deleted
10283         (limit_scops): Deleted.
10284         (build_scops): Removed call to limit_scops.
10285         * sese.c (new_sese): Construct.
10286         (free_sese): Destruct.
10287         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10288         added.
10289         (set_rename): Pass sese region so that parameters inside the region can
10290         be added to its parameter_rename_map.
10291         (rename_uses): Pass sese region.
10292         (graphite_copy_stmts_from_block): Do not copy parameters that have been
10293         generated in the header of the scop. For each SSA_NAME in the
10294         parameter_rename_map rename its usage.
10295         (invariant_in_sese_p_rec): Return false if tree t is defined outside
10296         sese region.
10297         (scalar_evolution_in_region): If the tree t is invariant just return t.
10298         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10299         struct sese to keep track of all the parameters which need renaming.
10300         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10301         any data-refs.
10302         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10304 2015-09-08  Tom de Vries  <tom@codesourcery.com>
10306         * Makefile.in (generated_files): Add params.list.
10307         (params.list, s-params.list): Add rule.
10308         * params.h (enum compiler_param): Include params-list.h.  Move define
10309         DEFPARAM, include params.def and undef DEFPARAM ...
10310         * params-list.h: ... here.  New file.
10312 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
10314         * pretty-print.h (printer_fn): Fix typo in comment.
10316 2015-09-07  Jeff Law  <law@redhat.com>
10318         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10320 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10322         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10323         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10324         (arm_neon_fp16_hw): New.
10326 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10328         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10329         UNITS_PER_WORD >= 4.
10331 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10333         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10334         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10335         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10336         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10337         (aarch64_float_extend_lo_v2df): Rename to...
10338         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10340         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10341         (float_extend_lo): Add v4sf.
10343         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10344         * config/aarch64/iterators.md (VQ_HSF): New iterator.
10345         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10346         (Vwide): New mode_attr.
10348 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10350         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10351         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10352         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10353         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10354         V4HF and V8HF variants to iterator.
10356         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10358         * config/aarch64/iterators.md (VDQF_F16): New.
10359         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10361 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10363         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10364         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10365         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10366         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10367         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10368         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10369         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10370         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10371         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10372         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10373         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10374         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10375         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10376         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10377         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10378         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10379         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10380         vld1q_dup_f16): New.
10382 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10384         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10385         Reparameterize to...
10386         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10387         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10388         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10390         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10391         v8hf variant.
10392         (float_truncate_lo_): Use BUILTIN_VDF iterator.
10394         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10396         * config/aarch64/iterators.md (VDF, Vdtype): New.
10397         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10399 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10401         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10402         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10403         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10404         Add __builtin_aarch64_simd_hf.
10405         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10406         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10407         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10408         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10409         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10410         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10411         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10412         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10413         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10415         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10416         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10417         (VDC, Vdbl): Add V4HF.
10419 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10421         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10422         V4HFmode and V8HFmode.
10423         (aarch64_split_simd_move): Add case for V8HFmode.
10424         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10425         (aarch64_simd_builtin_std_type): Handle HFmode.
10426         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10428         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10429         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10430         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10432         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10433         Float16x8_t.
10435         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10436         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10437         New typedefs.
10438         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10439         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10440         vst1q_lane_f16): New.
10441         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10442         (VALLDI_F16, VALL_F16): New.
10443         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10444         Add cases for V4HF and V8HF.
10445         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10447 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10449         * config/arm/arm-builtins.c (VAR11, VAR12): New.
10450         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10451         vld4_dup): Add v4hf variant.
10452         (vget_high, vget_low): Add v8hf variant.
10453         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10454         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10455         v4hf and v8hf variants.
10457         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10458         (VDX): Add V4HF.
10459         (V_DOUBLE): Add case for V4HF.
10460         (VQX): Add V8HF.
10461         (V_HALF): Add case for V8HF.
10462         (VDQX): Add V4HF, V8HF.
10463         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10464         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10466         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10467         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10468         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10469         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10470         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10471         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10472         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10473         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10474         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10476         (neon_vcreate, neon_vreinterpretv8qi<mode>,
10477         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10478         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10479         Change VDX to VD_RE.
10481         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10482         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10483         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10485         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10486         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10487         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10488         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10489         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10490         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10491         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10492         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10493         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10495 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10497         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10498         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10499         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10500         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10501         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10502         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10503         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10504         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10505         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10506         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10507         New.
10509 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10511         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10513         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10515         * config/arm/arm-builtins.c (v8hf_UP): New.
10516         (arm_init_simd_builtin_types): Initialise Float16x8_t.
10518         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10520         * config/arm/arm_neon.h (float16x8_t): New typedef.
10522 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10524         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10525         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10526         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10527         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10528         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10529         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10530         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10531         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10532         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10533         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10535 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
10537         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10538         non-alphanumeric characters in the symbol name.
10540 2015-09-07  Marek Polacek  <polacek@redhat.com>
10542         PR inline-asm/67448
10543         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10544         a memory input.
10546 2015-09-07  Marek Polacek  <polacek@redhat.com>
10548         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10550 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
10552         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10553         not warn.
10555 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
10557         PR middle-end/67452
10558         * tree-ssa-live.c: Include cfgloop.h.
10559         (remove_unused_locals): Clear loop->simduid if simduid is about
10560         to be removed from cfun->local_decls.
10562 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10564         PR target/65210
10565         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10566         attribute as well.
10568 2015-09-04  Tom de Vries  <tom@codesourcery.com>
10570         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10572 2015-09-04  Jeff Law  <law@redhat.com>
10574         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10575         unnecessary constructor.  It's now trivial and implemented inside...
10576         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10577         constructor.  Add comments to various methods.  Remove unused
10578         private fields.
10579         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10580         * tree-vrp.c (identify_jump_threads): Likewise.
10581         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10582         indentation issues.
10583         (thread_across_edge): Similarly.
10584         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10585         arguments in constructor call.
10587 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
10589         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10590         temp path contains a '-'.
10592 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10593             Petr Murzin  <petr.murzin@intel.com>
10594             Kirill Yukhin  <kirill.yukhin@intel.com>
10596         * config/i386/i386-builtin-types.def
10597         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10598         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10599         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10600         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10601         * config/i386/i386.c
10602         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10603         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10604         IX86_BUILTIN_SCATTERALTDIV16SI.
10605         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10606         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10607         __builtin_ia32_scatteraltdiv8si.
10608         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10609         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10610         IX86_BUILTIN_SCATTERALTDIV16SI.
10611         (ix86_vectorize_builtin_scatter): New.
10612         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10613         ix86_vectorize_builtin_scatter.
10615 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10616             Petr Murzin  <petr.murzin@intel.com>
10617             Kirill Yukhin  <kirill.yukhin@intel.com>
10619         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10620         * doc/tm.texi: Regenerate.
10621         * target.def: Add scatter builtin.
10622         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10623         for loads/stores in case of gather/scatter accordingly.
10624         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10625         STMT_VINFO_GATHER_P(S).
10626         (vect_check_gather): Rename to ...
10627         (vect_check_gather_scatter): this.
10628         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10629         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10630         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10631         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10632         variable and new checkings for it accordingly.
10633         * tree-vect-stmts.c
10634         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10635         STMT_VINFO_GATHER_P(S).
10636         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10637         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10639 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10641         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10642         define_insn.
10643         (mulv16qi3): New define_expand.
10645 2015-09-03  Martin Sebor  <msebor@redhat.com>
10647         PR c/66516
10648         * doc/extend.texi (Other Builtins): Document when the address
10649         of a built-in function can be taken.
10651 2015-09-03  Richard Biener  <rguenther@suse.de>
10653         * dwarf2out.c (flush_limbo_die_list): Split out from ...
10654         (dwarf2out_early_finish): ... here.
10655         (dwarf2out_finish): Do not call dwarf2out_early_finish but
10656         flush_limbo_die_list.  Assert we have no deferred asm names.
10658 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10660         * optabs.c (expand_binop): Don't create a broadcast vector with a
10661         source element wider than the inner mode.
10663 2015-09-03  Richard Biener  <rguenther@suse.de>
10665         * varasm.c (output_constant): Use fold_convert instead of
10666         wide_int_to_tree.
10668 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10670         PR tree-optimization/65637
10671         * omp-low.c (expand_omp_for_static_chunk): Handle case that
10672         fin_bb has 2 predecessors.
10674 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10676         PR tree-optimization/65637
10677         * omp-low.c (find_phi_with_arg_on_edge): New function.
10678         (expand_omp_for_static_chunk): Fix inner loop phi.
10680 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10682         PR tree-optimization/65637
10683         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10684         that head is NULL.
10686 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10688         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10690 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10692         * doc/invoke.texi (parloops-chunk-size): Add item.
10693         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10694         * tree-parloops.c: Include params.h.
10695         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10696         param parloops-chunk-size is used.
10698 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10700         PR middle-end/67351
10701         * fold-const.c (fold_binary_loc) : Move
10702         Transform (x >> c) << c into x & (-1<<c) or
10703         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10704         types using simplify and match.
10705         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10706         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10708 2015-09-03  Richard Biener  <rguenther@suse.de>
10710         PR ipa/66705
10711         * tree-ssa-structalias.c (ctor_for_analysis): New function.
10712         (create_variable_info_for_1): Use ctor_for_analysis instead
10713         of get_constructor.
10714         (create_variable_info_for): Likewise.
10716 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
10718         PR ipa/67280
10719         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10720         in new callgraph edge.
10722 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
10724         PR target/59810
10725         PR target/63652
10726         PR target/63653
10727         * config/aarch64/aarch64-simd.md
10728         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10729         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10730         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10731         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10733 2015-09-02  Alan Modra  <amodra@gmail.com>
10735         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10736         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10737         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10739 2015-09-02  Alan Modra  <amodra@gmail.com>
10741         PR target/67417
10742         * config/rs6000/predicates.md (current_file_function_operand): Don't
10743         return true for weak symbols.
10744         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10746 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
10747             Andrew Bennett  <andrew.bennett@imgtec.com>
10749         * config/mips/mips-opts.h (mips_cb_setting): New enum.
10750         * config/mips/mips-protos.h: Add definitions for
10751         mips_output_jump and mips_output_equal_conditional_branch
10752         * config/mips/mips.c (MIPS_JR): Change to support the
10753         JIC instruction.
10754         (mips_emit_compare): Add support for the MIPS R6 conditional
10755         compact branches.
10756         (mips_process_sync_loop): Likewise.
10757         (mips_output_order_conditional_branch): Likewise.
10758         (mips16_build_call_stub): Change MIPS_CALL to
10759         mips_output_jump.
10760         (mips_print_operand_punctuation): Update 's' case to only
10761         apply to micromips r2.
10762         (mips_adjust_insn_length): Add support for forbidden slot
10763         hazards.
10764         (mips_avoid_hazard): Likewise.
10765         (mips_reorg_process_insns): Likewise.
10766         (mips_output_jump): New function.
10767         (mips_output_equal_conditional_branch): Likewise.
10768         (mips_output_conditional_branch): Use jrc/bc if compact
10769         branch support is enabled.  Ensure the forbidden slots
10770         between the two branch instructions is filled with a nop.
10771         (mips_option_override): Add support to process the compact
10772         branch option and set the correct defaults.  Prevent
10773         non-explict relocs being using for MIPS R6.
10774         (mips_trampoline_init): Add compact branch support.
10775         (mips_mult_zero_zero_cost): Allow zero initialisation of
10776         accumulators with TARGET_DSP.
10777         * config/mips/mips.h (TARGET_CB_NEVER): New define.
10778         (TARGET_CB_MAYBE): New define.
10779         (TARGET_CB_ALWAYS): New define.
10780         (ISA_HAS_DELAY_SLOTS): New define.
10781         (ISA_HAS_COMPACT_BRANCHES): New define.
10782         (ISA_HAS_JRC): New define.
10783         (MIPS_BRANCH_C): New define.
10784         (MIPS_CALL): Removed.
10785         (MICROMIPS_J): Removed.
10786         * config/mips/mips.md (compact_form): New attr.
10787         (hazard): Add support for forbidden slots.
10788         (define_delay): Add support for compact branches.
10789         (*branch_order<mode>): Likewise.
10790         (*branch_order<mode>_inverted): Likewise.
10791         (*branch_equality<mode>): Likewise.
10792         (*branch_equality<mode>_inverted): Likewise.
10793         (*jump_absolute): Likewise.
10794         (*jump_pic): Likewise.
10795         (indirect_jump): Use mips_output_jump to produce assembly output.
10796         (tablejump_<mode>"): Likewise.
10797         (*<optab>"): Likewise.
10798         (<optab>_internal): Likewise.
10799         (sibcall_internal): Likewise.
10800         (sibcall_value_internal): Likewise.
10801         (sibcall_value_multiple_internal): Likewise.
10802         (call_internal): Likewise.
10803         (call_split): Likewise.
10804         (call_internal_direct): Likewise.
10805         (call_direct_split): Likewise.
10806         (call_value_internal): Likewise.
10807         (call_value_split): Likewise.
10808         (call_value_internal_direct): Likewise.
10809         (call_value_direct_split): Likewise.
10810         (call_value_multiple_internal): Likewise.
10811         (call_value_multiple_split): Likewise.
10812         (mips_get_fcsr_mips16_<mode>): Likewise.
10813         (mips_set_fcsr_mips16_<mode>): Likewise.
10814         (tls_get_tp_mips16_<mode>): Likewise.
10815         * config/mips/mips.opt: Add -mcompact-branches option.
10816         * config/mips/predicates.md (order_operator): Ensure the
10817         conditional compact branches are only used if the ISA them.
10818         * doc/invoke.texi: Document -mcompact-branches option.
10820 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
10822         PR target/61578
10823         * lra-lives.c (process_bb_lives): Process move pseudos with the
10824         same value for copies and preferences
10825         * lra-constraints.c (match_reload): Create match reload pseudo
10826         with the same value from single dying input pseudo.
10828 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10830         PR target/67405
10831         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10833 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
10835         * trans-mem.c: Add contributed-by.
10836         * trans-mem.h: Same.
10838 2015-09-01  Richard Biener  <rguenther@suse.de>
10840         * expr.c (expand_expr_real_1): For expanding TERed defs
10841         set the current location to that of the def if not UNKNOWN.
10843 2015-09-01  David Sherwood  <david.sherwood@arm.com>
10845         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10847 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10849         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10850         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
10851         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10852         Include rtl-iter.h.
10853         (noce_simple_bbs): New function.
10854         (noce_try_move): Bail if basic blocks are not simple.
10855         (noce_try_store_flag): Likewise.
10856         (noce_try_store_flag_constants): Likewise.
10857         (noce_try_addcc): Likewise.
10858         (noce_try_store_flag_mask): Likewise.
10859         (noce_try_cmove): Likewise.
10860         (noce_try_minmax): Likewise.
10861         (noce_try_abs): Likewise.
10862         (noce_try_sign_mask): Likewise.
10863         (noce_try_bitop): Likewise.
10864         (bbs_ok_for_cmove_arith): New function.
10865         (noce_emit_all_but_last): Likewise.
10866         (noce_emit_insn): Likewise.
10867         (noce_emit_bb): Likewise.
10868         (noce_try_cmove_arith): Handle non-simple basic blocks.
10869         (insn_valid_noce_process_p): New function.
10870         (contains_mem_rtx_p): Likewise.
10871         (bb_valid_for_noce_process_p): Likewise.
10872         (noce_process_if_block): Allow non-simple basic blocks
10873         where appropriate.
10875 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
10877         * tree-ssa-dom.c (record_equivalences_from_phis,
10878         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10879         (lookup_avail_expr): Likewise, and remove comment and unused temp.
10881 2015-09-01  Nick Clifton  <nickc@redhat.com>
10883         * config/msp430/msp430.opt (mcpu): Fix typo.
10885 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10887         * config/aarch64/aarch64.c (aarch64_set_current_function):
10888         Re-layout any vector parameters have non-simd layout.
10889         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10890         Delete.
10891         (aarch64_simd_expand_args): Delete call to the above.
10893 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
10895         * doc/invoke.texi (asan-stack): Add space before option.
10897 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10899         * tree.h (zerop): New function.
10900         * tree.c (zerop): Likewise.
10901         (element_precision): Handle expressions.
10902         * match.pd (define_predicates): Add zerop.
10903         (x <= +Inf): Fix comment.
10904         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10905         * fold-const.c (fold_binary_loc): ... here. Remove.
10907 2015-08-31  Richard Biener  <rguenther@suse.de>
10909         PR middle-end/67381
10910         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10912 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10914         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10915         (CEXPI): New operator list.
10916         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10917         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10918         Converted from ...
10919         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10921 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10923         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10924         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10925         parameter.
10926         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10927         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10928         (rewrite_into_loop_closed_ssa): ... here.
10929         (replace_uses_in_dominated_bbs): Remove function.
10930         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10931         rewrite_into_loop_closed_ssa_1.
10933 2015-08-31  Michael Matz  <matz@suse.de>
10935         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10936         enter entry and exit blocks for reverse post order.
10938 2015-08-31  Richard Biener  <rguenther@suse.de>
10940         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10941         (lto_location_cache::current_sysp): Likewise.
10942         (output_block::current_sysp): Likewise.
10943         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10944         (lto_location_cache::apply_location_cache): Properly record
10945         system header locations.
10946         (lto_location_cache::input_location): Input whether a file
10947         is a system header.
10948         * lto-streamer-out.c (lto_output_location): Stream whether a file
10949         is a system header.
10951 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10953         PR bootstrap/67363
10954         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10956 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10958         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10959         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10960         Improve function header comments.
10962 2015-08-30  Michael Collison  <michael.collison@linaro.org>
10964         PR other/67320
10965         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10966         standard names
10968 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10970         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10971         special_handling bitfield.
10972         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10973         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10974         that represents a general xxpermdi.
10975         (insn_is_swappable_p): Add handling for vec_concat of two
10976         doublewords, which maps to a specific xxpermdi.
10977         (adjust_xxpermdi): New function.
10978         (adjust_concat): Likewise.
10979         (handle_special_swappables): Call adjust_xxpermdi and
10980         adjust_concat.
10981         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10983 2015-08-30  Rich Felker <dalias@libc.org>
10985         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10986         case instead of sh[123456ble]-*-*.
10988 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
10990         * ira.c (print_unform_and_important_classes,
10991         print_translated_classes): Remove reg_class_names static array.
10992         (print_unform_and_important_classes): Rename to ...
10993         (print_uniform_and_important_classes): ... this.
10994         (ira_debug_allocno_classes): Update accordingly.
10996 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10998         PR tree-optimization/46193
10999         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11000         clause.
11002 2015-08-28  Jeff Law  <law@redhat.com>
11004         PR lto/66752
11005         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11006         unable to find X NE 0 in the tables, return X as the simplified
11007         condition.
11008         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11009         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11010         to VISISTED_BBS.
11011         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11012         after removing the control flow statement and unnecessary edges.
11014 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
11016         Revert:
11017         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11019         PR tree-optimization/67283
11020         * tree-sra.c (type_consists_of_records_p): Rename to...
11021         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11023         (completely_scalarize_record): Rename to...
11024         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11025         code to:
11026         (scalarize_elem): New.
11028 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
11030         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11031         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11032         (aarch64_symbol_type): Likewise.
11033         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11034         Likewise.
11035         (aarch64_expand_mov_immediate): Likewise.
11036         (aarch64_print_operand): Likewise.
11037         (aarch64_classify_tls_symbol): Likewise.
11039 2015-08-28  Richard Biener  <rguenther@suse.de>
11041         * cgraphunit.c (symbol_table::compile): Move early debug generation
11042         and finish...
11043         (symbol_table::finalize_compilation_unit): ... back here and
11044         add a !seen_error () guard.
11046 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11048         * toplev.c (process_options): Do not use flag_loop_block,
11049         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
11050         flag_loop_optimize_isl.
11052 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11054         * Makefile.in (OBJS): Remove graphite-blocking.o and
11055         graphite-interchange.o.
11056         * common.opt (floop-strip-mine, floop-interchange, floop-block):
11057         Alias of floop-nest-optimize.
11058         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11059         Document as alias of -floop-nest-optimize.
11060         * graphite-blocking.c: Remove.
11061         * graphite-interchange.c: Remove.
11062         * graphite-optimize-isl.c: Include dumpfile.h.
11063         (getScheduleForBand): Add dump for tiled loops.  Use
11064         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11065         * graphite-poly.c (scop_max_loop_depth): Remove.
11066         (print_scattering_function_1): Remove.
11067         (print_scattering_function): Remove.
11068         (print_scattering_functions): Remove.
11069         (debug_scattering_function): Remove.
11070         (debug_scattering_functions): Remove.
11071         (apply_poly_transforms): Remove use of flag_loop_block,
11072         flag_loop_strip_mine, and flag_loop_interchange.
11073         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11074         PBB_ORIGINAL.
11075         (print_pdr_access_layout): Remove.
11076         (print_pdr): Print ISL representation.
11077         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11078         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11079         (free_scop): Same.
11080         (openscop_print_pbb_domain): Remove.
11081         (print_pbb): Remove call to print_scattering_function.
11082         (openscop_print_scop_context): Remove.
11083         (print_scop_context): Do not print matrices anymore.
11084         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11085         SCOP_TRANSFORMED_SCHEDULE.
11086         (print_isl_set): Add printing of a new line.
11087         (print_isl_map): Same.
11088         (print_isl_aff): Same.
11089         (print_isl_constraint): Same.
11090         (loop_to_lst): Remove.
11091         (scop_to_lst): Remove.
11092         (lst_indent_to): Remove.
11093         (print_lst): Remove.
11094         (debug_lst): Remove.
11095         (dot_lst_1): Remove.
11096         (dot_lst): Remove.
11097         (reverse_loop_at_level): Remove.
11098         (reverse_loop_for_pbbs): Remove.
11099         * graphite-poly.h (pdr_dim_iter_domain): Remove.
11100         (pdr_nb_params): Remove.
11101         (pdr_alias_set_dim): Remove.
11102         (pdr_subscript_dim): Remove.
11103         (pdr_iterator_dim): Remove.
11104         (pdr_parameter_dim): Remove.
11105         (same_pdr_p): Remove.
11106         (struct poly_scattering): Remove.
11107         (struct poly_bb): Remove _original, _transformed, _saved.
11108         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11109         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11110         (PBB_NB_LOCAL_VARIABLES): Remove.
11111         (PBB_NB_SCATTERING_TRANSFORM): Remove.
11112         (schedule_to_scattering): Remove.
11113         (number_of_write_pdrs): Remove.
11114         (pbb_dim_iter_domain): Remove.
11115         (pbb_nb_params): Remove.
11116         (pbb_nb_scattering_orig): Remove.
11117         (pbb_nb_scattering_transform): Remove.
11118         (pbb_nb_dynamic_scattering_transform): Remove.
11119         (pbb_nb_local_vars): Remove.
11120         (pbb_iterator_dim): Remove.
11121         (pbb_parameter_dim): Remove.
11122         (psco_scattering_dim): Remove.
11123         (psct_scattering_dim): Remove.
11124         (psct_local_var_dim): Remove.
11125         (psco_iterator_dim): Remove.
11126         (psct_iterator_dim): Remove.
11127         (psco_parameter_dim): Remove.
11128         (psct_parameter_dim): Remove.
11129         (psct_dynamic_dim): Remove.
11130         (psct_static_dim): Remove.
11131         (psct_add_local_variable): Remove.
11132         (new_lst_loop): Remove.
11133         (new_lst_stmt): Remove.
11134         (free_lst): Remove.
11135         (copy_lst): Remove.
11136         (lst_add_loop_under_loop): Remove.
11137         (lst_depth): Remove.
11138         (lst_dewey_number): Remove.
11139         (lst_dewey_number_at_depth): Remove.
11140         (lst_pred): Remove.
11141         (lst_succ): Remove.
11142         (lst_find_pbb): Remove.
11143         (find_lst_loop): Remove.
11144         (lst_find_first_pbb): Remove.
11145         (lst_empty_p): Remove.
11146         (lst_find_last_pbb): Remove.
11147         (lst_contains_p): Remove.
11148         (lst_contains_pbb): Remove.
11149         (lst_create_nest): Remove.
11150         (lst_remove_from_sequence): Remove.
11151         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11152         (lst_niter_for_loop): Remove.
11153         (pbb_update_scattering): Remove.
11154         (lst_update_scattering_under): Remove.
11155         (lst_update_scattering): Remove.
11156         (lst_insert_in_sequence): Remove.
11157         (lst_replace): Remove.
11158         (lst_substitute_3): Remove.
11159         (lst_distribute_lst): Remove.
11160         (lst_remove_all_before_including_pbb): Remove.
11161         (lst_remove_all_before_excluding_pbb): Remove.
11162         (struct scop): Remove original_schedule, transformed_schedule, and
11163         saved_schedule.
11164         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11165         (SCOP_SAVED_SCHEDULE): Remove.
11166         (poly_scattering_new): Remove.
11167         (poly_scattering_free): Remove.
11168         (poly_scattering_copy): Remove.
11169         (store_scattering_pbb): Remove.
11170         (store_lst_schedule): Remove.
11171         (restore_lst_schedule): Remove.
11172         (store_scattering): Remove.
11173         (restore_scattering_pbb): Remove.
11174         (restore_scattering): Remove.
11175         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11176         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
11177         compute the scattering polyhedron dimension from the dimension of
11178         pbb->domain.
11179         (build_scop_scattering): Update call to
11180         build_pbb_scattering_polyhedrons.
11181         (build_poly_scop): Remove call to scop_to_lst.
11182         * graphite.c (graphite_transform_loops): Add call to print_scop.
11183         (gate_graphite_transforms): Remove use of flag_loop_block,
11184         flag_loop_interchange, and flag_loop_strip_mine.
11186 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11188         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11189         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11190         -floop-nest-optimize.
11191         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11192         (generate_luj_sepclass): Remove.
11193         (generate_luj_options): Remove.
11194         (set_options): Remove opt_luj.
11195         (scop_to_isl_ast): Remove opt_luj.
11196         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11197         flag_loop_unroll_jam.
11198         (getPrevectorMap_full): Remove.
11199         (getScheduleForBandList): Remove map_sepcl.
11200         (getScheduleMap): Same.
11201         (apply_schedule_map_to_scop): Remove sepcl.
11202         (optimize_isl): Same.
11203         * graphite-poly.c (apply_poly_transforms): Remove check for
11204         flag_loop_unroll_jam.
11205         (new_poly_bb): Remove map_sepclass.
11206         * graphite-poly.h (struct poly_bb): Same.
11207         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11208         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11209         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11210         * toplev.c (process_options): Remove flag_loop_unroll_jam.
11212 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
11214         PR target/67317
11215         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11216         (addqi3_cc): Ditto.
11217         (UNSPEC_ADD_CARRY): Remove.
11218         (addqi3_cconly_overflow): New expander.
11219         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11220         Adjust for changed add<mode>3_carry.
11221         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11222         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11223         (<plusminus_insn><mode>3_carry): Remove expander.
11224         (*<plusminus_insn><mode>3_carry): Split insn pattern to
11225         add<mode>3_carry and sub<mode>3_carry.
11226         (plusminus_carry_mnemonic): Remove code attribute.
11227         (add<mode>3_carry): Canonicalize insn pattern.
11228         (*addsi3_carry_zext): Ditto.
11229         (sub<mode>3_carry): Ditto.
11230         (*subsi3_carry_zext): Ditto.
11231         (adcx<mode>3): Remove insn pattern.
11232         (addcarry<mode>): New insn pattern.
11233         (subborrow<mode>): Ditto.
11234         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11235         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11236         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11237         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11238         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11239         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11240         Rewrite expander to not clobber carry flag chains.
11242 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
11244         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11245         instead of a rotate.
11247 2015-08-27  Marek Polacek  <polacek@redhat.com>
11249         PR middle-end/67005
11250         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11251         an entry into an irreducible region.
11253 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11255         * configure: Regenerate.
11257 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11259         PR tree-optimization/67283
11260         * tree-sra.c (type_consists_of_records_p): Rename to...
11261         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11263         (completely_scalarize_record): Rename to...
11264         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11265         (scalarize_elem): New.
11267 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11269         * tree-sra.c (completely_scalarize_var): Rename to...
11270         (create_total_scalarization_access): ... Here. Drop call to
11271         completely_scalarize_record.
11273         (analyze_all_variable_accesses): Replace completely_scalarize_var
11274         with create_total_scalarization_access and completely_scalarize_record.
11276 2015-08-27  Alan Modra  <amodra@gmail.com>
11278         PR target/67356
11279         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11280         for operand 1.
11282 2015-08-27  Richard Biener  <rguenther@suse.de>
11284         * passes.c (rest_of_decl_compilation): Guard early_global_decl
11285         call with !seen_error ().
11286         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11287         early debug generation and finish...
11288         (symbol_table::compile): ... here to put it after a !seen_error ()
11289         guard.
11291 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11293         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11294         Solaris 12+.
11296 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11297             Andre Vieira  <andre.simoesdiasvieira@arm.com>
11299         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11300         (*cb<optab><mode>1): Likewise.
11301         (*tb<optab><mode>1): Likewise.
11302         (*cb<optab><mode>1): Likewise.
11303         * config/aarch64/iterators.md (inv_cb): New code attribute.
11304         (inv_tb): Likewise.
11305         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11306         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11308 2015-08-27  Richard Biener  <rguenther@suse.de>
11310         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11312 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11314         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11315         trap to fix ICE.
11317 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11319         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11320         Add declaration.
11322         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11323         comment.
11324         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11325         floating point in VSX registers.
11326         (rs6000_output_move_128bit): Always print out the set insn if we
11327         can't generate an appropriate 128-bit move.
11328         (rs6000_generate_compare): Add support for IEEE 128-bit floating
11329         point in VSX registers comparisons.
11330         (rs6000_expand_float128_convert): Likewise.
11332         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11333         predicate for only GPR hard registers.
11335         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11336         modes to iterators. Add new iterators for moving 128-bit values in
11337         scalar FPR registers and VSX registers.
11338         (FMOVE128): Likewise.
11339         (FMOVE128_FPR): Likewise.
11340         (FMOVE128_GPR): Likewise.
11341         (FMOVE128_VSX): Likewise.
11342         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11343         in VSX registers.
11344         (IFKF): Likewise.
11345         (IBM128): Likewise.
11346         (TFIFKF): Likewise.
11347         (RELOAD): Add IEEE 128-bit floating point modes.
11348         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11349         floating point in VSX registers modes.
11350         (signbit<mode>2, IBM128 iterator): Likewise.
11351         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11352         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11353         (negtf2): Likewise.
11354         (neg<mode>2, TFIFKF iterator): Likewise.
11355         (negtf2_internal): Likewise.
11356         (abstf2): Likewise.
11357         (abs<mode>2, TFIFKF iterator): Likewise.
11358         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11359         VSX insn support for negate, absolute value, and negative absolute
11360         value.
11361         (ieee_128bit_vsx_neg<mode>2): Likewise.
11362         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11363         (ieee_128bit_vsx_abs<mode>2): Likewise.
11364         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11365         (ieee_128bit_vsx_nabs<mode>2): Likewise.
11366         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11367         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11368         floating point in VSX registers.
11369         (unpack<mode>_dm): Likewise.
11370         (unpack<mode>_nodm): Likewise.
11371         (pack<mode>): Likewise.
11372         (unpackv1ti): Likewise.
11373         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11374         (packv1ti): Likewise.
11375         (pack<mode>, FMOVE128_VSX iterator): Likewise.
11376         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11377         registers.
11378         (extenddftf2_internal): Likewise.
11379         (trunctfdf2): Likewise.
11380         (trunctfdf2_internal2): Likewise.
11381         (fix_trunc_helper): Likewise.
11382         (fix_trunctfdi2"): Likewise.
11383         (floatditf2): Likewise.
11384         (floatuns<mode>tf2): Likewise.
11385         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11386         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11387         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11388         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11389         (float<SDI:mode><IFKF:mode>2): Likewise.
11390         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11392 2015-08-26  Renlin Li  <renlin.li@arm.com>
11394         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11396 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11397             Jiong Wang  <jiong.wang@arm.com>
11399         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11400         (tlsie_tiny_<mode>): New define_insn.
11401         (tlsie_tiny_sidi): Likewise.
11402         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11403         SYMBOL_TINY_TLSIE.
11404         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11405         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11406         SYMBOL_TINY_TLSIE.
11407         (aarch64_expand_mov_immediate): Likewise.
11408         (aarch64_print_operand): Likewise.
11409         (arch64_classify_tls_symbol): Likewise.
11411 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11413         * config/arm/arm-arches.def: Replace single value flags with
11414         an initializer built from ARM_FSET_MAKE_CPU1.
11415         * config/arm/arm-cores.def: Likewise.
11416         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11417         derivation from the ARM_CORE macro definition, use the given value
11418         instead.
11419         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11420         ARM_ARCH macro definition, use the given value instead.
11422 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11424         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11425         feature set.
11426         (struct builtin_description): Replace field mask with field
11427         features.
11428         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11429         (IWMMXT2_BUILTIN): Likewise.
11430         (IWMMXT2_BUILTIN2): Likewise.
11431         (FP_BUILTIN): Likewise.
11432         (CRC32_BUILTIN): Likewise.
11433         (CRYPTO_BUILTIN): Likewise.
11434         (iwmmx_mbuiltin): Likewise.
11435         (iwmmx2_mbuiltin): Likewise.
11436         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11437         struct builtin_description.
11439 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11441         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11442         (struct builtin_description): Change type of mask to unsigned
11443         long.
11444         * config/arm/arm-protos.h (insn_flags): Declare as type
11445         arm_feature_set.
11446         (tune_flags): Likewise.
11447         * config/arm/arm.c (feature_count): New.
11448         (insn_flags): Define as type arm_feature_set.
11449         (tune_flags): Likewise.
11450         (struct processors): Define field flags as type arm_feature_set.
11451         (all_cores): Update for change to struct processors.
11452         (all_architectures): Likewise.
11453         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11454         macros.
11455         (arm_option_override_internal): Likewise.
11456         (arm_option_override): Likewise.
11458 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11459             Jiong Wang  <jiong.wang@arm.com>
11461         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11462         tls size for tiny, small, large memory model.
11463         (aarch64_load_symref_appropriately): Support new symbol types.
11464         (aarch64_expand_mov_immediate): Likewise.
11465         (aarch64_print_operand): Likewise.
11466         (aarch64_classify_tls_symbol): Likewise.
11467         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11468         (aarch64_symbol_type): Likewise.
11469         * config/aarch64/aarch64.md (tlsle): Deleted.
11470         (tlsle12_<mode>): New define_insn.
11471         (tlsle24_<mode>): Likewise.
11472         (tlsle32_<mode>): Likewise.
11473         (tlsle48_<mode>): Likewise.
11474         * doc/sourcebuild.texi (AArch64-specific attributes): Document
11475         "aarch64_tlsle32".
11477 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11479         * config/arm/arm-protos.h (FL_NONE): New.
11480         (FL_ANY): New.
11481         (arm_feature_set): New.
11482         (ARM_FSET_MAKE): New.
11483         (ARM_FSET_MAKE_CPU1): New.
11484         (ARM_FSET_MAKE_CPU2): New.
11485         (ARM_FSET_CPU1): New.
11486         (ARM_FSET_CPU2): New.
11487         (ARM_FSET_EMPTY): New.
11488         (ARM_FSET_ANY): New.
11489         (ARM_FSET_HAS_CPU1): New.
11490         (ARM_FSET_HAS_CPU2): New.
11491         (ARM_FSET_HAS_CPU): New.
11492         (ARM_FSET_ADD_CPU1): New.
11493         (ARM_FSET_ADD_CPU2): New.
11494         (ARM_FSET_DEL_CPU1): New.
11495         (ARM_FSET_DEL_CPU2): New.
11496         (ARM_FSET_UNION): New.
11497         (ARM_FSET_INTER): New.
11498         (ARM_FSET_XOR): New.
11499         (ARM_FSET_EXCLUDE): New.
11500         (AFM_FSET_IS_EMPTY): New.
11501         (ARM_FSET_CPU_SUBSET): New.
11503 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11505         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11506         SYMBOL_TLSLE to SYMBOL_TLSLE24.
11507         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11508         Likewise.
11509         (aarch64_expand_mov_immediate): Likewise.
11510         (aarch64_print_operand): Likewise.
11511         (aarch64_classify_symbol): Likewise.
11513 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11515         * config/aarch64/aarch64.opt (mtls-size): New entry.
11516         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11517         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11518         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11520 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11522         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11523         ARM_CORE entry.  Fix some white-space.
11524         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11525         ARM_CORE definition.
11527 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11529         * fold-const.c (fold_binary_loc) : Move Optimize
11530         root(x)*root(y) as root(x*y) to match.pd.
11531         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11532         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11533         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11534         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11535         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11536         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11537         (mult (exps:s @0) (exps:s @1)) : New simplifier.
11538         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11539         (rdiv @0 (exps:s @1)) : New simplifier.
11541 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
11543         * gcc.c (driver::finalize): Only assign to extra_specs if
11544         [EXTRA_SPECS].
11546 2015-08-25  Marek Polacek  <polacek@redhat.com>
11548         PR middle-end/67330
11549         * varasm.c (declare_weak): Return after giving an error.
11551 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
11553         * gcc-main.c (main): Add params to driver ctor.
11554         * gcc.c (class env_manager): New.
11555         (env): New global.
11556         (env_manager::init): New.
11557         (env_manager::get): New.
11558         (env_manager::xput): New.
11559         (env_manager::restore): New.
11560         Poison getenv and putenv.
11561         (DEFAULT_TARGET_SYSTEM_ROOT): New.
11562         (target_system_root): Update initialization to use
11563         DEFAULT_TARGET_SYSTEM_ROOT.
11564         (struct spec_list): Add field "default_ptr".
11565         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11566         (init_spec): Likewise.
11567         (set_spec): Clear field "default_ptr".
11568         (read_specs): Free "spec" and "buffer".
11569         (xputenv): Reimplement in terms of env_manager.
11570         (process_command): Replace ::getenv calls with calls to the
11571         env_manager singleton.
11572         (process_brace_body): Free string in three places.
11573         (driver::driver): New.
11574         (driver::~driver): New.
11575         (used_arg): Convert from a function to...
11576         (class used_arg_t): ...this class, and...
11577         (used_arg): ...this new global instance.
11578         (used_arg_t::finalize): New function.
11579         (getenv_spec_function): Add "const" to local "value".  Replace
11580         ::getenv call with call to the env_manager singleton.
11581         (path_prefix_reset): New function.
11582         (driver::finalize): New function.
11583         * gcc.h (driver::driver): New.
11584         (driver::~driver): New.
11585         (driver::finalize): New.
11587 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11589         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11590         target doesn't have one.
11592 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11594         PR target/67346
11595         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11597 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11599         PR target/67344
11600         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11601         a define_insn, remove second alternative.
11603 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
11604             Joseph Myers  <joseph@codesourcery.com>
11606         * gcc.c (struct switchstr): Expand comment.
11608 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11610         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11611         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11613 2015-08-25  Richard Biener  <rguenther@suse.de>
11615         PR middle-end/67306
11616         * genmatch.c (expr::gen_transform): Verify the result of
11617         builtin_decl_implicit.
11618         (dt_simplify::gen_1): Likewise.
11620 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11622         * config/arm/constraints.md: Also list Cs and US ARM-specific
11623         constraints as used.
11625 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11627         PR target/66609
11628         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11629         UNSPEC_PCREL.
11630         (nonpic_symbol_mentioned_p): Likewise.
11631         (sh_delegitimize_address): Likewise.
11632         (sh_function_ok_for_sibcall): Take into account weak symbols.
11633         (sh_expand_sym_label2reg): New.
11634         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11635         * config/sh/sh.md (UNSPEC_PCREL): New enum.
11636         (call_pcrel): Use sh_expand_sym_label2reg.
11637         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11638         (symPCREL_label2reg) New expand.
11640 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11642         * graphite-poly.c: Change type of region from void* to sese.
11643         * graphite-poly.h (struct scop): Changing the type of scop::region
11644         from void* to sese. Change accessor macro accordingly.
11645         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11647 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11649         * graphite-scop-detection.c (stmt_simple_for_scop_p):
11650         Constrain only on INTEGER_TYPE.
11652 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11654         PR target/67211
11655         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11656         -mefficient-unaligned-vsx on ISA 2.7.
11658         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11659         option to a masked option.
11661         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11662         logic for -mefficient-unaligned-vsx so that it is set via an arch
11663         ISA option, instead of being set if -mtune=power8 is set. Move
11664         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11665         near other default option handling.
11667 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11669         * genflags.c (gen_macro): Delete.
11670         (gen_proto): Don't create GEN.*CALL.* macros.
11671         * gensupport.h (get_file_location): Declare.
11672         * gensupport.c (rtx_locs): New variable.
11673         (read_md_rtx): Record rtx locations.
11674         (get_file_location): New function.
11675         * target-insns.def (call, call_pop, call_value, call_value_pop)
11676         (sibcall, sibcall_value): New patterns.
11677         * gentarget-def.c (parse_argument): New function.
11678         (def_target_insn): Use it.  Handle optional operands.  Raise an
11679         error if an .md pattern has the wrong number of operands for the
11680         pattern name.  Remove the names of unused operands from the prototype.
11681         * builtins.c (expand_builtin_apply): Use targetm functions
11682         instead of HAVE_call_value and GEN_CALL_VALUE.
11683         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
11684         and sibcall_value_pop.
11685         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11686         of GEN_CALL.
11687         * config/alpha/alpha.md (untyped_call): Likewise.
11688         * config/iq2000/iq2000.md (untyped_call): Likewise.
11689         * config/m68k/m68k.md (untyped_call): Likewise.
11690         * config/mips/mips.md (untyped_call): Likewise.
11691         * config/pa/pa.md (untyped_call): Likewise.
11692         * config/rs6000/rs6000.md (untyped_call): Likewise.
11693         * config/sparc/sparc.md (untyped_call): Likewise.
11694         * config/tilegx/tilegx.md (untyped_call): Likewise.
11695         * config/tilepro/tilepro.md (untyped_call): Likewise.
11696         * config/visium/visium.md (untyped_call): Likewise.
11697         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11698         gen_call_value instead of GEN_CALL_VALUE.
11699         * config/arm/arm.md (untyped_call): Likewise.
11700         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11701         GEN_CALL.
11703 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11705         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11706         (have_cbranchcc4): New variable.
11707         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11708         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11709         (if_convert): Initialize have_cbranchcc4.
11711 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11713         * builtins.c (expand_cmpstrn): Rename to...
11714         (expand_cmpstrn_or_cmpmem): ...this.
11715         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11716         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11717         Remove mode argument.
11718         (expand_builtin): Update accordingly.
11720 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11722         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11723         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
11724         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11725         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11726         Add predicates for operands 0 and 3.
11727         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11728         operand.
11729         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11730         immediate_operand to nonmemory_operand.
11732 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11734         * df-scan.c (df_insn_info_init_fields): New function, split out
11735         from...
11736         (df_insn_create_insn_record): ...here.
11737         (df_insn_info_free_fields): New function, split out from...
11738         (df_insn_info_delete): ...here.
11739         (df_insn_rescan): Use the new functions instead of freeing and
11740         reallocating the df_insn_info.
11742 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11744         * doc/install.texi (Binaries): Remove links no longer valid.
11746 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
11748         * config/nvptx/mkoffload.c (process): Replace
11749         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11751 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
11753         PR target/67329
11754         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11756 2015-08-24  Renlin Li  <renlin.li@arm.com>
11758         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11759         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11760         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11761         * config/arm/constraints.md ("j"): Add check for high code.
11763 2015-08-24  Tom de Vries  <tom@codesourcery.com>
11765         PR tree-optimization/65468
11766         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11767         chunk_size is one.
11769 2015-08-24  Nathan Sidwell  <nathan@acm.org>
11771         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11772         change to nvptx_type_from_mode call. Use arg_promotion for both
11773         split and non-split args.
11775 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11777         * target-insns.def (movstr): New pattern.
11778         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11779         (expand_movstr): Use targetm rather than HAVE_movstr/
11780         CODE_FOR_movstr.
11782 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11784         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11785         cast syntax.
11787 2015-08-24  Andrew Pinski  <apinski@cavium.com>
11789         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11790         AARCH64_EXTRA_TUNING_OPTION.
11791         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11792         New enum.
11793         (aarch64_extra_tuning_flags): Base the shifted value on the index
11794         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11795         * config/aarch64/aarch64.c: Remove the last argument to
11796         AARCH64_EXTRA_TUNING_OPTION.
11798 2015-08-23  Nathan Sidwell  <nathan@acm.org>
11800         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11801         decls.
11802         (nvptx_declare_function_name): Insert formatting tabs for
11803         consistency.
11805 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11807         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11808         parm_decl, rather than generating a dummy default def in cfun.
11809         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
11810         ssa_name from cfun and child_fn do not share a stmt as def stmt.
11811         (move_stmt_op): Handle PARM_DECl.
11812         (gather_ssa_name_hash_map_from): New function.
11813         (move_sese_region_to_fn): Add default defs for function params, and add
11814         them to vars_map.  Release copied ssa names.
11815         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11817 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11819         * doc/sourcebuild.texi: Rename vect_no_int_max with
11820         vect_no_int_min_max.  Update description.
11822 2015-08-22  Andrew Pinski  <apinski@cavium.com>
11824          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11825         * config/aarch64/aarch64-protos.h
11826         (aarch64_fusion_pairs_index): New enum.
11827         (aarch64_fusion_pairs): Base the shifted value on the index instead
11828         Rewrite AARCH64_FUSE_ALL to be based on the end index.
11829         of the argument to AARCH64_FUSION_PAIR.
11830         * config/aarch64/aarch64.c: Remove the last argument to
11831         AARCH64_FUSION_PAIR.
11833 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
11835         * dominance.c (new_zero_array): Define.
11836         (dom_info): Redefine as class with proper encapsulation.
11837         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11838         Add new members.
11839         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
11840         allocations/deallocations.  Pass function as parameter (instead of
11841         using cfun).
11842         (dom_info::get_idom): Define accessor method.
11843         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11844         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
11845         (calculate_dominance_info): Adjust to use dom_info class.
11846         (verify_dominators): Likewise.
11848 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
11850         * print-rtl.c (print_rtx): Check the correct range for
11851         flag_dump_unnumbered_links to behave as documented.
11853         PR rtl-optimization/67227
11854         PR rtl-optimization/64164
11855         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11856         (nonoverlapping_memrefs_p): Test offsets and sizes when given
11857         identical gimple_reg exprs.
11859 2015-08-21  Nathan Sidwell  <nathan@acm.org>
11861         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11862         expansion.
11863         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11864         crtl->stack_alignment_needed to determine alignment.
11865         (nvptx_get_drap_rtx): New.
11866         (TARGET_GET_DRAP_RTX): Override.
11867         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11869 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11871         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11873 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11875         * configure.ac: Remove uwin* cases.
11876         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11877         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11878         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11879         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11880         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11881         i[34567]86-*-uwin*, powerpc-*-beos*.
11883 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
11885         * gencodes.c (gencodes): Print the comma for the preceding
11886         enum value rather than the current one.  Use aliased enum values
11887         rather than #defines for compiled-out patterns.
11888         (main): Update accordingly.  Replace LAST_INSN_CODE with
11889         NUM_INSN_CODES.
11890         * lra.c (insn_code_data): Update accordingly.
11891         (finish_insn_code_data_once, get_static_insn_data): Likewise.
11892         * recog.h (target_recog): Likewise.
11893         (preprocess_insn_constraints): Change parameter to unsigned int.
11894         * recog.c (preprocess_insn_constraints): Likewise.
11895         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11896         * tree-vect-stmts.c (vectorizable_operation): Simplify.
11898 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11900         PR rtl-optimization/61657
11901         * loop-iv.c (iv_number_of_iterations): Declare up and down as
11902         unsigned.  Remove superflous uint64_t cast.
11904 2014-08-21  Felix Yang  <felix.yang@huawei.com>
11905             Jiji Jiang  <jiangjiji@huawei.com>
11907         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11908         argument and get builtin function code directly from CALL.
11909         (gimple_stringop_fixed_value): Modified accordingly.
11910         (gimple_stringops_transform, gimple_stringops_values_to_profile):
11911         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11913 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11915         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11917 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11919         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11920         to match.pd.
11921         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11922         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11923         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11924         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11925         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11926         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11927         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11928         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11929         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11930         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11932         * match.pd (SIN ) : New Operator.
11933         (TAN) : New Operator.
11934         (mult (SQRT@1 @0) @1) : New simplifier.
11935         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11936         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11937         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11938         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11939         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11940         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11941         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11942         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11943         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11944         (rdiv @0 (POW:s @1 @2)) : New simplifier.
11946 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
11948         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11949         loop if EXPR is simplified to const value.
11951 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
11953         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11954         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11956 2015-08-21  Richard Biener  <rguenther@suse.de>
11958         PR middle-end/67285
11959         * gimple-fold.c (replace_stmt_with_simplification): Assert
11960         seq is empty when replacing a call with itself but different
11961         arguments.
11962         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11963         a call require that it is const.
11965 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11967         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11968         * builtins.c (get_object_alignment_2): Adjust.
11969         * varasm.c (align_variable): Likewise.
11970         (get_variable_align): Likewise.
11971         (build_constant_desc): Likewise.
11972         (force_const_mem): Likewise.
11973         * doc/tm.texi.in: Likewise.
11974         * doc/tm.texi: Regenerate.
11976 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11978         * genconfig.c (main): Always define HAVE_cc0.
11979         * recog.c (rest_of_handle_peephole2): Adjust.
11981 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11983         * reorg.c (relax_delay_slots): Don't use #if to check value of
11984         HAVE_cc0.
11986 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11988         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11989         * targhooks.c (default_have_conditional_execution): Adjust.
11991 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11993         * rtl.h (rtvec_all_equal_p): Declare.
11994         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11995         * rtl.c (rtvec_all_equal_p): New function.
11996         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11997         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11998         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11999         * config/arm/arm.c (neon_vdup_constant): Likewise.
12000         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12001         * config/tilegx/constraints.md (W, Y): Likewise.
12002         * config/tilepro/constraints.md (W, Y): Likewise.
12003         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12004         (classify_immediate): Use unwrap_const_vec_duplicate.
12005         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12006         (reg_or_v2s8bit_operand): Likewise.
12007         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12008         (reg_or_v4s8bit_operand): Likewise.
12010 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12012         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12013         (vec_shasigma_be): New #define.
12014         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12015         (VPMSUMH): Likewise.
12016         (VPMSUMW): Likewise.
12017         (VPMSUMD): Likewise.
12018         (VPMSUM): New BU_P8V_OVERLOAD_2.
12019         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12020         entries for VEC_MADD and VEC_VPMSUM.
12022 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
12024         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12025         Multiply argument avr_n_flash by 64 to match unit of "KiB".
12026         (avr_pgm_check_var_decl): Same.
12028 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
12030         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12031         initialization of HFmode scalar type (float16_t) to...
12032         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12033         code.
12035         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12037         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12038         having an -mfp16-format.
12040 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12042         * config/i386/predicates.md (vector_all_ones_operand): Use
12043         CONSTM1_RTX to simplify definition.
12045 2015-08-20  Richard Biener  <rguenther@suse.de>
12047         * toplev.c (compile_file): Remove loop calling late_global_decl
12048         on all symbols.
12049         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12050         on decls we assembled.
12052 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
12054         * common/config/aarch64/aarch64-common.c
12055         (AARCH64_CPU_NAME_LENGTH): Delete.
12056         (aarch64_option_extension): New.
12057         (all_extensions): Likewise.
12058         (processor_name_to_arch): Likewise.
12059         (arch_to_arch_name): Likewise.
12060         (all_cores): New.
12061         (all_architectures): Likewise.
12062         (aarch64_get_extension_string_for_isa_flags): Likewise.
12063         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12064         architecture names.
12065         * config/aarch64/aarch64-protos.h
12066         (aarch64_get_extension_string_for_isa_flags): New.
12067         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12068         (aarch64_option_print): Get the string to print from
12069         aarch64_get_extension_string_for_isa_flags.
12070         (aarch64_declare_function_name): Likewise.
12071         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12072         (MCPU_TO_MARCH_SPEC): This.
12073         (ASM_CPU_SPEC): Use it.
12074         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12075         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12076         (EXTRA_SPEC_FUNCTIONS): Use it.
12078 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
12080         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12081         expansion when !ISA_HAS_LWL_LWR.
12082         (mips_block_move_straight): Update the size of elements copied to
12083         account for alignment when !ISA_HAS_LWL_LWR.
12084         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12086 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12088         * expr.c (expand_expr_real_2): Check gimple statement during
12089         LSHIFT_EXPR expand.
12091 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
12093         * common.opt (fstack-protector): Initialize to -1.
12094         (fstack-protector-all): Likewise.
12095         (fstack-protector-strong): Likewise.
12096         (fstack-protector-explicit): Likewise.
12097         * configure.ac: Add --enable-default-ssp.
12098         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
12099         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12100         -1.
12101         * doc/install.texi: Document --enable-default-ssp.
12102         * config.in: Regenerated.
12103         * configure: Likewise.
12105 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
12107         PR rtl-optimization/64164
12108         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12109         (parm_in_stack_slot_p): ... this.  Disregard mode, what
12110         matters is whether the parm will live in a pseudo or a stack
12111         slot.
12112         (expand_one_ssa_partition): Deal with params without a default
12113         def.  Disregard mode.
12114         * cfgexpand.h: Renamed function declaration.
12115         * tree-ssa-coalesce.c: Adjust.
12116         * function.c (split_complex_args): Allocate stack slot for
12117         unassigned parms before splitting.
12118         (parm_in_unassigned_mem_p): New.  Use it instead of
12119         parm_maybe_byref_p throughout this file.
12120         (assign_parm_setup_block): Use it.  Accept pseudos in the
12121         expand-assigned rtl.
12122         (assign_parm_setup_reg): Drop BLKmode requirement.
12123         (assign_parm_setup_stack): Allocate and fill in the address of
12124         unassigned MEM parms.
12126 2015-08-19  David Sherwood  <david.sherwood@arm.com>
12128         * genmodes.c (emit_mode_unit_size_inline): New function.
12129         (emit_mode_unit_precision_inline): New function.
12130         (emit_insn_modes_h): Emit new #define.  Emit new functions.
12131         (emit_mode_unit_size): New function.
12132         (emit_mode_unit_precision): New function.
12133         (emit_mode_adjustments): Add mode_unit_size adjustments.
12134         (emit_insn_modes_c): Emit new arrays.
12135         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12136         use new inline methods.
12138 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12140         * config/aarch64/aarch64.c (bit_count): Delete prototype
12141         and definition.
12142         (aarch64_print_operand): Use popcount_hwi instead of the above.
12144 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12146         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12147         comment.
12149 2015-08-19  Marek Polacek  <polacek@redhat.com>
12151         PR middle-end/67133
12152         * gimple-ssa-isolate-paths.c
12153         (insert_trap_and_remove_trailing_statements): Rename to ...
12154         (insert_trap): ... this.  Don't remove trailing statements; split
12155         block instead.
12156         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12158 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
12160         PR other/67042
12161         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12162         conditionalize the whole on __GNUC__.  Add fallback code
12163         depending neither on undefined nor implementation-defined behaviour.
12165 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12167         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12168         whitespaces with tab.
12170 2015-08-19  Florian Weimer  <fweimer@redhat.com>
12172         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12173         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12174         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12175         Move Name_Ids instantiation to the Prj.Proc package, to avoid
12176         trampolines.
12178 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12180         * config/arm/arm.c (bounds_check): Use %wd print format
12181         for HOST_WIDE_INT arguments.
12183 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
12185         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12186         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12187         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12188         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12189         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12190         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12191         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12192         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12193         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12194         typedefs.
12196 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
12198         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12199         function.c, graphite-scop-detection.c, haifa-sched.c,
12200         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12201         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12202         varasm.c: Remove typedefs of structs.
12204 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
12206         * config/rs6000/altivec.h (vec_adde): New define.
12207         (vec_addec): Likewise.
12208         (vec_double): Likewise.
12209         (vec_bperm): Likewise.
12210         (vec_gb): Likewise.
12211         * config/rs6000/rs6000-builtin.def (ADDE): New
12212         BU_ALTIVEC_OVERLOAD_3.
12213         (ADDEC): Likewise.
12214         (DOUBLE): New BU_VSX_OVERLOAD_1.
12215         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12216         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12217         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12218         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12219         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12220         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12221         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12222         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12223         and P8V_BUILTIN_VEC_VBPERMQ.
12225 2015-08-18  Jason Merrill  <jason@redhat.com>
12227         * print-tree.c (print_node): Handle TREE_BINFO.
12229 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12231         PR middle-end/36757
12232         * builtins.c (expand_builtin_signbit): Add asserts to make sure
12233         we can expand BUILT_IN_SIGNBIT inline.
12234         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12235         * doc/extend.texi: Document the type-generic __builtin_signbit.
12237 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
12239         PR rtl-optimization/67218
12240         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12241         (simplify_unary_operation_1): Use it.
12243 2015-08-18  Marek Polacek  <polacek@redhat.com>
12245         PR middle-end/67222
12246         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12247         if the call isn't valid.
12248         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12249         gimple_call_builtin_p.
12250         (call_may_clobber_ref_p_1): Likewise.
12251         (stmt_kills_ref_p): Likewise.
12253 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12255         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12256         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12257         (mips_hard_regno_scratch_ok): Likewise.
12258         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12259         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12261 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
12263         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12264         (determine_value_range): Call refine_value_range_using_guard for
12265         each loop initial condition to improve value range.
12267 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
12269         * config/i386/i386.c: Remove include of fibheap.h.
12271 2015-08-17  Richard Biener  <rguenther@suse.de>
12273         PR tree-optimization/67221
12274         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12275         (sccvn_dom_walker::before_dom_children): Mark backedges of
12276         non-executable blocks as not executable.
12278 2015-08-17  David Sherwood  <david.sherwood@arm.com>
12280         * config/arm/arm.c (neon_element_bits): Replace call to
12281         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12282         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12283         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12284         (neon_vdup_lane<mode>): Likewise.
12285         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12286         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12287         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12288         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12289         * config/spu/spu.c (arith_immediate_p): Likewise.
12290         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12291         * expr.c (expand_expr_real_2): Likewise.
12292         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12293         * simplify-rtx.c (simplify_immed_subreg): Likewise.
12294         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12295         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12296         New variable.
12297         * fold-const.c (fold_binary_loc): Replace call to
12298         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12299         GET_MODE_UNIT_PRECISION (m).
12301 2015-08-17  Mike Stump  <mikestump@comcast.net>
12303         * config/arm/arm.c (arm_block_move_unaligned_straight):
12304         Emit normal move instead of unaligned load when source or destination
12305         are appropriately aligned.
12307 2015-08-17  Richard Biener  <rguenther@suse.de>
12308             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12310         PR middle-end/16107
12311         * match.pd (div (coss (op @0) : New simplifier.
12313 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
12315         PR rtl-optimization/64164
12316         PR bootstrap/66978
12317         PR middle-end/66983
12318         PR rtl-optimization/67000
12319         PR middle-end/67034
12320         PR middle-end/67035
12321         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12322         * tree-ssa-copyrename.c: Removed.
12323         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12324         -ftree-coalesce-vars.
12325         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12326         * common.opt (ftree-copyrename): Ignore.
12327         (ftree-coalesce-inlined-vars): Likewise.
12328         * doc/invoke.texi: Remove the ignored options above.
12329         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12330         * tree-ssa-coalesce.h: ... here.
12331         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12332         headers required by it.
12333         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12334         across variables when flag_tree_coalesce_vars.  Check register
12335         use and promoted modes to allow coalescing.  Do not coalesce
12336         maybe-byref parms with SSA_NAMEs of other variables, or
12337         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
12338         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12339         with its member functions to tree-ssa-coalesce.c.
12340         (var_map_base_init): Likewise.  Renamed to
12341         compute_samebase_partition_bases.
12342         (partition_view_normal): Drop want_bases parameter.
12343         (partition_view_bitmap): Likewise.
12344         * tree-ssa-live.h: Adjust declarations.
12345         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12346         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12347         default defs at the entry point.
12348         (dump_part_var_map): New.
12349         (compute_optimized_partition_bases): New, called by...
12350         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12351         of compute_samebase_partition_bases.  Adjust.
12352         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12353         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12354         (ssa_default_def_partition): New.
12355         (get_rtl_for_parm_ssa_default_def): New.
12356         (align_local_variable, add_stack_var): Support anonymous SSA
12357         names.
12358         (defer_stack_allocation): Likewise.  Declare earlier.
12359         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12360         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12361         Do no record deferred-allocation marker in
12362         SA.partition_to_pseudo.
12363         (expand_stack_vars): Adjust check for the marker in it.
12364         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12365         redundant MEM attr setting.
12366         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12367         from...
12368         (expand_one_stack_var): ... this.  New wrapper to check and
12369         skip already expanded SSA partitions.
12370         (record_alignment_for_reg_var): New, factored out of...
12371         (expand_one_var): ... this.
12372         (expand_one_ssa_partition): New.
12373         (adjust_one_expanded_partition_var): New.
12374         (expand_one_register_var): Check and skip already expanded SSA
12375         partitions.
12376         (expand_used_vars): Don't create DECLs for anonymous SSA
12377         names.  Expand all SSA partitions, then adjust all SSA names.
12378         (pass::execute): Replace the loops that set
12379         SA.partition_to_pseudo from partition leaders and cleared
12380         DECL_RTL for multi-location variables, and that which used to
12381         rename vars and set attrs, with one that clears DECL_RTL and
12382         checks that PARMs and RESULTs default_defs match DECL_RTL.
12383         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12384         * emit-rtl.c: Include stor-layout.h.
12385         (set_reg_attrs_for_parm): Handle NULL decl.
12386         (set_reg_attrs_for_decl_rtl): Take mode from expression if
12387         it's not a DECL.
12388         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12389         rather than its possibly-NULL DECL.
12390         * explow.c (promote_ssa_mode): New.
12391         * explow.h (promote_ssa_mode): Declare.
12392         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12393         (read_complex_part): Export.
12394         * expr.h (read_complex_part): Declare.
12395         * cfgexpand.h (parm_maybe_byref_p): Declare.
12396         * function.c: Include cfgexpand.h.
12397         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12398         (use_register_for_parm_decl): Wrapper for the above to
12399         special-case the result_ptr.
12400         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12401         (split_complex_args): Take assign_parm_data_all argument.
12402         Pass it to rtl_for_parm.  Set up rtl and context for split
12403         args.  Reset complex parm before fetching its default decl
12404         rtl.
12405         (assign_parms_unsplit_complex): Use the default-def complex
12406         parm rtl if it matches the components.
12407         (assign_parms_augmented_arg_list): Adjust.
12408         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12409         multiple locations.  Recognize split complex args.
12410         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12411         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12412         (assign_parm_setup_block): Prefer SSA-assigned location, and
12413         fill in its address if the memory location of a maybe-byref
12414         parm was not assigned by cfgexpand.
12415         (assign_parm_setup_reg): Likewise.  Adjust its mode as
12416         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
12417         sure passed_pointer parms don't need conversion.  Copy address
12418         or value as needed.
12419         (assign_parm_setup_stack): Prefer SSA-assigned location.
12420         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12421         rtl before testing for pointer bounds.  Special-case result_ptr.
12422         (expand_function_start): Maybe reset DECL_RTL of result.
12423         Prefer SSA-assigned location for result and static chain.
12424         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
12425         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
12426         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12427         anonymous SSA names.  Use promote_ssa_mode.
12428         (get_temp_reg): Likewise.
12429         (remove_ssa_form): Adjust.
12430         * stor-layout.c (layout_decl): Don't set mem attributes of
12431         non-MEMs.
12432         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12433         and get its reg_usage for reg invalidation.
12434         (compute_bb_dataflow): Pass it insn.
12435         (emit_notes_in_bb): Likewise.
12437 2015-08-14  Marek Polacek  <polacek@redhat.com>
12439         * tree-core.h (tree_base): Fix typo.
12441 2015-08-14  Marek Polacek  <polacek@redhat.com>
12443         PR middle-end/67133
12444         * gimple.c (infer_nonnull_range_by_attribute): Check that the
12445         nonnull argument position is not outside function arguments.
12447 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
12449         PR target/67143
12450         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12451         'lconst_atomic' with 'const_atomic'.
12452         (atomic_fetch_<optab><mode>): Likewise.
12453         (atomic_<optab>_fetch<mode>): Likewise.
12454         * config/aarch64/iterators.md (lconst-atomic): Move below
12455         'const_atomic'.
12456         (const_atomic): New.
12458 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
12459             Bernd Schmidt  <bernds@codesourcery.com>
12461         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12462         debug options.
12463         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12464         (DWARF2_DEBUGGING_INFO): Don't define.
12465         * debug.h (dwarf2_lineno_debug_hooks): Declare.
12466         * toplev.c (process_options): Add a case for it.
12467         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12468         (dwarf2out_init): Skip most initializations if
12469         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12470         case.
12471         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12472         DWARF2_LINENO_DEBUGGING_INFO.
12473         * opts.c (set_debug_level): Likewise.
12475 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
12477         * config/arm/types.md (is_neon_type): Add missing types.
12479 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12481         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12482         for skylake.
12483         * config/i386/i386.c (PTA_SKYLAKE): New macros.
12484         (processor_alias_table): Add skylake description.
12485         (enum processor_model): Add skylake processor.
12486         (arch_names_table): Add skylake record.
12487         * doc/invoke.texi: Add skylake item.
12489 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
12491         * ira-int.h: Include recog.h.
12492         * ira-build.c: Don't include recog.h.
12493         * ira-color.c: Likewise.
12494         * ira-conflicts.c: Likewise.
12495         * ira-costs.c: Likewise.
12496         * ira-emit.c: Likewise.
12497         * ira-lives.c: Likewise.
12498         * ira.c: Likewise.
12499         * sched-deps.c: Likewise.
12500         * sel-sched.c: Likewise.
12501         * target-globals.c: Likewise.
12503 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12505         PR bootstrap/55035
12506         * reload1.c (elimination_costs_in_insn): Make it obvious to the
12507         compiler that the n_dups and n_operands loop bounds are invariant.
12509 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12511         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12512         expressions in A and B.
12514 2015-08-13  Richard Biener  <rguenther@suse.de>
12516         * tree.c (nonnull_arg_p): Move from ...
12517         * tree-vrp.c (nonnull_arg_p): ... here.
12518         * tree.h (nonnull_arg_p): Declare.
12519         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12520         here, register ptr != 0 for nonnull_arg_p pointer arguments.
12521         Properly initialize static chain and by-reference result pointer.
12522         (run_scc_vn): Adjust.
12524 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12526         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12527         TUNE_I6400.
12529 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12531         * config/aarch64/aarch64-protos.h
12532         (aarch64_gen_atomic_cas): Declare.
12533         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12534         Choose appropriate instruction pattern for the target.
12535         (aarch64_gen_atomic_cas): New.
12536         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12537         (atomic_compare_and_swap<mode>_1): Rename to
12538         aarch64_compare_and_swap<mode>.  Fix some indentation.
12539         (aarch64_compare_and_swap<mode>_lse): New.
12540         (aarch64_atomic_cas<mode>): New.
12542 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12544         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12545         (TARGET_LSE): New.
12547 2015-08-13  Richard Biener  <rguenther@suse.de>
12549         PR tree-optimization/67191
12550         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12551         assert we value-numbered last stmts operand because it can validly
12552         trigger for unreachable code.
12554 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12556         PR rtl-optimization/67103
12557         * ifcvt.c (noce_try_store_flag_constants): Move
12558         x = (-(test != 0) & (b - a)) + a transformation to...
12559         (noce_try_cmove): ... Here.  Try it if normal conditional
12560         move fails.
12562 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12564         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12565         pseudo-processors.
12566         * config/mips/mips.md (processor): Remove w32 and w64.
12568 2015-08-13  Richard Biener  <rguenther@suse.de>
12570         PR tree-optimization/66502
12571         PR tree-optimization/67167
12572         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12573         backedge arguments.
12574         (vn_phi_lookup): Adjust.
12575         (vn_phi_insert): Likewise.
12576         (visit_phi): Prefer to value-number to another PHI node
12577         over value-numbering to a PHI argument.
12578         (init_scc_vn): Mark DFS back edges.
12580 2015-08-13  Richard Biener  <rguenther@suse.de>
12582         * gimple.h (gcall::code_): New constant static member.
12583         (gcond::code_): Likewise.
12584         * gimple.c (gcall::code_): Define.
12585         (gcond::code_): Likewise.
12586         (is_a_helper <const gcond *>): Add.
12587         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12588         and forward to a new gcall overload with less checking and a
12589         cheaper way to access the operand.
12590         (gimple_call_lhs_ptr): Likewise.
12591         (gimple_call_set_lhs): Likewise.
12592         (gimple_call_internal_p): Likewise.
12593         (gimple_call_with_bounds_p): Likewise.
12594         (gimple_call_set_with_bounds): Likewise.
12595         (gimple_call_internal_fn): Likewise.
12596         (gimple_call_set_ctrl_altering): Likewise.
12597         (gimple_call_ctrl_altering_p): Likewise.
12598         (gimple_call_fntype): Likewise.
12599         (gimple_call_fn): Likewise.
12600         (gimple_call_fn_ptr): Likewise.
12601         (gimple_call_set_fndecl): Likewise.
12602         (gimple_call_fndecl): Likewise.
12603         (gimple_call_chain): Likewise.
12604         (gimple_call_num_args): Likewise.
12605         (gimple_call_arg): Likewise.
12606         (gimple_call_arg_ptr): Likewise.
12607         (gimple_call_set_arg): Likewise.
12608         (gimple_call_noreturn_p): Likewise.
12609         (gimple_cond_code): Likewise.
12610         (gimple_cond_lhs): Likewise.
12611         (gimple_cond_rhs): Likewise.
12612         (gimple_has_lhs): Reduce checking.
12614 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12616         PR middle-end/25529
12617         * match.pd (div (mult @0 @1) @1) : New simplifier.
12619 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12621         PR target/67071
12622         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12623         predicate to allow construction of vector constants using the
12624         VSLDOI vector shift instruction.
12626         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12627         declaration.
12629         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12630         the number of bytes to be shifted left and filled in with either
12631         all zero or all one bits.
12632         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12633         methods exist.
12634         (output_vec_const_move): On power8, generate XXLORC to generate
12635         a vector constant with all 1's. Do a split if we need to use a
12636         VSLDOI instruction.
12638         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12639         properly test for the MSB.
12641         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12642         vector constants that can be created with VSLDOI.
12644 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
12646         revert:
12647         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12648         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12649         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12650         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12651         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12652         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12653         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12654         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12655         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12657 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
12659         * config/xtensa/constraints.md (define_constraint "Y"): New
12660         constraint.
12661         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12662         * config/xtensa/linux.h (ASM_SPEC): Likewise.
12663         * config/xtensa/predicates.md (move_operand): Match constants
12664         and symbols in the presence of TARGET_AUTO_LITPOOLS.
12665         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12666         immediate references to TLS data.
12667         (xtensa_emit_move_sequence): Don't force constants to memory in
12668         the presence of TARGET_AUTO_LITPOOLS.
12669         (print_operand): Add 'y' format, same as default, but capable of
12670         printing SF mode constants as well.
12671         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12672         (movsf_internal): Add movi pattern that loads literal.
12673         (movsf, movdf): Don't force constants to memory in the presence
12674         of TARGET_AUTO_LITPOOLS.
12675         (movdf_internal): Add 'Y' constraint.
12676         * config/xtensa/xtensa.opt (mauto-litpools): New option.
12677         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12679 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12681         * config/arm/arm-fpus.def: Replace booleans with feature flags.
12682         Update comment.
12683         * config/arm/arm.c (ARM_FPU): Update macro.
12684         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12685         (TARGET_FP16): Likewise.
12686         (TARGET_CRYPTO): Likewise.
12687         (TARGET_NEON): Likewise.
12688         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
12689         field features.
12691 2015-08-12  Tom de Vries  <tom@codesourcery.com>
12693         PR other/67092
12694         PR other/67098
12695         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
12696         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12697         accordingly.  Mention default for --with-stage1-ldflags.
12699 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12701         * config/arm/arm.h (arm_fpu_feature_set): New.
12702         (ARM_FPU_FSET_HAS): New.
12703         (FPU_FL_NONE): New.
12704         (FPU_FL_NEON): New.
12705         (FPU_FL_FP16): New.
12706         (FPU_FL_CRYPTO): New.
12708 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12710         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12711         after -mcmodel=large -fPIC sorry.
12713 2015-08-12  Richard Biener  <rguenther@suse.de>
12715         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12716         comparison operand order and commutative ternary op operand order.
12717         (sccvn_dom_walker::cond_stack): New state to track temporary
12718         expressions.
12719         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12720         no longer valid.
12721         (sccvn_dom_walker::record_cond): Add a single temporary conditional
12722         expression.
12723         (sccvn_dom_walker::record_conds): Add a temporary conditional
12724         expressions and all related expressions also true/false.
12725         (sccvn_dom_walker::before_dom_children): Record temporary
12726         expressions based on the controlling condition of a single
12727         predecessor.  When trying to simplify a conditional statement
12728         lookup expressions we might have inserted earlier.
12730 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
12732         PR target/67127
12733         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12734         to ARM core registers.
12736 2015-08-12  Nathan Sidwell  <nathan@acm.org>
12738         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12739         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12741 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
12743         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12744         line with comments.
12745         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12747 2015-08-12  Richard Biener  <rguenther@suse.de>
12749         * gimple.h (remove_pointer): New trait.
12750         (GIMPLE_CHECK2): New inline template function.
12751         (gassign::code_): New constant static member.
12752         (is_a_helper<const gassign *>): Add.
12753         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12754         and forward to a new gassign overload with less checking and a
12755         cheaper way to access the operand.
12756         (gimple_assign_lhs_ptr): Likewise.
12757         (gimple_assign_set_lhs): Likewise.
12758         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12759         Likewise.
12760         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12761         Likewise.
12762         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12763         Likewise.
12764         (gimple_assign_rhs_code): Likewise.
12765         * gimple.c (gassign::code_): Define.
12767 2015-08-12  Richard Biener  <rguenther@suse.de>
12769         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12770         Eliminate edges marked as not executable by SCCVN.
12771         * tree-ssa-sccvn.c: Include gimple-iterator.h.
12772         (cond_dom_walker): Rename to sccvn_dom_walker.
12773         (sccvn_dom_walker::before_dom_children): Value-number defs
12774         of all stmts.
12775         (run_scc_vn): Remove loop value-numbering all SSA names.
12776         Drop not visited SSA names to varying.
12778 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
12780         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12781         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12782         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12783         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12784         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12785         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12786         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12787         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12788         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12790 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
12792         PR target/66954
12793         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12794         to enum feature_priority and feature_list.
12795         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12796         and isa_names_table.
12798 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
12800         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12801         vect_induction_def.
12803 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12805         PR c/66098
12806         PR c/66711
12807         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12808         account when deciding what was the command-line status.
12810 2015-08-11  Nathan Sidwell  <nathan@acm.org>
12812         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12814         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12815         we're not the only contributor to target phi.
12817 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
12819         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12820         FIXED_REG0.
12822 2015-08-11  Tom de Vries  <tom@codesourcery.com>
12824         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12826 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
12828         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12829         with CPU_SLM.
12830         * config/i386/i386.md (cpu): Remove knl.
12832 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12834         PR libgomp/65742
12835         PR middle-end/66332
12836         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12837         open-coded sequence.
12838         * omp-low.c (oacc_process_reduction_data): Remove handline of
12839         GOMP_DEVICE_HOST_NONSHM.
12841         * lto-streamer-in.c (lto_input_mode_table): Adjust to
12842         GET_MODE_INNER changes.
12844 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12845             Ilya Verbin  <ilya.verbin@intel.com>
12847         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12849 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12851         * doc/options.texi (EnabledBy): Document that the argument must be
12852         a Common option.
12853         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12854         Not enabled by -Wall.
12855         * optc-gen.awk: Give nicer error messages. Detect if the argument
12856         of EnabledBy is not a Common option.
12857         * common.opt (Wnull-dereference): Not enabled by -Wall.
12858         * opt-functions.awk (lang_enabled_by): Nicer error messages.
12860 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12862         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12863         model == 0x4f as Broadwell.
12865 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
12867         PR rtl-optimization/67028
12868         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
12869         Add test to see if a const_int fits in the new mode.
12871 2015-08-07  DJ Delorie  <dj@redhat.com>
12873         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12875 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
12877         PR rtl-optimization/67029
12878         * ira-color.c: Include "recog.h" before including "ira-int.h".
12879         * target-globals.c: Likewise.
12880         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12881         adds an alternative_mask argument and use it instead of
12882         preferred_alternatives.
12883         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12884         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12885         * sched-deps.c: Include "ira-int.h" after including "ira.h".
12886         (sched_analyze_insn): Update call to
12887         ira_implicitly_set_insn_hard_regs.
12888         * sel-sched.c: Include "ira-int.h" after including "ira.h".
12889         (implicit_clobber_conflict_p): Update call to
12890         ira_implicitly_set_insn_hard_regs.
12892 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12894         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12896 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12898         PR target/67002
12899         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12900         currently_expanding_to_rtl is set.
12902 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
12904         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12905         * configure: Regenerate.
12907 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12908             Jiong Wang  <jiong.wang@arm.com>
12910         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12911         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12912         (REG_CLASS_NAMES): Likewise.
12913         (REG_CLASS_CONTENTS): Likewise.
12914         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12915         (aarch64_register_move_cost): Likewise.
12916         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12917         possible.
12918         * config/aarch64/constraints.md (Uc0): New constraint.
12920 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12922         * config/aarch64/constraints.md (Usf): Add the test of
12923         aarch64_is_noplt_call_p.
12925 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12927         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12928         declaration.
12929         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12930         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12931         (call_symbol): Likewise.
12933 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12935         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12936         for vectorizing multiplication patterns.
12937         * tree-vectorizer.h: Adjust the number of patterns.
12939 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12941         * config/i386/sse.md (*vec_concatv2df): Declare added
12942         alternatives as sselog type.
12944 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12946         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12947         all GPRs.
12949 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12951         * config/s390/s390.c (s390_expand_tbegin): Expand either
12952         tbegin_1_z13 or tbegin_1 depending on VX flag.
12953         * config/s390/s390.md ("tbegin_1_z13"): New expander.
12955 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12957         * config/s390/s390.opt: Clarify description for -mzvector
12958         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12959         -mzvector.
12961 2015-08-06  Richard Biener  <rguenther@suse.de>
12963         * gimple.h (gimple_call_set_fn): Access op member directly.
12964         (gimple_call_chain_ptr): Likewise.
12965         (gimple_call_set_chain): Likewise.
12966         (gimple_cond_lhs_ptr): Likewise.
12967         (gimple_cond_set_lhs): Likewise.
12968         (gimple_cond_rhs_ptr): Likewise.
12969         (gimple_cond_set_rhs): Likewise.
12970         (gimple_cond_true_label): Likewise.
12971         (gimple_cond_set_true_label): Likewise.
12972         (gimple_cond_set_false_label): Likewise.
12973         (gimple_cond_false_label): Likewise.
12974         (gimple_label_label): Likewise.
12975         (gimple_label_set_label): Likewise.
12976         (gimple_goto_set_dest): Likewise.
12977         (gimple_asm_input_op): Likewise.
12978         (gimple_asm_input_op_ptr): Likewise.
12979         (gimple_asm_set_input_op): Likewise.
12980         (gimple_asm_output_op): Likewise.
12981         (gimple_asm_output_op_ptr): Likewise.
12982         (gimple_asm_set_output_op): Likewise.
12983         (gimple_asm_clobber_op): Likewise.
12984         (gimple_asm_set_clobber_op): Likewise.
12985         (gimple_asm_label_op): Likewise.
12986         (gimple_asm_set_label_op): Likewise.
12987         (gimple_switch_index): Likewise.
12988         (gimple_switch_index_ptr): Likewise.
12989         (gimple_return_retval_ptr): Likewise.
12990         (gimple_return_retval): Likewise.
12991         (gimple_return_set_retval): Likewise.
12992         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
12993         (gimple_switch_label): Likewise.
12994         (gimple_switch_set_label): Likewise.
12996 2015-08-06  Richard Biener  <rguenther@suse.de>
12998         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12999         bool comparison canonicalization and restrict to integers.
13001 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
13003         * coretypes.h (enum symbol_visibility): Relocate here.
13004         * flag-types.h (enum symbol_visibility): Remove.
13005         * tree-core.h (enum symbol_visibility): Remove.
13007 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
13009         PR target/66870
13010         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13011         for no_split_stack function attribute along with
13012         flag_split_stack.
13013         (rs6000_expand_split_stack_prologue): Likewise.
13015 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13016             Jeff Law  <law@redhat.com>
13018         PR c/16351
13019         * doc/invoke.texi (Wnull-dereference): New.
13020         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13021         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13022         Warn for potential NULL dereferences.
13023         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13024         * ubsan.c (instrument_nonnull_arg): Call
13025         infer_nonnull_range_by_attribute.
13026         (instrument_nonnull_return): Likewise.
13027         * common.opt (Wnull-dereference); New.
13028         * gimple.c (infer_nonnull_range): Remove bool arguments.
13029         (infer_nonnull_range_by_dereference): New.
13030         (infer_nonnull_range_by_attribute): New.
13031         * gimple.h: Update declarations.
13033 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13035         * gensupport.c (sequence_num): Replace with...
13036         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13037         ...these new variables.
13038         (init_rtx_reader_args_cb): Update accordingly.
13039         (get_num_code_insns): Likewise.
13040         (read_md_rtx): Rework to use a while loop and get_c_test.
13041         Use the new counters.  Remove redundant DEFINE_SUBST case.
13042         * genoutput.c (gen_split): Delete.
13043         (main): Don't call it.
13045 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13047         * gensupport.h (get_c_test): Declare.
13048         * gensupport.c (get_c_test): New function.
13049         * genconditions.c (main): Use it.
13050         * genrecog.c (validate_pattern): Likewise.
13051         (match_pattern_1): Likewise.  Remove c_test argument.
13052         (match_pattern): Update accordingly and remove c_test argument.
13053         (main): Update accordingly.
13055 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13057         * gensupport.h (get_num_insn_codes): Declare.
13058         * gensupport.c (get_num_insn_codes): New function.
13059         * genattrtab.c (optimize_attrs): Rename max_insn_code to
13060         num_insn_codes.
13061         (main): Likewise.  Use get_num_insn_codes.
13062         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13064 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13066         PR middle-end/66311
13067         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13068         is zero- rather than sign-extended.
13070 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13072         * target-insns.def (can_extend): Delete.
13074 2015-08-05  Richard Biener  <rguenther@suse.de>
13076         PR tree-optimization/67121
13077         * tree-if-conv.c (combine_blocks): Clear range-info produced
13078         by stmts no longer executed conditionally.
13080 2015-08-05  Nick Clifton  <nickc@redhat.com>
13082         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13083         to allow identical far pointers to remain.
13085 2015-08-05  Richard Biener  <rguenther@suse.de>
13087         PR middle-end/67120
13088         * match.pd: Compare address bases with == if they are decls
13089         or SSA names, not operand_equal_p.  Otherwise fail.
13091 2015-08-05  Richard Biener  <rguenther@suse.de>
13093         PR tree-optimization/67055
13094         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13095         NULL gimple_block.
13097         * g++.dg/torture/pr67055.C: New testcase.
13099 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13101         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13102         noavx512vl.
13103         (define_attr "enabled"): Handle avx521vl and noavx512vl.
13104         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13105         AVX-512 alternative out of SSE.
13106         (define_insn "*vec_concatv2df"): Ditto.
13108 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13110         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13111         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13112         CODE_FOR_avx_ptestv4di.
13113         * config/i386/sse.md (define_mode_iterator V_AVX): New.
13114         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13115         (define_insn "avx_ptest256"): Merge this ...
13116         (define_insn "sse4_1_ptest"): And this ...
13117         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13119 2015-08-05  Richard Biener  <rguenther@suse.de>
13121         PR tree-optimization/67109
13122         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13123         against too big groups.  Print whether this is a load or store
13124         group.  Rename from ...
13125         (vect_analyze_group_access): ... this which is now a wrapper
13126         dissolving an invalid group.
13127         (vect_analyze_data_ref_accesses): Print whether this is a load
13128         or store group.
13130 2015-08-05  Richard Biener  <rguenther@suse.de>
13132         PR middle-end/67107
13133         * match.pd: Guard const_binop result checking against NULL_TREE
13134         result.
13136 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
13138         * cse.c (cse_insn): Restoring old behaviour for src_eqv
13139          when dest and value in the REG_EQUAL are same and dest
13140          is STRICT_LOW_PART.
13142 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
13144         * config/moxie/moxie.h (PRINT_OPERAND,
13145           PRINT_OPERAND_ADDRESS): Remove macros.
13146         * config/moxie/moxie-protos.h (moxie_print_operand,
13147           moxie_print_operand_address): Remove declaration.
13148         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13149           TARGET_PRINT_OPERAND_ADDRESS): Define.
13150           (moxie_print_operand, moxie_print_operand_address): Make static.
13152 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13154         PR target/66731
13155         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13156         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13158 2015-08-04  Richard Biener  <rguenther@suse.de>
13160         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13161         generated code.
13162         (dt_operand::gen_gimple_expr): Adjust.
13164 2015-08-04  Richard Biener  <rguenther@suse.de>
13166         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13167         bool compares on RHS.
13168         * match.pd: Add X ==/!= !X is false/true pattern.
13170 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
13172         * config/aarch64/aarch64.c: Change inner loop statement cost
13173         to be consistent with other targets.
13175 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
13177         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13178         targets.
13180 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
13182         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13183         (machine_function): Remove pseudos field.
13185 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13187         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13188         Exit early and use target_option_current_node if processing current
13189         pragma.
13191 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13193         * doc/extend.texi (AArch64 Function Attributes): New node.
13194         (AArch64 Pragmas): Likewise.
13196 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13198         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13199         Initialize simd builtins if TARGET_SIMD.
13200         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13201         Make sure that the builtins are initialized only once no matter how
13202         many times the function is called.
13203         (aarch64_init_builtins): Unconditionally initialize crc builtins.
13204         (aarch64_relayout_simd_param): New function.
13205         (aarch64_simd_expand_args): Use above during argument expansion.
13206         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13207         simd builtins if TARGET_SIMD.
13208         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13209         prototype.
13210         (aarch64_relayout_simd_types): Likewise.
13212 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13214         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13215         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13216         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13217         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13218         static keyword.
13219         (aarch64_reset_previous_fndecl): New function.
13220         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13221         the string.
13222         * config/aarch64/aarch64-c.c: New file.
13223         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13224         Push and pop options at beginning and end.  Remove ifdef
13225         __ARM_FEATURE_CRC32.
13226         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13227         Add pragma +nothing+simd and +nothing+crypto where appropriate.
13228         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13229         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13230         Define prototype.
13231         (aarch64_register_pragmas): Likewise.
13232         (aarch64_reset_previous_fndecl): Likewise.
13233         (aarch64_process_target_attr): Likewise.
13234         (aarch64_override_options_internal): Likewise.
13236 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13238         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13239         New function.
13240         (aarch64_can_inline_p): Likewise.
13241         (TARGET_CAN_INLINE_P): Define.
13243 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13245         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13246         Remove static.  Handle OPT_mgeneral_regs_only,
13247         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13248         OPT_momit_leaf_frame_pointer.
13249         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13250         (aarch64_attr_opt_type): New enum.
13251         (aarch64_attribute_info): New struct.
13252         (aarch64_handle_attr_arch): New function.
13253         (aarch64_handle_attr_cpu): Likewise.
13254         (aarch64_handle_attr_tune): Likewise.
13255         (aarch64_handle_attr_isa_flags): Likewise.
13256         (aarch64_attributes): New table.
13257         (aarch64_process_one_target_attr): New function.
13258         (num_occurences_in_str): Likewise.
13259         (aarch64_process_target_attr): Likewise.
13260         (aarch64_option_valid_attribute_p): Likewise.
13261         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13262         * config/aarch64/aarch64-protos.h: Include input.h
13263         (aarch64_handle_option): Declare prototype.
13265 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13267         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13268         * config/aarch64/aarch64.c: Include target-globals.h
13269         (aarch64_previous_fndecl): New variable.
13270         (aarch64_set_current_function): New function.
13271         (TARGET_SET_CURRENT_FUNCTION): Define.
13273 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13275         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13276         (explicit_arch): Likewise.
13277         (x_aarch64_isa_flags): Likewise.
13278         (mgeneral-regs-only): Mark as Save.
13279         (mfix-cortex-a53-835769): Likewise.
13280         (mcmodel=): Likewise.
13281         (mstrict-align): Likewise.
13282         (momit-leaf-frame-pointer): Likewise.
13283         (mtls-dialect): Likewise.
13284         (master=): Likewise.
13285         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13286         (aarch64_isa_flags): Remove extern declaration.
13287         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13288         to indicate success or failure.
13289         (aarch64_validate_march): Likewise.
13290         (aarch64_validate_mtune): Likewise.
13291         (aarch64_isa_flags): Delete.
13292         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13293         instead of aarch64_isa_flags.
13294         (aarch64_get_tune_cpu): New function.
13295         (aarch64_get_arch): Likewise.
13296         (aarch64_override_options): Use above and set up explicit_tune_core
13297         and explicit_arch.
13298         (aarch64_print_extension): Move earlier in file.  Add isa_flags
13299         argument and use that instead of the global aarch64_isa_flags.
13300         (aarch64_option_save): New function.
13301         (aarch64_option_restore): Likewise.
13302         (aarch64_option_print): Likewise.
13303         (aarch64_declare_function_name): Likewise.
13304         (aarch64_start_file): Delete.
13305         (TARGET_ASM_FILE_START): Do not define.
13306         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13307         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13308         Declare prototype.
13310 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13312         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13313         flag_omit_leaf_frame_pointer to 2.
13315 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13317         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13318         define to 0 or 1.
13319         (TARGET_FIX_ERR_A53_835769): New macro.
13320         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13321         handling of opts->x_aarch64_fix_a53_err835769.
13322         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13323         than aarch64_fix_a53_err835769.
13324         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13325         * config/aarch64/aarch64-linux.h: Likewise.
13327 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
13329         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13330         ix86_expand_int_movcc as boolean.
13332 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13334         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13335         (aarch64_cpu_string): Likewise.
13336         (aarch64_tune_string): Likewise.
13337         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13338         (aarch64_parse_extension): Return aarch64_parse_opt_result.
13339         Add extra argument to put result into.
13340         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
13341         (aarch64_parse_cpu): Add arguments to put results into. Return
13342         aarch64_parse_opt_result.
13343         (aarch64_parse_tune): Likewise.
13344         (aarch64_override_options_after_change_1): New function.
13345         (aarch64_override_options_internal): New function.
13346         (aarch64_validate_mcpu): Likewise.
13347         (aarch64_validate_march): Likewise.
13348         (aarch64_validate_mtune): Likewise.
13349         (aarch64_override_options): Update to reflect above changes.
13350         Move some logic into aarch64_override_options_internal.
13351         Initialize target_option_default_node and target_option_current_node.
13352         (aarch64_override_options_after_change): Move logic into
13353         aarch64_override_options_after_change_1 and call it with global_options.
13354         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13355         flag values from that.
13357 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13359         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13360         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13361         * config/aarch64/aarch64.c (struct processor): Add arch field.
13362         (all_architectures): Handle above, move above all_cores.
13363         (all_cores): Handle above.
13364         (aarch64_parse_arch): Handle above changes.
13365         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13366         above.  Update comments.
13367         (armv8.1-a): Likewise.
13368         * config/aarch64/aarch64-cores.def: Update according to above.
13369         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13370         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13371         aarch64_arch_driver_info.
13373 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13375         * config/aarch64/aarch64.c (struct processor): Add ident field.
13376         Rename core sched_core.
13377         (all_cores): Handle above changes.
13378         (all_architectures): Likewise.
13379         (aarch64_parse_arch): Likewise.
13380         (aarch64_override_options): Likewise.
13382 2015-08-04  Richard Biener  <rguenther@suse.de>
13384         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13385         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13386         comparisons embedded in [VEC_]COND_EXPRs.
13388 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
13390         * tree-if-conv.c: Fix various typos in comments.
13391         * tree-vect-stmts.c: Likewise.
13393 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13395         PR tree-optimization/67043
13396         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13397         preheader after hoisting invariant in it.
13398         (find_defs): Force recomputation of all luids.
13400 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
13402         * config/rs6000/htm.md (tabort.): Restrict the source operand to
13403         using a base register.
13405 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
13407         * main.c (main): Pass in NULL for toplev's external_timer.
13408         * timevar.c: Include coretypes.h.
13409         (class timer::named_items): New.
13410         (timer::named_items::named_items): New.
13411         (timer::named_items::~named_items): New.
13412         (timer::named_items::push): New.
13413         (timer::named_items::pop): New.
13414         (timer::named_items::print): New.
13415         (timer::timer): Initialize field "m_jit_client_items".
13416         (timer::~timer): New.
13417         (timer::push): Move bulk of implementation to...
13418         (timer::push_internal): ...here.  New function.
13419         (timer::pop): Move bulk of implementation to...
13420         (timer::pop_internal): ...here.  New function.
13421         (timer::push_client_item): New.
13422         (timer::pop_client_item): New.
13423         (timer::print_row): New function, taken from timer::print.
13424         (timer::print): Print "GCC items" header if we also have client
13425         items.  Move row-printing to timer::print_row.  Print any client
13426         items.
13427         (timer::get_topmost_item_name): New method.
13428         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13429         (TV_JIT_CLIENT_CODE): New.
13430         * timevar.h (timer::push_client_item): New declaration.
13431         (timer::pop_client_item): New declaration.
13432         (timer::get_topmost_item_name): New method.
13433         (timer::push_internal): New declaration.
13434         (timer::pop_internal): New declaration.
13435         (timer::print_row): New declaration.
13436         (timer::named_items): New declaration.
13437         (timer::m_jit_client_items): New field.
13438         (timer): Add friend class named_items.
13439         (auto_timevar::auto_timevar): Add timer param.
13440         (auto_timevar::~auto_timevar): Use field "m_timer".
13441         (auto_timevar::m_timer): New field.
13442         * toplev.c (initialize_rtl): Add g_timer as param when
13443         constructing auto_timevar instance.
13444         (toplev::toplev): Add "external_timer" param, and use it to
13445         initialize the "g_timer" global if non-NULL.
13446         (toplev::~toplev): If this created "g_timer", delete it.
13447         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13448         with "external_timer" timer *.
13450 2015-08-03  Alexander Basov <coohpt@gmail.com>
13452         PR middle-end/64744
13453         PR middle-end/48470
13454         PR middle-end/43404
13455         * cfgexpand.c (expand_one_var): Add check if stack is going to
13456         be used in naked function.
13457         * expr.c (expand_expr_addr_expr_1): Remove excess checking
13458         whether expression should not reside in MEM.
13459         * function.c (use_register_for_decl): Do not use registers for
13460         non-register things (volatile, float, BLKMode) in naked functions.
13462 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
13464         PR target/67060
13465         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13466         Adjust splits to match new pattern.
13468 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13470         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13471         (VEC_M): Likewise.
13472         (VEC_N): Likewise.
13473         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13474         point in VSX registers.
13476         * config/rs6000/constraints.md (wb constraint): Document unused
13477         w<x> constraint.
13478         (we constraint): Likewise.
13479         (wo constraint): Likewise.
13480         (wp constraint): New constraint for IEEE 128-bit floating point in
13481         VSX registers.
13482         (wq constraint): Likewise.
13484         * config/rs6000/predicates.md (easy_fp_constant): Add support for
13485         IEEE 128-bit floating point in VSX registers.
13486         (easy_scalar_constant): Likewise.
13488         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13489         constraints (wp, wq) for IEEE 128-bit floating point in VSX
13490         registers.
13491         (rs6000_init_hard_regno_mode_ok): Likewise.
13493         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13494         floating point in VSX registers.
13495         (VSX_L): Likewise.
13496         (VSX_M): Likewise.
13497         (VSX_M2): Likewise.
13498         (VSm): Likewise.
13499         (VSs): Likewise.
13500         (VSr): Likewise.
13501         (VSa): Likewise.
13502         (VSv): Likewise.
13503         (vsx_le_permute_<mode>): Add support to properly swap bytes for
13504         IEEE 128-bit floating point in VSX registers on little endian.
13505         (vsx_le_undo_permute_<mode>): Likewise.
13506         (vsx_le_perm_load_<mode>): Likewise.
13507         (vsx_le_perm_store_<mode>): Likewise.
13508         (splitters for IEEE 128-bit fp moves): Likewise.
13510         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13511         wq constraints.
13513         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13514         floating point in VSX registers.
13515         (VM2): Likewise.
13517         * doc/md.text (Machine Constraints): Document wp and wq
13518         constraints on PowerPC.
13520 2015-08-03  Jeff Law  <law@redhat.com>
13522         PR middle-end/66314
13523         PR gcov-profile/66899
13524         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13525         iterate over the jump threading paths when an element in the
13526         jump threading paths array is eliminated.
13528 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
13530         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13532 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
13534         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13535         is_use_properly_guarded the variable def_preds.  Free its
13536         contents before returning.
13537         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13538         (is_use_properly_guarded): Replace local variable def_preds with
13539         a parameter.  Adjust accordingly.  Only update *def_preds if it's
13540         the empty vector.
13542 2015-08-03  Richard Biener  <rguenther@suse.de>
13544         * genmatch.c (simplify::for_subst_vec): New member.
13545         (binary_ok): New helper for for lowering.
13546         (lower_for): Delay substituting operators into result expressions
13547         if we can merge the results eventually again.
13548         (capture_info::walk_result): Adjust for user_id appearing as
13549         result expression operator.
13550         (expr::gen_transform): Likewise.
13551         (dt_simplify::gen_1): Likewise.
13552         (dt_simplify::gen): Pass not substituted operators to tail
13553         functions or initialize local variable with it.
13554         (decision_tree::gen): Adjust function signature.
13555         * match.pd: Fix tests against global code and add default
13556         cases to switch stmts.
13558 2015-08-03  Richard Biener  <rguenther@suse.de>
13560         * genmatch.c (dt_simplify::gen): Create captures array
13561         with an initializer.
13563 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13565         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13566         the host compiler is affected by placement new aliasing bug.
13567         * configure: Regenerate.
13568         * Makefile.in (ALIASING_FLAGS): New variable.
13569         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13571 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13573         PR target/66731
13574         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13575         (negmulsf3_vfp): Likewise.
13576         (muldf3negdf_vfp): Disable for -frounding-math.
13577         (mulsf3negsf_vfp): Likewise.
13578         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13579         fix MULT cost with -frounding-math.
13581 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13583         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13584         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13585         explicit.  Prefer to add the flag whenever possible.
13586         (noce_process_if_block): Try noce_try_store_flag_constants before
13587         noce_try_cmove.
13589 2015-08-03  Richard Biener  <rguenther@suse.de>
13591         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13592         New hash-map to record equivalent transforms.
13593         (dt_node::analyze): Populate the equivalent transforms hash-map.
13594         (dt_simplify::info): Add reference to hash-map entry.
13595         (dt_simplify::gen): If we have split out a function for the
13596         transform, generate a call to it.
13597         (sinfo_hashmap_traits::hash): New function.
13598         (compare_op): New helper function for ...
13599         (sinfo_hashmap_traits::equal_keys): ... this new function.
13600         (decision_tree::gen): Split out common equivalent transforms
13601         into functions.
13603 2015-08-03  Richard Biener  <rguenther@suse.de>
13605         * gimple-fold.c (fold_gimple_assign): Remove folding of
13606         the comparison in COND_EXPRs.
13608 2015-08-03  Richard Biener  <rguenther@suse.de>
13610         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13611         on the rhs of assignments first simplify the embedded
13612         GENERIC condition.
13614 2015-08-03  Richard Biener  <rguenther@suse.de>
13616         PR tree-optimization/66917
13617         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13618         field.
13619         (DR_VECT_AUX): New macro.
13620         (set_dr_misalignment): Adjust.
13621         (dr_misalignment): Likewise.
13622         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13623         Compute whether the base is at least element aligned.
13624         * tree-vect-stmts.c (ensure_base_align): Adjust.
13625         (vectorizable_store): If the base is not element aligned
13626         preserve alignment of the original access if misalignment is unknown.
13627         (vectorizable_load): Likewise.
13629 2015-08-02  Martin Sebor  <msebor@redhat.com>
13631         * c-family/c.opt (-Wframe-address): New warning option.
13632         * doc/invoke.texi (Wframe-address): Document it.
13633         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13634         Clarify possible effects of calling the functions with non-zero
13635         arguments and mention -Wframe-address.
13636         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13638 2015-08-01  Michael Collison  <michael.collison@linaro.org
13639             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13641         * config/arm/arm.md (*arm_smin_cmp): New pattern.
13642         (*arm_umin_cmp): Likewise.
13644 2015-08-01  Caroline Tice  <cmtice@google.com>
13646         PR 66521
13647         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13648         global variables.
13649         (vtbl_find_mangled_name):  New function.
13650         (vtbl_register_mangled_name):  New function.
13651         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
13652         mangled name in mangled name vectors.
13653         (find_or_create_vtbl_map_node):  Ditto.
13654         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
13655         update recursion_depth on function entry; pass it to every recursive
13656         call; automatically exit if depth > 25 (give up looking at that point).
13657         (verify_bb_vtables):  Initialize recursion_depth and pass it to
13658         var_is_used_for_virtual_call_p.
13659         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13660         global variable decls.
13661         (vtbl_register_mangled_name): New extern function decl.
13663 2015-08-01  Tom de Vries  <tom@codesourcery.com>
13665         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13666         function.
13667         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13668         Declare.
13669         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13670         operation_no_trapping_overflow.  Allow non-overflow operations.
13671         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13672         operations.
13674 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13676         PR target/67049
13677         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13679 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13681         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13682         Enable for TARGET_32BIT.
13683         (*if_move_neg): Likewise.
13685 2015-07-31  Nick Clifton  <nickc@redhat.com>
13687         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13688         Returns true for __model__.
13689         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13691 2015-07-31  Alan Modra  <amodra@gmail.com>
13693         PR target/66870
13694         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13695         (rs6000_emit_prologue): Set it.
13696         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13698 2015-07-31  Richard Biener  <rguenther@suse.de>
13700         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13701         -> X == (C1 ^ C2) which is already implemented in match.pd.
13702         Remove redundant dispatching to fold_relational_const.
13703         Move unordered self and NaN compares ...
13704         * match.pd: ... as patterns here.  Remove some stray captures
13705         and add a comment.
13707 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
13709         * config/i386/i386.c
13710         (bdesc_special_args): Convert mask type from signed to unsigned for
13711         masked builtins.
13712         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13713         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13714         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13715         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13716         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13717         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13718         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13719         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13720         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13721         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13722         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13723         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13724         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13725         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13726         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13727         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13728         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13729         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13730         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13731         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13732         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13733         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13734         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13735         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13736         * config/i386/i386-builtin-types.def
13737         (V16QI_FTYPE_V16SI): Remove.
13738         (V8DF_FTYPE_V8SI): Ditto.
13739         (V8HI_FTYPE_V8DI): Ditto.
13740         (V8SI_FTYPE_V8DI): Ditto.
13741         (V8SF_FTYPE_V8DF): Ditto.
13742         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13743         (V16HI_FTYPE_V16SI): Ditto.
13744         (V16SF_FTYPE_V16HI): Ditto.
13745         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13746         (V16SF_FTYPE_V16SI): Ditto.
13747         (V4DI_FTYPE_V4DI): Ditto.
13748         (V16SI_FTYPE_V16SF): Ditto.
13749         (V16SF_FTYPE_FLOAT): Ditto.
13750         (V8DF_FTYPE_DOUBLE): Ditto.
13751         (V8DI_FTYPE_INT64): Ditto.
13752         (V8DI_FTYPE_V4DI): Ditto.
13753         (V16QI_FTYPE_V8DI): Ditto.
13754         (UINT_FTYPE_V4SF): Ditto.
13755         (UINT64_FTYPE_V4SF): Ditto.
13756         (UINT_FTYPE_V2DF): Ditto.
13757         (UINT64_FTYPE_V2DF): Ditto.
13758         (V16SI_FTYPE_V16SI): Ditto.
13759         (V8DI_FTYPE_V8DI): Ditto.
13760         (V16SI_FTYPE_PV4SI): Ditto.
13761         (V16SF_FTYPE_PV4SF): Ditto.
13762         (V8DI_FTYPE_PV2DI): Ditto.
13763         (V8DF_FTYPE_PV2DF): Ditto.
13764         (V4DI_FTYPE_PV2DI): Ditto.
13765         (V4DF_FTYPE_PV2DF): Ditto.
13766         (V16SI_FTYPE_PV2SI): Ditto.
13767         (V16SF_FTYPE_PV2SF): Ditto.
13768         (V8DI_FTYPE_PV4DI): Ditto.
13769         (V8DF_FTYPE_PV4DF): Ditto.
13770         (V8SF_FTYPE_FLOAT): Ditto.
13771         (V4SF_FTYPE_FLOAT): Ditto.
13772         (V4DF_FTYPE_DOUBLE): Ditto.
13773         (V8SF_FTYPE_PV4SF): Ditto.
13774         (V8SI_FTYPE_PV4SI): Ditto.
13775         (V4SI_FTYPE_PV2SI): Ditto.
13776         (V8SF_FTYPE_PV2SF): Ditto.
13777         (V8SI_FTYPE_PV2SI): Ditto.
13778         (V16SF_FTYPE_PV8SF): Ditto.
13779         (V16SI_FTYPE_PV8SI): Ditto.
13780         (V8DI_FTYPE_V8SF): Ditto.
13781         (V4DI_FTYPE_V4SF): Ditto.
13782         (V2DI_FTYPE_V4SF): Ditto.
13783         (V64QI_FTYPE_QI): Ditto.
13784         (V32HI_FTYPE_HI): Ditto.
13785         (V8UHI_FTYPE_V8UHI): Ditto.
13786         (V16UHI_FTYPE_V16UHI): Ditto.
13787         (V32UHI_FTYPE_V32UHI): Ditto.
13788         (V2UDI_FTYPE_V2UDI): Ditto.
13789         (V4UDI_FTYPE_V4UDI): Ditto.
13790         (V8UDI_FTYPE_V8UDI): Ditto.
13791         (V4USI_FTYPE_V4USI): Ditto.
13792         (V8USI_FTYPE_V8USI): Ditto.
13793         (V16USI_FTYPE_V16USI): Ditto.
13794         (V2DF_FTYPE_V2DF_UINT64): Ditto.
13795         (V2DI_FTYPE_V2DF_V2DF): Ditto.
13796         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13797         (V8DF_FTYPE_V8DF_V8DI): Ditto.
13798         (V4SF_FTYPE_V4SF_UINT64): Ditto.
13799         (V4SI_FTYPE_V4SF_V4SF): Ditto.
13800         (V16SF_FTYPE_V16SF_V16SI): Ditto.
13801         (V64QI_FTYPE_V32HI_V32HI): Ditto.
13802         (V32HI_FTYPE_V16SI_V16SI): Ditto.
13803         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13804         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13805         (V32HI_FTYPE_V64QI_V64QI): Ditto.
13806         (V32HI_FTYPE_V32HI_V32HI): Ditto.
13807         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13808         (V16SI_FTYPE_V16SI_V4SI): Ditto.
13809         (V16SI_FTYPE_V16SI_V16SI): Ditto.
13810         (V16SI_FTYPE_V32HI_V32HI): Ditto.
13811         (V16SI_FTYPE_V16SI_SI): Ditto.
13812         (V8DI_FTYPE_V8DI_V8DI): Ditto.
13813         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13814         (V8DI_FTYPE_V16SI_V16SI): Ditto.
13815         (V8DI_FTYPE_V8DI_V2DI): Ditto.
13816         (QI_FTYPE_QI): Ditto.
13817         (SI_FTYPE_SI): Ditto.
13818         (DI_FTYPE_DI): Ditto.
13819         (QI_FTYPE_QI_QI): Ditto.
13820         (QI_FTYPE_QI_INT): Ditto.
13821         (HI_FTYPE_HI_INT): Ditto.
13822         (SI_FTYPE_SI_INT): Ditto.
13823         (DI_FTYPE_DI_INT): Ditto.
13824         (HI_FTYPE_V16QI_V16QI): Ditto.
13825         (SI_FTYPE_V32QI_V32QI): Ditto.
13826         (DI_FTYPE_V64QI_V64QI): Ditto.
13827         (QI_FTYPE_V8HI_V8HI): Ditto.
13828         (HI_FTYPE_V16HI_V16HI): Ditto.
13829         (SI_FTYPE_V32HI_V32HI): Ditto.
13830         (QI_FTYPE_V4SI_V4SI): Ditto.
13831         (QI_FTYPE_V8SI_V8SI): Ditto.
13832         (QI_FTYPE_V2DI_V2DI): Ditto.
13833         (QI_FTYPE_V4DI_V4DI): Ditto.
13834         (QI_FTYPE_V8DI_V8DI): Ditto.
13835         (HI_FTYPE_V16SI_V16SI): Ditto.
13836         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13837         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13838         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13839         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13840         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13841         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13842         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13843         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13844         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13845         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13846         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13847         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13848         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13849         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13850         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13851         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13852         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13853         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13854         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13855         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13856         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13857         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13858         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13859         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13860         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13861         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13862         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13863         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13864         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13865         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13866         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13867         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13868         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13869         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13870         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13871         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13872         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13873         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13874         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13875         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13876         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13877         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13878         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13879         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13880         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13881         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13882         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13883         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13884         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13885         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13886         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13887         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13888         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13889         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13890         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13891         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13892         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13893         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13894         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13895         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13896         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13897         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13898         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13899         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13900         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13901         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13902         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13903         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13904         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13905         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13906         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13907         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13908         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13909         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13910         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13911         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13912         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13913         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13914         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13915         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13916         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13917         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13918         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13919         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13920         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13921         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13922         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13923         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13924         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13925         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13926         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13927         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13928         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13929         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13930         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13931         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13932         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13933         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13934         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13935         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13936         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13937         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13938         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13939         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13940         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13941         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13942         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13943         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13944         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13945         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13946         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13947         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13948         (HI_FTYPE_HI): Ditto.
13949         (HI_FTYPE_V16QI): Ditto.
13950         (SI_FTYPE_V32QI): Ditto.
13951         (DI_FTYPE_V64QI): Ditto.
13952         (QI_FTYPE_V8HI): Ditto.
13953         (HI_FTYPE_V16HI): Ditto.
13954         (SI_FTYPE_V32HI): Ditto.
13955         (QI_FTYPE_V4SI): Ditto.
13956         (QI_FTYPE_V8SI): Ditto.
13957         (HI_FTYPE_V16SI): Ditto.
13958         (QI_FTYPE_V2DI): Ditto.
13959         (QI_FTYPE_V4DI): Ditto.
13960         (QI_FTYPE_V8DI): Ditto.
13961         (V16QI_FTYPE_HI): Ditto.
13962         (V32QI_FTYPE_SI): Ditto.
13963         (V64QI_FTYPE_DI): Ditto.
13964         (V8HI_FTYPE_QI): Ditto.
13965         (V16HI_FTYPE_HI): Ditto.
13966         (V32HI_FTYPE_SI): Ditto.
13967         (V4SI_FTYPE_QI): Ditto.
13968         (V4SI_FTYPE_HI): Ditto.
13969         (V8SI_FTYPE_QI): Ditto.
13970         (V8SI_FTYPE_HI): Ditto.
13971         (V2DI_FTYPE_QI): Ditto.
13972         (V4DI_FTYPE_QI): Ditto.
13973         (HI_FTYPE_HI_HI): Ditto.
13974         (SI_FTYPE_SI_SI): Ditto.
13975         (DI_FTYPE_DI_DI): Ditto.
13976         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13977         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13978         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13979         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13980         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13981         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13982         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13983         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13984         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13985         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13986         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13987         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13988         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13989         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13990         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13991         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13992         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13993         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13994         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13995         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13996         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13997         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13998         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13999         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14000         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14001         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14002         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14003         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14004         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14005         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14006         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14007         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14008         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14009         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14010         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14011         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14012         (V16SI_FTYPE_HI): Ditto.
14013         (V8DI_FTYPE_QI): Ditto.
14014         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14015         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14016         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14017         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14018         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14019         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14020         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14021         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14022         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14023         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14024         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14025         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14026         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14027         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14028         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14029         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14030         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14031         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14032         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14033         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14034         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14035         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14036         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14037         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14038         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14039         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14040         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14041         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14042         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14043         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14044         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14045         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14046         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14047         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14048         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14049         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14050         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14051         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14052         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14053         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14054         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14055         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14056         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14057         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14058         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14059         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14060         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14061         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14062         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14063         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14064         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14065         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14066         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14067         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14068         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14069         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14070         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14071         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14072         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14073         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14074         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14075         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14076         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14077         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14078         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14079         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14080         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14081         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14082         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14083         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14084         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14085         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14086         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14087         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14088         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14089         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14090         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14091         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14092         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14093         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14094         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14095         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14096         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14097         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14098         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14099         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14100         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14101         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14102         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14103         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14104         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14105         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14106         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14107         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14108         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14109         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14110         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14111         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14112         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14113         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14114         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14115         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14116         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14117         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14118         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14119         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14120         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14121         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14122         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14123         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14124         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14125         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14126         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14127         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14128         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14129         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14130         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14131         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14132         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14133         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14134         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14135         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14136         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14137         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14138         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14139         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14140         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14141         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14142         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14143         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14144         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14145         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14146         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14147         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14148         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14149         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14150         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14151         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14152         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14153         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14154         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14155         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14156         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14157         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14158         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14159         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14160         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14161         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14162         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14163         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14164         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14165         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14166         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14167         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14168         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14169         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14170         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14171         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14172         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14173         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14174         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14175         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14176         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14177         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14178         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14179         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14180         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14181         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14182         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14183         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14184         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14185         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14186         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14187         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14188         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14189         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14190         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14191         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14192         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14193         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14194         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14195         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14196         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14197         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14198         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14199         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14200         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14201         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14202         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14203         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14204         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14205         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14206         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14207         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14208         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14209         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14210         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14211         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14212         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14213         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14214         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14215         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14216         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14217         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14218         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14219         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14220         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14221         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14222         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14223         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14224         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14225         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14226         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14227         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14228         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14229         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14230         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14231         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14232         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14233         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14234         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14235         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14236         (QI_FTYPE_V8DF_INT_QI): Ditto.
14237         (QI_FTYPE_V4DF_INT_QI): Ditto.
14238         (QI_FTYPE_V2DF_INT_QI): Ditto.
14239         (HI_FTYPE_V16SF_INT_HI): Ditto.
14240         (QI_FTYPE_V8SF_INT_QI): Ditto.
14241         (QI_FTYPE_V4SF_INT_QI): Ditto.
14242         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14244 2015-07-31  Richard Biener  <rguenther@suse.de>
14246         * gimple-fold.c (fold_gimple_assign): Remove folding of
14247         GIMPLE_BINARY_RHS.
14249 2015-07-31  Tom de Vries  <tom@codesourcery.com>
14251         PR tree-optimization/66846
14252         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14253         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14254         (expand_omp_target) [ENABLE_CHECKING]: Same.
14255         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14256         cfun if !LOOPS_NEED_FIXUP.
14257         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
14258         that omp_for already has its own loop struct.
14259         * tree-parloops.c (create_phi_for_local_result)
14260         (create_call_for_reduction): Handle simple latch bb.
14261         (create_parallel_loop): Add simple latch bb to preserve
14262         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
14263         (gen_parallel_loop): Remove call to cancel_loop_tree.
14264         (parallelize_loops): Skip loops that are inner loops of parallelized
14265         loops.
14266         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14267         verify_loop_structure.
14269 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14271         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14272         * config/v850/v850.md (RV_REGNUM): New constants.
14273         * config/v850/v850.c (v850_libcall_value): New functions.
14274         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14275         (TARGET_LIBCALL_VALUE): Define.
14277 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14279         * rtl.h (lowpart_subreg): Move in file.
14280         * loop-iv.c (lowpart_subreg): Move to...
14281         * simplify-rtx.c (lowpart_subreg): ...here.
14282           (simplify_binary_operation_1): Use lowpart_subreg instead of
14283           simplify_gen_subreg.
14284         * expr.c (expand_expr_real_2): Ditto.
14285         * emit-rtl.c (gen_lowpart_common): Ditto.
14286         * combine.c (gen_lowpart_for_combine): Ditto.
14287         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14288           expand_debug_source_expr): Ditto.
14290 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
14292         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14293         (expand_builtin_atomic_clear): Remove support for atomic_clear
14294         pattern.
14296 2015-07-30  Richard Biener  <rguenther@suse.de>
14298         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14299         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14300         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
14301         redundant operand canonicalization.
14303 2015-07-30  David Sherwood  <david.sherwood@arm.com>
14305         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14306         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14307         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14308         * config/arm/arm.c (neon_valid_immediate): Likewise.
14309         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14310         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14311         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14312         (expand_vec_perm_vpshufb2_vpermq): Likewise.
14313         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14314         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14315         * config/i386/sse.md
14316         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14317         (*ssse3_palignr<mode>_perm): Likewise.
14318         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14319         * config/spu/spu.c (arith_immediate_p): Likewise.
14320         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14321         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14323 2015-07-30  Richard Biener  <rguenther@suse.de>
14325         * genmatch.c (decision_tree::gen_gimple): Merge with ...
14326         (decision_tree::gen_generic): ... this into ...
14327         (decision_tree::gen): ... this.
14328         (main): Adjust callers.
14330 2015-07-30  Richard Biener  <rguenther@suse.de>
14332         * genmatch.c (verbose): New global.
14333         (warning_at): Add overload with source_location.
14334         (capture_info::capture_info): Add bool whether generating gimple
14335         or generic.  Add gimple member.
14336         (capture_info::cinfo): Add capture member.
14337         (capture_info::walk_match): Record capture.  Warn on
14338         non-captured leafs.
14339         (capture_info::walk_c_expr): Add more fragments captures cannot
14340         escape through.  Warn on escaped captures.
14341         (dt_simplify::gen_1): Warn on operands we force to have no
14342         side-effects.
14343         (main): Initialize verbose.
14344         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14346 2015-07-30  Richard Biener  <rguenther@suse.de>
14348         PR middle-end/67053
14349         * match.pd: Allow both operands to independently have conversion
14350         when simplifying compares of addresses.
14352 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
14354         PR target/66217
14355         PR target/67045
14356         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14357         around those cases that need one.
14359 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
14361         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14363 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14365         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14366         New.  Copied from config/i386/gnu-user.h.
14367         (ASM_COMMENT_START): Likewise.
14368         (DBX_REGISTER_NUMBER): Likewise.
14370 2015-07-29  Richard Biener  <rguenther@suse.de>
14372         * gimple-fold.c (fold_gimple_cond): Remove.
14373         (fold_stmt_1): Do not call it.
14375 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
14377         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14378         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14380         * config/aarch64/aarch64-modes.def: Add HFmode.
14382         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14383         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14385         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14386         aarch64_promoted_type): New.
14388         (aarch64_float_const_representable_p): Disable HFmode.
14389         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14390         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14391         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14393         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14394         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14396         * config/aarch64/iterators.md (GPF_F16): New.
14398 2015-07-29  Richard Biener  <rguenther@suse.de>
14400         * match.pd: Merge address comparison patterns and make them
14401         handle some more cases.
14403 2015-07-29  Richard Biener  <rguenther@suse.de>
14405         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14406         (parser::parse_capture): Add bool argument on whether to reject
14407         unknown captures.
14408         (parser::parse_expr): Adjust.
14409         (parser::parse_op): Likewise.
14410         (parser::parse_pattern): Likewise.
14412 2015-07-29  Richard Biener  <rguenther@suse.de>
14414         * gimple-fold.c (has_use_on_stmt): New function.
14415         (replace_stmt_with_simplification): Use it to allow
14416         abnormals originally referenced in the stmt.
14417         (fold_stmt_1): Canonicalize operand order.
14419 2015-07-28  David Sherwood  <david.sherwood@arm.com>
14421         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14422         GET_MODE_INNER unconditionally.
14423         * config/spu/spu.c (arith_immediate_p): Likewise.
14424         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14425         * expmed.c (synth_mult): Remove check for VOIDmode result from
14426         GET_MODE_INNER.
14427         (expand_mult_const): Likewise.
14428         * fold-const.c (fold_binary_loc): Replace call to element_precision
14429         with call to GET_MODE_PRECISION.
14430         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14431         m->name.
14432         (emit_mode_inner): Likewise.
14433         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14434         result check.
14435         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14436         (GET_MODE_UNIT_PRECISION): Likewise.
14437         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14438         * simplify-rtx.c (simplify_immed_subreg): Likewise.
14439         * stor-layout.c (bitwise_type_for_mode): Update assert.
14440         (element_precision): Remove.
14442 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14444         * target-insns.def (reload_load_address): New targetm instruction
14445         pattern.
14446         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14448 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14450         * target-insns.def (atomic_test_and_set): New targetm instruction
14451         pattern.
14452         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14453         HAVE_*/gen_* interface.
14455 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14457         * target-insns.def (can_extend, ptr_extend): New targetm instruction
14458         patterns.
14459         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14460         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14461         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14462         * rtlanal.c (nonzero_bits1): Likewise.
14463         (num_sign_bit_copies1): Likewise.
14465 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14467         * target-insns.def (eh_return): New targetm instruction pattern.
14468         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14469         interface.
14470         * function.c (thread_prologue_and_epilogue_insns): Remove
14471         preprocessor condition.
14473 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14475         * target-insns.def (indirect_jump): New targetm instruction pattern.
14476         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14477         interface.
14479 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14481         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14482         instead of nonimmediate_operand.  Remove C condiition.
14484 2015-07-28  Richard Biener  <rguenther@suse.de>
14486         * match.pd: Add more simplification of address comparisons.
14488 2015-07-28  Richard Biener  <rguenther@suse.de>
14490         * match.pd: Re-order two cases in comparison with max/min
14491         value simplification to make it apply for bools.
14493 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14495         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14496         Handle simple SIGN_EXTEND or ZERO_EXTEND.
14497         (aarch64_rtx_costs): Properly strip extend or extract before
14498         passing down to rtx costs again.
14500 2015-07-28  Nick Clifton  <nickc@redhat.com>
14502         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14503         Optimizes the case where -mes0 is active and a constant symbolic
14504         address is used.
14505         * config/rl78/rl78-protos.h: Prototype the new function.
14506         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14508 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14510         * tree-parloops.c (reduc_stmt_res): New function.
14511         (initialize_reductions, add_field_for_reduction)
14512         (create_phi_for_local_result, create_loads_for_reductions)
14513         (create_stores_for_reduction, build_new_reduction): Handle case that
14514         reduc_stmt is a phi.
14515         (gather_scalar_reductions): Allow double_reduc reductions.
14517 2015-07-28  Richard Biener  <rguenther@suse.de>
14519         * fold-const.c (fold_comparison): Remove equality folding
14520         of decl addresses ...
14521         * match.pd: ... here and merge with existing pattern.
14523 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14525         PR tree-optimization/66828
14526         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14527         from int64_t to uint64_t.
14529 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14531         * opts-common.c (read_cmdline_option): List DriverOnly enum values
14532         as valid only in the error message of the driver, not in the
14533         messages of the language compilers.
14535 2015-07-27  Tom de Vries  <tom@codesourcery.com>
14537         * tree-parloops.c (gather_scalar_reductions): Simplify function
14538         structure.
14540 2015-07-27  Marek Polacek  <polacek@redhat.com>
14542         * ipa-devirt.c (types_same_for_odr): Fix typo.
14544 2015-07-27  Jason Merrill  <jason@redhat.com>
14546         PR debug/66468
14547         * dwarf2out.c (gen_inlined_subroutine_die): Check
14548         cgraph_function_possibly_inlined_p.
14550 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14552         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14553         Place integer variant first.
14554         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14556 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14558         PR/63870
14559         * config/arm/arm-builtins.c (enum arm_builtins):
14560         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14561         (ARM_BUILTIN_NEON_BASE): Rename macro to....
14562         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14563         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14564         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14566 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14568         PR/63870
14569         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14570         Add qualifier_lane_index.
14571         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14572         (arm_getlane_qualifiers): Use qualifier_lane_index.
14573         (arm_lanemac_qualifiers): Rename to...
14574         (arm_mac_n_qualifiers): ...this.
14575         (LANEMAC_QUALIFIERS): Rename to...
14576         (MAC_N_QUALIFIERS): ...this.
14577         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14578         (arm_setlane_qualifiers): Use qualifier_lane_index.
14579         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14580         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14581         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14582         (arm_expand_neon_builtin): Handle qualifier_lane_index.
14584         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14585         * config/arm/arm.c (bounds_check): Likewise, improve error message.
14586         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14587         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14588         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14589         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14590         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14591         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14592         qualifiers to TERNOP_IMM.
14593         (vdup_lane): Change qualifiers to GETLANE.
14594         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14595         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14596         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14597         vqdmlsl_n): Change qualifiers to MAC_N.
14599         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14600         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14601         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14602         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14603         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14604         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14605         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14606         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14607         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14608         Remove call to neon_lane_bounds.
14610 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14612         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14613         Place integer variant first.
14615 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
14617         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14618         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14619         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14620         for armv6kz targets.
14621         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14622         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14623         (FL_FOR_ARCH6ZK): Remove.
14624         (FL_FOR_ARCH6KZ): New.
14625         (arm_arch6zk): New declaration.
14626         * config/arm/arm-tables.opt: Regenerate.
14627         * config/arm/arm.c (arm_arch6kz): New.
14628         (arm_option_override): Set arm_arch6kz.
14629         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14630         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14631         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14633 2015-07-27  Marek Polacek  <polacek@redhat.com>
14635         PR c++/66555
14636         PR c/54979
14637         * doc/invoke.texi: Document -Wtautological-compare.
14639 2015-07-27  Richard Biener  <rguenther@suse.de>
14641         * genmatch.c (decision_tree::gen_gimple): Split out large
14642         subtrees into separate functions.
14643         (decision_tree::gen_generic): Likewise.
14645 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
14647         * config/alpha/alpha.c: Use SUBREG_P predicate.
14648         * config/alpha/predicates.md: Ditto.
14650 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14652         * config.host (s390*-*-*): Include driver-native.c only when
14653         building with s390* as host *and* target.
14655 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
14657         PR target/66930
14658         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14659         T bit register modified_between_p check.
14661 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14663         * config/i386/i386.c: Use SUBREG_P predicate.
14664         * config/i386/i386.md: Ditto.
14665         * config/i386/sse.md: Ditto.
14666         * config/i386/predicates.md: Ditto.
14668 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14670         PR target/67004
14671         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14672         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14674 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14676         * Makefile.in: Remove use of TREEBROWSER.
14677         * config.in: Regenerated.
14678         * configure: Regenerated.
14679         * configure.ac: Remove definition of TREEBROWSER.
14680         * tree-browser.c: Removed.
14681         * tree-browser.def: Removed.
14683 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14685         * graphite-scop-detection.c: Include gimple-pretty-print.h.
14686         (stmt_simple_for_scop_p): Print when a stmt is not handled in
14687         Graphite.
14688         (scopdet_basic_block_info): Print when a loop or bb cannot be
14689         represented in Graphite.
14691 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14693         PR target/66648
14694         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14695         execution guard when min_size is less than size_needed.
14697 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14699         * doc/install.texi: Document supported versions of ISL.
14701 2015-07-25  Jeff Law  <law@redhat.com>
14703         Revert:
14704         PR lto/66752
14705         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14706         unable to find X NE 0 in the tables, return X as the simplified
14707         condition.
14708         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14709         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14710         to VISISTED_BBS.  */
14711         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14712         after removing the control flow statement and unnecessary edges.
14714 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
14716         Revert:
14717         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
14719         PR rtl-optimization/64164
14720         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14721         * tree-ssa-copyrename.c: Removed.
14722         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14723         -ftree-coalesce-vars.
14724         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14725         * common.opt (ftree-copyrename): Ignore.
14726         (ftree-coalesce-inlined-vars): Likewise.
14727         * doc/invoke.texi: Remove the ignored options above.
14728         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14729         * tree-ssa-coalesce.h: ... here.
14730         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14731         headers required by it.
14732         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14733         across variables when flag_tree_coalesce_vars.  Check register
14734         use and promoted modes to allow coalescing.  Moved to
14735         tree-ssa-coalesce.c.
14736         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14737         with its member functions to tree-ssa-coalesce.c.
14738         (var_map_base_init): Likewise.  Renamed to
14739         compute_samebase_partition_bases.
14740         (partition_view_normal): Drop want_bases parameter.
14741         (partition_view_bitmap): Likewise.
14742         * tree-ssa-live.h: Adjust declarations.
14743         * tree-ssa-coalesce.c: Include explow.h.
14744         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14745         default defs at the entry point.
14746         (dump_part_var_map): New.
14747         (compute_optimized_partition_bases): New, called by...
14748         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14749         of compute_samebase_partition_bases.  Adjust.
14750         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14751         * cfgexpand.c (leader_merge): New.
14752         (get_rtl_for_parm_ssa_default_def): New.
14753         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14754         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14755         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14756         redundant MEM attr setting.
14757         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14758         from...
14759         (expand_one_stack_var): ... this.  New wrapper to check and
14760         skip already expanded SSA partitions.
14761         (record_alignment_for_reg_var): New, factored out of...
14762         (expand_one_var): ... this.
14763         (expand_one_ssa_partition): New.
14764         (adjust_one_expanded_partition_var): New.
14765         (expand_one_register_var): Check and skip already expanded SSA
14766         partitions.
14767         (expand_used_vars): Don't create DECLs for anonymous SSA
14768         names.  Expand all SSA partitions, then adjust all SSA names.
14769         (pass::execute): Replace the loops that set
14770         SA.partition_to_pseudo from partition leaders and cleared
14771         DECL_RTL for multi-location variables, and that which used to
14772         rename vars and set attrs, with one that clears DECL_RTL and
14773         checks that PARMs and RESULTs default_defs match DECL_RTL.
14774         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14775         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14776         * explow.c (promote_ssa_mode): New.
14777         * explow.h (promote_ssa_mode): Declare.
14778         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14779         * function.c: Include cfgexpand.h.
14780         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14781         (use_register_for_parm_decl): Wrapper for the above to
14782         special-case the result_ptr.
14783         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14784         (split_complex_args): Take assign_parm_data_all argument.
14785         Pass it to rtl_for_parm.  Set up rtl and context for split
14786         args.
14787         (assign_parms_augmented_arg_list): Adjust.
14788         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14789         multiple locations.  Recognize split complex args.
14790         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14791         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14792         (assign_parm_setup_block): Prefer SSA-assigned location.
14793         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14794         if stack_parm is NULL.
14795         (assign_parm_setup_stack): Prefer SSA-assigned location.
14796         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14797         rtl before testing for pointer bounds.  Special-case result_ptr.
14798         (expand_function_start): Maybe reset DECL_RTL of result.
14799         Prefer SSA-assigned location for result and static chain.
14800         Factor out DECL_RESULT and SET_DECL_RTL.
14801         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14802         anonymous SSA names.  Use promote_ssa_mode.
14803         (get_temp_reg): Likewise.
14804         (remove_ssa_form): Adjust.
14805         * stor-layout.c (layout_decl): Don't set mem attributes of
14806         non-MEMs.
14807         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14808         and get its reg_usage for reg invalidation.
14809         (compute_bb_dataflow): Pass it insn.
14810         (emit_notes_in_bb): Likewise.
14812 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14814         * config/i386/i386.c (ix86_va_start): Remove
14815         unneeded !TARGET_64BIT check.
14816         (ix86_gimplify_va_arg): Ditto.
14818 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14820         * graphite-sese-to-poly.c (build_poly_scop): Always call
14821         rewrite_commutative_reductions_out_of_ssa.
14823 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14825         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14826         flag_associative_math to FLOAT_TYPE_P.  Honour
14827         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14829 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14831         PR c++/64079
14832         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14833         and "%qD" in warning_at instead of "%q+D" in warning.
14835 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14837         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14838         (ix86_function_abi): Cleanup.
14840 2015-07-24  Michael Darling  <darlingm@gmail.com>
14842         PR other/66259
14843         * acinclude.m4: Reflects renaming of configure.in to configure.ac
14844         * configure: Likewise
14845         * configure.ac: Likewise
14846         * doc/install.texi: Likewise
14847         * doc/tm.texi: Likewise
14848         * doc/tm.texi.in: Likewise
14850 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14852         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14853         manually swapping values.
14854         * cse.c (fold_rtx): Likewise.
14855         * lra-eliminations.c (form_sum): Likewise.
14857 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14859         PR target/64003
14860         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14861         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14862         (*jcc_1, *jcc_2, jump, simple_return_internal)
14863         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14864         Set length_nobnd attribute instead of length attribute.
14865         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14866         (length_nobnd): Remove attribute.
14867         (length): Remove length_nobnd processing.
14869 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
14871         * gimplify.c (omp_default_clause): New function.  Reorganize flow
14872         for clarity. Broken out of ...
14873         (omp_notice_variable): ... here.
14875 2015-07-24  Gary Funck  <gary@intrepid.com>
14877         PR middle-end/66984
14878         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14879         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14881 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14883         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14884         exit-first loop transform.
14886 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14888         PR 66714
14889         * tree-cfg.c (struct replace_decls_d): New struct.
14890         (replace_block_vars_by_duplicates_1): New function.
14891         (replace_block_vars_by_duplicates): Use it to replace the decls
14892         in the value exprs by duplicates.
14894 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14896         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14897         -shared, -symbolic, -rdynamic.
14899 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14901         PR target/65711
14902         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14903         -dynamic-linker within %{!static %{!shared, and -rdynamic within
14904         %{!static.
14906 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
14908         PR ipa/66566
14909         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14910         edge summary is available.
14912 2015-07-24  Richard Biener  <rguenther@suse.de>
14914         * genmatch.c (struct dt_node): Add statistic fields.
14915         (dt_node::analyze): New method.
14916         (decision_tree::gen_gimple): Call analyze on the root node
14917         and print statistics to stderr.
14918         (decision_tree::gen_generic): Likewise.
14920 2015-07-24  Richard Biener  <rguenther@suse.de>
14922         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14923         against the highest or lowest possible integer ...
14924         * match.pd: ... as patterns here.
14926 2015-07-24  Richard Biener  <rguenther@suse.de>
14928         * genmatch.c (struct capture_info): Add same_as field.
14929         (capture_info::capture_info): Initialize same_as.
14930         (capture_info::walk_match): Compute same_as.
14931         (capture_info::walk_result): Compute stuff for the leader.
14932         (capture_info::walk_c_expr): Likewise.
14933         (dt_simplify::gen_1): Only look at leaders when deciding
14934         to force no side-effects or emit side-effects of omitted operands.
14936 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14938         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14939         reg note to the GPR -> FPR save instructions.
14941 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14943         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14944         cheaper.
14945         (s390_expand_insv): Don't generate risbg pattern for constant zero
14946         sources.
14947         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14948         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
14949         splitters.
14951 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14953         * config/s390/s390.c (s390_reorg): Clean up handling of processors
14954         with
14955         -mtune=
14956         (s390_issue_rate): Likewise.
14957         (s390_sched_reorder): Likewise.
14958         (s390_sched_variable_issue): Likewise.
14959         (s390_loop_unroll_adjust): Likewise.
14960         (s390_option_override):  Likewise.
14962 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14964         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14965         processor capabilities with -march=native.
14966         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14967         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
14968         (S390_TARGET_BITS_STRING): Macro to simplify specs.
14970 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14972         * config/s390/s390.c (s390_issue_rate): Handle
14973         PROCESSOR_2094_Z9_EC.
14974         (s390_option_override): Likewise.
14975         (s390_adjust_priority): Likewise.
14977 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14979         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14980         when cross compiling.
14982 2015-07-24  Richard Biener  <rguenther@suse.de>
14984         * fold-const.c (maybe_canonicalize_comparison_1): Move
14985         A code CST canonicalization ...
14986         * match.pd: ... to a pattern here.
14988 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
14990         Revert:
14991         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
14992         PR target/63521
14993         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14994         (HONOR_REG_ALLOC_ORDER): Define.
14996 2015-07-24  Richard Biener  <rguenther@suse.de>
14998         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14999         * fold-const.c (fold_comparison): Move parameter does not
15000         alias &local simplification ...
15001         * match.pd: ... as a pattern here.
15003 2015-07-24  Richard Biener  <rguenther@suse.de>
15005         * gimple-fold.c (replace_stmt_with_simplification): Special-case
15006         valueizing call operands.
15007         * gimple-match-head.c (maybe_push_res_to_seq): Take
15008         number of call arguments from ops array.
15009         (do_valueize): New function.
15010         (gimple_simplify): Return true if valueization changed
15011         any operand even if the result didn't simplify further.
15013 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15015         PR middle-end/25530
15016         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15018 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15020         PR middle-end/25529
15021         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15023 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15025         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15026         instruction.
15028 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15030         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15031         clean up.
15033 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
15035         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15036         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
15037         targets here.
15038         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15039         ms_va_list_type_node initialization.
15041 2015-07-23  Jeff Law  <law@redhat.com>
15043         PR lto/66752
15044         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15045         unable to find X NE 0 in the tables, return X as the simplified
15046         condition.
15047         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15048         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15049         to VISISTED_BBS.  */
15050         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15051         after removing the control flow statement and unnecessary edges.
15053 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15055         * tree-pass.h (get_current_pass_name): Removed.
15057 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15059         PR rtl-optimization/64164
15060         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15061         * tree-ssa-copyrename.c: Removed.
15062         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15063         -ftree-coalesce-vars.
15064         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15065         * common.opt (ftree-copyrename): Ignore.
15066         (ftree-coalesce-inlined-vars): Likewise.
15067         * doc/invoke.texi: Remove the ignored options above.
15068         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15069         * tree-ssa-coalesce.h: ... here.
15070         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15071         headers required by it.
15072         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15073         across variables when flag_tree_coalesce_vars.  Check register
15074         use and promoted modes to allow coalescing.  Moved to
15075         tree-ssa-coalesce.c.
15076         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15077         with its member functions to tree-ssa-coalesce.c.
15078         (var_map_base_init): Likewise.  Renamed to
15079         compute_samebase_partition_bases.
15080         (partition_view_normal): Drop want_bases parameter.
15081         (partition_view_bitmap): Likewise.
15082         * tree-ssa-live.h: Adjust declarations.
15083         * tree-ssa-coalesce.c: Include explow.h.
15084         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15085         default defs at the entry point.
15086         (dump_part_var_map): New.
15087         (compute_optimized_partition_bases): New, called by...
15088         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15089         of compute_samebase_partition_bases.  Adjust.
15090         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15091         * cfgexpand.c (leader_merge): New.
15092         (get_rtl_for_parm_ssa_default_def): New.
15093         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15094         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15095         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15096         redundant MEM attr setting.
15097         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15098         from...
15099         (expand_one_stack_var): ... this.  New wrapper to check and
15100         skip already expanded SSA partitions.
15101         (record_alignment_for_reg_var): New, factored out of...
15102         (expand_one_var): ... this.
15103         (expand_one_ssa_partition): New.
15104         (adjust_one_expanded_partition_var): New.
15105         (expand_one_register_var): Check and skip already expanded SSA
15106         partitions.
15107         (expand_used_vars): Don't create DECLs for anonymous SSA
15108         names.  Expand all SSA partitions, then adjust all SSA names.
15109         (pass::execute): Replace the loops that set
15110         SA.partition_to_pseudo from partition leaders and cleared
15111         DECL_RTL for multi-location variables, and that which used to
15112         rename vars and set attrs, with one that clears DECL_RTL and
15113         checks that PARMs and RESULTs default_defs match DECL_RTL.
15114         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15115         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15116         * explow.c (promote_ssa_mode): New.
15117         * explow.h (promote_ssa_mode): Declare.
15118         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15119         * function.c: Include cfgexpand.h.
15120         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15121         (use_register_for_parm_decl): Wrapper for the above to
15122         special-case the result_ptr.
15123         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15124         (split_complex_args): Take assign_parm_data_all argument.
15125         Pass it to rtl_for_parm.  Set up rtl and context for split
15126         args.
15127         (assign_parms_augmented_arg_list): Adjust.
15128         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15129         multiple locations.  Recognize split complex args.
15130         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15131         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15132         (assign_parm_setup_block): Prefer SSA-assigned location.
15133         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15134         if stack_parm is NULL.
15135         (assign_parm_setup_stack): Prefer SSA-assigned location.
15136         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15137         rtl before testing for pointer bounds.  Special-case result_ptr.
15138         (expand_function_start): Maybe reset DECL_RTL of result.
15139         Prefer SSA-assigned location for result and static chain.
15140         Factor out DECL_RESULT and SET_DECL_RTL.
15141         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15142         anonymous SSA names.  Use promote_ssa_mode.
15143         (get_temp_reg): Likewise.
15144         (remove_ssa_form): Adjust.
15145         * stor-layout.c (layout_decl): Don't set mem attributes of
15146         non-MEMs.
15147         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15148         and get its reg_usage for reg invalidation.
15149         (compute_bb_dataflow): Pass it insn.
15150         (emit_notes_in_bb): Likewise.
15152 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15154         PR target/66217
15155         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15156         prototype.
15157         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15158         (rs6000_emit_2insn_and): Handle dot forms.
15159         * config/rs6000/rs6000.md (and<mode>3): Adjust.
15160         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
15161         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15163 2015-07-23  Richard Biener  <rguenther@suse.de>
15165         * generic-match-head.c: Include cgraph.h.
15166         * gimple-match-head.c: Likewise.
15167         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15168         SSA names.
15169         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15170         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
15171         pattern.
15173 2015-07-23  Richard Biener  <rguenther@suse.de>
15175         * gimple-fold.c (fold_gimple_cond): Do not require folding
15176         results to pass valid_gimple_rhs_p.
15177         * tree-cfg.h (fold_cond_expr_cond): Remove.
15178         * tree-cfg.c (fold_cond_expr_cond): Likewise.
15179         (make_edges): Do not call it.
15180         * tree-inline.c (tree_function_versioning): Likewise.
15182 2015-07-23  Tom de Vries  <tom@codesourcery.com>
15184         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15185         vect_force_simple_reduction.
15186         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15187         (vect_is_simple_reduction_1): Add and handle
15188         need_wrapping_integral_overflow parameter.
15189         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15190         need_wrapping_integral_overflow parameter.
15191         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15192         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15193         decl.
15195 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
15197         PR tree-optimization/66926,66951
15198         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15199         INNER_LOOP and fix up condition for renaming virtual operands.
15201 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15203         * combine.c (try_combine): Use std::swap instead of manually
15204         swapping.
15206 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
15208         * config/mips/i6400.md: New file.
15209         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15210         (mips64r6): Likewise.
15211         (i6400): Define.
15212         * config/mips/mips-tables.opt: Regenerate.
15213         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15214         (mips_issue_rate): Add support for i6400.
15215         (mips_multipass_dfa_lookahead): Likewise.
15216         * config/mips/mips.h (TUNE_I6400): Define.
15217         * config/mips/mips.md: Include i6400.md.
15218         (processor): Add i6400.
15219         * doc/invoke.texi (-march=@var{arch}): Add i6400.
15221 2015-07-23  Richard Biener  <rguenther@suse.de>
15223         PR middle-end/66916
15224         * match.pd: Guard widen and sign-change comparison simplification
15225         with single_use.
15227 2015-07-23  Richard Biener  <rguenther@suse.de>
15229         PR tree-optimization/66945
15230         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15231         ::before_dom_children): Force the propagators idea of
15232         non-executable edges to materialize, not what the folder
15233         chooses.
15235 2015-07-23  Richard Biener  <rguenther@suse.de>
15237         * gimple.h (gimple_cond_make_false): Use 0 != 0.
15238         (gimple_cond_make_true): Use 1 != 0.
15240 2015-07-22  DJ Delorie  <dj@redhat.com>
15242         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15243         slashes.
15245         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15246         (ashrhi3): Likewise.
15247         (lshrhi3): Likewise.
15248         (movhi): Take advantage of zero-extend to load small constants.
15249         (movpsi): Likewise.
15250         (and<mode>3): Likewise.
15251         (zero_extendqihi2): Likewise.
15252         (zero_extendqisi2): New.
15253         * config/msp430/constraints.md (N,O): New.
15254         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15256 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
15258         PR target/66954
15259         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15260         to enum feature_priority and feature_list.
15261         (fold_builtin_cpu): Add F_AES to enum processor_features
15262         and isa_names_table.
15264 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
15266         PR driver/66737
15267         * config/i386/linux-common.h (MPX_SPEC): Use linker option
15268         for 64bit target only.
15270 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15272         * config/nvptx/nvptx.c: Expand some comments.
15274 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
15276         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15277         (cortex_a53_advsimd): ...This.
15279 2015-07-22  Richard Biener  <rguenther@suse.de>
15281         * genmatch.c (expr::gen_transform): Clarify error message
15282         and display location.
15284 2015-07-22  Richard Biener  <rguenther@suse.de>
15286         * genmatch.c (struct operand): Add location member.
15287         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15288         constructors.
15289         (struct simplify): Remove match_location and result_location
15290         members.
15291         (elsehwere): Adjust.
15293 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
15295         * config/mips/m5100.md: New file.
15296         * config/mips/mips-cpus.def (m5100, m5101): Define.
15297         * config/mips/mips-tables.opt: Regenerate.
15298         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15299         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15300         -march=m5101 to -mips32r5.
15301         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15302         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15303         !-msoft-float.
15304         * config/mips/mips.md: Include m5100.md.
15305         (processor): Add m5100.
15306         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15308 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
15310         * config/mips/mips-cpus.def (interaptiv): Define.
15311         * config/mips/mips-tables.opt: Regenerate.
15312         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15313         -mips32r2.
15314         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15315         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15317 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15319         PR target/63521
15320         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15321         (HONOR_REG_ALLOC_ORDER): Define.
15323 2015-07-22  Richard Biener  <rguenther@suse.de>
15325         PR tree-optimization/66952
15326         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15327         blocks we end up executing unconditionally reset all SSA
15328         info such as range and alignment.
15329         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15330         * tree-ssanames.c (reset_flow_sensitive_info): New function.
15332 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15334         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15335         typo in attribute.
15337 2015-07-22  Richard Biener  <rguenther@suse.de>
15339         * genmatch.c (parser::parse_result): Properly handle
15340         match with result operands and conditions.
15342 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15344         PR target/63870
15345         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15346         Add qualifier_struct_load_store_lane_index.
15347         (aarch64_types_loadstruct_lane_qualifiers): Use
15348         qualifier_struct_load_store_lane_index for lane index argument for
15349         last argument.
15350         (aarch64_types_storestruct_lane_qualifiers): Ditto.
15351         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15352         (aarch64_simd_expand_args): Add new argument describing mode of
15353         builtin. Check lane bounds for arguments with
15354         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15355         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15356         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15357         (aarch64_simd_expand_builtin): Handle arguments with
15358         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15359         aarch64_simd_expand_args.
15360         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15361         vst[234]_lane with BUILTIN_VALLDIF.
15362         * config/aarch64/aarch64-simd.md:
15363         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15364         endianness reversal on lane index.
15365         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15366         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15367         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15368         (vec_store_lanesci_lane<mode>): Ditto.
15369         (vec_store_lanesxi_lane<mode>): Ditto.
15370         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15371         reversal of lane index.
15372         (aarch64_ld3_lane<mode>): Ditto.
15373         (aarch64_ld4_lane<mode>): Ditto.
15374         (aarch64_st2_lane<mode>): Ditto.
15375         (aarch64_st3_lane<mode>): Ditto.
15376         (aarch64_st4_lane<mode>): Ditto.
15377         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15378         to qmode. Add new mode parameter. Update uses.
15379         (__LD3_LANE_FUNC): Ditto.
15380         (__LD4_LANE_FUNC): Ditto.
15381         (__ST2_LANE_FUNC): Ditto.
15382         (__ST3_LANE_FUNC): Ditto.
15383         (__ST4_LANE_FUNC): Ditto.
15385 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
15387         * doc/invoke.texi (Language Independent Options): Rename node to
15388         Diagnostic Message Formatting Options.
15390 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
15392         PR ipa/66424.
15393         * lra-remat.c (operand_to_remat): Prevent using insns with input
15394         subregs processed separately by IRA.
15396 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
15398         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15399         straight loops.
15400         (single_imm_use): Check for iterator node.
15401         (num_imm_uses): Likewise.
15402         * tree-ssa-operands.c (has_zero_uses_1): Delete.
15403         (single_imm_use_1): Check for iterator node.
15405 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15406             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15408         * configure.ac: Add check for new options in isl-0.15.
15409         * config.in, configure: Rebuilt.
15410         * graphite-blocking.c: Include <isl/constraint.h>
15411         * graphite-interchange.c,  graphite-poly.c: Likewise.
15412         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15413         * graphite.c: Likewise.
15414         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15415         <isl/union_set.h>.
15416         * graphite-dependences.c: Include <isl/constraint.h>.
15417         (max_number_of_out_dimensions): Returns isl_stat.
15418         (extend_schedule_1): Likewise
15419         (extend_schedule): Corresponding changes.
15420         * graphite-optimize-isl.c: Include <isl/constraint.h> and
15421         <isl/union_set.h>.
15422         (getSingleMap): Change return type of isl_stat.
15423         (optimize_isl): Conditionally use
15424         isl_options_set_schedule_serialize_sccs.
15425         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15426         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15428 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
15430         PR target/66956
15431         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15432         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15434 2015-07-21  Richard Biener  <rguenther@suse.de>
15436         PR tree-optimization/66948
15437         * genmatch.c (capture_info::walk_match): Also recurse to
15438         captures.  Properly compute expr state from captures of
15439         captures.
15440         * match.pd: Add single-use guards to
15441         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15443 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15445         * config/nvptx/mkoffload.c (process): Add static destructor call.
15447 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15449         PR middle-end/66915
15450         * match.pd (A - B -> A + (-B)): Don't allow folding
15451         when type if a fixed-point type.
15453 2015-07-20  DJ Delorie  <dj@redhat.com>
15455         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15456         (iorqi3_real): Likewise for set1.
15458 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
15460         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15461         for !TARGET_64BIT.
15463 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
15465         * graphite-isl-ast-to-gimple.c:
15466         Refactor so that each function can access 'region'. This will help
15467         maintain a parameter rename_map within a region.
15469 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15471         * config/rs6000/rs6000.md (*lt0_disi): New.
15473 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15475         PR target/66217
15476         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
15477         "available letters" comment.
15478         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15479         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15480         and_2rld_operand):  Delete.
15481         (and_operand): Adjust.
15482         (rotate_mask_operator): New.
15483         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15484         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15485         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15486         extract_ME): Delete.
15487         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15488         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15489         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15490         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15491         rs6000_emit_2insn_and): New.
15492         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15493         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15494         includes_rldic_lshift_p, includes_rldicr_lshift_p,
15495         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15496         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15497         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15498         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15499         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15500         rs6000_emit_2insn_and): New.
15501         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15502         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15503         handling.
15504         <NOT>: Don't fall through to next case.
15505         <AND>: Handle the various rotate-and-mask cases directly.
15506         <IOR>: Always cost as one insn.
15507         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15508         (and<mode>3): Adjust expander for the new patterns.
15509         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15510         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15511         (*and<mode>3_imm_dot_shifted): New.
15512         (*and<mode>3_mask): Delete, rewrite as ...
15513         (and<mode>3_mask): ... New.
15514         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15515         (andsi3_internal0_nomc): Delete.
15516         (*andsi3_internal6): Delete.
15517         (*and<mode>3_2insn): New.
15518         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15519         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15520         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15521         *insvdi_internal3): Delete.
15522         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15523         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15524         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15525         *ior<mode>_mask): New.
15526         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15527         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15528         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15529         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15530         Delete.
15531         (ashr<mode>3): Delete expander.
15532         (*ashr<mode>3): Rename to ...
15533         (ashr<mode>3): ... This.
15534         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15535         (*rotldi3_internal4, *rotldi3_internal5 and split,
15536         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15537         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15538         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15539         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15540         (splitter for loading a mask): Adjust.
15541         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15543 2015-07-20  Marek Polacek  <polacek@redhat.com>
15545         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15546         output_add_clobbers, output_added_clobbers_hard_reg_p,
15547         gen_rtx_scratch): Remove declarations.
15549 2015-07-20  Marek Polacek  <polacek@redhat.com>
15551         PR c++/55095
15552         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15554 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15556         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15557         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15559 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15561         * combine.c (combine_simplify_rtx): Move simplification step
15562         before various transformations/substitutions.
15564 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
15566         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15567         (struct int_traits): Likewise.
15569 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15571         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15572         function to vmsdbgout_function_decl.
15574 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15576         PR target/66922
15577         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15578         from misaligned positions.
15579         (ix86_expand_pinsr): Reject insertions to misaligned positions.
15581 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
15583         PR middle-end/46851
15584         PR middle-end/60340
15585         * Makefile.in: Removed omega.o.
15586         * common.opt: Document flag fcheck-data-deps as deprecated.
15587         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15588         its associated params: omega-max-vars, omega-max-geqs,
15589         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15590         omega-max-keys, omega-eliminate-redundant-constraints.
15591         * doc/loop.texi: Remove all the section on Omega.
15592         * graphite-blocking.c: Include missing params.h: it used to be
15593         included through tree-data-ref.h and omega.h.
15594         * graphite-isl-ast-to-gimple.c: Same.
15595         * graphite-optimize-isl.c: Same.
15596         * graphite-sese-to-poly.c: Same.
15597         * graphite.c: Same.
15598         * omega.c: Remove.
15599         * omega.h: Remove.
15600         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15601         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15602         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15603         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15604         * passes.def: Remove pass_check_data_deps.
15605         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15606         (dump_conflict_function): Same.
15607         (dump_subscript): Same.
15608         (print_direction_vector): Same.
15609         (print_dir_vectors): Same.
15610         (print_lambda_vector): Same.
15611         (print_dist_vectors): Same.
15612         (dump_data_dependence_relation): Same.
15613         (dump_data_dependence_relations): Same.
15614         (dump_dist_dir_vectors): Same.
15615         (dump_ddrs): Same.
15616         (init_omega_eq_with_af): Removed.
15617         (omega_extract_distance_vectors): Removed.
15618         (omega_setup_subscript): Removed.
15619         (init_omega_for_ddr_1): Removed.
15620         (init_omega_for_ddr): Removed.
15621         (ddr_consistent_p): Removed.
15622         (compute_affine_dependence): Do not use omega to check data
15623         dependences.
15624         (compute_data_dependences_for_bb): Removed.
15625         (analyze_all_data_dependences): Removed.
15626         (tree_check_data_deps): Removed.
15627         * tree-data-ref.h: Do not include omega.h.
15628         (compute_data_dependences_for_bb): Removed.
15629         (tree_check_data_deps): Removed.
15630         * tree-ssa-loop.c (pass_check_data_deps): Removed.
15631         (make_pass_check_data_deps): Removed.
15632         * tree-ssa-phiopt.c: Include params.h.
15633         * tree-vect-data-refs.c: Same.
15634         * tree-vect-slp.c: Same.
15636 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15638         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15639         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
15640         (mem->fpreg splitters): Ditto.
15641         (general_operand->nonimmediate_operand splitter): Use explicit modes.
15642         Disable DFmode for TARGET_64BIT.
15644 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15646         PR target/66906
15647         * config/i386/i386.c (ix86_expand_prologue): Replicate static
15648         chain on the stack.
15650 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15652         * config/nvptx/mkoffload.c (process): Constify host data.
15653         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15654         Constify host data.
15655         (generate_host_descr_file): Likewise.
15657 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
15658             Sebastian Pop  <s.pop@samsung.com>
15660         PR middle-end/61929
15661         * graphite-dependences.c (add_pdr_constraints): Renamed
15662         pdr->extent to pdr->subscript_sizes.
15663         * graphite-interchange.c (build_linearized_memory_access): Add
15664         back all gcc_assert's that the "isl_int to isl_val conversion"
15665         patch has removed.  Refactored.
15666         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15667         * graphite-poly.c (new_poly_dr): Same.
15668         (free_poly_dr): Same.
15669         * graphite-poly.h (struct poly_dr): Same.
15670         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15671         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15672         * graphite-scop-detection.h: Fix space.
15673         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15674         back all gcc_assert's removed by a previous patch.
15675         (wrap): Remove the_isl_ctx global variable that the same patch has
15676         added.
15677         (build_loop_iteration_domains): Same.
15678         (add_param_constraints): Same.
15679         (pdr_add_data_dimensions): Same.  Refactored.
15680         (build_poly_dr): Renamed extent to subscript_sizes.
15682 2015-07-17  Marek Polacek  <polacek@redhat.com>
15684         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15685         * match.pd: ... here.
15687 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15689         * config/nvptx/mkoffload.c (process): Constify target data.
15690         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15691         Constify target data.
15692         (generate_target_offloadend_file): Likewise.
15694 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
15696         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15697         to allow renaming of PHI arguments on edges incoming from outer
15698         loop header, add corresponding check before start PHI iterator.
15699         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15700         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15701         with true force_vectorize.  Set-up dominator for outer loop too.
15702         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15703         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15704         was marked with force_vectorize and has restricted cfg.
15705         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15706         inner loop.
15707         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15708         do peeling for outer loops.
15710 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
15711             Matthias Klose  <doko@ubuntu.com>
15713         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15714         build-sysroot, sysroot from the `Miscenalleous configure options' to
15715         the `Directories' section and strip trailing `/' from with_sysroot.
15716         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15717         * configure: Regenerated.
15719 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
15721         PR target/66824
15722         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15723         (TARGET_HARD_DF_REGS): Ditto.
15724         (TARGET_HARD_XF_REGS): Ditto.
15725         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15726         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15727         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15728         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15729         (*movsf_internal): Add alternatives 16 and 17. Enable
15730         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15732 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
15734         PR rtl-optimization/66891
15735         * calls.c (expand_call): Wrap precompute_register_parameters with
15736         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15738 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15740         * config/nvptx/mkoffload.c (process): Constify mapping variables.
15741         Define target data struct and initialize it.
15743 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
15745         PR rtl-optimization/66626
15746         * ira.h (emit-rtl.h): Include.
15747         (non_spilled_static_chain_regno_p): New.
15748         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15749         unless it is non spilled static chain pseudo.
15750         (assign_hard_rego): Spill memory profitable allocno unless it is
15751         non spilled static chain pseudo.
15752         (allocno_spill_priority_compare): Put non spilled static chain
15753         pseudo at the end of sorted array.
15754         (improve_allocation): Do nothing if we have static chain and
15755         non-local goto.
15756         (allocno__priority_compare_func): Put non spilled static chain
15757         pseudo at the beginning of sorted array.
15758         (move_spill_restore): Ignore non spilled static chain pseudo.
15759         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15760         to non spilled static chain pseudo.
15761         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15762         pseudo at the beginning of sorted array.
15763         (spill_for): Spill non spilled static chain pseudo last.
15764         * lra-constraints.c (lra_constraints): Remove static chain pseudo
15765         check for equivalence.
15767 2015-07-16  Martin Liska  <mliska@suse.cz>
15769         PR ipa/66896.
15770         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15771         dst_ctx if it does not exist.
15773 2015-07-16  Martin Liska  <mliska@suse.cz>
15775         * hash-set.h (remove): New function.
15776         (iterator): New iteration class for hash_set.
15778 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15780         * genattrtab.c (make_canonical): Add a file_location parameter.
15781         Use fatal_at rather than fatal.
15782         (get_attr_value): Likewise.  Update call to make_canonical.
15783         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15784         (make_internal_attr): Update calls accordingly.
15786 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15788         * read-md.h (message_with_line, error_with_line): Delete.
15789         * read-md.c (message_with_line, error_with_line): Delete.
15790         * gensupport.h: Include read-md.h.
15791         (md_rtx_info): New structure.
15792         (read_md_rtx): Use it.  Return a bool success value.
15793         * gensupport.c (read_md_rtx): Likewise.
15794         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15795         (main): Update after interface changes.
15796         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15797         (main): Update after interface changes.
15798         * genattrtab.c (insn_code_number): Delete.
15799         (optimize_attrs): Add a max_insn_code parameter and use it instead
15800         of insn_code_number.
15801         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15802         Use *_at rather than *_with_line functions.
15803         (gen_insn): Likewise.
15804         (gen_delay): Likewise.
15805         (gen_insn_reserv): Likewise.
15806         (gen_bypass): Take an md_rtx_info rather than an rtx.
15807         (main): Update after interface changes.  Use a local max_insn_code
15808         variable instead of insn_code_number.
15809         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15810         an rtx.  Use fatal_at rather than fatal.
15811         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15812         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15813         (gen_absence_set, gen_final_absence_set, gen_automaton)
15814         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15815         (main): Update after interface changes.
15816         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15817         and code number.
15818         (main): Update after interface changes.
15819         * genconditions.c (main): Use new read_md_rtx interface.
15820         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15821         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15822         (main): Update after interface changes.
15823         * genemit.c (insn_code_number, insn_index_number): Delete.
15824         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15825         Use fatal_at rather than fatal.
15826         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
15827         rather than fatal.
15828         (gen_split): Likewise.
15829         (main): Update after interface changes.
15830         * genextract.c (line_no): Delete.
15831         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15832         Update call to walk_rtx.
15833         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
15834         rather than message_with_line.
15835         (walk_rtx): Add an md_rtx_info argument.  Update call to
15836         VEC_safe_set_locstr.
15837         (main): Update after interface changes.
15838         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15839         and lineno.  Use error_at rather than separate message_with_line
15840         calls and have_error assignments.
15841         (main): Update after interface changes.
15842         * genmddump.c (main): Use new read_md_rtx interface.
15843         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15844         (main): Update after interface changes.
15845         * genoutput.c (next_code_number): Delete.
15846         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15847         (gen_peephole, gen_expand, gen_split): Likewise.
15848         (note_constraint): Likewise.  Use *_at rather than *_with_line
15849         functions.
15850         (main): Update after interface changes.
15851         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15852         rtx and lineno.
15853         (main): Update after interface changes.
15854         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15855         than an rtx and lineno.
15856         (process_define_constraint): Likewise.
15857         (process_define_register_constraint): Likewise.
15858         (main): Update after interface changes.
15859         * genrecog.c (next_insn_code, pattern_lineno): Delete.
15860         (validate_pattern): Replace top-level rtx with an md_rtx_info.
15861         Use *_at rather than *_with_line functions.
15862         (match_pattern_2): Likewise.
15863         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15864         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15865         Use *_at rather than *_with_line functions.
15866         * gentarget-def.c (add_insn): New function.
15867         (main): Use it.  Use new read_md_rtx interface.
15869 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15871         * gensupport.h (compute_test_codes): Take a file_location rather
15872         than a line number.
15873         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
15874         rather than *_with_line functions.
15875         (process_define_predicate): Update call to compute_test_codes.
15876         * genpreds.c (validate_exp): Take a file_location rather than a
15877         line number.  Use *_at functions rather than *_with_line functions.
15878         (process_define_predicate): Update call to validate_exp.
15879         (constraint_data): Replace lineno field with a file_location.
15880         (add_constraint): Take a file_location rather than a line number.
15881         Use *_at functions rather than *_with_line functions.  Fix error
15882         message for address constraints.  Update after changes to
15883         validate_exp, constraint_data and compute_test_codes.
15884         (process_define_constraint): Update accordingly.
15885         (process_define_register_constraint): Likewise.
15887 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15889         * genoutput.c (data): Use a file_location to record the source
15890         position.
15891         (nothing): Delete.
15892         (idata, idata_end): Remove initialization.
15893         (constraint_data): Replace lineno with a file_location.
15894         (output_insn_data): Update after changes to data.
15895         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15896         (scan_operands): Likewise, using *_at rather than *_with_line
15897         functions.
15898         (process_template): Likewise.
15899         (validate_insn_alternatives): Likewise.
15900         (validate_insn_operands): Likewise.
15901         (validate_optab_operands): Likewise.
15902         (init_insn_for_nothing): Initialize idata and idata_end.
15903         (note_constraint): Update after changes to constraint_data,
15904         using at rather than with_line functions.
15905         (mdep_constraint_len): Take a file_location rather than a
15906         line number.  Use at rather than with_line functions.
15908 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15910         * read-md.h (fatal_at): Declare.
15911         * read-md.c (fatal_at): New function.
15912         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15913         to record the source position.
15914         (check_attr_test): Take a file_location instead of a line number.
15915         Use fatal_at instead of fatal.
15916         (check_attr_value): Update after above changes, using "at"
15917         rather than "with_line" reporting functions.
15918         (convert_set_attr_alternative): Likewise.
15919         (gen_attr): Likewise.
15920         (check_defs): Likewise.  Don't assign to read_md_filename.
15921         (gen_insn): Update initialization after above changes.
15922         (gen_delay): Likewise.
15923         (write_insn_cases): Print the filename for a define_peephole.
15924         (gen_insn_reserv): Take a line number as argument and update
15925         the call to check_attr_test.
15926         (main): Pass a line number to gen_insn_reserv.
15928 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15930         * read-md.h (file_location): New structure.
15931         (directive_handler_t): Take a file_location rather than a line number.
15932         (message_at, error_at): Declare.
15933         (read_skip_construct): Delete.
15934         * read-md.c (message_with_line_1): Replace with...
15935         (message_at_1): ...this new function.
15936         (message_at, error_at): New functions.
15937         (message_with_line, error_with_line): Update to use message_at_1.
15938         (handle_enum): Take a file_location rather than a line number
15939         and use error_at for error reporting.
15940         (handle_include): Likewise.
15941         (read_skip_construct): Likewise.  Make static.
15942         (handle_file): Update after above changes.  Pass a file_location
15943         rather than a line number to handle_directive.
15944         * gensupport.c (queue_elem): Replace separate filename and lineno
15945         with a file_location.
15946         (queue_pattern): Replace filename and lineno arguments with a
15947         file_location.  Update after change to queue_elem.
15948         (process_define_predicate): Replace lineno argument with a
15949         file_location and use error_at for error reporting.  Update
15950         after above changes.
15951         (process_rtx): Likewise.
15952         (subst_pattern_match): Likewise.
15953         (get_alternatives_number): Likewise.
15954         (alter_predicate_for_insn): Likewise.
15955         (rtx_handle_directive): Likewise.
15956         (is_predicable): Update after above changes, using error_at rather
15957         than error_with_line.
15958         (has_subst_attribute): Likewise.
15959         (identify_predicable_attribute): Likewise.
15960         (alter_attrs_for_subst_insn): Likewise.
15961         (process_one_cond_exec): Likewise.
15962         (process_substs_on_one_elem): Likewise.
15963         (process_define_subst): Likewise.
15964         (check_define_attr_duplicates): Likewise.
15965         (read_md_rtx): Update after change to queue_elem.
15967 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15969         * genoutput.c (next_index_number): Delete.
15970         (data): Remove index_number.
15971         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15972         (main): Remove manipulation of next_index_number.
15974 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15976         * genattrtab.c (check_attr_value): Remove handling of null attrs.
15977         (make_canonical): Likewise.
15979 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
15981         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15982         instead of adjust_address_nv.
15983         (restore_stack_nonlocal): Likewise.
15984         (nonlocal_goto): Likewise.
15986 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15988         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15989         not have a corresponding loop header phi.
15991 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15993         * tree-parloops.c (create_loads_for_reductions): Handle case that
15994         reduction is unused.
15996 2015-07-16  Richard Biener  <rguenther@suse.de>
15998         PR tree-optimization/66894
15999         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16000         about deriving NE_EXPR from truncated values.
16002 2015-07-16  Martin Liska  <mliska@suse.cz>
16004         * alloc-pool.h
16005         (object_allocator): Add new class.
16006         (pool_allocator::initialize): Use the underlying class.
16007         (pool_allocator::allocate): Likewise.
16008         (pool_allocator::remove): Likewise.
16009         (operator new): A new generic allocator.
16010         * asan.c (struct asan_mem_ref): Remove unused members.
16011         (asan_mem_ref_new): Replace new operator with
16012         object_allocator::allocate.
16013         (free_mem_ref_resources): Change deallocation.
16014         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16015         with object_allocator.
16016         * config/sh/sh.c (add_constant): Replace new operator with
16017         object_allocator::allocate.
16018         (sh_reorg): Change call to a release method.
16019         * cselib.c (struct elt_list): Remove unused members.
16020         (new_elt_list): Replace new operator with
16021         object_allocator::allocate.
16022         (new_elt_loc_list): Likewise.
16023         (new_cselib_val): Likewise.
16024         (unchain_one_elt_list): Change delete operator with remove method.
16025         (unchain_one_elt_loc_list): Likewise.
16026         (unchain_one_value): Likewise.
16027         (cselib_finish): Release newly added static allocators.
16028         * cselib.h (struct cselib_val): Remove unused members.
16029         (struct elt_loc_list): Likewise.
16030         * df-problems.c (df_chain_alloc): Replace pool_allocator with
16031         object_allocator.
16032         * df-scan.c (struct df_scan_problem_data): Likewise.
16033         (df_scan_alloc): Likewise.
16034         * df.h (struct dataflow): Likewise.
16035         * dse.c (struct read_info_type): Likewise.
16036         (struct insn_info_type): Likewise.
16037         (struct dse_bb_info_type): Likewise.
16038         (struct group_info): Likewise.
16039         (struct deferred_change): Likewise.
16040         (get_group_info): Likewise.
16041         (delete_dead_store_insn): Likewise.
16042         (free_read_records): Likewise.
16043         (replace_read): Likewise.
16044         (check_mem_read_rtx): Likewise.
16045         (scan_insn): Likewise.
16046         (dse_step1): Likewise.
16047         (dse_step7): Likewise.
16048         * et-forest.c (struct et_occ): Remove unused members.
16049         (et_new_occ): Use allocate instead of new operator.
16050         (et_new_tree): Likewise.
16051         (et_free_tree): Call release method explicitly.
16052         (et_free_tree_force): Likewise.
16053         (et_free_pools): Likewise.
16054         (et_split): Use remove instead of delete operator.
16055         * et-forest.h (struct et_node): Remove unused members.
16056         * ipa-cp.c: Change pool_allocator to object_allocator.
16057         * ipa-inline-analysis.c: Likewise.
16058         * ipa-profile.c: Likewise.
16059         * ipa-prop.c: Likewise.
16060         * ipa-prop.h: Likewise.
16061         * ira-build.c (initiate_cost_vectors): Cast return value.
16062         (ira_allocate_cost_vector): Likewise.
16063         * ira-color.c (struct update_cost_record): Remove unused members.
16064         * lra-int.h (struct lra_live_range): Likewise.
16065         (struct lra_copy): Likewise.
16066         (struct lra_insn_reg): Likewise.
16067         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16068         * lra.c (new_insn_reg): Replace new operator with allocate method.
16069         (free_insn_regs): Same for operator delete.
16070         (finish_insn_regs): Release new static allocator.
16071         (finish_insn_recog_data): Likewise.
16072         (lra_free_copies): Replace delete operator with remove method.
16073         (lra_create_copy): Replace operator new with allocate method.
16074         (invalidate_insn_data_regno_info): Same for remove method.
16075         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16076         (free_debug_insn_changes): Replace delete operator with remove method.
16077         (replace_oldest_value_reg): Replace operator new with allocate method.
16078         (pass_cprop_hardreg::execute): Release new static variable.
16079         * sched-deps.c (sched_deps_init): Change pool_allocator to
16080         object_allocator.
16081         * sel-sched-ir.c: Likewise.
16082         * sel-sched-ir.h: Likewise.
16083         * stmt.c (expand_case): Likewise.
16084         (expand_sjlj_dispatch_table): Likewise.
16085         * tree-sra.c (struct access): Remove unused members.
16086         (struct assign_link): Likewise.
16087         (sra_deinitialize): Release newly added static pools.
16088         (create_access_1):Replace operator new with allocate method.
16089         (build_accesses_from_assign): Likewise.
16090         (create_artificial_child_access): Likewise.
16091         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16092         pool_allocator to object_allocator.
16093         * tree-ssa-pre.c: Likewise.
16094         * tree-ssa-reassoc.c: Likewise.
16095         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16096         * tree-ssa-strlen.c: Likewise.
16097         * tree-ssa-structalias.c: Likewise.
16098         * var-tracking.c (onepart_pool_allocate): New function.
16099         (unshare_variable): Use the newly added function.
16100         (variable_merge_over_cur): Likewise.
16101         (variable_from_dropped): Likewise.
16102         (variable_was_changed): Likewise.
16103         (set_slot_part): Likewise.
16104         (emit_notes_for_differences_1): Likewise.
16105         (vt_finalize): Release newly added static pools.
16107 2015-07-16  Martin Jambor  <mjambor@suse.cz>
16109         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
16110         all uses.  Fix two typos in its general comment.
16111         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
16113 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
16115         * config/i386/linux-common.h (LINK_MPX): New.
16116         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16117         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16118         indicating '-z bndplt' support by linker.
16119         * configure: Regenerate.
16120         * config.in: Regenerate.
16122 2015-07-16  Richard Biener  <rguenther@suse.de>
16124         * fold-const.c (fold_widened_comparison): Remove.
16125         (fold_sign_changed_comparison): Likewise.
16126         (fold_comparison): Move widened and sign-changed comparison
16127         simplification ...
16128         * match.pd: ... to patterns here.
16129         * generic-match-head.c: Include target.h.
16130         * gimple-match-head.c: Likewise.
16132 2015-07-16  Richard Biener  <rguenther@suse.de>
16134         * tree-ssa-dom.c (dom_valueize): New function.
16135         (record_temporary_equivalences): Also record equivalences
16136         for dominating stmts that have uses of equivalences we are
16137         about to record.
16139 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
16141         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16142         add_autoinc_candidates.
16143         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16144         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16145         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16146         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16147         Call new function.
16148         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16149         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16150         Remove parameter struct iv*.  Call add_autoinc_candidates here.
16151         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16152         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16153         Call new function.
16154         (find_iv_candidates): Call new functions.
16156 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
16158         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16159         uninitialized-variable warning.
16161 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16163         PR target/65249
16164         * config/sh/sh.md (movdi): Split simple reg move to two movsi
16165         when the destination is R0.
16167 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
16169         PR target/66866
16170         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16171         * config/i386/i386.c (ix86_expand_pextr): New function.
16172         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
16173         for non-lowpart subregs.
16174         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16175         (insv<mode>): Use SWI248 mode iterator.
16176         (insv<mode>_1): Ditto.
16178 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16179             Sebastian Pop  <s.pop@samsung.com>
16181         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16182         iterator to use_stmt.
16184 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16185             Sebastian Pop <s.pop@samsung.com>
16187         * graphite-scop-detection.c (build_scops_1): Discard scops for
16188         which entry==exit.
16190 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16191             Sebastian Pop <s.pop@samsung.com>
16193         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16194         case of a return statement in scop.
16196 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16197             Sebastian Pop <s.pop@samsung.com>
16199         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16200         INTEGER_TYPE parameters.
16201         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16202         VECTOR_CST in scan_tree_for_params.
16203         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16205 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16207         * gimple-pretty-print.h: Don't include pretty-print.h.
16208         * tree-streamer.h: Don't include lto-streamer.h.
16209         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16210         * gimple-streamer-in.c: Remove redundant includes.
16211         * gimple-streamer-out.c: Likewise.
16212         * ipa-devirt.c: Likewise.
16213         * ipa-icf.c: Likewise.
16214         * ipa-inline-analysis.c: Likewise.
16215         * ipa-polymorphic-call.c: Likewise.
16216         * ipa-profile.c: Likewise.
16217         * ipa-prop.c: Likewise.
16218         * ipa-pure-const.c: Likewise.
16219         * lto-cgraph.c: Likewise.
16220         * lto-streamer-in.c: Likewise.
16221         * lto-streamer-out.c: Likewise.
16222         * lto-streamer.c: Likewise.
16223         * tree-streamer-in.c: Likewise.
16224         * tree-streamer-out.c: Likewise.
16225         * tree-streamer.c: Likewise.
16227 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16229         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16230         include input.h.
16231         * opts.c: Remove multiline #include comment.
16233 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
16235         * config/nvptx/mkoffload.c (process): Add C++ protection to
16236         emitted code.
16238 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16240         PR target/66854
16241         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16242         null before IEEE 128-bit floating point support patch.
16244 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16246         * simplify-rtx.c (simplify_ternary_operation): Add simplification
16247         for (!c) != {0,...,0} ? a : b for vector modes.
16249 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
16250             Martin Jambor  <mjambor@suse.cz>
16252         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16253         struct func_body_info* instead of struct ipa_node_params*, expecting
16254         fbi->info to be filled in.  Replace throughout.  Adjust call to
16255         ipa_load_from_parm_agg.
16256         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16257         instead of struct ipa_node_params*.  Adjust calls to other functions
16258         so that they pass either fbi or fbi->info.
16259         (set_switch_stmt_execution_predicate): Likewise.
16260         (will_be_nonconstant_predicate): Likewise.
16261         (compute_bb_predicates): Likewise.
16262         (estimate_function_body_sizes): Move asserts earlier.  Fill in
16263         struct func_body_info, replace parms_info with fbi.info.  Adjust
16264         calls to functions that now accept struct func_body_info.
16265         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16266         (struct func_body_info): Likewise.
16267         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16268         remove static.  Adjust callers.
16269         (ipa_load_from_parm_agg): Remove.
16270         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16271         (func_body_info): Likewise.
16272         (ipa_load_from_parm_agg): Adjust prototype.
16274 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16276         * gensupport.c (rtx_handle_directive): Adjust.
16277         * read-rtl.c (apply_iterators): Take vector to add rtxs to
16278         instead of expr list rtx.
16279         (add_define_attr_for_define_subst): Likewise.
16280         (add_define_subst_attr): Likewise.
16281         (read_subst_mapping): Likewise.
16282         (read_rtx): Likewise.
16283         * rtl.h (read_rtx): Adjust.
16285 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16287         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16289 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16291         PR target/58066
16292         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16293         (*tls_local_dynamic_base_64_<mode>): Ditto.
16294         (*tls_local_dynamic_base_64_largepic): Ditto.
16295         (tls_global_dynamic_64_<mode>): Update expander pattern.
16296         (tls_local_dynamic_base_64_<mode>): Ditto.
16298 2015-07-15  Richard Biener  <rguenther@suse.de>
16300         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16301         and bool_var == 1 -> bool_var simplifications ...
16302         * match.pd: ... to patterns here.  Factor out negate_expr_p
16303         cases from the A - B -> A + (-B) patterns as negate_expr_p
16304         predicate and add a -(A + B) -> (-B) - A pattern.
16306 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16308         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16310 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
16311             Robert Suchanek  <robert.suchanek@imgtec.com>
16313         * config/mips/mips.c (mips_int_mask): New enum.
16314         (mips_shadow_set): Likewise.
16315         (int_mask): New variable.
16316         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16317         (machine_function): Add int_mask and use_shadow_register_set.
16318         (mips_attribute_table): Add attribute handlers for interrupt and
16319         use_shadow_register_set.
16320         (mips_interrupt_mask): New static function.
16321         (mips_handle_interrupt_attr): Likewise.
16322         (mips_handle_use_shadow_register_set_attr): Likewise.
16323         (mips_use_shadow_register_set): Change return type to enum
16324         mips_shadow_set.  Add argument handling for use_shadow_register_set
16325         attribute.
16326         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16327         compare with mips_shadow_set enum.
16328         (mips_compute_frame_info): Add interrupt mask and
16329         use_shadow_register_set to per-function information structure.
16330         Add a stack slot for EPC unconditionally.
16331         (mips_expand_prologue): Compare use_shadow_register_set value
16332         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
16333         masked interrupt register but in EIC mode use K0 and save Cause in K0.
16334         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
16335         copying the stack pointer from the shadow register set.
16336         * config/mips/mips.h (SR_IM0): New define.
16337         * config/mips/mips.md (mips_rdpgpr): Rename to...
16338         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
16339         * doc/extend.texi (Declaring Attributes of Functions): Document
16340         optional arguments for interrupt and use_shadow_register_set
16341         attributes.
16343 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16345         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16346         interrupt attribute.
16347         (mips_expand_prologue): Disable the floating point unit in an ISR.
16348         * config/mips/mips.h (SR_COP1): New define.
16350 2015-07-15  Richard Biener  <rguenther@suse.de>
16352         * genmatch.c (parser::peek, parser::peek_ident): Add argument
16353         to tell how many tokens to peek ahead (default 1).
16354         (parser::eat_token, parser::eat_ident): Return token consumed.
16355         (parser::parse_result): Parse new switch statement.
16356         * match.pd: Use case statements where appropriate.
16358 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16360         PR rtl-optimization/58066
16361         * calls.c (expand_call): Precompute register parameters before stack
16362         alignment is performed.
16364 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16366         PR rtl-optimization/66838
16367         * postreload.c (reload_cse_move2add): Also process
16368         CALL_INSN_FUNCTION_USAGE when resetting information of
16369         call-clobbered registers.
16371 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16372             Cesar Philippidis  <cesar@codesourcery.com>
16373             Chung-Lin Tang  <cltang@codesourcery.com>
16375         * config/nios2/constraints.md (U, v): New constraints.
16376         * config/nios2/predicates.md (rdprs_dcache_operand): New.
16377         (ldstex_memory_operand): New.
16378         * config/nios2/sync.md: New file.
16379         * config/nios2/nios2.md (unspecv): Add new builtin function
16380         UNSPECV codes.
16381         (rdprs, flushd, flushda, wrpie, eni): New patterns.
16382         (top-level): Include sync.md.
16383         * config/nios2/nios2.c (N2_FTYPES): Add function types for
16384         new builtins.
16385         (N2_BUILTINS): Add arch field setting, add new builtins.
16386         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16387         for arch field.
16388         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16389         Also handle ldex/stex/ldsex/stsex builtins.
16390         (nios2_expand_rdprs_builtin): New function.
16391         (nios2_expand_cache_builtin): New function.
16392         (nios2_expand_wrpie_builtin): New function.
16393         (nios2_expand_eni_builtin): New function.
16394         (nios2_expand_builtin): Add arch field handling and new builtin
16395         cases.
16396         * doc/extend.texi (Altera Nios II Built-in Functions): Document
16397         new builtins.
16398         * doc/md.texi (Machine Constraints): Document U and v constraints.
16400 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16401             Cesar Philippidis  <cesar@codesourcery.com>
16402             Chung-Lin Tang  <cltang@codesourcery.com>
16404         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16405         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16406         callee_save_reg_size and uses_anonymous_args fields.
16407         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16408         (nios2_create_cfa_notes): New function.
16409         (nios2_adjust_stack): New function for adjusting stack.
16410         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16411         Use nios2_adjust_stack.
16412         (nios2_expand_epilogue): Likewise.
16413         (nios2_expand_return): New function.
16414         (nios2_can_use_return_insn): Update for CDX pop.n usage.
16415         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16416         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16417         * config/nios2/nios2.md (return): Use nios2_expand_return.
16419 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16420             Cesar Philippidis  <cesar@codesourcery.com>
16421             Chung-Lin Tang  <cltang@codesourcery.com>
16423         * config/nios2/predicates.md (pop_operation): New.
16424         (ldwm_operation, stwm_operation): New.
16425         (nios2_hard_register_operand): New.
16426         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16427         (ldstwm_operation_p): Declare.
16428         (gen_ldstwm_peep): Declare.
16429         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16430         (base_reg_adjustment_p): New.
16431         (pop_operation_p): New.
16432         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16433         (nios2_ldstwm_regset_p): New.
16434         (ldstwm_operation_p): New.
16435         (gen_ldst): New.
16436         (nios2_ldst_parallel): New.
16437         (struct ldswm_operand): Declare.
16438         (compare_ldstwm_operands): New.
16439         (can_use_cdx_ldstw): New.
16440         (gen_ldstwm_peep): New.
16441         * config/nios2/nios2-ldstwm.sml: New.
16442         * config/nios2/nios2.md: Include ldstwm.md.
16443         * config/nios2/ldstwm.md: Generated.
16445 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16446             Cesar Philippidis  <cesar@codesourcery.com>
16447             Chung-Lin Tang  <cltang@codesourcery.com>
16449         * config/nios2/nios2.h (LABEL_ALIGN): Define.
16450         (REG_ALLOC_ORDER): Define.
16451         (ADJUST_REG_ALLOC_ORDER): Define.
16452         (HONOR_REG_ALLOC_ORDER): Define.
16453         (CDX_REG_P): Define.
16454         (ANDCLEAR_INT): Define.
16455         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16456         (nios2_label_align): Declare.
16457         (nios2_cdx_narrow_form_p): Declare.
16458         (nios2_adjust_reg_alloc_order): Declare.
16459         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16460         operation.
16461         (nios2_large_unspec_reloc_p): New function, split from...
16462         (nios2_legitimate_pic_operand_p): ...here.
16463         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16464         (nios2_print_operand_punct_valid_p): New.
16465         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
16466         (split_mem_address): New.
16467         (split_alu_insn): New.
16468         (cdxreg): New.
16469         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16470         (enum nios2_add_insn_kind): New.
16471         (nios2_add_insn_names, nios2_add_insn_narrow): New.
16472         (nios2_add_insn_classify): New.
16473         (nios2_add_insn_asm): New.
16474         (nios2_cdx_narrow_form_p): New.
16475         (label_align, min_labelno, max_labelno): New.
16476         (nios2_reorg): New.
16477         (nios2_label_align): New.
16478         (nios2_adjust_reg_alloc_order): New.
16479         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16480         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16481         * config/nios2/constraints.md (P): New constraint.
16482         * config/nios2/predicates.md (const_and_operand): New.
16483         (and_operand): New.
16484         (stack_memory_operand): New.
16485         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16486         (length): Update to use nios2_cdx_narrow_form_p().
16487         (type): Add new insn type values.
16488         (control, alu, st, ld, shift): Update insn reservations with
16489         new insn type values.
16490         (*high, *lo_sum): Define new insn patterns for constant generation.
16491         (movqi_internal, movhi_internal, movsi_internal): Reduce
16492         alternatives, update asm template to handle CDX variants, update
16493         type attributes.
16494         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16495         template, update type attributes.
16496         (extendhisi2, extendqi<mode>2): Likewise.
16497         (addsi3): Change to use function for asm string.
16498         (subsi3): Add CDX notation to asm template, update type attributes.
16499         (negsi3, one_cmplsi3): Likewise.
16500         (andsi3): New pattern, specialized from logical patterns.
16501         (<code>si3): Remove and case, combine alternatives, update asm
16502         template.
16503         (<shift_op>si3): Add CDX notation, update type attributes.
16504         (rotrsi3): Update type attribute.
16505         (*merge, extzv, insv): New insn patterns.
16506         (return): Change to define_expand.
16507         (simple_return): Add CDX notation, update type attributes.
16508         (indirect_jump): Add CDX notation.
16509         (jump): Update asm cases, update length attribute expression.
16510         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16511         (nios2_cbranch): Update asm cases and length attribute expression
16512         to handle CDX variants.
16513         (nios2_cmp<code>): Update asm template.
16514         (nop): Add CDX notation, update type attributes.
16515         (trap): Add CDX notation.
16516         (ctrapsi4): Update asm cases and length attribute expression to
16517         handle CDX variant.
16518         * doc/md.texi (Machine Constraints): Document P constraint.
16520 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16521             Cesar Philippidis  <cesar@codesourcery.com>
16522             Chung-Lin Tang  <cltang@codesourcery.com>
16524         * config/nios2/nios2.h (SMALL_INT12): New macro.
16525         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16526         (nios2_valid_addr_expr_p): Use it.
16527         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16528         with implicit "io" instructions on R2.
16529         * config/nios2/constraints.md (w): New constraint.
16530         * config/nios2/predicates.md (ldstio_memory_operand): New.
16531         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16532         operand predicate and constraint.
16533         (ld<bh>io_signed, st<bhw>io>): Likewise.
16534         * doc/md.texi (Machine Constraints): Document w constraint.
16536 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16537             Cesar Philippidis  <cesar@codesourcery.com>
16538             Chung-Lin Tang  <cltang@codesourcery.com>
16540         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16541         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16542         Nios II architecture level.
16543         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16544         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16545         (OPTION_DEFAULT_SPECS): Define.
16546         (ASM_SPEC): Add -march= spec strings.
16547         * config/nios2/nios2.c (nios2_option_override): Check for
16548         conflicts involving new options.
16549         * config.gcc (nios2*-*-*): Support --with-arch=.
16550         * doc/invoke.texi (Option Summary, Nios II Options): Document
16551         -march=, -mbmx, and -mcdx.
16553 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
16555         PR rtl-optimization/66626
16556         * lra-constraints.c (lra_constraints): Prevent equivalence
16557         substitution for static chain pseudo in functions with nonlocal
16558         goto.
16560 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16562         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16563         (nios2_emit_stack_limit_check): Add size parameter.  Handle
16564         -fstack-limit-symbol as well as -fstack-limit-register.
16565         (nios2_expand_prologue): Emit only a single stack limit check,
16566         even if multiple stack adjustments are required.
16567         (nios2_option_override): Diagnose unsupported combination of -fpic
16568         and -stack-limit-symbol.
16570 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
16572         * Makefile.in (top_srcdir): New.
16573         * configure.ac: Use AM_ZLIB.
16574         * configure: Regeneated.
16576 2015-07-14  Matthias Klose  <doko@ubuntu.com>
16578         PR target/66840
16579         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16581 2015-07-14  Richard Biener  <rguenther@suse.de>
16583         PR tree-optimization/66863
16584         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16585         what we record for conversion use stmt lhs inequalities.
16587 2015-07-14  Richard Biener  <rguenther@suse.de>
16589         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16590         (decision_tree::gen_gimple): Likewise.
16592 2015-07-14  Tom de Vries  <tom@codesourcery.com>
16594         * gcc.c (greater_than_spec_func): Declare forward.
16595         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16596         -ftree-parallelize-loops={0,1}.
16597         (static_spec_functions): Add greater_than_spec_func function with name
16598         "gt".
16599         (greater_than_spec_func): New function.
16601 2015-07-14  Richard Biener  <rguenther@suse.de>
16603         * tree-ssa-dom.c (record_temporary_equivalences): Merge
16604         wideing type conversion case from record_equivalences_from_incoming_edge
16605         and use record_equality to record equivalences.
16606         (record_equivalences_from_incoming_edge): Call
16607         record_temporary_equivalences.
16609 2015-07-14  Richard Biener  <rguenther@suse.de>
16611         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16612         (struct if_expr): New.
16613         (struct with_expr): Likewise.
16614         (is_a_helper): Add helpers for if_expr and with_expr.
16615         (struct simplify): Add simplify_kind enum and member.  Remove
16616         ifexpr_vec member.
16617         (simplify::simplify): Adjust.
16618         (lower_commutative): Adjust.
16619         (lower_opt_convert): Likewise.
16620         (lower_cond): Likewise.
16621         (replace_id): Handle with_expr and if_expr.
16622         (lower_for): Adjust.
16623         (dt_simplify::gen_1): New recursive worker, split out from ...
16624         (dt_simplify::gen): ... here.  Deal with if and with expansion
16625         recursively.
16626         (capture_info::capture_info): Take context argument
16627         (capture_info::walk_result): Only analyze specific result.
16628         (parser::parse_result): New function.
16629         (parser::parse_simplify): Adjust to parse ifs with then end
16630         else case.
16631         (parser::parse_if): Simplify.
16632         (parser::parse_pattern): Pass down simplify kind.
16633         * match.pd: Convert if structure to new syntax.
16635 2015-07-13  Marek Polacek  <polacek@redhat.com>
16637         * rtl.c (rtx_equal_p_cb): Fix typo.
16639 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
16641         * omega.h: Don't include config.h, don't include params.h again if
16642         omega.h has already been included.
16643         * graphite-poly.h: Include sese.h.
16644         * graphite.c: Don't include sese.h, remove needless includes and
16645         minimize includes outside #ifdef HAVE_isl block.
16646         * graphite-blocking.c: Don't include sese.h, remove needless includes,
16647         and wrap entire file in #ifdef HAVE_isl
16648         * graphite-dependences.c: Likewise.
16649         * graphite-interchange.c: Likewise.
16650         * graphite-isl-ast-to-gimple.c: Likewise.
16651         * graphite-optimize-isl.c: Likewise.
16652         * graphite-poly.c: Likewise.
16653         * graphite-scop-detection.c: Likewise.
16654         * graphite-sese-to-poly.c: Likewise.
16656 2015-07-13  Tom de Vries  <tom@codesourcery.com>
16658         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16660 2015-07-13  Renlin Li  <renlin.li@arm.com>
16662         PR rtl/66556
16663         * simplify-rtx.c (simplify_const_relational_operation): Add
16664         side_effects_p checks.
16666 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
16668         * bitmap.h: Fix double word typos.
16669         * builtins.c: Same.
16670         * calls.c: Same.
16671         * cfgloopmanip.c: Same.
16672         * cgraph.c: Same.
16673         * cgraph.h: Same.
16674         * cgraphclones.c: Same.
16675         * combine.c: Same.
16676         * config/aarch64/aarch64-protos.h: Same.
16677         * config/aarch64/aarch64.c: Same.
16678         * config/aarch64/aarch64.md: Same.
16679         * config/arm/arm.md: Same.
16680         * config/arm/arm1020e.md: Same.
16681         * config/arm/arm1026ejs.md: Same.
16682         * config/arm/arm926ejs.md: Same.
16683         * config/arm/fa526.md: Same.
16684         * config/arm/fa606te.md: Same.
16685         * config/arm/fa626te.md: Same.
16686         * config/arm/fa726te.md: Same.
16687         * config/arm/fmp626.md: Same.
16688         * config/darwin.c: Same.
16689         * config/epiphany/epiphany.c: Same.
16690         * config/frv/frv.c: Same.
16691         * config/ft32/ft32.c: Same.
16692         * config/gnu-user.h: Same.
16693         * config/h8300/constraints.md: Same.
16694         * config/i386/i386.c: Same.
16695         * config/i386/i386.md: Same.
16696         * config/iq2000/iq2000.md: Same.
16697         * config/mips/mips.c: Same.
16698         * config/mmix/mmix.md: Same.
16699         * config/moxie/moxie.c: Same.
16700         * config/nds32/nds32.md: Same.
16701         * config/pa/pa.h: Same.
16702         * config/rs6000/aix.h: Same.
16703         * config/rs6000/rs6000.h: Same.
16704         * config/sh/sh.c: Same.
16705         * config/tilegx/tilegx.md: Same.
16706         * config/tilepro/gen-mul-tables.cc: Same.
16707         * cse.c: Same.
16708         * dbxout.c: Same.
16709         * doc/invoke.texi: Same.
16710         * dse.c: Same.
16711         * dwarf2out.c: Same.
16712         * final.c: Same.
16713         * gcc.c: Same.
16714         * genmatch.c: Same.
16715         * gimplify.c: Same.
16716         * hash-table.h: Same.
16717         * internal-fn.c: Same.
16718         * ipa-cp.c: Same.
16719         * ipa-devirt.c: Same.
16720         * ipa-icf.c: Same.
16721         * ipa-icf.h: Same.
16722         * ipa-profile.c: Same.
16723         * ipa-prop.c: Same.
16724         * ipa-prop.h: Same.
16725         * ira.c: Same.
16726         * omp-low.c: Same.
16727         * reg-stack.c: Same.
16728         * regcprop.c: Same.
16729         * reorg.c: Same.
16730         * rtl.h: Same.
16731         * sbitmap.h: Same.
16732         * tree-eh.c: Same.
16733         * tree-inline.c: Same.
16734         * tree-sra.c: Same.
16735         * tree-ssa-dom.c: Same.
16736         * tree-ssa-loop-ivopts.c: Same.
16737         * tree-ssa-structalias.c: Same.
16738         * tree-ssa-tail-merge.c: Same.
16739         * tree-ssa-ter.c: Same.
16740         * tree-ssa-threadupdate.c: Same.
16741         * tree-ssa-uninit.c: Same.
16742         * tree-ssanames.c: Same.
16743         * tree-vect-loop-manip.c: Same.
16744         * tree-vrp.c: Same.
16745         * tree.c: Same.
16746         * valtrack.c: Same.
16747         * vec.h: Same.
16749 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16751         PR middle-end/66726
16752         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16753         tree_ssa_phiopt_worker): Call it.
16755 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16757         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16758         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16759         REG_EQUAL note.
16761 2015-07-11  Marek Polacek  <polacek@redhat.com>
16763         PR middle-end/66353
16764         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16765         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16766         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16767         rather than bb_has_abnormal_call_pred.
16768         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16769         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16770         rather than bb_has_abnormal_call_pred.
16772 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
16774         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16775         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16776         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16777         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16778         v850_legitimate_address_p): New functions.
16779         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16781 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16783         PR target/66819
16784         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16785         indirect sibcall with register arguments if register available
16786         for argument passing.
16787         (init_cumulative_args): Set cfun->machine->arg_reg_available
16788         to (cum->nregs > 0) or to true if function has a variable
16789         argument list.
16790         (function_arg_advance_32): Set cfun->machine->arg_reg_available
16791         to false if cum->nregs <= 0.
16792         * config/i386/i386.h (machine_function): Add arg_reg_available.
16794 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
16796         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16797         and gen_higpart instead of gen_rtx_SUBREG.
16798         * config/i386/i386.md
16799         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16800         (read-modify peephole2): Use gen_lowpart instead of
16801         gen_rtx_SUBREG for operand 5.
16803 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16805         * config/tilepro/gen-mul-tables.cc (main): Change include list for
16806         generated files.
16807         * config/tilepro/mul-tables.c: Regenerate.
16808         * config/tilegx/mul-tables.c: Regenerate.
16810 2015-07-10  Richard Biener  <rguenther@suse.de>
16812         * fold-const.c (distribute_bit_expr): Remove.
16813         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16814         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16815         to A & (B | C) and simplifying A << C1 << C2 to ...
16816         * match.pd: ... patterns here.
16818 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
16820         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16821         Mark mem as READONLY and NOTRAP for PIC symbol.
16823 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16825         * gimple-predict.h: New file.
16826         (gimple_predict_predictor, gimple_predict_set_predictor,
16827         gimple_predict_outcome, gimple_predict_set_outcome,
16828         gimple_build_predict): Relocate here.
16829         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16830         gimple_predict_outcome, gimple_predict_set_outcome): Move to
16831         gimple-predict.h.
16832         * gimple.c (gimple_build_predict): Move to gimple-predict.h
16833         * basic-block.h: Don't include cfghooks.h.
16834         * backend.h: Don't include predict.h.
16835         * cfghooks.h: Include predict.h.
16836         * gimple-pretty-print.c: Include gimple-predict.h.
16837         * gimplify.c: Likwise.
16838         * predict.c: Adjust includes.
16839         * tree-inline.c: Likewise.
16840         * asan.c: Likewise.
16841         * auto-inc-dec.c: Likewise.
16842         * auto-profile.c: Likewise.
16843         * bb-reorder.c: Likewise.
16844         * builtins.c: Likewise.
16845         * caller-save.c: Likewise.
16846         * calls.c: Likewise.
16847         * cfganal.c: Likewise.
16848         * cfgbuild.c: Likewise.
16849         * cfg.c: Likewise.
16850         * cfgcleanup.c: Likewise.
16851         * cfgexpand.c: Likewise.
16852         * cfghooks.c: Likewise.
16853         * cfgloopanal.c: Likewise.
16854         * cfgloop.c: Likewise.
16855         * cfgloopmanip.c: Likewise.
16856         * cfgrtl.c: Likewise.
16857         * cgraph.c: Likewise.
16858         * cgraphunit.c: Likewise.
16859         * combine.c: Likewise.
16860         * cprop.c: Likewise.
16861         * cse.c: Likewise.
16862         * dce.c: Likewise.
16863         * dojump.c: Likewise.
16864         * dse.c: Likewise.
16865         * except.c: Likewise.
16866         * expmed.c: Likewise.
16867         * expr.c: Likewise.
16868         * final.c: Likewise.
16869         * fold-const.c: Likewise.
16870         * function.c: Likewise.
16871         * fwprop.c: Likewise.
16872         * gcc-plugin.h: Likewise.
16873         * gcse.c: Likewise.
16874         * genattrtab.c: Likewise.
16875         * genemit.c: Likewise.
16876         * gengtype.c: Likewise.
16877         * genopinit.c: Likewise.
16878         * genoutput.c: Likewise.
16879         * genpreds.c: Likewise.
16880         * genrecog.c: Likewise.
16881         * gimple-fold.c: Likewise.
16882         * gimple-iterator.c: Likewise.
16883         * gimple-ssa-isolate-paths.c: Likewise.
16884         * gimple-ssa-strength-reduction.c: Likewise.
16885         * graph.c: Likewise.
16886         * graphite-blocking.c: Likewise.
16887         * graphite.c: Likewise.
16888         * graphite-dependences.c: Likewise.
16889         * graphite-interchange.c: Likewise.
16890         * graphite-isl-ast-to-gimple.c: Likewise.
16891         * graphite-optimize-isl.c: Likewise.
16892         * graphite-poly.c: Likewise.
16893         * graphite-scop-detection.c: Likewise.
16894         * graphite-sese-to-poly.c: Likewise.
16895         * haifa-sched.c: Likewise.
16896         * ifcvt.c: Likewise.
16897         * internal-fn.c: Likewise.
16898         * ipa-cp.c: Likewise.
16899         * ipa-profile.c: Likewise.
16900         * ipa-split.c: Likewise.
16901         * ipa-utils.c: Likewise.
16902         * ira-build.c: Likewise.
16903         * ira-color.c: Likewise.
16904         * ira-conflicts.c: Likewise.
16905         * ira-costs.c: Likewise.
16906         * ira-emit.c: Likewise.
16907         * ira-lives.c: Likewise.
16908         * jump.c: Likewise.
16909         * loop-doloop.c: Likewise.
16910         * loop-init.c: Likewise.
16911         * loop-invariant.c: Likewise.
16912         * loop-unroll.c: Likewise.
16913         * lower-subreg.c: Likewise.
16914         * lra-assigns.c: Likewise.
16915         * lra.c: Likewise.
16916         * lra-coalesce.c: Likewise.
16917         * lra-constraints.c: Likewise.
16918         * lra-lives.c: Likewise.
16919         * lto-cgraph.c: Likewise.
16920         * lto-streamer-in.c: Likewise.
16921         * mode-switching.c: Likewise.
16922         * modulo-sched.c: Likewise.
16923         * omp-low.c: Likewise.
16924         * optabs.c: Likewise.
16925         * passes.c: Likewise.
16926         * postreload.c: Likewise.
16927         * postreload-gcse.c: Likewise.
16928         * profile.c: Likewise.
16929         * recog.c: Likewise.
16930         * regstat.c: Likewise.
16931         * reload1.c: Likewise.
16932         * reorg.c: Likewise.
16933         * rtlanal.c: Likewise.
16934         * sched-ebb.c: Likewise.
16935         * sel-sched-ir.c: Likewise.
16936         * sese.c: Likewise.
16937         * shrink-wrap.c: Likewise.
16938         * simplify-rtx.c: Likewise.
16939         * stmt.c: Likewise.
16940         * store-motion.c: Likewise.
16941         * tracer.c: Likewise.
16942         * trans-mem.c: Likewise.
16943         * tree-call-cdce.c: Likewise.
16944         * tree-cfg.c: Likewise.
16945         * tree-cfgcleanup.c: Likewise.
16946         * tree-chkp.c: Likewise.
16947         * tree-complex.c: Likewise.
16948         * tree-eh.c: Likewise.
16949         * tree-if-conv.c: Likewise.
16950         * tree-loop-distribution.c: Likewise.
16951         * tree-outof-ssa.c: Likewise.
16952         * tree-parloops.c: Likewise.
16953         * tree-predcom.c: Likewise.
16954         * tree-pretty-print.c: Likewise.
16955         * tree-profile.c: Likewise.
16956         * tree-sra.c: Likewise.
16957         * tree-ssa.c: Likewise.
16958         * tree-ssa-coalesce.c: Likewise.
16959         * tree-ssa-dce.c: Likewise.
16960         * tree-ssa-dom.c: Likewise.
16961         * tree-ssa-forwprop.c: Likewise.
16962         * tree-ssa-ifcombine.c: Likewise.
16963         * tree-ssa-loop-ch.c: Likewise.
16964         * tree-ssa-loop-im.c: Likewise.
16965         * tree-ssa-loop-ivcanon.c: Likewise.
16966         * tree-ssa-loop-ivopts.c: Likewise.
16967         * tree-ssa-loop-manip.c: Likewise.
16968         * tree-ssa-loop-prefetch.c: Likewise.
16969         * tree-ssa-loop-unswitch.c: Likewise.
16970         * tree-ssa-math-opts.c: Likewise.
16971         * tree-ssa-phiopt.c: Likewise.
16972         * tree-ssa-pre.c: Likewise.
16973         * tree-ssa-reassoc.c: Likewise.
16974         * tree-ssa-sink.c: Likewise.
16975         * tree-ssa-tail-merge.c: Likewise.
16976         * tree-ssa-threadedge.c: Likewise.
16977         * tree-ssa-threadupdate.c: Likewise.
16978         * tree-switch-conversion.c: Likewise.
16979         * tree-tailcall.c: Likewise.
16980         * tree-vect-data-refs.c: Likewise.
16981         * tree-vect-loop.c: Likewise.
16982         * tree-vect-loop-manip.c: Likewise.
16983         * tree-vectorizer.c: Likewise.
16984         * tree-vrp.c: Likewise.
16985         * ubsan.c: Likewise.
16986         * value-prof.c: Likewise.
16987         * varasm.c: Likewise.
16988         * var-tracking.c: Likewise.
16989         * config/aarch64/aarch64-builtins.c: Likewise.
16990         * config/aarch64/aarch64.c: Likewise.
16991         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16992         * config/alpha/alpha.c: Likewise.
16993         * config/arc/arc.c: Likewise.
16994         * config/arm/arm.c: Likewise.
16995         * config/avr/avr.c: Likewise.
16996         * config/bfin/bfin.c: Likewise.
16997         * config/c6x/c6x.c: Likewise.
16998         * config/cr16/cr16.c: Likewise.
16999         * config/cris/cris.c: Likewise.
17000         * config/darwin.c: Likewise.
17001         * config/darwin-c.c: Likewise.
17002         * config/epiphany/epiphany.c: Likewise.
17003         * config/epiphany/mode-switch-use.c: Likewise.
17004         * config/epiphany/resolve-sw-modes.c: Likewise.
17005         * config/fr30/fr30.c: Likewise.
17006         * config/frv/frv.c: Likewise.
17007         * config/ft32/ft32.c: Likewise.
17008         * config/h8300/h8300.c: Likewise.
17009         * config/i386/i386.c: Likewise.
17010         * config/i386/winnt.c: Likewise.
17011         * config/ia64/ia64.c: Likewise.
17012         * config/iq2000/iq2000.c: Likewise.
17013         * config/lm32/lm32.c: Likewise.
17014         * config/m32c/m32c.c: Likewise.
17015         * config/m32r/m32r.c: Likewise.
17016         * config/m68k/m68k.c: Likewise.
17017         * config/mcore/mcore.c: Likewise.
17018         * config/mep/mep.c: Likewise.
17019         * config/microblaze/microblaze.c: Likewise.
17020         * config/mips/mips.c: Likewise.
17021         * config/mmix/mmix.c: Likewise.
17022         * config/mn10300/mn10300.c: Likewise.
17023         * config/moxie/moxie.c: Likewise.
17024         * config/msp430/msp430.c: Likewise.
17025         * config/nds32/nds32.c: Likewise.
17026         * config/nds32/nds32-cost.c: Likewise.
17027         * config/nds32/nds32-fp-as-gp.c: Likewise.
17028         * config/nds32/nds32-intrinsic.c: Likewise.
17029         * config/nds32/nds32-isr.c: Likewise.
17030         * config/nds32/nds32-md-auxiliary.c: Likewise.
17031         * config/nds32/nds32-memory-manipulation.c: Likewise.
17032         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17033         * config/nds32/nds32-predicates.c: Likewise.
17034         * config/nios2/nios2.c: Likewise.
17035         * config/nvptx/nvptx.c: Likewise.
17036         * config/pa/pa.c: Likewise.
17037         * config/pdp11/pdp11.c: Likewise.
17038         * config/rl78/rl78.c: Likewise.
17039         * config/rs6000/rs6000.c: Likewise.
17040         * config/rx/rx.c: Likewise.
17041         * config/s390/s390.c: Likewise.
17042         * config/sh/sh.c: Likewise.
17043         * config/sh/sh-mem.cc: Likewise.
17044         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17045         * config/sh/sh_treg_combine.cc: Likewise.
17046         * config/sparc/sparc.c: Likewise.
17047         * config/spu/spu.c: Likewise.
17048         * config/stormy16/stormy16.c: Likewise.
17049         * config/tilegx/tilegx.c: Likewise.
17050         * config/tilepro/tilepro.c: Likewise.
17051         * config/v850/v850.c: Likewise.
17052         * config/vax/vax.c: Likewise.
17053         * config/visium/visium.c: Likewise.
17054         * config/xtensa/xtensa.c: Likewise.
17056 2015-07-10  Richard Biener  <rguenther@suse.de>
17058         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17059         (decision_tree::gen_gimple): Likewise.
17060         (decision_tree::gen_generic): Likewise.
17062 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17064         PR target/66813
17065         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17066         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17068 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
17070         PR middle-end/66820
17071         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17072         or ORT_TASK contexts.
17073         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17074         is non-zero.
17076 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17078         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17079         above function.
17081 2015-07-10  Tom de Vries  <tom@codesourcery.com>
17083         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17084         insert nit + 1 bound.
17086 2015-07-10  Richard Biener  <rguenther@suse.de>
17088         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17089         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17090         (if_convertible_loop_p_1): For this always compute bb predicates.
17091         (if_convertible_loop_p): And free them.
17093 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17095         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17096         in dump message.
17098 2015-07-10  Richard Biener  <rguenther@suse.de>
17100         PR tree-optimization/66823
17101         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17102         inverted predicate.
17104 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
17106         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17107         to handle mips[32|64]r3 and mips[32|64]r5.
17109 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
17111         PR middle-end/66633
17112         * tree-nested.c (get_static_chain): Or in a flag into
17113         info->static_chain_added.
17114         (get_frame_field, get_nonlocal_debug_decl): Likewise.
17115         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17116         2015-07-01 changes.
17117         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17118         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17119         add it to clauses.
17121         PR tree-optimization/66718
17122         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17123         field.
17124         (vect_simd_lane_linear): New function.
17125         (vectorizable_simd_clone_call): Support using linear arguments for
17126         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17128 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17130         PR target/66821
17131         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17133 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
17135         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17136         Use machine mode, not enum machine_mode in the prototype.
17138         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17139         classify 128-bit floating point support.
17140         (FLOAT128_IBM_P): Likewise.
17141         (FLOAT128_VECTOR_P): Likewise.
17142         (FLOAT128_2REG_P): Likewise.
17143         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17144         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17145         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17146         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17148         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17149         tests against TFmode/TDmode, since those modes do not use VSX
17150         addresses.
17151         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17152         support.
17153         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17154         tests against TFmode, etc.
17155         (invalid_e500_subreg): Add tests against IFmode/KFmode.
17156         (reg_offset_addressing_ok_p): Likewise.
17157         (rs6000_legitimate_offset_address_p): Likewise.
17158         (rs6000_legitimize_address): Likewise.
17159         (rs6000_legitimize_reload_address): Likewise.
17160         (rs6000_legitimate_address_p): Clean up tests against TFmode and
17161         TDmode to use the new helper macros, which will include IFmode and
17162         KFmode.
17163         (rs6000_emit_move): Likewise.
17164         (rs6000_darwin64_record_arg_recurse): Likewise.
17165         (print_operand): Likewise.
17166         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17167         that uses a single vector register as a vector and not as a
17168         floating point register in terms of the calling sequence.
17169         (rs6000_discover_homogeneous_aggregate): Likewise.
17170         (rs6000_return_in_memory): Likewise.
17171         (init_cumulative_args): Likewise.
17172         (rs6000_function_arg_boundary): Likewise.
17173         (rs6000_function_arg_advance_1): Likewise.
17174         (rs6000_function_arg): Likewise.
17175         (rs6000_pass_by_reference): Likewise.
17176         (rs6000_gimplify_va_arg): Likewise.
17177         (rs6000_secondary_reload_memory): Use machine_mode not enum
17178         machine mode.
17179         (rs6000_split_multireg_move): Use new helper macros.
17180         (spe_func_has_64bit_regs_p): Likewise.
17181         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17182         (output_toc): Use new helper macros.
17183         (rs6000_register_move_cost): Likewise.
17184         (rs6000_function_value): Add IEEE 128-bit floating point calling
17185         sequence support.
17186         (rs6000_libcall_value): Likewise.
17187         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17188         floating point support.
17189         (rs6000_vector_mode_supported_p): Likewise.
17191 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
17193         PR rtl-optimization/66782
17194         * lra-int.h (struct lra_insn_recog_data): Add comment about
17195         clobbered hard regs for arg_hard_regs.
17196         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17197         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17198         Add condition for processing used hard regs.
17199         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17200         Process clobbered hard regs.
17202 2015-07-09  Michael Matz  <matz@suse.de>
17204         * genmatch.c (fprintf_indent): New function.
17205         (operand::gen_transform): Add indent parameter.
17206         (expr::gen_transform, c_expr::gen_transform,
17207         capture::gen_transform): Ditto and use fprintf_indent.
17208         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17209         (dt_operand::gen, dt_operand::gen_predicate,
17210         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17211         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17212         (decision_tree::gen_gimple): Adjust calls and indent generated
17213         code.
17214         (decision_tree::gen_generic): Ditto.
17215         (write_predicate): Ditto.
17217 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17219         PR target/66814
17220         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17221         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17222         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17223         {GENERAL,SSE,MMX}_REG_P where appropriate.
17225 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17227         * lto-streamer.h: Don't include target.h and alloc-pool.h.
17228         * builtins.c: Adjust includes.
17229         * gimple.c: Likewise.
17230         * ipa-icf.c: Likewise.
17231         * lto-opts.c: Likewise.
17232         * ipa-reference.c: Likewise.
17233         * lto-section-out.c: Likewise.
17234         * lto-streamer-in.c: Likewise.
17235         * lto-streamer-out.c: Likewise.
17236         * opts-global.c: Likewise.
17237         * symtab.c: Likewise.
17238         * tree-chkp.c: Likewise.
17239         * tree-ssa-live.c: Likewise.
17240         * tree-streamer-in.c: Likewise.
17241         * tree-streamer-out.c: Likewise.
17242         * config/darwin.c: Likewise.
17243         * config/i386/winnt.c: Likewise.
17245 2015-07-09  Richard Biener  <rguenther@suse.de>
17247         * genmatch.c (struct expr): Add force_single_use flag.
17248         (expr::expr): Add copy constructor.
17249         (capture_info::walk_match): Gather force_single_use captures.
17250         (expr::gen_transform): Use possibly NULLified sequence.
17251         (dt_simplify::gen): Apply single-use restrictions by NULLifying
17252         seq if any constrained expr is not single-use.
17253         (parser::parse_expr): Refactor to allow multiple flags.  Handle
17254         's' flag to force an expression have a single-use if the pattern
17255         simplifies to more than one statement.
17256         * match.pd: Convert most single_use conditionals to :s flags.
17258 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17260         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17261         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17262         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17264 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17266         * flags.h: Don't include flag-types.h or options.h.
17267         * opts-common.c: Adjust includes.
17268         * opts-global.c: Likewise.
17269         * common/config/epiphany/epiphany-common.c: Likewise.
17271 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17273         PR target/66818
17274         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17275         for IA MCU.
17277 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17279         PR target/66817
17280         * config/i386/i386.c (ix86_return_in_memory): Return true
17281         if int_size_in_bytes returns negative for IA MCU.
17283 2015-07-09  Marek Polacek  <polacek@redhat.com>
17285         PR tree-optimization/66718
17286         * Makefile.in (OBJS): Add gimple-laddress.o.
17287         * passes.def: Schedule pass_laddress.
17288         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17289         * tree-pass.h (make_pass_laddress): Declare.
17290         * gimple-laddress.c: New file.
17292 2015-07-09  Richard Biener  <rguenther@suse.de>
17294         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17296 2015-07-09  Richard Biener  <rguenther@suse.de>
17298         PR tree-optimization/66807
17299         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17301 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
17303         * function.c (stack_protect_epilogue): Use if rather than switch for
17304         check targetm.have_stack_protect_test.
17306 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17308         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17309         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17310         * config/arc/arc.h: Likewise.
17311         * config/arm/arm.h: Likewise.
17312         * config/bfin/bfin.h: Likewise.
17313         * config/epiphany/epiphany.h: Likewise.
17314         * config/frv/frv.h: Likewise.
17315         * config/ia64/ia64.h: Likewise.
17316         * config/iq2000/iq2000.h: Likewise.
17317         * config/lm32/lm32.h: Likewise.
17318         * config/m32r/m32r.h: Likewise.
17319         * config/mcore/mcore.h: Likewise.
17320         * config/mep/mep.h: Likewise.
17321         * config/microblaze/microblaze.h: Likewise.
17322         * config/mips/mips.h: Likewise.
17323         * config/mmix/mmix.h: Likewise.
17324         * config/mn10300/mn10300.h: Likewise.
17325         * config/nds32/nds32.h: Likewise.
17326         * config/nios2/nios2.h: Likewise.
17327         * config/pa/pa.h: Likewise.
17328         * config/rl78/rl78.h: Likewise.
17329         * config/sh/sh.h: Likewise.
17330         * config/sparc/sparc.h: Likewise.
17331         * config/stormy16/stormy16.h: Likewise.
17332         * config/tilegx/tilegx.h: Likewise.
17333         * config/tilepro/tilepro.h: Likewise.
17334         * config/v850/v850.h: Likewise.
17335         * config/xtensa/xtensa.h: Likewise.
17336         * doc/tm.texi: Regenerate.
17337         * doc/tm.texi.in: Adjust.
17338         * combine.c (simplify_set): Likewise.
17339         (simplify_comparison): Likewise.
17340         * expr.c (store_constructor): Likewise.
17341         * internal-fn.c (expand_arith_overflow): Likewise.
17342         * reload.c (push_reload): Likewise.
17343         (find_reloads): Likewise.
17344         (find_reloads_subreg_address): Likewise.
17345         * reload1.c (eliminate_regs_1): Likewise.
17346         * rtlanal.c (nonzero_bits1): Likewise.
17347         (num_sign_bit_copies1): Likewise.
17348         * simplify-rtx.c (simplify_truncation): Likewise.
17350 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17352         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17353         of AUTO_INC_DEC with the preprocessor.
17354         * combine.c (combine_instructions): Likewise.
17355         (can_combine_p): Likewise.
17356         (try_combine): Likewise.
17357         * emit-rtl.c (try_split): Likewise.
17358         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17359         * lower-subreg.c (resolve_simple_move): Likewise.
17360         * lra.c (update_inc_notes): Likewise.
17361         * recog.c (asm_operand_ok): Likewise.
17362         (constrain_operands): Likewise.
17363         * regrename.c (scan_rtx_address): Likewise.
17364         * reload.c (update_auto_inc_notes): Likewise.
17365         (reg_inc_found_and_valid_p): Likewise.
17366         * reload1.c (reload): Likewise.
17367         (emit_input_reload_insns): Likewise.
17368         (delete_output_reload): Likewise.
17369         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17370         * valtrack.c (cleanup_auto_inc_dec): Likewise.
17372 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17374         * rtl.h: Always define AUTO_INC_DEC.
17375         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17376         * combine.c (combine_instructions): Likewise.
17377         (can_combine_p): Likewise.
17378         (try_combine): Likewise.
17379         * emit-rtl.c (try_split): Likewise.
17380         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17381         * lower-subreg.c (resolve_simple_move): Likewise.
17382         * lra.c (update_inc_notes): Likewise.
17383         * recog.c (asm_operand_ok): Likewise.
17384         (constrain_operands): Likewise.
17385         * regrename.c (scan_rtx_address): Likewise.
17386         * reload.c (update_auto_inc_notes): Likewise.
17387         (find_equiv_reg): Likewise.
17388         * reload1.c (reload): Likewise.
17389         (reload_as_needed): Likewise.
17390         (choose_reload_regs): Likewise.
17391         (emit_input_reload_insns): Likewise.
17392         (delete_output_reload): Likewise.
17393         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17394         * valtrack.c (cleanup_auto_inc_dec): Likewise.
17396 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17398         * combine.c (can_combine_def_p): Don't check the value of
17399         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17400         (combinable_i3pat): Likewise.
17401         (mark_used_regs_combine): Likewise.
17402         * regrename.c (rename_chains): Likewise.
17403         * reload.c (find_reloads_address): Likewise.
17404         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17406 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17408         * combine.c (update_rsp_from_reg_equal): Don't check if
17409         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17410         (reg_nonzero_bits_for_combine): Likewise.
17411         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17412         1.
17413         * config/frv/frv.h: Likewise.
17414         * config/lm32/lm32.h: Likewise.
17415         * config/mep/mep.h: Likewise.
17416         * config/mips/mips.h: Likewise.
17417         * config/rs6000/rs6000.h: Likewise.
17418         * config/sh/sh.h: Likewise.
17419         * config/tilegx/tilegx.h (enum reg_class): Likewise.
17420         * config/tilepro/tilepro.h: Likewise.
17421         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17422         * doc/tm.texi: Regenerate.
17423         * doc/tm.texi.in: Adjust.
17424         * rtlanal.c (nonzero_bits1): Likewise.
17426 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17428         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17429         with the preprocessor.
17430         (combine_instructions): Likewise.
17431         (try_combine): Likewise.
17432         (subst): Likewise.
17433         (distribute_notes): Likewise.
17435 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17437         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17438         defined.
17439         (simplify_set): Likewise.
17440         * cse.c (cse_insn): Likewise.
17441         * fold-const.c (fold_single_bit_test): Likewise.
17442         (fold_unary_loc): Likewise.
17443         * postreload.c (reload_cse_simplify_set): Likewise.
17444         (reload_cse_simplify_operands): Likewise.
17446 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
17448         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17449         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17451 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17453         PR target/66746
17454         * config/i386/x86intrin.h: Include <adxintrin.h> even if
17455         __iamcu__ is defined.
17457 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17459         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17461 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
17463         PR target/66523
17464         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17465         names from preservation.
17467 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17469         PR target/66806
17470         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17471         change for IAMCU.
17472         (function_arg_advance_32): Don't pass vectors in registers for
17473         IAMCU.
17474         (function_arg_32): Likewise.
17475         (ix86_return_in_memory): Don't return vectors in registers for
17476         IAMCU.
17478 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
17480         PR middle-end/66334
17481         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17482         hard regno live at the start of BB with incoming abnormal edges.
17483         * lra-lives.c (process_bb_lives): Ditto.
17485 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
17487         PR libgomp/65099
17488         * config/nvptx/mkoffload.c (main): Create an offload image only in
17489         64-bit configurations.
17491 2015-07-08  Martin Liska  <mliska@suse.cz>
17493         PR bootstrap/66744
17494         * tree-sra.c (create_access_1): Call ctor without brackets.
17495         (create_artificial_child_access): Likewise.
17497 2015-07-08  Richard Biener  <rguenther@suse.de>
17499         PR tree-optimization/66793
17500         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17501         Properly split the block after stmts ending it.
17503 2015-07-08  Richard Biener  <rguenther@suse.de>
17505         PR tree-optimization/66794
17506         * passes.c (execute_function_todo): Assert that post-dominators
17507         are not computed.
17508         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17509         Free post-dominators.
17511 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17513         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17514         with early exit.
17516 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17518         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17519         more than or equal 8 and less than 32 when optimizing for size.
17521 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17523         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17524         COSTS_N_INSNS (1) and increment it appropriately throughout the
17525         function.
17527 2015-07-08  Richard Biener  <rguenther@suse.de>
17529         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17531 2015-07-08  Alan Modra  <amodra@gmail.com>
17533         * target.def (rtx_costs): Remove "code" param, add "mode".
17534         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17535         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
17536         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17537         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
17538         call.  Track mode when given in rtx.
17539         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
17540         (default_address_cost): Pass Pmode to rtx_cost.
17541         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17542         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17543         with NULL set.
17544         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
17545         (notreg_cost): Add mode param.  Use it.
17546         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
17547         mode param and pass to set_src_cost.  Update all calls.
17548         (hash_scan_set): Formatting.
17549         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17550         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17551         * hooks.h: Ditto.
17552         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17553         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17554         emit_store_flag): Update set_src_cost and rtx_cost calls.
17555         * auto-inc-dec.c (attempt_change): Likewise.
17556         * calls.c (precompute_register_parameters): Likewise.
17557         * combine.c (expand_compound_operation, make_extraction,
17558         force_to_mode, distribute_and_simplify_rtx): Likewise.
17559         * dojump.c (prefer_and_bit_test): Likewise.
17560         * dse.c (find_shift_sequence): Likewise.
17561         * expr.c (compress_float_constant): Likewise.
17562         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17563         * ifcvt.c (noce_try_sign_mask): Likewise.
17564         * loop-doloop.c (doloop_optimize): Likewise.
17565         * loop-invariant.c (create_new_invariant): Likewise.
17566         * lower-subreg.c (shift_cost, compute_costs): Likewise.
17567         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17568         lshift_cheap_p): Likewise.
17569         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17570         try_replace_in_use, reload_cse_move2add): Likewise.
17571         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17572         Likewise.
17573         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17574         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17575         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17576         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17577         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17578         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
17579         to rtx_cost calls.
17580         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17581         * config/arc/arc.c (arc_rtx_costs): Likewise.
17582         * config/arm/arm.c (arm_rtx_costs): Likewise.
17583         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17584         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17585         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17586         * config/cris/cris.c (cris_rtx_costs): Likewise.
17587         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17588         * config/frv/frv.c (frv_rtx_costs): Likewise.
17589         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17590         * config/i386/i386.c (ix86_rtx_costs): Likewise.
17591         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17592         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17593         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17594         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17595         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17596         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17597         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17598         * config/mep/mep.c (mep_rtx_cost): Likewise.
17599         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17600         * config/mips/mips.c (mips_rtx_costs): Likewise.
17601         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17602         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17603         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17604         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17605         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17606         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17607         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17608         * config/pa/pa.c (hppa_rtx_costs): Likewise.
17609         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17610         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17611         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17612         * config/s390/s390.c (s390_rtx_costs): Likewise.
17613         * config/sh/sh.c (sh_rtx_costs): Likewise.
17614         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17615         * config/spu/spu.c (spu_rtx_costs): Likewise.
17616         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17617         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17618         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17619         * config/v850/v850.c (v850_rtx_costs): Likewise.
17620         * config/vax/vax.c (vax_rtx_costs): Likewise.
17621         * config/visium/visium.c (visium_rtx_costs): Likewise.
17622         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17623         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17624         "code" param, and pass as outer_code to first rtx_cost call.  Pass
17625         mode to rtx_cost calls.
17626         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17627         calls.
17628         (aarch64_rtx_costs_wrapper): Update.
17629         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17630         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17631         rtx_cost calls.
17632         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17633         and rtx_cost calls.
17634         (avr_operand_rtx_cost): Similarly.
17635         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17636         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17637         * config/mips/mips.c (mips_stack_address_p): Comment typo.
17638         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17639         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17640         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17641         rtx_cost.
17642         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17643         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17644         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17645         * doc/tm.texi: Regenerate.
17647 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
17649         * tree-core.h: Include symtab.h.
17650         * rtl.h: Include hard-reg-set.h but not flags.h.
17651         (HARD_CONST): Remove condition compilation involving HARD_CONST since
17652         hard-reg-set.h is always included.
17653         * regs.h: Don't include hard-reg-set.h or rtl.h.
17654         * cfg.h: Include dominance.h.
17655         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17656         * backend.h: New.  Aggregate commonly used backend header files.
17657         * gimple-ssa.h: Don't include tree-hasher.h.
17658         * ssa.h: New.  Aggregate commonly used SSA header files.
17659         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17660         * sel-sched-ir.h: Flatten includes.
17661         * lra-int.h: Flatten completely.
17662         * sel-sched-dump.h: Flatten includes.
17663         * ira-int.h: Flatten includes.
17664         * gimple-streamer.h: Remove all includes.
17665         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17666         * resource.h: Flatten hard-reg-set.h and df.h.
17667         * sched-int.h: Flatten insn-arrt.h and df.h.
17668         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17669         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17670         * genattrtab.c (write_header): Adjust generated includes.
17671         * genautomata.c (main): Likewise.
17672         * genconditions.c (write-header): Likewise.
17673         * genemit.c (main): Likewise.
17674         * gengtype.c (open_base_files): Likewise.
17675         * genopinit.c (main): Likewise.
17676         * genoutput.c (output_prologue): Likewise.
17677         * genpeep.c (main): Likewise.
17678         * genpreds.c (write_insn_preds_c): Likewise.
17679         * genrecog.c (write_header): Likewise.
17680         * alias.c: Adjust includes.
17681         * asan.c: Likewise.
17682         * attribs.c: Likewise.
17683         * auto-inc-dec.c: Likewise.
17684         * auto-profile.c: Likewise.
17685         * bb-reorder.c: Likewise.
17686         * bt-load.c: Likewise.
17687         * builtins.c: Likewise.
17688         * caller-save.c: Likewise.
17689         * calls.c: Likewise.
17690         * ccmp.c: Likewise.
17691         * cfg.c: Likewise.
17692         * cfganal.c: Likewise.
17693         * cfgbuild.c: Likewise.
17694         * cfgcleanup.c: Likewise.
17695         * cfgexpand.c: Likewise.
17696         * cfghooks.c: Likewise.
17697         * cfgloop.c: Likewise.
17698         * cfgloopanal.c: Likewise.
17699         * cfgloopmanip.c: Likewise.
17700         * cfgrtl.c: Likewise.
17701         * cgraph.c: Likewise.
17702         * cgraphbuild.c: Likewise.
17703         * cgraphclones.c: Likewise.
17704         * cgraphunit.c: Likewise.
17705         * cilk-common.c: Likewise.
17706         * combine-stack-adj.c: Likewise.
17707         * combine.c: Likewise.
17708         * compare-elim.c: Likewise.
17709         * convert.c: Likewise.
17710         * coverage.c: Likewise.
17711         * cppbuiltin.c: Likewise.
17712         * cprop.c: Likewise.
17713         * cse.c: Likewise.
17714         * cselib.c: Likewise.
17715         * data-streamer-in.c: Likewise.
17716         * data-streamer-out.c: Likewise.
17717         * data-streamer.c: Likewise.
17718         * dbxout.c: Likewise.
17719         * dce.c: Likewise.
17720         * ddg.c: Likewise.
17721         * debug.c: Likewise.
17722         * df-core.c: Likewise.
17723         * df-problems.c: Likewise.
17724         * df-scan.c: Likewise.
17725         * dfp.c: Likewise.
17726         * dojump.c: Likewise.
17727         * dominance.c: Likewise.
17728         * domwalk.c: Likewise.
17729         * double-int.c: Likewise.
17730         * dse.c: Likewise.
17731         * dumpfile.c: Likewise.
17732         * dwarf2asm.c: Likewise.
17733         * dwarf2cfi.c: Likewise.
17734         * dwarf2out.c: Likewise.
17735         * emit-rtl.c: Likewise.
17736         * et-forest.c: Likewise.
17737         * except.c: Likewise.
17738         * explow.c: Likewise.
17739         * expmed.c: Likewise.
17740         * expr.c: Likewise.
17741         * final.c: Likewise.
17742         * fixed-value.c: Likewise.
17743         * fold-const.c: Likewise.
17744         * function.c: Likewise.
17745         * fwprop.c: Likewise.
17746         * gcc-plugin.h: Likewise.
17747         * gcse-common.c: Likewise.
17748         * gcse.c: Likewise.
17749         * generic-match-head.c: Likewise.
17750         * ggc-page.c: Likewise.
17751         * gimple-builder.c: Likewise.
17752         * gimple-expr.c: Likewise.
17753         * gimple-fold.c: Likewise.
17754         * gimple-iterator.c: Likewise.
17755         * gimple-low.c: Likewise.
17756         * gimple-match-head.c: Likewise.
17757         * gimple-pretty-print.c: Likewise.
17758         * gimple-ssa-isolate-paths.c: Likewise.
17759         * gimple-ssa-strength-reduction.c: Likewise.
17760         * gimple-streamer-in.c: Likewise.
17761         * gimple-streamer-out.c: Likewise.
17762         * gimple-walk.c: Likewise.
17763         * gimple.c: Likewise.
17764         * gimplify-me.c: Likewise.
17765         * gimplify.c: Likewise.
17766         * godump.c: Likewise.
17767         * graph.c: Likewise.
17768         * graphite-blocking.c: Likewise.
17769         * graphite-dependences.c: Likewise.
17770         * graphite-interchange.c: Likewise.
17771         * graphite-isl-ast-to-gimple.c: Likewise.
17772         * graphite-optimize-isl.c: Likewise.
17773         * graphite-poly.c: Likewise.
17774         * graphite-scop-detection.c: Likewise.
17775         * graphite-sese-to-poly.c: Likewise.
17776         * graphite.c: Likewise.
17777         * haifa-sched.c: Likewise.
17778         * hw-doloop.c: Likewise.
17779         * ifcvt.c: Likewise.
17780         * init-regs.c: Likewise.
17781         * internal-fn.c: Likewise.
17782         * ipa-chkp.c: Likewise.
17783         * ipa-comdats.c: Likewise.
17784         * ipa-cp.c: Likewise.
17785         * ipa-devirt.c: Likewise.
17786         * ipa-icf-gimple.c: Likewise.
17787         * ipa-icf.c: Likewise.
17788         * ipa-inline-analysis.c: Likewise.
17789         * ipa-inline-transform.c: Likewise.
17790         * ipa-inline.c: Likewise.
17791         * ipa-polymorphic-call.c: Likewise.
17792         * ipa-profile.c: Likewise.
17793         * ipa-prop.c: Likewise.
17794         * ipa-pure-const.c: Likewise.
17795         * ipa-ref.c: Likewise.
17796         * ipa-reference.c: Likewise.
17797         * ipa-split.c: Likewise.
17798         * ipa-utils.c: Likewise.
17799         * ipa-visibility.c: Likewise.
17800         * ipa.c: Likewise.
17801         * ira-build.c: Likewise.
17802         * ira-color.c: Likewise.
17803         * ira-conflicts.c: Likewise.
17804         * ira-costs.c: Likewise.
17805         * ira-emit.c: Likewise.
17806         * ira-lives.c: Likewise.
17807         * ira.c: Likewise.
17808         * jump.c: Likewise.
17809         * langhooks.c: Likewise.
17810         * lcm.c: Likewise.
17811         * loop-doloop.c: Likewise.
17812         * loop-init.c: Likewise.
17813         * loop-invariant.c: Likewise.
17814         * loop-iv.c: Likewise.
17815         * loop-unroll.c: Likewise.
17816         * lower-subreg.c: Likewise.
17817         * lra-assigns.c: Likewise.
17818         * lra-coalesce.c: Likewise.
17819         * lra-constraints.c: Likewise.
17820         * lra-eliminations.c: Likewise.
17821         * lra-lives.c: Likewise.
17822         * lra-remat.c: Likewise.
17823         * lra-spills.c: Likewise.
17824         * lra.c: Likewise.
17825         * lto-cgraph.c: Likewise.
17826         * lto-compress.c: Likewise.
17827         * lto-opts.c: Likewise.
17828         * lto-section-in.c: Likewise.
17829         * lto-section-out.c: Likewise.
17830         * lto-streamer-in.c: Likewise.
17831         * lto-streamer-out.c: Likewise.
17832         * lto-streamer.c: Likewise.
17833         * mcf.c: Likewise.
17834         * mode-switching.c: Likewise.
17835         * modulo-sched.c: Likewise.
17836         * omega.c: Likewise.
17837         * omp-low.c: Likewise.
17838         * optabs.c: Likewise.
17839         * opts-global.c: Likewise.
17840         * passes.c: Likewise.
17841         * plugin.c: Likewise.
17842         * postreload-gcse.c: Likewise.
17843         * postreload.c: Likewise.
17844         * predict.c: Likewise.
17845         * print-rtl.c: Likewise.
17846         * print-tree.c: Likewise.
17847         * profile.c: Likewise.
17848         * real.c: Likewise.
17849         * realmpfr.c: Likewise.
17850         * recog.c: Likewise.
17851         * ree.c: Likewise.
17852         * reg-stack.c: Likewise.
17853         * regcprop.c: Likewise.
17854         * reginfo.c: Likewise.
17855         * regrename.c: Likewise.
17856         * regstat.c: Likewise.
17857         * reload.c: Likewise.
17858         * reload1.c: Likewise.
17859         * reorg.c: Likewise.
17860         * resource.c: Likewise.
17861         * rtl-chkp.c: Likewise.
17862         * rtlanal.c: Likewise.
17863         * rtlhooks.c: Likewise.
17864         * sanopt.c: Likewise.
17865         * sched-deps.c: Likewise.
17866         * sched-ebb.c: Likewise.
17867         * sched-rgn.c: Likewise.
17868         * sched-vis.c: Likewise.
17869         * sdbout.c: Likewise.
17870         * sel-sched-dump.c: Likewise.
17871         * sel-sched-ir.c: Likewise.
17872         * sel-sched.c: Likewise.
17873         * sese.c: Likewise.
17874         * shrink-wrap.c: Likewise.
17875         * simplify-rtx.c: Likewise.
17876         * stack-ptr-mod.c: Likewise.
17877         * stmt.c: Likewise.
17878         * stor-layout.c: Likewise.
17879         * store-motion.c: Likewise.
17880         * stringpool.c: Likewise.
17881         * symtab.c: Likewise.
17882         * target-globals.c: Likewise.
17883         * targhooks.c: Likewise.
17884         * toplev.c: Likewise.
17885         * tracer.c: Likewise.
17886         * trans-mem.c: Likewise.
17887         * tree-affine.c: Likewise.
17888         * tree-browser.c: Likewise.
17889         * tree-call-cdce.c: Likewise.
17890         * tree-cfg.c: Likewise.
17891         * tree-cfgcleanup.c: Likewise.
17892         * tree-chkp-opt.c: Likewise.
17893         * tree-chkp.c: Likewise.
17894         * tree-chrec.c: Likewise.
17895         * tree-complex.c: Likewise.
17896         * tree-data-ref.c: Likewise.
17897         * tree-dfa.c: Likewise.
17898         * tree-diagnostic.c: Likewise.
17899         * tree-dump.c: Likewise.
17900         * tree-eh.c: Likewise.
17901         * tree-emutls.c: Likewise.
17902         * tree-if-conv.c: Likewise.
17903         * tree-inline.c: Likewise.
17904         * tree-into-ssa.c: Likewise.
17905         * tree-iterator.c: Likewise.
17906         * tree-loop-distribution.c: Likewise.
17907         * tree-nested.c: Likewise.
17908         * tree-nrv.c: Likewise.
17909         * tree-object-size.c: Likewise.
17910         * tree-outof-ssa.c: Likewise.
17911         * tree-parloops.c: Likewise.
17912         * tree-phinodes.c: Likewise.
17913         * tree-predcom.c: Likewise.
17914         * tree-pretty-print.c: Likewise.
17915         * tree-profile.c: Likewise.
17916         * tree-scalar-evolution.c: Likewise.
17917         * tree-sra.c: Likewise.
17918         * tree-ssa-address.c: Likewise.
17919         * tree-ssa-alias.c: Likewise.
17920         * tree-ssa-ccp.c: Likewise.
17921         * tree-ssa-coalesce.c: Likewise.
17922         * tree-ssa-copy.c: Likewise.
17923         * tree-ssa-copyrename.c: Likewise.
17924         * tree-ssa-dce.c: Likewise.
17925         * tree-ssa-dom.c: Likewise.
17926         * tree-ssa-dse.c: Likewise.
17927         * tree-ssa-forwprop.c: Likewise.
17928         * tree-ssa-ifcombine.c: Likewise.
17929         * tree-ssa-live.c: Likewise.
17930         * tree-ssa-loop-ch.c: Likewise.
17931         * tree-ssa-loop-im.c: Likewise.
17932         * tree-ssa-loop-ivcanon.c: Likewise.
17933         * tree-ssa-loop-ivopts.c: Likewise.
17934         * tree-ssa-loop-manip.c: Likewise.
17935         * tree-ssa-loop-niter.c: Likewise.
17936         * tree-ssa-loop-prefetch.c: Likewise.
17937         * tree-ssa-loop-unswitch.c: Likewise.
17938         * tree-ssa-loop.c: Likewise.
17939         * tree-ssa-math-opts.c: Likewise.
17940         * tree-ssa-operands.c: Likewise.
17941         * tree-ssa-phiopt.c: Likewise.
17942         * tree-ssa-phiprop.c: Likewise.
17943         * tree-ssa-pre.c: Likewise.
17944         * tree-ssa-propagate.c: Likewise.
17945         * tree-ssa-reassoc.c: Likewise.
17946         * tree-ssa-sccvn.c: Likewise.
17947         * tree-ssa-scopedtables.c: Likewise.
17948         * tree-ssa-sink.c: Likewise.
17949         * tree-ssa-strlen.c: Likewise.
17950         * tree-ssa-structalias.c: Likewise.
17951         * tree-ssa-tail-merge.c: Likewise.
17952         * tree-ssa-ter.c: Likewise.
17953         * tree-ssa-threadedge.c: Likewise.
17954         * tree-ssa-threadupdate.c: Likewise.
17955         * tree-ssa-uncprop.c: Likewise.
17956         * tree-ssa-uninit.c: Likewise.
17957         * tree-ssa.c: Likewise.
17958         * tree-ssanames.c: Likewise.
17959         * tree-stdarg.c: Likewise.
17960         * tree-streamer-in.c: Likewise.
17961         * tree-streamer-out.c: Likewise.
17962         * tree-streamer.c: Likewise.
17963         * tree-switch-conversion.c: Likewise.
17964         * tree-tailcall.c: Likewise.
17965         * tree-vect-data-refs.c: Likewise.
17966         * tree-vect-generic.c: Likewise.
17967         * tree-vect-loop-manip.c: Likewise.
17968         * tree-vect-loop.c: Likewise.
17969         * tree-vect-patterns.c: Likewise.
17970         * tree-vect-slp.c: Likewise.
17971         * tree-vect-stmts.c: Likewise.
17972         * tree-vectorizer.c: Likewise.
17973         * tree-vrp.c: Likewise.
17974         * tree.c: Likewise.
17975         * tsan.c: Likewise.
17976         * ubsan.c: Likewise.
17977         * valtrack.c: Likewise.
17978         * value-prof.c: Likewise.
17979         * var-tracking.c: Likewise.
17980         * varasm.c: Likewise.
17981         * varpool.c: Likewise.
17982         * vmsdbgout.c: Likewise.
17983         * vtable-verify.c: Likewise.
17984         * web.c: Likewise.
17985         * wide-int.cc: Likewise.
17986         * xcoffout.c: Likewise.
17987         * config/aarch64/aarch64-builtins.c: Likewise.
17988         * config/aarch64/aarch64.c: Likewise.
17989         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17990         * config/alpha/alpha.c: Likewise.
17991         * config/arc/arc.c: Likewise.
17992         * config/arm/aarch-common.c: Likewise.
17993         * config/arm/arm-builtins.c: Likewise.
17994         * config/arm/arm-c.c: Likewise.
17995         * config/arm/arm.c: Likewise.
17996         * config/avr/avr-c.c: Likewise.
17997         * config/avr/avr-log.c: Likewise.
17998         * config/avr/avr.c: Likewise.
17999         * config/bfin/bfin.c: Likewise.
18000         * config/c6x/c6x.c: Likewise.
18001         * config/cr16/cr16.c: Likewise.
18002         * config/cris/cris.c: Likewise.
18003         * config/darwin-c.c: Likewise.
18004         * config/darwin.c: Likewise.
18005         * config/epiphany/epiphany.c: Likewise.
18006         * config/epiphany/mode-switch-use.c: Likewise.
18007         * config/epiphany/resolve-sw-modes.c: Likewise.
18008         * config/fr30/fr30.c: Likewise.
18009         * config/frv/frv.c: Likewise.
18010         * config/ft32/ft32.c: Likewise.
18011         * config/h8300/h8300.c: Likewise.
18012         * config/i386/i386-c.c: Likewise.
18013         * config/i386/i386.c: Likewise.
18014         * config/i386/msformat-c.c: Likewise.
18015         * config/i386/winnt-cxx.c: Likewise.
18016         * config/i386/winnt-stubs.c: Likewise.
18017         * config/i386/winnt.c: Likewise.
18018         * config/ia64/ia64-c.c: Likewise.
18019         * config/ia64/ia64.c: Likewise.
18020         * config/iq2000/iq2000.c: Likewise.
18021         * config/lm32/lm32.c: Likewise.
18022         * config/m32c/m32c-pragma.c: Likewise.
18023         * config/m32c/m32c.c: Likewise.
18024         * config/m32r/m32r.c: Likewise.
18025         * config/m68k/m68k.c: Likewise.
18026         * config/mcore/mcore.c: Likewise.
18027         * config/mep/mep-pragma.c: Likewise.
18028         * config/mep/mep.c: Likewise.
18029         * config/microblaze/microblaze-c.c: Likewise.
18030         * config/microblaze/microblaze.c: Likewise.
18031         * config/mips/mips.c: Likewise.
18032         * config/mmix/mmix.c: Likewise.
18033         * config/mn10300/mn10300.c: Likewise.
18034         * config/moxie/moxie.c: Likewise.
18035         * config/msp430/msp430-c.c: Likewise.
18036         * config/msp430/msp430.c: Likewise.
18037         * config/nds32/nds32-cost.c: Likewise.
18038         * config/nds32/nds32-fp-as-gp.c: Likewise.
18039         * config/nds32/nds32-intrinsic.c: Likewise.
18040         * config/nds32/nds32-isr.c: Likewise.
18041         * config/nds32/nds32-md-auxiliary.c: Likewise.
18042         * config/nds32/nds32-memory-manipulation.c: Likewise.
18043         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18044         * config/nds32/nds32-predicates.c: Likewise.
18045         * config/nds32/nds32.c: Likewise.
18046         * config/nios2/nios2.c: Likewise.
18047         * config/nvptx/nvptx.c: Likewise.
18048         * config/pa/pa.c: Likewise.
18049         * config/pdp11/pdp11.c: Likewise.
18050         * config/rl78/rl78-c.c: Likewise.
18051         * config/rl78/rl78.c: Likewise.
18052         * config/rs6000/rs6000-c.c: Likewise.
18053         * config/rs6000/rs6000.c: Likewise.
18054         * config/rx/rx.c: Likewise.
18055         * config/s390/s390-c.c: Likewise.
18056         * config/s390/s390.c: Likewise.
18057         * config/sh/sh-c.c: Likewise.
18058         * config/sh/sh-mem.cc: Likewise.
18059         * config/sh/sh.c: Likewise.
18060         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18061         * config/sh/sh_treg_combine.cc: Likewise.
18062         * config/sol2-c.c: Likewise.
18063         * config/sol2-cxx.c: Likewise.
18064         * config/sol2-stubs.c: Likewise.
18065         * config/sol2.c: Likewise.
18066         * config/sparc/sparc-c.c: Likewise.
18067         * config/sparc/sparc.c: Likewise.
18068         * config/spu/spu-c.c: Likewise.
18069         * config/spu/spu.c: Likewise.
18070         * config/stormy16/stormy16.c: Likewise.
18071         * config/tilegx/mul-tables.c: Likewise.
18072         * config/tilegx/tilegx-c.c: Likewise.
18073         * config/tilegx/tilegx.c: Likewise.
18074         * config/tilepro/mul-tables.c: Likewise.
18075         * config/tilepro/tilepro-c.c: Likewise.
18076         * config/tilepro/tilepro.c: Likewise.
18077         * config/v850/v850-c.c: Likewise.
18078         * config/v850/v850.c: Likewise.
18079         * config/vax/vax.c: Likewise.
18080         * config/visium/visium.c: Likewise.
18081         * config/vms/vms-c.c: Likewise.
18082         * config/vms/vms.c: Likewise.
18083         * config/vxworks.c: Likewise.
18084         * config/xtensa/xtensa.c: Likewise.
18086 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
18088         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18089         Remove operand constraints.  Change operand 2 predicate to
18090         nonmemory operand.  Limit const_int values to mode bitsize.  Only
18091         allow const_int values less than 32 when optimizing for size.
18092         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18093         Remove operand constraints.
18094         (*bt<mode>): Use SImode for const_int values less than 32.
18095         (regmode): Remove mode attribute.
18097 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
18099         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18100         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18101           moxie_legitimate_address_p): New functions.
18102           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18104 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18106         PR tree-optimization/66642
18107         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18108         header comment.  Rename split_edge variable to edge_at_split.  Split
18109         exit edge to create new loop exit bb.  Insert loop exit phis in new
18110         loop exit bb.
18112 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18114         * tree-cfg.c (get_virtual_phi): New function.
18115         * tree-cfg.h (get_virtual_phi): Declare.
18116         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18117         (rewrite_virtuals_into_loop_closed_ssa): New function.
18118         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18119         Declare.
18120         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18121         (transform_to_exit_first_loop_alt): Use
18122         rewrite_virtuals_into_loop_closed_ssa.
18124 2015-07-07  Richard Biener  <rguenther@suse.de>
18126         * fold-const.c (fold_binary_loc): Move
18127         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18128         * match.pd: ... here.
18129         Add (X * C1) % C2 -> 0 simplification pattern derived from
18130         extract_muldiv_1.
18132 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18134         PR target/66780
18135         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18136         change for target/65249.
18138 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
18140         * symtab.c (address_matters_1): Fix typo in comment above.
18141         (can_increase_alignment_p): Likewise.
18143 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18145         * function.c (free_after_compilation): Clear PROP_cfg in
18146         f->curr_properties.
18148 2015-07-07  Richard Biener  <rguenther@suse.de>
18150         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18151         add which use to.
18152         (add_control_edge): Remove excessive vertical space in dumping.
18153         (process_ssa_edge_worklist): Simulate at most one statement and
18154         return whether we did.  Do not simulate PHIs if they are in a
18155         BB not yet simulated.
18156         (ssa_propagate): Adjust to always drain the BB worklist whenever
18157         a BB is available there, likewise the VARYING edges list before
18158         the interesting edge list.
18160 2015-07-07  Christian Bruel  <christian.bruel@st.com>
18162         PR target/52144
18163         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18165 2015-07-07  Richard Biener  <rguenther@suse.de>
18167         PR middle-end/66739
18168         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18169         A - B.
18171 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18173         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
18174         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
18175         Copy operand 0 to a temporary if !ext_register_operand.  Remove
18176         ancient extract_bit_field workaround.
18177         (insv<mode>_1): Rename from mov<mode>_insv_1.
18178         (*insvqi): Rename from *movqi_insv_2.
18179         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18180         for renamed insvsi_1.
18181         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18183 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
18185         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
18186         call to nvptx_reorg_subreg.
18188 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
18190         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18191         * graphite-dependencies.c, graphite-interchange.c,
18192         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18193         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18194         Likewise.
18196 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
18198         * match.pd: Remove element_mode inside HONOR_*.
18199         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18200         (~X | X -> -1, ~X ^ X -> -1): Merge.
18201         * tree.c (build_each_one_cst): New function.
18202         * tree.h (build_each_one_cst): Likewise.
18204 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18206         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18207         PROCESSOR_IAMCU.
18209 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
18211         * config.gcc <mips*-*-*>: Add fused-madd.opt.
18212         * config/mips/mips.opt (mfused-madd): Remove.
18213         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18214         * config/mips/mips.h (TARGET_MIPS8000): New.
18215         (ISA_HAS_FP_MADD4_MSUB4): Remove.
18216         (ISA_HAS_FP_MADDF_MSUBF): Remove.
18217         (ISA_HAS_FP_MADD3_MSUB3): Remove.
18218         (ISA_HAS_NMADD4_NMSUB4): Remove.
18219         (ISA_HAS_NMADD3_NMSUB3): Remove.
18220         (ISA_HAS_FUSED_MADD4): New.
18221         (ISA_HAS_UNFUSED_MADD4): New.
18222         (ISA_HAS_FUSED_MADDF): New.
18223         (ISA_HAS_FUSED_MADD3): New.
18224         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18225         (*fma<mode>4_madd3) New.
18226         (*fma<mode>4_madd4) New.
18227         (*fma<mode>4_maddf) New.
18228         (fms<mode>4) New.
18229         (*fms<mode>4_msub3) New.
18230         (*fms<mode>4_msub4) New.
18231         (fnma<mode>4) New.
18232         (*fnma<mode>4_nmadd3) New.
18233         (*fnma<mode>4_nmadd4) New.
18234         (fnms<mode>4) New.
18235         (*fnms<mode>4_nmsub3) New.
18236         (*fnms<mode>4_nmsub4) New.
18237         (*madd4<mode>) Modify to be unfused only.
18238         (*msub4<mode>) Modify to be unfused only.
18239         (*nmadd4<mode>) Modify to be unfused only.
18240         (*nmsub4<mode>) Modify to be unfused only.
18241         (*madd3<mode>) Remove.
18242         (*msub3<mode>) Remove.
18243         (*nmadd3<mode>) Remove.
18244         (*nmsub3<mode>) Remove.
18245         (*nmadd3<mode>_fastmath) Remove.
18246         (*nmsub3<mode>_fastmath) Remove.
18247         (*nmadd4<mode>_fastmath) Update condition.
18248         (*nmsub4<mode>_fastmath) Update condition.
18250 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18252         PR target/65956
18253         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18254         alignment attribute, exploring one level down for records and arrays.
18256 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18258         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
18259         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
18260         Copy operand 1 to a temporary if !ext_register_operand.  Remove
18261         ancient extract_bit_field workaround.
18262         (*extv<mode>): Rename from *mov<mode>_extv_1.
18263         (*extvqi): Rename from *movqi_extv_1.
18264         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
18265         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
18266         to a temporary if !ext_register_operand.  Remove ancient
18267         extract_bit_field workaround.
18268         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18269         (*extzvqi): Rename from *movqi_extzv_2.
18270         (*testqi_ext_3): Remove modes from const_int_operand predicated
18271         operands.  Add "n" constraint.
18272         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18273         operand.  Add "J" constraint.
18274         (*btsq, *btrq, *btcq peephole2s): Remove mode from
18275         const_0_to_63 predicated operand.
18276         (regmode): New insn attribute.
18277         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
18278         to nonmemory_operand.  Use regmode insn attribute.
18279         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18280         (*jcc_bt<mode>_mask): Remove mode from operand 3.
18281         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18282         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18283         operands.  Use "N" constraint instead of "n".
18285 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18287         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18289 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18291         PR target/66749
18292         * config/i386/i386.c (iamcu_cost): New.
18293         (m_IAMCU): Likewise.
18294         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18295         (processor_target_table): Add an entry for "iamcu".
18296         (processor_alias_table): Likewise.
18297         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18298         (ix86_adjust_cost): Likewise.
18299         (ia32_multipass_dfa_lookahead): Likewise.
18300         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18301         * config/i386/x86-tune.def: Updated for m_IAMCU.
18303 2015-07-06  Richard Biener  <rguenther@suse.de>
18305         PR tree-optimization/66772
18306         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18307         values are available in the PHI node BB when there are
18308         still unexecutable edges.
18310 2015-07-06  Richard Biener  <rguenther@suse.de>
18312         PR tree-optimization/66767
18313         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18314         Make sure to build the alignment test on a SSA name without
18315         final alignment info valid only if the alignment test
18316         evaluates to true.
18318 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18320         PR target/66620
18321         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18322         loop start when inserting LSETUP.
18324 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18326         PR target/53383
18327         * config/i386/i386.c (ix86_option_override_internal): Allow
18328         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18330 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18332         * read-md.c (decimal_string): Rename to ...
18333         (md_decimal_string): ... this.
18334         (handle_enum): Reflect this.
18336 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18338         PR target/66731
18339         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18341 2015-07-06  Richard Biener  <rguenther@suse.de>
18343         PR middle-end/66759
18344         * match.pd: Add missing constraint of y to REAL_CST in
18345         REAL_CST - x CMP y to y - CST CMP x simplification.
18347 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
18349         PR tree-optimization/66757
18350         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18352 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
18353             Sandra Loosemore <sandra@codesourcery.com>
18355         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18356         Delete extern declaration.
18357         (gprel_constant_p): Add extern declaration.
18358         * config/nios2/constraints.md ("S"): Use gprel_constant_p
18359         instead of nios2_symbol_ref_in_small_data_p.
18360         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18361         (nios2_symbol_ref_in_small_data_p): Make static.
18362         (gprel_constant_p): Make non-static.
18364 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18366         * doc/fragments.texi (Target Fragment): Convert debian.org
18367         link to use https.
18368         * doc/install.texi (Configuration): Ditto.
18370 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
18372         PR tree-optimization/66718
18373         * tree-vect-stmts.c (vectorizable_call): Replace uses of
18374         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18376         PR tree-optimization/66718
18377         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18378         vectorizable_load, vectorizable_condition): Move vectype,
18379         nunits, ncopies computation after checking what kind of statement
18380         stmt is.
18382 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18384         * target-insns.def (extv, extzv, insv): New targetm instruction
18385         patterns.
18386         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18387         interface.
18388         * recog.c (simplify_while_replacing): Likewise.
18390 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18392         * target-insns.def (doloop_begin, doloop_end): New targetm
18393         instruction patterns.
18394         * loop-init.c: Include target.h.
18395         (pass_loop2::gate): Use the new targetm patterns instead of
18396         HAVE_*/gen_* interface.
18397         (pass_rtl_doloop::gate): Likewise.
18398         (pass_rtl_doloop::execute): Remove preprocessor condition.
18399         * hw-doloop.c: Build unconditionally.
18400         * loop-doloop.c: Likewise.
18401         (doloop_optimize): Use the new targetm patterns instead of
18402         HAVE_*/gen_* interface.
18403         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18404         * modulo-sched.c (doloop_register_get): Likewise.
18406 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18408         * target-insns.def (clear_cache): New targetm instruction pattern.
18409         * builtins.c (expand_builtin___clear_cache): Use it instead of
18410         HAVE_*/gen_* interface.
18412 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18414         * target-insns.def (allocate_stack, check_stack, probe_stack)
18415         (probe_stack_address, split_stack_prologue, split_stack_space_check):
18416         New targetm instruction patterns.
18417         * explow.c (allocate_dynamic_stack_space): Use them instead of
18418         HAVE_*/gen_* interface.
18419         (emit_stack_probe): Likewise.
18420         (probe_stack_range): Likewise.
18421         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18423 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18425         * target-insns.def (stack_protect_set, stack_protect_test): New
18426         targetm instruction patterns.
18427         * cfgexpand.c (stack_protect_prologue): Use them instead of
18428         HAVE_*/gen_* interface.
18429         * function.c (stack_protect_epilogue): Likewise.
18431 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18433         * expr.h (gen_move_insn_uncast): Delete.
18434         * expr.c (gen_move_insn_uncast): Delete.
18436 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18438         * target-insns.def (restore_stack_block, restore_stack_function)
18439         (restore_stack_nonlocal, save_stack_block, save_stack_function)
18440         (save_stack_nonlocal): New targetm instruction patterns.
18441         * builtins.c (expand_builtin_apply): Use them instead of
18442         HAVE_*/gen_* interface.
18443         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18445 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18447         * target-insns.def (trap): New targetm instruction pattern.
18448         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18449         interface.
18450         * explow.c (allocate_dynamic_stack_space): Likewise.
18451         * ifcvt.c (find_if_header): Likewise.
18453 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18455         * target-insns.def (prefetch): New targetm instruction pattern.
18456         * tree-ssa-loop-prefetch.c: Include targeth.
18457         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18458         of HAVE_*/gen_* interface.
18459         * builtins.c (expand_builtin_prefetch): Likewise.
18460         * toplev.c (process_options): Likewise.
18462 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18464         * target-insns.def (untyped_call, untyped_return): New targetm
18465         instruction patterns.
18466         * builtins.c (expand_builtin_apply): Use them instead of
18467         HAVE_*/gen_* interface.
18468         (result_vector): Define unconditionally.
18470 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18472         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18473         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18474         (nonlocal_goto_receiver): New targetm instruction patterns.
18475         * builtins.c (expand_builtin_setjmp_setup): Use them instead
18476         of HAVE_*/gen_* interface.
18477         (expand_builtin_setjmp_receiver): Likewise.
18478         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18479         * except.c (expand_dw2_landing_pad_for_region): Likewise.
18481 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18483         * target.def: Add code_for_* hooks.
18484         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18485         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18486         * target-insns.def (casesi, tablejump): New targetm instruction
18487         patterns.
18488         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18489         (do_tablejump): Likewise.
18490         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18491         (expand_sjlj_dispatch_table): Likewise.
18492         * targhooks.c (default_case_values_threshold): Likewise.
18494 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
18496         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18497         Use rtx_insn * instead of rtx.
18498         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18499         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18500         (nios2_call_tls_get_addr): Likewise.
18501         (nios2_emit_expensive_div): Likewise.
18502         (nios2_emit_move_sequence): Change return type to bool.
18503         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18504         Change return type to bool.
18506 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18508         PR target/66747
18509         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18511 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
18513         PR target/66114
18514         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18515         of register_operand.  Remove constraint.
18517 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
18519         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18520         the first argument.
18522 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
18524         * attribs.c (decl_attributes): Guard inform with the return value
18525         of the preceding warning.
18527 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18529         * doc/invoke.texi (moverride): Move to correct section.
18531 2015-07-03  Richard Biener  <rguenther@suse.de>
18533         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18534         Copy from tree.c
18535         (dt_operand::gen_gimple_expr): After valueizing operands
18536         re-canonicalize operand order for commutative tree codes.
18538 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
18540         PR target/66746.
18541         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18542         is defined.
18543         (__crc32w): Likewise.
18544         (__crc32d): Likewise.
18545         (__rdpmc): Likewise.
18546         (__rdtscp): Likewise.
18547         (_rdpmc): Likewise.
18548         (_rdtscp): Likewise.
18549         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18550         is defined.
18552 2015-07-03  Richard Biener  <rguenther@suse.de>
18554         * fold-const.c (fold_mathfn_compare): Remove.
18555         (fold_inf_compare): Likewise.
18556         (fold_comparison): Move floating point comparison simplifications...
18557         * match.pd: ... to patterns here.  Introduce simple_comparisons
18558         operator list and use it for patterns formerly in fold_comparison.
18560 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18562         PR tree-optimization/66119
18563         * toplev.c (process_options): Don't set up default values for
18564         the sra_max_scalarization_size_{speed,size} parameters.
18565         * tree-sra (analyze_all_variable_accesses): If no values
18566         have been set for the sra_max_scalarization_size_{speed,size}
18567         parameters, call get_move_ratio to get target defaults.
18569 2015-07-03  Richard Biener  <rguenther@suse.de>
18571         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18572         * match.pd: ... here.
18574 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
18576         PR target/37072
18577         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18578         is not actually the default on FreeBSD.
18580 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18582         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18583         definition.
18584         (CMPGE_8HI): Likewise.
18585         (CMPGE_4SI): Likewise.
18586         (CMPGE_2DI): Likewise.
18587         (CMPGE_U16QI): Likewise.
18588         (CMPGE_U8HI): Likewise.
18589         (CMPGE_U4SI): Likewise.
18590         (CMPGE_U2DI): Likewise.
18591         (CMPLE_16QI): Likewise.
18592         (CMPLE_8HI): Likewise.
18593         (CMPLE_4SI): Likewise.
18594         (CMPLE_2DI): Likewise.
18595         (CMPLE_U16QI): Likewise.
18596         (CMPLE_U8HI): Likewise.
18597         (CMPLE_U4SI): Likewise.
18598         (CMPLE_U2DI): Likewise.
18599         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18600         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18601         ALTIVEC_BUILTIN_VEC_CMPLE.
18602         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18603         floating-point vector modes.
18604         (vector_nlt<mode>): New define_expand.
18605         (vector_nltu<mode>): Likewise.
18606         (vector_ngt<mode>): Likewise.
18607         (vector_ngtu<mode>): Likewise.
18609 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18611         PR rtl-optimization/66706
18612         * combine.c (make_compound_operation): If an AND of SUBREG of
18613         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18615 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
18617         * tree-pass.h (make_pass_ch_vect): New.
18618         * passes.def: Add pass_ch_vect just before pass_if_conversion.
18620         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18621         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18622         make_pass_ch_vect): New.
18623         (pass_ch): Extend ch_base.
18625         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18626         (ch_base::copy_headers): ...here.
18628 2015-07-02  Richard Biener  <rguenther@suse.de>
18630         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18631         * fold-const.c (get_pointer_modulus_and_residue): Remove.
18632         (fold_binary_loc): Implement (T)ptr & CST in terms of
18633         get_pointer_alignment_1.
18634         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18635         Make sure to build the alignment test on a SSA name without
18636         final alignment info valid only after the prologue.
18638 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
18640         * config/cris/cris.md ("epilogue"): Remove condition.
18641         ("prologue"): Ditto.
18643 2015-07-02  Richard Biener  <rguenther@suse.de>
18645         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18646         parameter to record a condition that is false.
18647         (record_conditions): When recording an extra NE_EXPR that is
18648         true also record a EQ_EXPR that is false.
18650 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
18652         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18653         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18654         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
18655         (set_iv, find_interesting_uses_address, add_candidate_1): New
18656         argument to alloc_iv.
18657         (find_interesting_uses_op, find_interesting_uses_cond): Don't
18658         duplicate struct iv.
18659         (free_loop_data): Don't free struct iv explicitly.
18660         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18662 2015-07-01  DJ Delorie  <dj@redhat.com>
18664         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18665         (LIB_SPEC): Add.
18666         (SUPPORTS_DISCRIMINATOR): Define.
18668 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18670         PR bootstrap/66685
18671         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18672         there are no CALLs in the same pattern.
18674 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18676         PR rtl-optimization/61047
18677         * rtlanal.c (get_initial_register_offset): New function.
18678         (rtx_addr_can_trap_p_1): Check offsets of stack references.
18680 2015-07-01  Richard Biener  <rguenther@suse.de>
18682         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18683         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18684         ~X CMP C -> X CMP' ~C to ...
18685         * match.pd: ... patterns here.
18687 2015-07-01  Nick Clifton  <nickc@redhat.com>
18689         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18690         a 16-bit value into a 20-bit memory slot.
18692 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18694         * doc/sourcebuild.texi (AArch64-specific attributes): Document
18695         "aarch64_tiny", "aarch64_small", "aarch64_large",
18696         "aarch64_little_endian", "aarch64_big_endian".
18698 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18700         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18701         Document "aarch64_small_fpic".
18703 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18705         * configure.ac: Add check for aarch64 assembler -fpic relocation
18706         modifier support.
18707         * configure: Regenerate.
18708         * config.in: Regenerate.
18709         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18710         to -fPIC if not support of -fpic relocation modifier in assembler.
18712 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18714         PR bootstrap/66685
18715         * rtl.c (classify_insn): Handle returns in PARALLELs.
18717 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
18719         PR middle-end/66633
18720         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18721         to true if the function is nested and if not optimizing.
18722         (convert_local_omp_clauses): Initialize need_frame to true if the
18723         function contains nested functions and if not optimizing.
18725 2015-07-01  Richard Biener  <rguenther@suse.de>
18727         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18728         (X & Y) ^ Y -> ~X & Y transforms to ...
18729         * match.pd: ... here.
18731 2015-07-01  Richard Biener <rguenther@suse.de>
18733         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18734         of converts to avoid uninteresting noise from the conversion
18735         simplifying patterns.
18737 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
18739         * config/c6x/c6x.c (try_rename_operands): Do not depend on
18740         gcc_assert evaluating its argument for side-effect.
18742 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
18744         PR target/64833
18745         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18746         flag_pic is set.
18748 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
18750         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18751         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18752         (hash_scc): Add this_ref_p and ref_p parameters and pass them
18753         to the inner DFS walk.
18755 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18757         * target-insns.def (jump): New targetm instruction pattern.
18758         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18759         instead of gen_jump.
18760         (fix_up_crossing_landing_pad): Likewise.
18761         (add_labels_and_missing_jumps): Likewise.
18762         (fix_crossing_conditional_branches): Likewise.
18763         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18764         (force_nonfallthru_and_redirect): Likewise.
18765         * cse.c (cse_insn): Likewise.
18766         * expmed.c (expand_divmod): Likewise.
18767         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18768         * haifa-sched.c (init_before_recovery): Likewise.
18769         (sched_create_recovery_edges): Likewise.
18770         * ifcvt.c (find_cond_trap): Likewise.
18771         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18772         (expand_float, expand_fix): Likewise.
18773         * stmt.c (emit_jump): Likewise.
18775 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18777         * defaults.h (HAVE_load_multiple, gen_load_multiple)
18778         (HAVE_store_multiple, gen_store_multiple): Delete.
18779         * target-insns.def (load_multiple, store_multiple): New targetm
18780         instruction patterns.
18781         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18782         of HAVE_*/gen_* interface.
18784 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18786         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18787         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18788         (gen_mem_signal_fence): Delete.
18789         * target-insns.def (mem_signal_fence, mem_thread_fence)
18790         (memory_barrier): New targetm instruction patterns.
18791         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18792         interface.
18793         (expand_mem_signal_fence): Likewise.
18795 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18797         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18798         * target-insns.def (epilogue, prologue, sibcall_prologue): New
18799         targetm instruction patterns.
18800         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18801         interface.
18802         * calls.c (expand_call): Likewise.
18803         * cfgrtl.c (cfg_layout_finalize): Likewise.
18804         * df-scan.c (df_get_entry_block_def_set): Likewise.
18805         (df_get_exit_block_use_set): Likewise.
18806         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18807         * final.c (final_start_function): Likewise.
18808         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18809         (reposition_prologue_and_epilogue_notes): Likewise.
18810         * reorg.c (find_end_label): Likewise.
18811         * toplev.c (process_options): Likewise.
18813 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
18815         * typed-splay-tree.h: New file.
18817 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
18819         PR debug/66691
18820         * lra-int.h (lra_substitute_pseudo): Add a parameter.
18821         (lra_substitute_pseudo_within_insn): Ditto.
18822         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
18823         of constant.
18824         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
18825         to lra_substitute_pseudo.
18826         * lra-lives.c (process_bb_lives): Add an argument to
18827         lra_substitute_pseudo_within_insn call.
18828         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18829         argument to lra_substitute_pseudo and
18830         lra_substitute_pseudo_within_insn calls.
18831         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18833 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18835         * configure: Regenerated.
18837 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18839         * config.gcc: Support i[34567]86-*-elfiamcu target.
18840         * config/i386/iamcu.h: New.
18841         * config/i386/i386.opt: Add -miamcu.
18842         * doc/invoke.texi: Document -miamcu.
18843         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
18844         off x87/MMX/SSE/AVX codegen for -miamcu.
18845         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18846         __iamcu/__iamcu__ for -miamcu.
18847         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18848         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18849         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18850         * config/i386/i386.c (ix86_option_override_internal): Ignore and
18851         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
18852         MCU by default.  Default long double to 64-bit for Intel MCU.
18853         Turn on -freg-struct-return for Intel MCU.  Issue an error when
18854         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18855         AVX is turned on.
18856         (function_arg_advance_32): Pass value whose size is no larger
18857         than 8 bytes in registers for Intel MCU.
18858         (function_arg_32): Likewise.
18859         (ix86_return_in_memory): Return value whose size is no larger
18860         than 8 bytes in registers for Intel MCU.
18861         (iamcu_alignment): New function.
18862         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18863         true.
18864         (ix86_local_alignment): Don't increase alignment for Intel MCU.
18865         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18866         true.
18868 2015-06-30  Marek Polacek  <polacek@redhat.com>
18870         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
18871         both operands of the resulting expression.
18873         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
18874         the final expression with the operand's type and then convert
18875         it to the type of the expression.
18877 2015-06-30  Richard Biener  <rguenther@suse.de>
18879         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18880         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18881         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18882         * match.pd: ... to patterns here.
18884 2015-06-30  Richard Biener  <rguenther@suse.de>
18886         PR tree-optimization/66704
18887         * tree-vect-data-refs.c (vect_setup_realignment): Use
18888         make_ssa_name for non-SSA name source.
18890 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
18892         PR middle-end/66702
18893         * omp-low.c (simd_clone_adjust): Handle addressable linear
18894         or uniform parameters or non-gimple type uniform parameters.
18896 2015-06-30  Richard Biener  <rguenther@suse.de>
18898         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18899         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18900         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18901         * match.pd: ... here.
18902         Add a few cases of A - B -> A + (-B) when B "easily" negates.
18903         Move (x & y) | x -> x and friends before
18904         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18906 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
18908         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18909         -mfix-ut699 is not specified.
18910         (leon3_load): Rename into...
18911         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
18912         is specified.
18914 2015-06-30  Marek Polacek  <polacek@redhat.com>
18916         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18917         * match.pd: ... here.
18919 2015-06-30  Richard Biener  <rguenther@suse.de>
18921         * target-insns.def (canonicalize_funcptr_for_compare): Add.
18922         * fold-const.c (build_range_check): Replace uses of
18923         HAVE_canonicalize_funcptr_for_compare.
18924         (fold_widened_comparison): Likewise.
18925         (fold_sign_changed_comparison): Likewise.
18926         * dojump.c: Include "target.h".
18927         (do_compare_and_jump): Replace uses of
18928         HAVE_canonicalize_funcptr_for_compare and
18929         gen_canonicalize_funcptr_for_compare.
18930         * expr.c (do_store_flag): Likewise.
18932 2015-06-30  Tom de Vries  <tom@codesourcery.com>
18934         PR tree-optimization/66652
18935         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18936         max_loop_iterations to determine if nit + 1 overflows.
18938 2015-06-30  Richard Biener  <rguenther@suse.de>
18940         * tree-vrp.c (register_edge_assert_for_2): Also register
18941         asserts for dominating conversion results.
18943 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
18945         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18946         field in struct iv.
18948 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
18950         PR target/66509
18951         * configure.ac: Fix filds and fildq test for 64-bit.
18952         * configure: Regenerated.
18954 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
18956         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18957         (nvptx_reorg): Here.  Keep the non-subreg pieces.
18959 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
18961         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18962         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18964 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
18966         * config/i386/i386.md (*jcc_1): Use %! in asm template.
18967         Set attribute "length_nobnd" instead of "length".
18968         (*jcc_2): Ditto.
18969         (jump): Ditto.
18970         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18972 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
18974         * config/nios2/nios2.c (nios2_delegitimize_address): Make
18975         assert less restrictive.
18977 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18979         PR fortran/66605
18980         * cgraphunit.c (cgraph_node::finalize_function): Do not call
18981         do_warn_unused_parameter.
18982         * function.c (do_warn_unused_parameter): Move from here.
18983         * function.h (do_warn_unused_parameter): Do not declare.
18985 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18987         PR target/65697
18988         * gcc.target/arm/armv-sync-comp-swap.c: New.
18989         * gcc.target/arm/armv-sync-op-acquire.c: New.
18990         * gcc.target/arm/armv-sync-op-full.c: New.
18991         * gcc.target/arm/armv-sync-op-release.c: New.
18993 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18995         PR target/65697
18996         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18997         initial acquire barrier with final barrier.
18999 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19001         PR target/65697
19002         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19003         initial acquire barrier with final barrier.
19005 2015-06-29  Richard Henderson  <rth@redhat.com>
19007         * config/i386/constraints.md (Bf): New constraint.
19008         * config/i386/i386-c.c (ix86_target_macros): Define
19009         __GCC_ASM_FLAG_OUTPUTS__.
19010         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19011         as flags outputs.
19012         * doc/extend.texi (FlagOutputOperands): Document them.
19014 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
19016         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19017         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19018         unspec name.
19019         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19020         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19021         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19022         (aarch64_symbol_context): Ditto.
19023         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19024         and use new pattern name.
19025         (aarch64_expand_mov_immediate): Ditto.
19026         (aarch64_print_operand): Ditto.
19027         (aarch64_classify_tls_symbol): Ditto.
19029 2015-06-29  Marek Polacek  <polacek@redhat.com>
19030             Marc Glisse  <marc.glisse@inria.fr>
19032         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19033         * match.pd: ... pattern here.
19035 2015-06-29  Tom de Vries  <tom@codesourcery.com>
19037         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19038         function structure.
19040 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19042         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19043         feature description, split out the native option, add a link to
19044         the feature documentation, rearrange and slightly rewrite text.
19045         (Aarch64 options, -mcpu): Likewise.
19046         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
19047         +rdma implies Adv. SIMD.
19049 2015-06-29  Marek Polacek  <polacek@redhat.com>
19051         PR c/66322
19052         * function.c (stack_protect_epilogue): Remove a cast to int.
19053         * doc/invoke.texi: Update -Wswitch-bool description.
19055 2015-06-29  Richard Biener  <rguenther@suse.de>
19057         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19058         * fold-const.c (fold_binary_loc): Move &A - &B simplification
19059         via ptr_difference_const ...
19060         * match.pd: ... here.
19061         When matching (X ^ Y) == Y also match with swapped operands.
19063 2015-06-29  Richard Biener  <rguenther@suse.de>
19065         * lto-streamer.h (LTO_major_version): Bump to 5.
19067 2015-06-29  Richard Biener  <rguenther@suse.de>
19069         PR tree-optimization/66677
19070         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19071         STMT_VINFO_VEC_STMT clobbering less strict.
19073 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19075         PR middle-end/64130
19076         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19077         division, compute max and min when value ranges for dividend and
19078         divisor are available.
19080 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
19081             Sandra Loosemore <sandra@codesourcery.com>
19083         * regrename.h (regrename_do_replace): Change to return bool.
19084         * regrename.c (rename_chains): Check return value of
19085         regname_do_replace.
19086         (regrename_do_replace): Re-validate the modified insns and
19087         return bool status.
19088         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19089         Update to match rename_chains changes.
19090         * config/c6x/c6x.c (try_rename_operands): Assert that
19091         regrename_do_replace returns true.
19093 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
19095         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19096         operand 2 here.  Use copy_addr_to_reg to copy non-index
19097         register operand 2 to a temporary.
19098         (<mode>_stx): Ditto for operand 1.
19099         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19100         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19101         (ix86_store_bounds): Ditto.
19103 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
19105         * print-tree.c (print_node) [TREE_VEC]: Print its length.
19107 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
19109         * gimple.c (gimple_call_set_fndecl): Remove.
19110         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19111         build1_loc directly instead of build_fold_addr_expr_loc.
19113 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19115         * hash-map.h (hash_map::traverse): Use the definition of the
19116         Key typedef rather than the typedef itself.
19118 2015-06-26  Martin Jambor  <mjambor@suse.cz>
19120         PR debug/66301
19121         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19122         NULL instead of calling dump_enabled_p.
19124 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19126         * config/aarch64/aarch64.opt: (override): New.
19127         * doc/invoke.texi (override): Document.
19128         * config/aarch64/aarch64.c (aarch64_flag_desc): New
19129         (aarch64_fusible_pairs): Likewise.
19130         (aarch64_tuning_flags): Likewise.
19131         (aarch64_tuning_override_function): Likewise.
19132         (aarch64_tuning_override_functions): Likewise.
19133         (aarch64_parse_one_option_token): Likewise.
19134         (aarch64_parse_boolean_options): Likewise.
19135         (aarch64_parse_fuse_string): Likewise.
19136         (aarch64_parse_tune_string): Likewise.
19137         (aarch64_parse_one_override_token): Likewise.
19138         (aarch64_parse_override_string): Likewise.
19139         (aarch64_override_options): Parse the -override string if it
19140         is present.
19142 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19144         * config/aarch64/aarch64-protos.h (tune_params): Remove
19145         const from members.
19146         (aarch64_tune_params): Remove const, change to no longer be
19147         a pointer.
19148         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19149         change to no longer be a pointer, initialize to generic_tunings.
19150         (aarch64_min_divisions_for_recip_mul): Change dereference of
19151         aarch64_tune_params to member access.
19152         (aarch64_reassociation_width): Likewise.
19153         (aarch64_rtx_mult_cost): Likewise.
19154         (aarch64_address_cost): Likewise.
19155         (aarch64_branch_cost): Likewise.
19156         (aarch64_rtx_costs): Likewise.
19157         (aarch64_register_move_cost): Likewise.
19158         (aarch64_memory_move_cost): Likewise.
19159         (aarch64_sched_issue_rate): Likewise.
19160         (aarch64_builtin_vectorization_cost): Likewise.
19161         (aarch64_override_options): Take a copy of the selected tuning
19162         struct in to aarch64_tune_params, rather than just setting
19163         a pointer, change dereferences of aarch64_tune_params to member
19164         accesses.
19165         (aarch64_override_options_after_change): Change dereferences of
19166         aarch64_tune_params to member access.
19167         (aarch64_macro_fusion_p): Likewise.
19168         (aarch_macro_fusion_pair_p): Likewise.
19169         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19171 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19173         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19174         (aarch64_tune_flags): Likewise.
19175         (AARCH64_TUNE_FMA_STEERING): Likewise.
19176         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19177         to AARCH64_FL_USE_FMA_STEERING_PASS.
19178         (cortex-a57.cortex-a53): Likewise.
19179         (cortex-a72): Use cortexa72_tunings.
19180         (cortex-a72.cortex-a53): Likewise.
19181         (exynos-m1): Likewise.
19182         * config/aarch64/aarch64-protos.h (tune_params): Add
19183         a field: extra_tuning_flags.
19184         * config/aarch64/aarch64-tuning-flags.def: New.
19185         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19186         (aarch64_extra_tuning_flags): Likewise.
19187         (aarch64_tune_params): Declare here.
19188         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19189         (cortexa53_tunings): Likewise.
19190         (cortexa57_tunings): Likewise.
19191         (thunderx_tunings): Likewise.
19192         (xgene1_tunings): Likewise.
19193         (cortexa72_tunings): New.
19194         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19195          (gate): Check against aarch64_tune_params.
19196         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19197         aarch64-protos.h.
19199 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19201         * config/aarch64/aarch64-fusion-pairs.def: New.
19202         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19203         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19204         aarch64_fusion_pairs.
19205         (AARCH64_FUSE_MOV_MOVK): Likewise.
19206         (AARCH64_FUSE_ADRP_ADD): Likewise.
19207         (AARCH64_FUSE_MOVK_MOVK): Likewise.
19208         (AARCH64_FUSE_ADRP_LDR): Likewise.
19209         (AARCH64_FUSE_CMP_BRANCH): Likewise.
19211 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19213         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19214         SYMBOL_SMALL_GOT_28K.
19215         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19216         relocation modifiers.
19217         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19218         (ldr_got_small_28k_<mode>): New.
19219         (ldr_got_small_28k_sidi): New.
19220         * config/aarch64/iterators.md (got_modifier): New mode iterator.
19221         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19222         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19223         SYMBOL_SMALL_GOT_28K.
19224         (aarch64_rtx_costs): Add costs for new instruction sequences.
19225         (initialize_aarch64_code_model): Initialize new model.
19226         (aarch64_classify_symbol): Recognize new model and new symbol classification.
19227         (aarch64_asm_preferred_eh_data_format): Support new model.
19228         (aarch64_load_symref_appropriately): Generate new instruction
19229         sequences for -fpic.
19230         (TARGET_USE_PSEUDO_PIC_REG): New definition.
19231         (aarch64_use_pseudo_pic_reg): New function.
19233 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19235         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19236         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19237         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19238         (aarch64_expand_mov_immediate): Ditto.
19239         (aarch64_print_operand): Ditto.
19240         (aarch64_classify_symbol): Ditto.
19242 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
19244         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19246 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
19248         PR bootstrap/66638
19249         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19250         assertion failed.  Remove assertion itself.
19252 2015-06-26  Richard Biener  <rguenther@suse.de>
19254         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19255         and -A CMP CST -> A CMP -CST which is redundant with a pattern
19256         in match.pd.
19257         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19258         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19259         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19260         * match.pd: ... patterns here.
19262 2015-06-26  Marek Polacek  <polacek@redhat.com>
19264         * match.pd ((x | y) & ~(x & y) -> x ^ y,
19265         (x | y) & (~x ^ y) -> x & y): New patterns.
19267 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19269         * rtl.h (emit): Add an optional boolean parameter to control
19270         whether barriers are emitted.
19271         * emit-rtl.c (emit): Likewise.
19272         * gensupport.c (get_emit_function): Return null rather than "emit".
19273         * genemit.c (gen_emit_seq): Handle the null return value.
19274         Don't emit barriers after the final instruction in the sequence.
19275         * gentarget-def.c (main): Don't emit barriers after the instruction.
19277 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19279         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19280         TARGET_UNIFIED_ASM.
19282 2015-06-26  Richard Biener  <rguenther@suse.de>
19284         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19286 2015-06-26  Richard Biener  <rguenther@suse.de>
19288         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19289         irrespective on whether the inner operation has a single use
19290         of both off are constant.
19292 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
19293             Segher Boessenkool  <segher@kernel.crashing.org>
19295         PR target/66412
19296         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19297         before doing PUT_MODE or PUT_CODE on operands to avoid
19298         in-place RTX modification.
19300 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19302         * gentarget-def.c (def_target_insn): Cast return of strtol to
19303         unsigned int.
19305 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19307         * gimple.h (gimple_call_set_fn): Move inline function.
19308         * gimple.c (gimple_call_set_fn): Relocate here.
19310 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
19312         PR target/65979
19313         PR target/66611
19314         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19315         the replacement insn will work.
19317 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19319         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19320         by default.
19322 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19324         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19325         * cgraph.h: Include ipa-ref.h and plugin-api.h.
19326         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19327         (symtab_node::address_can_be_compared_p): Move function.
19328         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19329         definition here.
19330         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19331         * auto-profile.c: Likewise.
19332         * bb-reorder.c: Likewise.
19333         * builtins.c: Likewise.
19334         * calls.c: Likewise.
19335         * cfgexpand.c: Likewise.
19336         * cgraphbuild.c: Likewise.
19337         * cgraphclones.c: Likewise.
19338         * cgraphunit.c: Likewise.
19339         * combine.c: Likewise.
19340         * coverage.c: Likewise.
19341         * data-streamer-in.c: Likewise.
19342         * data-streamer-out.c: Likewise.
19343         * data-streamer.c: Likewise.
19344         * dbxout.c: Likewise.
19345         * dwarf2out.c: Likewise.
19346         * except.c: Likewise.
19347         * expr.c: Likewise.
19348         * final.c: Likewise.
19349         * fold-const.c: Likewise.
19350         * ggc-page.c: Likewise.
19351         * gimple-fold.c: Likewise.
19352         * gimple-iterator.c: Likewise.
19353         * gimple-pretty-print.c: Likewise.
19354         * gimple-streamer-in.c: Likewise.
19355         * gimple-streamer-out.c: Likewise.
19356         * gimple.c: Likewise.
19357         * gimplify.c: Likewise.
19358         * ipa-chkp.c: Likewise.
19359         * ipa-comdats.c: Likewise.
19360         * ipa-cp.c: Likewise.
19361         * ipa-devirt.c: Likewise.
19362         * ipa-icf-gimple.c: Likewise.
19363         * ipa-icf.c: Likewise.
19364         * ipa-inline-analysis.c: Likewise.
19365         * ipa-inline-transform.c: Likewise.
19366         * ipa-inline.c: Likewise.
19367         * ipa-polymorphic-call.c: Likewise.
19368         * ipa-profile.c: Likewise.
19369         * ipa-prop.c: Likewise.
19370         * ipa-pure-const.c: Likewise.
19371         * ipa-ref.c: Likewise.
19372         * ipa-reference.c: Likewise.
19373         * ipa-split.c: Likewise.
19374         * ipa-utils.c: Likewise.
19375         * ipa-visibility.c: Likewise.
19376         * ipa.c: Likewise.
19377         * langhooks.c: Likewise.
19378         * lto-cgraph.c: Likewise.
19379         * lto-compress.c: Likewise.
19380         * lto-opts.c: Likewise.
19381         * lto-section-in.c: Likewise.
19382         * lto-section-out.c: Likewise.
19383         * lto-streamer-in.c: Likewise.
19384         * lto-streamer-out.c: Likewise.
19385         * lto-streamer.c: Likewise.
19386         * omp-low.c: Likewise.
19387         * opts-global.c: Likewise.
19388         * passes.c: Likewise.
19389         * predict.c: Likewise.
19390         * print-tree.c: Likewise.
19391         * profile.c: Likewise.
19392         * ree.c: Likewise.
19393         * sanopt.c: Likewise.
19394         * stor-layout.c: Likewise.
19395         * symtab.c: Likewise.
19396         * toplev.c: Likewise.
19397         * trans-mem.c: Likewise.
19398         * tree-cfg.c: Likewise.
19399         * tree-chkp.c: Likewise.
19400         * tree-eh.c: Likewise.
19401         * tree-emutls.c: Likewise.
19402         * tree-inline.c: Likewise.
19403         * tree-nested.c: Likewise.
19404         * tree-parloops.c: Likewise.
19405         * tree-pretty-print.c: Likewise.
19406         * tree-profile.c: Likewise.
19407         * tree-sra.c: Likewise.
19408         * tree-ssa-alias.c: Likewise.
19409         * tree-ssa-live.c: Likewise.
19410         * tree-ssa-loop-ivcanon.c: Likewise.
19411         * tree-ssa-loop-ivopts.c: Likewise.
19412         * tree-ssa-pre.c: Likewise.
19413         * tree-ssa-sccvn.c: Likewise.
19414         * tree-ssa-strlen.c: Likewise.
19415         * tree-ssa-structalias.c: Likewise.
19416         * tree-streamer-in.c: Likewise.
19417         * tree-streamer-out.c: Likewise.
19418         * tree-streamer.c: Likewise.
19419         * tree-switch-conversion.c: Likewise.
19420         * tree-tailcall.c: Likewise.
19421         * tree-vect-data-refs.c: Likewise.
19422         * tree-vect-stmts.c: Likewise.
19423         * tree-vectorizer.c: Likewise.
19424         * tree.c: Likewise.
19425         * tsan.c: Likewise.
19426         * ubsan.c: Likewise.
19427         * value-prof.c: Likewise.
19428         * varasm.c: Likewise.
19429         * varpool.c: Likewise.
19430         * config/arm/arm.c: Likewise.
19431         * config/bfin/bfin.c: Likewise.
19432         * config/c6x/c6x.c: Likewise.
19433         * config/cris/cris.c: Likewise.
19434         * config/darwin-c.c: Likewise.
19435         * config/darwin.c: Likewise.
19436         * config/i386/i386.c: Likewise.
19437         * config/i386/winnt.c: Likewise.
19438         * config/microblaze/microblaze.c: Likewise.
19439         * config/mips/mips.c: Likewise.
19440         * config/rs6000/rs6000.c: Likewise.
19441         * config/rx/rx.c: Likewise.
19442         * config/s390/s390.c: Likewise.
19443         * config/tilegx/mul-tables.c: Likewise.
19445 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19447         * config/aarch64/aarch64.c, config/alpha/alpha.c,
19448         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19449         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19450         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19451         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19452         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19453         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19454         config/microblaze/microblaze.c, config/mips/mips.c,
19455         config/mmix/mmix.c, config/mn10300/mn10300.c,
19456         config/moxie/moxie.c, config/msp430/msp430.c,
19457         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19458         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19459         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19460         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19461         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19462         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19463         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19464         target-def.h include.
19465         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
19467 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19469         * Makefile.in (TARGET_DEF): Add target-insns.def.
19470         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19471         (build/gentarget-def.o): New rule.
19472         (genprogrtl): Add target-def.
19473         * target-insns.def, gentarget-def.c: New files.
19474         * target.def: Add targetm.have_* and targetm.gen_* hooks,
19475         based on the contents of target-insns.def.
19476         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19477         (HAVE_return, gen_return): Delete.
19478         * target-def.h: Include insn-target-def.h.
19479         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19480         instead of direct calls.  Rely on them to do the appropriate assertions.
19481         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
19482         (convert_jumps_to_returns): Use targetm interface instead of
19483         direct calls.
19484         (thread_prologue_and_epilogue_insns): Likewise.
19485         * reorg.c (find_end_label, dbr_schedule): Likewise.
19486         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19487         * shrink-wrap.c (convert_to_simple_return): Likewise.
19488         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19490 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19492         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19493         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19494         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19495         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19496         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19497         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19498         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19499         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19500         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19501         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19502         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19503         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19504         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19505         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19506         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19507         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19508         includes to end.
19510 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19512         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19513         (unbounded_int_hashmap_traits::key_type): Likewise.
19514         * hash-map.h (hash_map): Get the key type from the traits.
19515         * hash-traits.h (default_hash_traits): By default, inherit from the
19516         template parameter.
19517         * alias.c (alias_set_traits): Delete.
19518         (alias_set_entry_d::children): Use alias_set_hash as the first
19519         template parameter.
19520         (record_alias_subset): Update accordingly.
19521         * except.c (tree_hash_traits): Delete.
19522         (type_to_runtime_map): Use tree_hash as the first template parameter.
19523         (init_eh): Update accordingly.
19524         * genmatch.c (capture_id_map_hasher): Delete.
19525         (cid_map_t): Use nofree_string_hash as first template parameter.
19526         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19527         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19528         Use symbol_compare_hash as the first template parameter in
19529         subdivide_hash_map.
19530         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19531         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19532         template parameter.
19533         * passes.c (pass_registry_hasher): Delete.
19534         (name_to_pass_map): Use nofree_string_hash as the first template
19535         parameter.
19536         (register_pass_name): Update accordingly.
19537         * sanopt.c (sanopt_tree_map_traits): Delete.
19538         (sanopt_tree_triplet_map_traits): Delete.
19539         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19540         template parameter.
19541         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19542         the first template parameter.
19543         * sese.c (rename_map_hasher): Delete.
19544         (rename_map_type): Use tree_ssa_name_hash as the first template
19545         parameter.
19546         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19547         (function_summary::m_map): Use map_hash as the first template
19548         parameter.
19549         (function_summary::release): Update accordingly.
19550         * tree-if-conv.c (phi_args_hash_traits): Delete.
19551         (predicate_scalar_phi): Use tree_operand_hash as the first template
19552         parameter to phi_arg_map.
19553         * tree-inline.h (dependence_hasher): Delete.
19554         (copy_body_data::dependence_map): Use dependence_hash as the first
19555         template parameter.
19556         * tree-inline.c (remap_dependence_clique): Update accordingly.
19557         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19558         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19559         parameter.
19560         (addr_stridxptr): Update accordingly.
19561         * value-prof.c (profile_id_traits): Delete.
19562         (cgraph_node_map): Use profile_id_hash as the first template
19563         parameter.
19564         (init_node_map): Update accordingly.
19565         * config/alpha/alpha.c (string_traits): Delete.
19566         (machine_function::links): Use nofree_string_hash as the first
19567         template parameter.
19568         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19569         * config/m32c/m32c.c (pragma_traits): Delete.
19570         (pragma_htab): Use nofree_string_hash as the first template parameter.
19571         (m32c_note_pragma_address): Update accordingly.
19572         * config/mep/mep.c (pragma_traits): Delete.
19573         (pragma_htab): Use nofree_string_hash as the first template parameter.
19574         (mep_note_pragma_flag): Update accordingly.
19575         * config/mips/mips.c (mips16_flip_traits): Delete.
19576         (mflip_mips16_htab): Use nofree_string_hash as the first template
19577         parameter.
19578         (mflip_mips16_use_mips16_p): Update accordingly.
19579         (local_alias_traits): Delete.
19580         (mips16_local_aliases): Use nofree_string_hash as the first template
19581         parameter.
19582         (mips16_local_alias): Update accordingly.
19584 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19586         * hash-map-traits.h (default_hashmap_traits): Delete.
19588 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19590         * hash-map-traits.h (unbounded_hashmap_traits): New class.
19591         (unbounded_int_hashmap_traits): Likewise.
19592         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19594 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19596         * ipa-icf.h (symbol_compare_hash): New class.
19597         (symbol_compare_hashmap_traits): Use it.
19598         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19599         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19600         (mem_alloc_description::reverse_mem_map_t): Remove redundant
19601         default_hashmap_traits.
19602         * sanopt.c (sanopt_tree_triplet_hash): New class.
19603         (sanopt_tree_triplet_map_traits): Use it.
19605 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19607         * gengtype-parse.c (require_template_declaration): Allow '+' in
19608         template parameters.  Consolidate cases.
19609         * hash-traits.h (int_hash): New class.
19610         * alias.c (alias_set_hash): New structure.
19611         (alias_set_traits): Use it.
19612         * symbol-summary.h (function_summary::map_hash): New class.
19613         (function_summary::summary_hashmap_traits): Use it.
19614         * tree-inline.h (dependence_hash): New class.
19615         (dependence_hasher): Use it.
19616         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19617         * value-prof.c (profile_id_hash): New class.
19618         (profile_id_traits): Use it.
19620 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19622         * config/mips/mips.c (mips16_flip_traits): Use it.
19623         (local_alias_traits, mips16_local_aliases): Convert from a map of
19624         rtxes to a map of symbol names.
19625         (mips16_local_alias): Update accordingly.
19627 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19629         * hash-traits.h (string_hash, nofree_string_hash): New classes.
19630         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19631         * passes.c (pass_registry_hasher): Likewise.
19632         * config/alpha/alpha.c (string_traits): Likewise.
19633         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19634         * config/m32c/m32c.c (pragma_traits): Likewise.
19635         * config/mep/mep.c (pragma_traits): Likewise.
19637 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19639         * tree-hash-traits.h (tree_hash): New class.
19640         * except.c: Include tree-hash-traits.h.
19641         (tree_hash_traits): Use tree_hash.
19643 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19645         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19646         * sese.c: Include tree-hash-traits.h.
19647         (rename_map_hasher): Use tree_ssa_name_hasher.
19649 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19651         * tree-hash-traits.h (tree_decl_hash): New class.
19652         * tree-ssa-strlen.c: Include tree-hash-traits.h.
19653         (stridxlist_hash_traits): Use tree_decl_hash.
19655 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19657         * tree-hash-traits.h: New file.
19658         (tree_operand_hash): New class.
19659         * sanopt.c: Include tree-hash-traits.h.
19660         (sanopt_tree_map_traits): Use tree_operand_hash.
19661         * tree-if-conv.c: Include tree-hash-traits.h.
19662         (phi_args_hash_traits): Use tree_operand_hash.
19663         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19664         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19666 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19668         * hash-map-traits.h: Include hash-traits.h.
19669         (simple_hashmap_traits): New class.
19670         * mem-stats.h (hash_map): Change the default traits to
19671         simple_hashmap_traits<default_hash_traits<Key> >.
19673 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19675         * hash-table.h: Update comments.
19677 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19679         * hash-traits.h (default_hash_traits): New structure.
19680         * hash-set.h (default_hashset_traits): Delete.
19681         (hash_set): Use default_hash_traits<Key> instead of
19682         default_hashset_traits.  Delete hash_entry type and use Key directly.
19683         * ipa-devirt.c (pair_traits): Delete.
19684         (default_hash_traits <type_pair>): Override.
19685         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19686         (odr_types_equivalent_p, add_type_duplicate): Likewise.
19688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19690         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19692 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19694         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19695         (has_is_empty, is_empty_helper): Delete.
19696         (has_mark_deleted, mark_deleted_helper): Delete.
19697         (has_mark_empty, mark_empty_helper): Delete.
19698         (hash_table::is_deleted): Call the Descriptor unconditionally.
19699         (hash_table::is_empty): Likewise.
19700         (hash_table::mark_deleted): Likewise.
19701         (hash_table::mark_empty): Likewise.
19703 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19705         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
19706         redundant typedefs and members.
19707         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
19708         redundant typedefs.
19709         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19710         * ipa-devirt.c (odr_name_hasher): Likewise.
19711         (polymorphic_call_target_hasher): Likewise.
19712         * ira-costs.c (cost_classes_hasher): Likewise.
19713         * statistics.c (stats_counter_hasher): Likewise.
19714         * trans-mem.c (log_entry_hasher): Likewise.
19715         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19716         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19717         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19718         * var-tracking.c (variable_hasher): Likewise.
19719         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19720         Remove redundant typedefs and members.
19722 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19724         * hash-traits.h (ggc_cache_hasher): Rename to...
19725         (ggc_cache_remove): ...this and remove typedefs.
19726         (ggc_cache_ptr_hash): New class.
19727         * hash-table.h: Update commentary.
19728         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19729         rather than ggc_cache_hasher.
19730         (const_wide_int_hasher, reg_attr_hasher): Likewise.
19731         (const_double_hasher, const_fixed_hasher): Likewise.
19732         * function.c (insn_cache_hasher): Likewise.
19733         * trans-mem.c (tm_wrapper_hasher): Likewise.
19734         * tree.h (tree_decl_map_cache_hasher): Likewise.
19735         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19736         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19737         * ubsan.c (tree_type_map_cache_hasher): Likewise.
19738         * varasm.c (tm_clone_hasher): Likewise.
19739         * config/i386/i386.c (dllimport_hasher): Likewise.
19740         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19741         (tree_hasher): Likewise.
19743 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19745         * hash-traits.h (ggc_hasher): Rename to...
19746         (ggc_remover): ...this and remove typedefs.
19747         (ggc_cache_hasher): Update accordingly.  Add typedefs.
19748         (ggc_ptr_hash): New class.
19749         * hash-table.h: Update comment.
19750         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19751         ggc_hasher.
19752         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19753         (tree_descriptor_hasher): Likewise.
19754         * cgraph.c (function_version_hasher): Likewise.
19755         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19756         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19757         (dw_loc_list_hasher, addr_hasher): Likewise.
19758         * function.h (used_type_hasher): Likewise.
19759         * function.c (temp_address_hasher): Likewise.
19760         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19761         * libfuncs.h (libfunc_hasher): Likewise.
19762         * lto-streamer.h (decl_state_hasher): Likewise.
19763         * optabs.c (libfunc_decl_hasher): Likewise.
19764         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19765         * varasm.c (section_hasher, object_block_hasher): Likewise.
19766         (const_rtx_desc_hasher): Likewise.
19767         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19768         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19770 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19772         * hash-traits.h (free_ptr_hash): New class.
19773         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19774         rather than typed_free_remove.  Remove redudant typedefs.
19775         (external_ref_hasher): Likewise.
19776         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19777         (ehspec_hasher): Likewise.
19778         * ggc-common.c (saving_hasher): Likewise.
19779         * gimplify.c (gimplify_hasher): Likewise.
19780         * haifa-sched.c (delay_i2_hasher): Likewise.
19781         * loop-invariant.c (invariant_expr_hasher): Likewise.
19782         * loop-iv.c (biv_entry_hasher): Likewise.
19783         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19784         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19785         * tree-cfg.c (locus_discrim_hasher): Likewise.
19786         * tree-eh.c (finally_tree_hasher): Likewise.
19787         * tree-into-ssa.c (var_info_hasher): Likewise.
19788         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19789         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19790         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19791         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19792         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19793         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19794         (shared_bitmap_hasher): Likewise.
19795         * tree-ssa-threadupdate.c (redirection_data): Likewise.
19796         * tree-vectorizer.h (peel_info_hasher): Likewise.
19797         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19798         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19800 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19802         * hash-table.h: Update comments.
19803         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19804         (nofree_ptr_hash): New class.
19805         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19806         than typed_noop_remove.  Remove redudant typedefs.
19807         * attribs.c (attribute_hasher): Likewise.
19808         * cfg.c (bb_copy_hasher): Likewise.
19809         * cselib.c (cselib_hasher): Likewise.
19810         * dse.c (invariant_group_base_hasher): Likewise.
19811         * dwarf2cfi.c (trace_info_hasher): Likewise.
19812         * dwarf2out.c (macinfo_entry_hasher): Likewise.
19813         (comdat_type_hasher, loc_list_hasher): Likewise.
19814         * gcse.c (pre_ldst_expr_hasher): Likewise.
19815         * genmatch.c (id_base): Likewise.
19816         * genrecog.c (test_pattern_hasher): Likewise.
19817         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19818         * haifa-sched.c (delay_i1_hasher): Likewise.
19819         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19820         * ipa-icf.h (congruence_class_group_hash): Likewise.
19821         * ipa-profile.c (histogram_hash): Likewise.
19822         * ira-color.c (allocno_hard_regs_hasher): Likewise.
19823         * lto-streamer.h (string_slot_hasher): Likewise.
19824         * lto-streamer.c (tree_entry_hasher): Likewise.
19825         * plugin.c (event_hasher): Likewise.
19826         * postreload-gcse.c (expr_hasher): Likewise.
19827         * store-motion.c (st_expr_hasher): Likewise.
19828         * tree-sra.c (uid_decl_hasher): Likewise.
19829         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19830         (ssa_name_var_hash): Likewise.
19831         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19832         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19833         * tree-ssa-pre.c (pre_expr_d): Likewise.
19834         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19835         * vtable-verify.h (registration_hasher): Likewise.
19836         * vtable-verify.c (vtbl_map_hasher): Likewise.
19837         * config/arm/arm.c (libcall_hasher): Likewise.
19838         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19839         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19840         * config/sol2.c (comdat_entry_hasher): Likewise.
19841         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19842         (print_fold_checksum, fold_checksum_tree): Likewise.
19843         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19844         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19845         (fold_build_call_array_loc): Likewise.
19846         * tree-ssa-ccp.c (gimple_htab): Likewise.
19847         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19848         rather than pointer_type.
19850 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19852         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19853         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19855 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19857         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19858         (ggc_hasher::ggc_mx): Likewise.
19859         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
19860         that duplicate ggc_hasher ones.
19862 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19864         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19865         (gt_cleare_cache): Check here for deleted and empty entries.
19866         Replace handle_cache_entry with a call to keep_cache_entry.
19867         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19868         (ggc_cache_hasher::keep_cache_entry): New function.
19869         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19870         (tm_wrapper_hasher::keep_cache_entry): New function.
19871         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19872         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19873         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19874         (type_cache_hasher::keep_cache_entry): New function.
19875         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19876         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19877         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19878         (tree_type_map_cache_hasher::keep_cache_entry): New function.
19879         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19880         (tm_clone_hasher::keep_cache_entry): New function.
19881         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19882         (dllimport_hasher::keep_cache_entry): New function.
19884 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19886         * hash-table.h: Include hash-traits.h.
19887         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19888         (ggc_cache_hasher): Move to...
19889         * hash-traits.h: ...this new file.
19891 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19893         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19894         struct cl_optimization.
19895         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19896         * tree.c (make_node_stat): Allocate cl_optimization struct.
19897         (copy_node_stat): Allocate and copy cl_optimization struct.
19899 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19901         * function.h (struct incoming_args): Move struct.
19902         (pass_by_reference, reference_callee_copied): Remove prototypes.
19903         * emit-rtl.h (struct incoming_args): Relocate struct here.
19904         * calls.h (pass_by_reference, reference_callee_copied): Relocate
19905         prototypes here.
19906         * function.c (pass_by_reference, reference_callee_copied): Move.
19907         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19908         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19909         * ipa-chkp.c: Include calls.h.
19911 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
19913         * alias.h (alias_set_type): Move typedef.
19914         * coretypes.h (alias_set_type): Relocate typedef here.
19915         * rtl.h: Don't include alias.h.
19917 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19919         * cgraph.h (cgraph_rtl_info): Move to rtl.h
19920         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19921         and instance.
19922         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19923         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19924         doesn't exist.
19925         * calls.c: Include hard-reg-set.h before rtl.h.
19926         * ira.c: Likewise.
19928 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19929             Vladimir Makarov  <vmakarov@redhat.com>
19931         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19932         Add assert.
19934 2015-06-25  Richard Biener  <rguenther@suse.de>
19936         * fold-const.c (fold_binary_loc): Move simplification of
19937         (X <<>> C1) & C2 ...
19938         * match.pd: ... here.
19940 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
19942         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19944 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19946         * match.pd: Add patterns for vec_conds between 1 and 0.
19948 2015-06-25  Richard Biener  <rguenther@suse.de>
19950         * tree-vect-stmts.c (vectorizable_conversion): Do not set
19951         STMT_VINFO_VEC_STMT for SLP.
19952         (vectorizable_store): Likewise.
19953         (vectorizable_load): Likewise.
19954         (vect_transform_stmt): Catch SLP vectorization clobbering
19955         STMT_VINFO_VEC_STMT.
19957 2015-06-25  Richard Biener  <rguenther@suse.de>
19959         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19960         dumping.
19961         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19962         cleanup resulting dead code and parameters.
19963         (vect_transform_slp_perm_load): Adjust.
19965 2015-06-25  Nick Clifton  <nickc@redhat.com>
19967         * config/bfin/bfin.c (bfin_expand_prologue): Set
19968         current_function_static_stack_size if flag_stack_usage_info is set.
19969         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19970         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19971         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19972         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19974 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19976         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19977         comment that the generated IV is unsigned.
19979 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19981         PR target/29693
19982         * config/arm/arm.c (arm_dbx_register_number): Return
19983         DWARF_FRAME_REGISTERS by default.
19985 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19987         * dominance.c (calculate_dominance_info): Fix verify_dominators call
19988         argument.  Call verify_dominator when reusing dominator info.
19990 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
19992         PR target/66563
19993         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19994         an additional element of the unspec vector.  Modify indices
19995         of operands.
19996         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19997         * config/sh/sh.c (prepare_move_operands): Pass incremented
19998         const_int to gen_GOTaddr2picreg.
19999         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20001 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20003         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20004         Condition on TARGET_FLOAT.
20006 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20008         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20009         and (no)crypto.
20011 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20013         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20015         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20016         aarch64_err_no_fpadvsimd.
20018         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20019         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20020         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20021         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20022         Turn error into assert, test TARGET_FLOAT.
20023         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20024         TARGET_FLOAT.
20026 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
20028         PR debug/66482
20029         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20031 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20033         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20035 2015-06-24  Renlin Li <renlin.li@arm.com>
20037         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20038         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20040 2015-06-24  Richard Biener  <rguenther@suse.de>
20042         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20043         (main): Likewise.
20044         (lower_opt_convert): Support lowering of conditional view_convert.
20045         (parser::parse_operation): Likewise.
20046         (parser::parse_for): Likewise.
20048 2015-06-24  Renlin Li  <renlin.li@arm.com>
20050         * varasm.c (emit_local): Use unsigned int for align variable.
20052 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20054         PR target/63408
20055         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20056         for negative numbers.
20058 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20060         PR rtl-optimization/66306
20061         * reload.c (find_reloads): Swap the match_dup info for
20062         commutative operands.
20064 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20066         * config/s390/vx-builtins.md
20067         ("vec_scatter_element<mode>_<non_vec_int>")
20068         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20069         attribute with bhfgq.
20071 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20073         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20075 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20077         * config/s390/s390-builtin-types.def: Add flag to indicate the
20078         options under which the function type is needed.
20079         * config/s390/s390-builtins.def: Add flag to indicate the options
20080         under which the builtin is enabled.
20081         * config/s390/s390-builtins.h: Add flags parameter to macro
20082         definitions.
20083         (bflags_for_builtin): New function.
20084         (flags_for_builtin): Renamed to ...
20085         (opflags_for_builtin): ... this.
20086         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20087         flags_for_builtin to bflags_for_builtin and
20088         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20089         * config/s390/s390.c: Add initialization of bflags_builtin and
20090         opflags_builtin arrays.
20091         Remove code for flags_builtin.
20092         (s390_init_builtins): Only create builtin function types if one of
20093         their flags is active.
20094         Only create builtins if all of their flags are active.
20095         (s390_expand_builtin): Rename flags_for_builtin to
20096         opflags_for_builtin.
20098 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20100         * config/s390/vecintrin.h: Remove internal builtins.
20102 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20104         * config/s390/s390.c (s390_secondary_reload): Fix check for
20105         GENERAL_REGS register class.
20107 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20109         * config/s390/s390.c (s390_support_vector_misalignment): Call
20110         default implementation for !TARGET_VX.
20112 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20114         * config/s390/s390.c (s390_legitimate_constant_p): Add
20115         TARGET_VX check.
20117 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20119         * config/s390/s390.c (s390_vector_abi): New variable definition.
20120         (s390_check_type_for_vector_abi): New function.
20121         (TARGET_ASM_FILE_END): New macro definition.
20122         (s390_asm_file_end): New function.
20123         (s390_function_arg): Call s390_check_type_for_vector_abi.
20124         (s390_gimplify_va_arg): Likewise.
20125         * configure: Regenerate.
20126         * configure.ac: Check for .gnu_attribute Binutils feature.
20128 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
20130         PR target/65803
20131         * config/bfin/bfin.c (hwloop_optimize): Initialize
20132         JUMP_LABEL for newly created jump.
20134 2015-06-23  Tristan Gingold  <gingold@adacore.com>
20136         * collect-utils.c (collect_wait): Unlink the response file here
20137         instead of...
20138         (do_wait): ...here.
20139         (utils_cleanup): ...and here.
20141 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
20143         * df-scan.c: Don't include target-def.h.
20144         * targhooks.c: Likewise.
20145         * config/arm/arm-c.c: Likewise.
20146         * config/i386/i386-c.c: Likewise.
20147         * config/nds32/nds32-cost.c: Likewise.
20148         * config/nds32/nds32-fp-as-gp.c: Likewise.
20149         * config/nds32/nds32-intrinsic.c: Likewise.
20150         * config/nds32/nds32-isr.c: Likewise.
20151         * config/nds32/nds32-md-auxiliary.c: Likewise.
20152         * config/nds32/nds32-memory-manipulation.c: Likewise.
20153         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20154         * config/nds32/nds32-predicates.c: Likewise.
20156 2015-06-23  Richard Biener  <rguenther@suse.de>
20158         PR tree-optimization/66636
20159         * tree-vect-stmts.c (vectorizable_store): Properly compute the
20160         def type for further defs for strided stores.
20162 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
20164         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20165         conditional selects.
20166         (setcc_int<mode>, setcc_float<mode>): Reformat.
20168 2015-06-23  Marek Polacek  <polacek@redhat.com>
20170         * match.pd ((x + y) - (x | y) -> x & y,
20171         (x + y) - (x & y) -> x | y): New patterns.
20173 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
20175         PR 65711
20176         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20177         '-dynamic-linker' within %{!shared: ...}.
20179 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
20181         PR target/66560
20182         * config/i386/predicates.md (addsub_vm_operator): New predicate.
20183         (addsub_vs_operator): Ditto.
20184         (addsub_vs_parallel): Ditto.
20185         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20186         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20187         Put minus RTX before plus and adjust vec_merge selector.
20188         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20189         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20190         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20191         (addsub vec_merge splitters): New combiner splitters.
20192         (addsub vec_select/vec_concat splitters): Ditto.
20194 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
20196         PR tree-optimization/66449
20197         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20198         POINTER_PLUS_EXPR for pointers.
20200 2015-06-23  Alan Modra  <amodra@gmail.com>
20202         * rtlanal.c (commutative_operand_precedence): Correct comments.
20203         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20204         declaration.  Return an int.  Distinguish REG,REG return from
20205         others.
20206         (struct simplify_plus_minus_op_data): Make local to function.
20207         (simplify_plus_minus): Don't set canonicalized if merely sorting
20208         registers.  Avoid packing ops if nothing changes.  White space fixes.
20210 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
20212         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20213         -fdump-ada-spec is passed but not if -fsyntax-only is.
20215 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
20217         PR bootstrap/63740
20218         * lra-lives.c (process_bb_lives): Check insn copying the same
20219         reload pseudo and don't create a copy for it.
20221 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20223         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20224         for cond_stmt.
20226 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20228         * builtins.def (DEF_GOMP_BUILTIN): Test
20229         'flag_tree_parallelize_loops > 1' instead of
20230         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
20232 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20234         * dominance.c (calculate_dominance_info): Verify dominators if
20235         early-out.
20237 2015-06-22  Marek Polacek  <polacek@redhat.com>
20239         * match.pd ((x ^ y) ^ (x | y) -> x & y,
20240         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20241         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20242         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20244 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
20246         PR target/65871
20247         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20248         cost of embedded comparison.
20250 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20252         PR target/65914
20253         * config/rs6000/predicates.md (altivec_register_operand): Permit
20254         virtual stack registers.
20255         (vsx_register_operand): Likewise.
20256         (vfloat_operand): Likewise.
20257         (vint_operand): Likewise.
20258         (vlogical_operand): Likewise.
20260 2015-06-22  Richard Biener  <rguenther@suse.de>
20262         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20263         and single_scalar_iteration_cost members.
20264         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20265         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20266         (vect_get_single_scalar_iteration_cost): Remove.
20267         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20268         Use LOOP_VINFO_SCALAR_ITERATION_COST.
20269         * tree-vect-loop.c (destroy_loop_vec_info): Free
20270         scalar_cost_vec.
20271         (vect_get_single_scalar_iteration_cost): Compute result into
20272         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20273         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
20274         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20275         (vect_estimate_min_profitable_iters): Use them.
20277 2015-06-22  Christian Bruel  <christian.bruel@st.com>
20279         PR target/52144
20280         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20281         (TARGET_INSERT_ATTRIBUTES): Define.
20282         (thumb_flipper): New var.
20283         * config/arm/arm.opt (-mflip-thumb): New switch.
20285 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20286             Martin Liska  <mliska@suse.cz>
20288         PR ipa/65908
20289         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20290         construction of arg_types.
20291         (sem_function::sem_function): Likewise.
20292         (sem_function::~sem_function): Remove destruction of arg_types.
20293         (sem_function::compatible_parm_types_p): New function.
20294         (sem_function::equals_wpa): Reorg matching of return values
20295         and parameter types.
20296         (sem_function::equals_private): Reorg mathcing of argument types.
20297         (sem_function::parse_tree_args): Remove.
20298         * ipa-icf.h (init_wpa): Do not call it.
20299         (parse_tree_args): Remove.
20300         (compatible_parm_types_p): Declare.
20301         (result_type): Remove.
20302         (arg_types): Remove.
20304 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20306         PR ipa/66351
20307         * ipa-polymorphic-call.c
20308         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20309         initializing alias oracle; fix formating; set base_alias_set if it
20310         is known.
20312 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
20314         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20315         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20316         (find_inc): Likewise.
20317         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20318         swapping.
20319         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20320         * df-scan.c (df_swap_refs): Remove.
20321         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20322         * dominance.c (link_roots): Use std::swap instead of manually swapping.
20323         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20324         * fold-const.c (fold_relational_const): Likewise.
20325         * genattrtab.c (simplify_test_exp): Likewise.
20326         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20327         gimple_simplify): Likewise.
20328         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20329         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20330         * ipa-devirt.c (add_type_duplicate): Likewise.
20331         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20332         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20333         * lra.c (lra_create_copy): Likewise.
20334         * lto-streamer-out.c (DFS::DFS): Likewise.
20335         * modulo-sched.c (get_sched_window): Likewise.
20336         * omega.c (omega_pretty_print_problem): Likewise.
20337         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20338         * reload1.c (reloads_unique_chain_p): Likewise.
20339         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20340         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20341         use std::swap.
20342         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20343         manually swapping.
20344         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20345         predicate_mem_writes): Likewise.
20346         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20347         * tree-predcom.c (combine_chains): Likewise.
20348         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20349         refs_may_alias_p_1): Likewise.
20350         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20351         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20352         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20353         number_of_iterations_cond): Likewise.
20354         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20355         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20356         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20357         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20358         * tree-vrp.c (extract_range_from_binary_expr_1,
20359         extract_range_from_unary_expr_1): Likewise.
20361 2015-06-20  Marek Polacek  <polacek@redhat.com>
20363         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20365 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20367         PR target/66591
20368         * config/sh/sh.c (prepare_move_operands): Replace subreg
20369         index term with R0 for base and index addressing.
20371 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
20373         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20374         op1 is an fp zero.
20375         (movsf_aarch64): Change condition from register_operand to
20376         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
20377         load1.  Change type for alternative 7 to store1.
20378         (movdf_aarch64): Likewise.
20380 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
20382         * config/vax/vax.md: Adjust sign/zero extend patterns to
20383         handle SUBREGs in operands[1].
20385 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20387         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20388         of manually swapping.
20389         (expand_vec_perm_interleave2): Likewise.
20391 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
20393         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20394         reuse bounds created for abnormal ssa names.
20396 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
20398         * config/nvptx/nvptx.md (allocate_stack): Rename to...
20399         (allocate_stack_<mode>): ... this, and add :P on both
20400         match_operand and unspec.
20401         (allocate_stack): New expander.
20403 2015-06-19  Christian Bruel  <christian.bruel@st.com>
20405         PR target/66541
20406         PR target/52144
20407         * config/arm/arm.c (arm_set_current_function): Handle
20408         explicit default options.
20410 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
20412         * config/i386/i386.md (*movsicc_noc_zext): New insn.
20413         (zero-extended cmove with mem peephole2): New pattern.
20414         (cmove with mem peephole2): Merge patterns.
20416 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20418         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20420 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
20422         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20423         * config/mips/mips.md (*madd4<mode>): Ditto.
20424         (*nmadd3<mode>) Ditto.
20425         (*nmadd4<mode>_fastmath): Ditto.
20426         (*nmadd3<mode>_fastmath): Ditto.
20427         (*nmsub4<mode>): Ditto.
20428         (*nmsub3<mode>): Ditto.
20429         (*nmsub4<mode>_fastmath): Ditto.
20430         (*nmsub3<mode>_fastmath): Ditto.
20432 2015-06-18  Michael Matz  <matz@suse.de>
20434         PR middle-end/66253
20435         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20436         grouped strided stores.
20437         (vectorizable_load): Don't use the DR from first_stmt in
20438         the non-SLP grouped strided case.
20440 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20442         PR target/66569
20443         * function.c (assign_bounds): Add arguments assign_regs,
20444         assign_special, assign_bt.
20445         (assign_parms): For vararg functions handle bounds in BT
20446         and special slots after incoming vararg bounds.
20448 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20450         PR middle-end/66568
20451         * cfgexpand.c (expand_return): Handle missing bounds.
20452         (expand_gimple_stmt_1): Likewise.
20453         * tree-chkp.c (chkp_expand_zero_bounds): New.
20454         * tree-chkp.h (chkp_expand_zero_bounds): New.
20456 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20458         PR middle-end/66567
20459         * ipa-chkp.c (chkp_maybe_create_clone): Require
20460         functions to be instrumentable.
20461         * tree-chkp.c (chkp_replace_function_pointer): Use
20462         chkp_instrumentable_p instead of attribute check.
20464 2015-06-18  Richard Biener  <rguenther@suse.de>
20466         PR tree-optimization/66510
20467         * tree-vect-stmts.c (vectorizable_load): Properly compute the
20468         number of vector loads for SLP permuted loads.
20469         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20470         check the stride for loop vectorization.
20471         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20472         vectorization factor.
20473         (vect_analyze_group_access): If the group size is not a power
20474         of two require a epilogue loop.
20475         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20476         compute and optimizing and alias test pruning after final
20477         vectorization factor computation.
20478         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20479         vector alignment.
20480         (vect_transform_slp_perm_load): Properly compute the original
20481         number of vector load stmts.
20483 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
20485         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20486         "unlikely character , in @var" warning.
20488 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
20490         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20491         (ix86_function_arg_advance): Ditto.
20492         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
20494 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20496         * function.h (struct rtl_data): Remove struct and accessor macros.
20497         * emit-rtl.h (struct rtl_data): Relocate to here.
20498         * Makefile.in (GTFILES): Add emit-rtl.h.
20499         * df-core.c: Include emit-rtl.h.
20500         * genattrtab.c: Likewise.
20501         * genconditions.c: Likewise.
20502         * genpreds.c: Likewise.
20503         * genrecog.c: Likewise.
20504         * regcprop.c: Likewise.
20505         * resource.c: Likewise.
20506         * sched-rgn.c: Likewise.
20507         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20508         * config/i386/winnt.c: Likewise.
20510 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
20512         PR middle-end/66429
20513         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20514         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
20515         and has_force_vectorize_loops flags from cfun into
20516         child_cfun.
20517         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20518         if simduid is non-NULL.
20519         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20520         * passes.def (pass_simduid_cleanup): Add new pass after loop
20521         passes.
20522         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20523         indirection from htab argument's type.
20524         (shrink_simd_arrays): New function.
20525         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
20526         Don't call adjust_simduid_builtins if there are no loops.
20527         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20528         (pass_simduid_cleanup::execute): New method.
20529         (make_pass_simduid_cleanup): New function.
20531 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
20533         * tree-core.h (tree_target_option): Make opts field a pointer to a
20534         cl_target_option instead of an instance of the struct.
20535         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20536         the structure.
20537         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20538         TARGET_OPTION_NODE.
20539         (copy_node_stat): Allocate and copy struct cl_target_option.
20541 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20543         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20544         Remove conditional exposure of prototypes.
20545         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20546         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
20547         definitions in tree.h with functions.
20548         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20549         anon_aggrname_p.
20550         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20552 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
20554         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20555         (*cmp<mode>_signed): ... this.
20556         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20557         (*cmp<mode>_unsigned): ... this.  Remove %b.
20559 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20561         * coretypes.h: Include input.h and as-a.h.
20562         * rtl.h: Include input.h and as-a.h for generator files.
20563         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20564         * vec.c: Don't include diagnostic-core.h.
20565         * alias.c: Do not include input.h, line-map.h or is-a.h.
20566         * asan.c: Likewise.
20567         * attribs.c: Likewise.
20568         * auto-inc-dec.c: Likewise.
20569         * auto-profile.c: Likewise.
20570         * bb-reorder.c: Likewise.
20571         * bt-load.c: Likewise.
20572         * builtins.c: Likewise.
20573         * caller-save.c: Likewise.
20574         * calls.c: Likewise.
20575         * ccmp.c: Likewise.
20576         * cfg.c: Likewise.
20577         * cfganal.c: Likewise.
20578         * cfgbuild.c: Likewise.
20579         * cfgcleanup.c: Likewise.
20580         * cfgexpand.c: Likewise.
20581         * cfghooks.c: Likewise.
20582         * cfgloop.c: Likewise.
20583         * cfgloop.h: Likewise.
20584         * cfgloopanal.c: Likewise.
20585         * cfgloopmanip.c: Likewise.
20586         * cfgrtl.c: Likewise.
20587         * cgraph.c: Likewise.
20588         * cgraphbuild.c: Likewise.
20589         * cgraphclones.c: Likewise.
20590         * cgraphunit.c: Likewise.
20591         * cilk-common.c: Likewise.
20592         * combine-stack-adj.c: Likewise.
20593         * combine.c: Likewise.
20594         * compare-elim.c: Likewise.
20595         * convert.c: Likewise.
20596         * coverage.c: Likewise.
20597         * cppbuiltin.c: Likewise.
20598         * cprop.c: Likewise.
20599         * cse.c: Likewise.
20600         * cselib.c: Likewise.
20601         * data-streamer-in.c: Likewise.
20602         * data-streamer-out.c: Likewise.
20603         * data-streamer.c: Likewise.
20604         * dbxout.c: Likewise.
20605         * dce.c: Likewise.
20606         * ddg.c: Likewise.
20607         * debug.c: Likewise.
20608         * df-core.c: Likewise.
20609         * df-problems.c: Likewise.
20610         * df-scan.c: Likewise.
20611         * df.h: Likewise.
20612         * dfp.c: Likewise.
20613         * diagnostic-core.h: Likewise.
20614         * diagnostic.c: Likewise.
20615         * dojump.c: Likewise.
20616         * dominance.c: Likewise.
20617         * domwalk.c: Likewise.
20618         * double-int.c: Likewise.
20619         * dse.c: Likewise.
20620         * dumpfile.c: Likewise.
20621         * dumpfile.h: Likewise.
20622         * dwarf2asm.c: Likewise.
20623         * dwarf2cfi.c: Likewise.
20624         * dwarf2out.c: Likewise.
20625         * emit-rtl.c: Likewise.
20626         * et-forest.c: Likewise.
20627         * except.c: Likewise.
20628         * explow.c: Likewise.
20629         * expmed.c: Likewise.
20630         * expr.c: Likewise.
20631         * final.c: Likewise.
20632         * fixed-value.c: Likewise.
20633         * fold-const.c: Likewise.
20634         * function.c: Likewise.
20635         * fwprop.c: Likewise.
20636         * gcc-plugin.h: Likewise.
20637         * gcse.c: Likewise.
20638         * generic-match-head.c: Likewise.
20639         * ggc-page.c: Likewise.
20640         * gimple-builder.c: Likewise.
20641         * gimple-expr.c: Likewise.
20642         * gimple-fold.c: Likewise.
20643         * gimple-iterator.c: Likewise.
20644         * gimple-low.c: Likewise.
20645         * gimple-match-head.c: Likewise.
20646         * gimple-pretty-print.c: Likewise.
20647         * gimple-ssa-isolate-paths.c: Likewise.
20648         * gimple-ssa-strength-reduction.c: Likewise.
20649         * gimple-streamer-in.c: Likewise.
20650         * gimple-streamer-out.c: Likewise.
20651         * gimple-streamer.h: Likewise.
20652         * gimple-walk.c: Likewise.
20653         * gimple.c: Likewise.
20654         * gimplify-me.c: Likewise.
20655         * gimplify.c: Likewise.
20656         * godump.c: Likewise.
20657         * graph.c: Likewise.
20658         * graphite-blocking.c: Likewise.
20659         * graphite-dependences.c: Likewise.
20660         * graphite-interchange.c: Likewise.
20661         * graphite-isl-ast-to-gimple.c: Likewise.
20662         * graphite-optimize-isl.c: Likewise.
20663         * graphite-poly.c: Likewise.
20664         * graphite-scop-detection.c: Likewise.
20665         * graphite-sese-to-poly.c: Likewise.
20666         * graphite.c: Likewise.
20667         * haifa-sched.c: Likewise.
20668         * hw-doloop.c: Likewise.
20669         * ifcvt.c: Likewise.
20670         * init-regs.c: Likewise.
20671         * input.c: Likewise.
20672         * internal-fn.c: Likewise.
20673         * ipa-chkp.c: Likewise.
20674         * ipa-comdats.c: Likewise.
20675         * ipa-cp.c: Likewise.
20676         * ipa-devirt.c: Likewise.
20677         * ipa-icf-gimple.c: Likewise.
20678         * ipa-icf.c: Likewise.
20679         * ipa-inline-analysis.c: Likewise.
20680         * ipa-inline-transform.c: Likewise.
20681         * ipa-inline.c: Likewise.
20682         * ipa-polymorphic-call.c: Likewise.
20683         * ipa-profile.c: Likewise.
20684         * ipa-prop.c: Likewise.
20685         * ipa-pure-const.c: Likewise.
20686         * ipa-ref.c: Likewise.
20687         * ipa-reference.c: Likewise.
20688         * ipa-split.c: Likewise.
20689         * ipa-utils.c: Likewise.
20690         * ipa-visibility.c: Likewise.
20691         * ipa.c: Likewise.
20692         * ira-build.c: Likewise.
20693         * ira-color.c: Likewise.
20694         * ira-conflicts.c: Likewise.
20695         * ira-costs.c: Likewise.
20696         * ira-emit.c: Likewise.
20697         * ira-lives.c: Likewise.
20698         * ira.c: Likewise.
20699         * jump.c: Likewise.
20700         * langhooks.c: Likewise.
20701         * lcm.c: Likewise.
20702         * loop-doloop.c: Likewise.
20703         * loop-init.c: Likewise.
20704         * loop-invariant.c: Likewise.
20705         * loop-iv.c: Likewise.
20706         * loop-unroll.c: Likewise.
20707         * lower-subreg.c: Likewise.
20708         * lra-assigns.c: Likewise.
20709         * lra-coalesce.c: Likewise.
20710         * lra-constraints.c: Likewise.
20711         * lra-eliminations.c: Likewise.
20712         * lra-lives.c: Likewise.
20713         * lra-remat.c: Likewise.
20714         * lra-spills.c: Likewise.
20715         * lra.c: Likewise.
20716         * lto-cgraph.c: Likewise.
20717         * lto-compress.c: Likewise.
20718         * lto-opts.c: Likewise.
20719         * lto-section-in.c: Likewise.
20720         * lto-section-out.c: Likewise.
20721         * lto-streamer-in.c: Likewise.
20722         * lto-streamer-out.c: Likewise.
20723         * lto-streamer.c: Likewise.
20724         * mcf.c: Likewise.
20725         * mode-switching.c: Likewise.
20726         * modulo-sched.c: Likewise.
20727         * omega.c: Likewise.
20728         * omp-low.c: Likewise.
20729         * optabs.c: Likewise.
20730         * opts-global.c: Likewise.
20731         * opts.h: Likewise.
20732         * passes.c: Likewise.
20733         * plugin.c: Likewise.
20734         * postreload-gcse.c: Likewise.
20735         * postreload.c: Likewise.
20736         * predict.c: Likewise.
20737         * pretty-print.h: Likewise.
20738         * print-rtl.c: Likewise.
20739         * print-tree.c: Likewise.
20740         * profile.c: Likewise.
20741         * real.c: Likewise.
20742         * realmpfr.c: Likewise.
20743         * recog.c: Likewise.
20744         * ree.c: Likewise.
20745         * reg-stack.c: Likewise.
20746         * regcprop.c: Likewise.
20747         * reginfo.c: Likewise.
20748         * regrename.c: Likewise.
20749         * regstat.c: Likewise.
20750         * reload.c: Likewise.
20751         * reload1.c: Likewise.
20752         * reorg.c: Likewise.
20753         * resource.c: Likewise.
20754         * rtl-chkp.c: Likewise.
20755         * rtl-error.c: Likewise.
20756         * rtlanal.c: Likewise.
20757         * rtlhooks.c: Likewise.
20758         * sanopt.c: Likewise.
20759         * sched-deps.c: Likewise.
20760         * sched-ebb.c: Likewise.
20761         * sched-rgn.c: Likewise.
20762         * sched-vis.c: Likewise.
20763         * sdbout.c: Likewise.
20764         * sel-sched-dump.c: Likewise.
20765         * sel-sched-ir.c: Likewise.
20766         * sel-sched.c: Likewise.
20767         * sese.c: Likewise.
20768         * shrink-wrap.c: Likewise.
20769         * simplify-rtx.c: Likewise.
20770         * stack-ptr-mod.c: Likewise.
20771         * statistics.c: Likewise.
20772         * stmt.c: Likewise.
20773         * stor-layout.c: Likewise.
20774         * store-motion.c: Likewise.
20775         * streamer-hooks.c: Likewise.
20776         * stringpool.c: Likewise.
20777         * symtab.c: Likewise.
20778         * target-globals.c: Likewise.
20779         * targhooks.c: Likewise.
20780         * toplev.c: Likewise.
20781         * tracer.c: Likewise.
20782         * trans-mem.c: Likewise.
20783         * tree-affine.c: Likewise.
20784         * tree-browser.c: Likewise.
20785         * tree-call-cdce.c: Likewise.
20786         * tree-cfg.c: Likewise.
20787         * tree-cfgcleanup.c: Likewise.
20788         * tree-chkp-opt.c: Likewise.
20789         * tree-chkp.c: Likewise.
20790         * tree-chrec.c: Likewise.
20791         * tree-complex.c: Likewise.
20792         * tree-data-ref.c: Likewise.
20793         * tree-dfa.c: Likewise.
20794         * tree-diagnostic.c: Likewise.
20795         * tree-dump.c: Likewise.
20796         * tree-eh.c: Likewise.
20797         * tree-emutls.c: Likewise.
20798         * tree-if-conv.c: Likewise.
20799         * tree-inline.c: Likewise.
20800         * tree-into-ssa.c: Likewise.
20801         * tree-iterator.c: Likewise.
20802         * tree-loop-distribution.c: Likewise.
20803         * tree-nested.c: Likewise.
20804         * tree-nrv.c: Likewise.
20805         * tree-object-size.c: Likewise.
20806         * tree-outof-ssa.c: Likewise.
20807         * tree-parloops.c: Likewise.
20808         * tree-phinodes.c: Likewise.
20809         * tree-predcom.c: Likewise.
20810         * tree-pretty-print.c: Likewise.
20811         * tree-profile.c: Likewise.
20812         * tree-scalar-evolution.c: Likewise.
20813         * tree-sra.c: Likewise.
20814         * tree-ssa-address.c: Likewise.
20815         * tree-ssa-alias.c: Likewise.
20816         * tree-ssa-ccp.c: Likewise.
20817         * tree-ssa-coalesce.c: Likewise.
20818         * tree-ssa-copy.c: Likewise.
20819         * tree-ssa-copyrename.c: Likewise.
20820         * tree-ssa-dce.c: Likewise.
20821         * tree-ssa-dom.c: Likewise.
20822         * tree-ssa-dse.c: Likewise.
20823         * tree-ssa-forwprop.c: Likewise.
20824         * tree-ssa-ifcombine.c: Likewise.
20825         * tree-ssa-live.c: Likewise.
20826         * tree-ssa-loop-ch.c: Likewise.
20827         * tree-ssa-loop-im.c: Likewise.
20828         * tree-ssa-loop-ivcanon.c: Likewise.
20829         * tree-ssa-loop-ivopts.c: Likewise.
20830         * tree-ssa-loop-manip.c: Likewise.
20831         * tree-ssa-loop-niter.c: Likewise.
20832         * tree-ssa-loop-prefetch.c: Likewise.
20833         * tree-ssa-loop-unswitch.c: Likewise.
20834         * tree-ssa-loop.c: Likewise.
20835         * tree-ssa-math-opts.c: Likewise.
20836         * tree-ssa-operands.c: Likewise.
20837         * tree-ssa-phiopt.c: Likewise.
20838         * tree-ssa-phiprop.c: Likewise.
20839         * tree-ssa-pre.c: Likewise.
20840         * tree-ssa-propagate.c: Likewise.
20841         * tree-ssa-reassoc.c: Likewise.
20842         * tree-ssa-sccvn.c: Likewise.
20843         * tree-ssa-scopedtables.c: Likewise.
20844         * tree-ssa-sink.c: Likewise.
20845         * tree-ssa-strlen.c: Likewise.
20846         * tree-ssa-structalias.c: Likewise.
20847         * tree-ssa-tail-merge.c: Likewise.
20848         * tree-ssa-ter.c: Likewise.
20849         * tree-ssa-threadedge.c: Likewise.
20850         * tree-ssa-threadupdate.c: Likewise.
20851         * tree-ssa-uncprop.c: Likewise.
20852         * tree-ssa-uninit.c: Likewise.
20853         * tree-ssa.c: Likewise.
20854         * tree-ssanames.c: Likewise.
20855         * tree-stdarg.c: Likewise.
20856         * tree-streamer-in.c: Likewise.
20857         * tree-streamer-out.c: Likewise.
20858         * tree-streamer.c: Likewise.
20859         * tree-switch-conversion.c: Likewise.
20860         * tree-tailcall.c: Likewise.
20861         * tree-vect-data-refs.c: Likewise.
20862         * tree-vect-generic.c: Likewise.
20863         * tree-vect-loop-manip.c: Likewise.
20864         * tree-vect-loop.c: Likewise.
20865         * tree-vect-patterns.c: Likewise.
20866         * tree-vect-slp.c: Likewise.
20867         * tree-vect-stmts.c: Likewise.
20868         * tree-vectorizer.c: Likewise.
20869         * tree-vrp.c: Likewise.
20870         * tree.c: Likewise.
20871         * tsan.c: Likewise.
20872         * ubsan.c: Likewise.
20873         * valtrack.c: Likewise.
20874         * value-prof.c: Likewise.
20875         * var-tracking.c: Likewise.
20876         * varasm.c: Likewise.
20877         * varpool.c: Likewise.
20878         * vmsdbgout.c: Likewise.
20879         * vtable-verify.c: Likewise.
20880         * web.c: Likewise.
20881         * wide-int.cc: Likewise.
20882         * xcoffout.c: Likewise.
20883         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20884         * common/common-targhooks.c: Likewise.
20885         * config/aarch64/aarch64-builtins.c: Likewise.
20886         * config/aarch64/aarch64.c: Likewise.
20887         * config/alpha/alpha.c: Likewise.
20888         * config/arc/arc.c: Likewise.
20889         * config/arm/aarch-common.c: Likewise.
20890         * config/arm/arm-builtins.c: Likewise.
20891         * config/arm/arm-c.c: Likewise.
20892         * config/arm/arm.c: Likewise.
20893         * config/avr/avr-c.c: Likewise.
20894         * config/avr/avr-log.c: Likewise.
20895         * config/avr/avr.c: Likewise.
20896         * config/bfin/bfin.c: Likewise.
20897         * config/c6x/c6x.c: Likewise.
20898         * config/cr16/cr16.c: Likewise.
20899         * config/cris/cris.c: Likewise.
20900         * config/darwin-c.c: Likewise.
20901         * config/darwin.c: Likewise.
20902         * config/default-c.c: Likewise.
20903         * config/epiphany/epiphany.c: Likewise.
20904         * config/epiphany/mode-switch-use.c: Likewise.
20905         * config/epiphany/resolve-sw-modes.c: Likewise.
20906         * config/fr30/fr30.c: Likewise.
20907         * config/frv/frv.c: Likewise.
20908         * config/ft32/ft32.c: Likewise.
20909         * config/glibc-c.c: Likewise.
20910         * config/h8300/h8300.c: Likewise.
20911         * config/i386/i386-c.c: Likewise.
20912         * config/i386/i386.c: Likewise.
20913         * config/i386/msformat-c.c: Likewise.
20914         * config/i386/winnt-cxx.c: Likewise.
20915         * config/i386/winnt-stubs.c: Likewise.
20916         * config/i386/winnt.c: Likewise.
20917         * config/ia64/ia64-c.c: Likewise.
20918         * config/ia64/ia64.c: Likewise.
20919         * config/iq2000/iq2000.c: Likewise.
20920         * config/lm32/lm32.c: Likewise.
20921         * config/m32c/m32c-pragma.c: Likewise.
20922         * config/m32c/m32c.c: Likewise.
20923         * config/m32r/m32r.c: Likewise.
20924         * config/m68k/m68k.c: Likewise.
20925         * config/mcore/mcore.c: Likewise.
20926         * config/mep/mep-pragma.c: Likewise.
20927         * config/mep/mep.c: Likewise.
20928         * config/microblaze/microblaze-c.c: Likewise.
20929         * config/microblaze/microblaze.c: Likewise.
20930         * config/mips/mips.c: Likewise.
20931         * config/mmix/mmix.c: Likewise.
20932         * config/mn10300/mn10300.c: Likewise.
20933         * config/moxie/moxie.c: Likewise.
20934         * config/msp430/msp430-c.c: Likewise.
20935         * config/msp430/msp430.c: Likewise.
20936         * config/nds32/nds32-cost.c: Likewise.
20937         * config/nds32/nds32-fp-as-gp.c: Likewise.
20938         * config/nds32/nds32-intrinsic.c: Likewise.
20939         * config/nds32/nds32-isr.c: Likewise.
20940         * config/nds32/nds32-md-auxiliary.c: Likewise.
20941         * config/nds32/nds32-memory-manipulation.c: Likewise.
20942         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20943         * config/nds32/nds32-predicates.c: Likewise.
20944         * config/nds32/nds32.c: Likewise.
20945         * config/nios2/nios2.c: Likewise.
20946         * config/nvptx/nvptx.c: Likewise.
20947         * config/pa/pa.c: Likewise.
20948         * config/pdp11/pdp11.c: Likewise.
20949         * config/rl78/rl78-c.c: Likewise.
20950         * config/rl78/rl78.c: Likewise.
20951         * config/rs6000/rs6000-c.c: Likewise.
20952         * config/rs6000/rs6000.c: Likewise.
20953         * config/rx/rx.c: Likewise.
20954         * config/s390/s390-c.c: Likewise.
20955         * config/s390/s390.c: Likewise.
20956         * config/sh/sh-c.c: Likewise.
20957         * config/sh/sh-mem.cc: Likewise.
20958         * config/sh/sh.c: Likewise.
20959         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20960         * config/sh/sh_treg_combine.cc: Likewise.
20961         * config/sol2-c.c: Likewise.
20962         * config/sol2-cxx.c: Likewise.
20963         * config/sol2-stubs.c: Likewise.
20964         * config/sol2.c: Likewise.
20965         * config/sparc/sparc-c.c: Likewise.
20966         * config/sparc/sparc.c: Likewise.
20967         * config/spu/spu-c.c: Likewise.
20968         * config/spu/spu.c: Likewise.
20969         * config/stormy16/stormy16.c: Likewise.
20970         * config/tilegx/mul-tables.c: Likewise.
20971         * config/tilegx/tilegx-c.c: Likewise.
20972         * config/tilegx/tilegx.c: Likewise.
20973         * config/tilepro/mul-tables.c: Likewise.
20974         * config/tilepro/tilepro-c.c: Likewise.
20975         * config/tilepro/tilepro.c: Likewise.
20976         * config/v850/v850-c.c: Likewise.
20977         * config/v850/v850.c: Likewise.
20978         * config/vax/vax.c: Likewise.
20979         * config/visium/visium.c: Likewise.
20980         * config/vms/vms-c.c: Likewise.
20981         * config/vms/vms.c: Likewise.
20982         * config/vxworks.c: Likewise.
20983         * config/winnt-c.c: Likewise.
20984         * config/xtensa/xtensa.c: Likewise.
20986 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
20988         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20989         function.
20990         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20992 2015-06-17  Richard Biener  <rguenther@suse.de>
20994         PR tree-optimization/66251
20995         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20996         stmts for SLP strided stores.
20998         Revert
20999         2015-05-22  Richard Biener  <rguenther@suse.de>
21001         PR tree-optimization/66251
21002         * tree-vect-stmts.c (vectorizable_conversion): Properly
21003         set STMT_VINFO_VEC_STMT even for the SLP case.
21005         2015-05-26  Michael Matz  <matz@suse.de>
21007         PR middle-end/66251
21008         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21009         STMT_VINFO_VEC_STMT, also with SLP.
21011 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
21013         PR target/56766
21014         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21015         (*avx_addsubv4df3_1s): Ditto.
21016         (*sse3_addsubv2df3_1): Ditto.
21017         (*sse3_addsubv2df3_1s): Ditto.
21018         (*avx_addsubv8sf3_1): Ditto.
21019         (*avx_addsubv8sf3_1s): Ditto.
21020         (*sse3_addsubv4sf3_1): Ditto.
21021         (*sse3_addsubv4sf3_1s): Ditto.
21023 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
21025         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21026         (SYSROOT_SUFFIX_SPEC): Update.
21027         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21028         (STARTFILE_PREFIX_SPEC): Update.
21029         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21030         (MULTILIB_REQUIRED): New.
21031         (MULTILIB_OSDIRNAMES): New.
21032         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21033         (MULTILIB_REQUIRED): New.
21034         (MULTILIB_OSDIRNAMES): New.
21036 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
21038         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21039         * config/aarch64/aarch64-options-extensions.def: Update "fP",
21040         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
21041         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21042         (AARCH64_FL_PAN): New.
21043         (AARCH64_FL_LOR): New.
21044         (AARCH64_FL_RDMA): New.
21045         (AARCH64_FL_FOR_ARCH8_1): New.
21046         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21047         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21049 2015-06-16  Martin Liska  <mliska@suse.cz>
21051         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21052         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21053         guard.
21055 2015-06-16  Richard Biener  <rguenther@suse.de>
21057         * tree-vect-stmts.c (vectorizable_store): Adjust.
21058         (vectorizable_load): Likewise.
21059         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21060         Simplify.
21061         (vect_create_data_ref_ptr): Likewise.
21062         (bump_vector_ptr): Adjust.
21064 2015-06-16  Richard Biener  <rguenther@suse.de>
21066         * tree-vect-stmts.c (vectorizable_load): Properly start loads
21067         with the first element if this is grouped loads.
21069 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
21071         * config/arm/arm-protos.h (struct tune_params): Rename
21072         log_op_non_sc to log_op_non_short_circuit, and rename enum
21073         values to expand SC to SHORT_CIRCUIT.
21074         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21075         to LOG_OP_NON_SHORT_CIRCUIT.
21076         (arm_fastmul_tune):Likewise
21077         (arm_strongarm_tune): Likewise.
21078         (arm_xscale_tune): Likewise.
21079         (arm_9e_tune): Likewise.
21080         (arm_marvell_pj4_tune): Likewise.
21081         (arm_v6t2_tune): Likewise.
21082         (arm_cortex_tune): Likewise.
21083         (arm_cortex_a8_tune): Likewise.
21084         (arm_cortex_a7_tune): Likewise.
21085         (arm_cortex_a15_tune): Likewise.
21086         (arm_cortex_a53_tune): Likewise.
21087         (arm_cortex_a57_tune): Likewise.
21088         (arm_xgene1_tune): Likewise.
21089         (arm_cortex_a5_tune): Likewise.
21090         (arm_cortex_a9_tune): Likewise.
21091         (arm_cortex_a12_tune): Likewise.
21092         (arm_v7m_tune): Likewise.
21093         (arm_cortex_m7_tune): Likewise.
21094         (arm_v6m_tune): Likewise.
21095         (arm_fa726te_tune): Likewise.
21097 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
21099         * altivec.md: Delete UNSPEC_VMLADDUHM.
21100         (mulv4si3_p8): New pattern.
21101         (mulv4si3): Use it for POWER8.
21102         (mulv8hi3): Use vmladduhm with zero addend.
21103         (altivec_vmladduhm): Descriptive RTL.
21105 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
21107         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21108         to use neon_move instead of mov_imm.
21109         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21110         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21112         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21113         aarch64_float_const_zero_rtx_p check before TFmode check.
21114         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21115         an fp zero.
21116         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
21117         code and attributes to match.  Change condition from register_operand
21118         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
21119         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
21120         to store2.
21122 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
21124         PR debug/66535
21125         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21126         there is no parent.
21128 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
21130         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21131         HOST_WIDE_INT parameter.
21133 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
21135         PR ipa/66181
21136         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21137         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21138         TYPE_NO_FORCE_BLK.
21139         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21141 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
21143         * rtl.h (classify_insn): Declare.
21144         * emit-rtl.c (classify_insn): Move to...
21145         * rtl.c: ...here and add generator support.
21146         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21147         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21148         * genemit.c (gen_emit_seq): New function.
21149         (gen_expand, gen_split): Use it.
21151 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
21153         * tree.c (make_vector_stat): Fix comment to state that the
21154         function returns a VECTOR_CST.
21156 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
21158         * gensupport.h (add_implicit_parallel): Declare.
21159         * genrecog.c (add_implicit_parallel): Move to...
21160         * gensupport.c (add_implicit_parallel): ...here.
21161         (process_one_cond_exec): Use it.
21162         * genemit.c (gen_insn): Likewise.
21164 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
21166         PR bootstrap/66448
21167         * passes.c (rest_of_decl_compilation): Do not register globals for
21168         early debug if they are declared in built-ins.
21170 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
21172         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21174 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21176         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21177         manually swapping.
21178         (noce_try_cmove_arith): Likewise.
21179         (noce_get_alt_condition): Likewise.
21181 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21183         * common/config/i386/i386-common.c
21184         (OPTION_MASK_ISA_MWAITX_SET): New.
21185         (ix86_handle_option): Handle mwaitx.
21186         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21187         (x86_64-*-*): Likewise.
21188         * config/i386/mwaitxintrin.h: New header.
21189         * config/i386/cpuid.h (bit_MWAITX):  Define.
21190         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21191         MWAITX support.
21192         * config/i386/i386.opt (mwaitx): New.
21193         * config/i386/i386-builtin-types.def
21194         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21195         * config/i386/i386-c.c: Define __MWAITX__ if needed.
21196         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21197         (PTA_MWAITX): New.
21198         (ix86_option_override_internal): Handle new option.
21199         (processor_alias_table): Added PTA_MWAITX.
21200         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21201         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21202         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21203         IX86_BUILTIN_MONITORX  built-ins.
21204         * config/i386/i386.h (TARGET_MWAITX): New.
21205         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21206         UNSPEC_MONITORX.
21207         (mwaitx):  New pattern.
21208         (monitorx_<mode>): New pattern.
21209         * config/i386/x86intrin.h: Include mwaitxintrin.h.
21210         * doc/extend.texi: Document monitorx and mwaitx builtins.
21211         * doc/invoke.texi: Document -mmwaitx option.
21213 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
21215         * emit-rtl.c (need_atomic_barrier_p): Mask model with
21216         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
21218 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21220         * dbxout.c (xcoff_debug_hooks): Provide a function for
21221         register_main_translation_unit hook.
21223 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21225         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21226         variants cases from switch.
21227         (rs6000_post_atomic_barrier): Same.
21228         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21229         (rs6000_expand_atomic_exchange): Same.
21230         (rs6000_expand_atomic_op): Same.
21231         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21232         SYNC variants cases from switch.
21233         (atomic_load): Same.
21234         (atomic_store): Same.
21236 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
21238         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21239         CONST_INT for goto.
21241 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
21243         PR bootstrap/66448
21244         * dwarf2out.c (check_die): Check for common duplicate attributes.
21245         (add_location_or_const_value_attribute): Do not add duplicate
21246         attributes.
21247         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21248         time around.
21249         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21250         (gen_type_die_with_usage): Call check_die.
21251         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21253 2015-06-11  Jason Merrill  <jason@redhat.com>
21255         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21256         dies.
21258 2015-06-11  Marek Polacek  <polacek@redhat.com>
21260         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21262 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
21264         PR bootstrap/66252
21265         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21266         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21267         (*addx_extend_sp32): Fix pasto.
21268         (*subx_extend): Rename into...
21269         (*subx_extend_sp32): ...this.
21270         (*adddi3_extend_sp32): Add earlyclobber.
21271         (*subdi3_insn_sp32): Likewise.
21272         (*subdi3_extend_sp32): Likewise.
21273         (*and_not_di_sp32): Likewise.
21274         (*or_not_di_sp32): Likewise.
21275         (*xor_not_di_sp32): Likewise.
21276         (*negdi2_sp32): Likewise.
21277         (*one_cmpldi2_sp32): Likewise.
21279 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
21281         * debug.h (struct gcc_debug_hooks): Add a
21282         register_main_translation_unit hook.
21283         * debug.c (do_nothing_debug_hooks): Provide a function for this
21284         new hook.
21285         * dbxout.c (dbx_debug_hooks): Likewise.
21286         * sdbout.c (sdb_debug_hooks): Likewise.
21287         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21288         * dwarf2out.c (main_translation_unit): New global variable.
21289         (dwarf2out_register_main_translation_unit): New function
21290         implementing the new hook.
21291         (dwarf2_debug_hooks): Assign
21292         dwarf2out_register_main_translation_unit to this new hook.
21293         (dwarf2out_init): Associate any main translation unit to
21294         comp_unit_die ().
21296 2015-06-11  Marek Polacek  <polacek@redhat.com>
21298         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21300 2015-06-11  Marek Polacek  <polacek@redhat.com>
21302         * match.pd: Use single_use throughout.
21304 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21306         * config/arm/arm.c (arm_option_params_internal): When optimising
21307         for speed set max_insns_skipped when arm_restrict_it.
21309 2015-06-11  Christian Bruel  <christian.bruel@st.com>
21311         PR target/52144
21312         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21313          macros in ...
21314         (arm_cpu_builtins): New function.
21315         (arm_pragma_target_parse): Call arm_cpu_builtins.
21316         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21317         (arm_register_target_pragmas): Likewise.
21318         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21319          Call arm_register_target_pragmas.
21320         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21321         (arm_pragma_target_parse): Likewise.
21323 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21325         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21326         of the second operand.
21328 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
21330         PR target/66473
21331         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21332         to prepare mask operand for AVX512 modes.
21334 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21336         PR target/66474
21337         * doc/md.texi (Machine Constraints): Document that on the PowerPC
21338         if you use a constraint that targets a VSX register, you must use
21339         %x<n> in the template.
21341 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
21343         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21344         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21345         (define_insn "trap"): New definition.
21347 2015-06-10  Richard Biener  <rguenther@suse.de>
21349         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21350         out from ...
21351         (vect_supported_load_permutation_p): ... here.  Handle
21352         supportable permutations in reductions.
21353         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21354         for vectorizing strided group loads.
21356 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
21358         PR target/66470
21359         * config/i386/i386.c (ix86_split_long_move): For collisions
21360         involving direct tls segment refs, move the UNSPEC_TP possibly
21361         wrapped in ZERO_EXTEND out of the address for lea, to each of
21362         the memory loads.
21364 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21366         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21367         dmb sy. Adjust tabs.
21369 2015-06-10  Tom de Vries  <tom@codesourcery.com>
21371         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21373 2015-06-10  Martin Liska  <mliska@suse.cz>
21375         PR bootstrap/66471
21376         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21377         all enum values in mem_alloc_origin.
21378         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21379         name.
21380         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21381         * bitmap.c (bitmap_register): Likewise.
21382         (dump_bitmap_statistics): Likewise.
21383         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21384         (ggc_record_overhead): Likewise.
21385         * hash-map.h: Likewise.
21386         * hash-set.h: Likewise.
21387         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21388         * hash-table.h: Likewise.
21389         * vec.c (vec_prefix::register_overhead): Likewise.
21390         (vec_prefix::release_overhead): Likewise.
21391         (dump_vec_loc_statistics): Likewise.
21393 2015-06-09  Christian Bruel  <christian.bruel@st.com>
21395         PR target/52144
21396         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21397         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21398         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21399         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21400         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21401         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21402         (arm_valid_target_attribute_p): Likewise.
21403         (arm_set_current_function, arm_can_inline_p): Likewise.
21404         (arm_valid_target_attribute_rec): Likewise.
21405         (arm_previous_fndecl): New variable.
21406         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21407         (TARGET_CAN_INLINE_P): Define.
21408         (arm_asm_trampoline_template): Emit mode.
21409         (arm_file_start): Don't set unified syntax.
21410         (arm_declare_function_name): Set unified syntax and mode.
21411         (arm_option_override): Init target_option_default_node.
21412         and target_option_current_node.
21413         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21414         (*call_symbol): Likewise.
21415         * doc/extend.texi: Document ARM/Thumb target attribute.
21416         * doc/invoke.texi: Likewise.
21418 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21420         Revert:
21421         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21422         PR rtl-optimization/64164
21423         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21424         * tree-ssa-copyrename.c: Removed.
21425         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21426         -ftree-coalesce-vars.
21427         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21428         * common.opt (ftree-copyrename): Ignore.
21429         (ftree-coalesce-inlined-vars): Likewise.
21430         * doc/invoke.texi: Remove the ignored options above.
21431         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21432         * tree-ssa-coalesce.h: ... here.
21433         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21434         headers required by it.
21435         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21436         across variables when flag_tree_coalesce_vars.  Check register
21437         use and promoted modes to allow coalescing.  Moved to
21438         tree-ssa-coalesce.c.
21439         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21440         with its member functions to tree-ssa-coalesce.c.
21441         (var_map_base_init): Likewise.  Renamed to
21442         compute_samebase_partition_bases.
21443         (partition_view_normal): Drop want_bases parameter.
21444         (partition_view_bitmap): Likewise.
21445         * tree-ssa-live.h: Adjust declarations.
21446         * tree-ssa-coalesce.c: Include explow.h.
21447         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21448         default defs at the entry point.
21449         (dump_part_var_map): New.
21450         (compute_optimized_partition_bases): New, called by...
21451         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21452         of compute_samebase_partition_bases.  Adjust.
21453         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21454         * cfgexpand.c (leader_merge): New.
21455         (get_rtl_for_parm_ssa_default_def): New.
21456         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21457         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21458         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21459         redundant MEM attr setting.
21460         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21461         from...
21462         (expand_one_stack_var): ... this.  New wrapper to check and
21463         skip already expanded SSA partitions.
21464         (record_alignment_for_reg_var): New, factored out of...
21465         (expand_one_var): ... this.
21466         (expand_one_ssa_partition): New.
21467         (adjust_one_expanded_partition_var): New.
21468         (expand_one_register_var): Check and skip already expanded SSA
21469         partitions.
21470         (expand_used_vars): Don't create DECLs for anonymous SSA
21471         names.  Expand all SSA partitions, then adjust all SSA names.
21472         (pass::execute): Replace the loops that set
21473         SA.partition_to_pseudo from partition leaders and cleared
21474         DECL_RTL for multi-location variables, and that which used to
21475         rename vars and set attrs, with one that clears DECL_RTL and
21476         checks that PARMs and RESULTs default_defs match DECL_RTL.
21477         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21478         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21479         * explow.c (promote_ssa_mode): New.
21480         * explow.h (promote_ssa_mode): Declare.
21481         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21482         * function.c: Include cfgexpand.h.
21483         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21484         (use_register_for_parm_decl): Wrapper for the above to
21485         special-case the result_ptr.
21486         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21487         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21488         multiple locations.
21489         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21490         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21491         (assign_parm_setup_block): Prefer SSA-assigned location.
21492         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21493         if stack_parm is NULL.
21494         (assign_parm_setup_stack): Prefer SSA-assigned location.
21495         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21496         rtl before testing for pointer bounds.  Special-case result_ptr.
21497         (expand_function_start): Maybe reset DECL_RTL of result.
21498         Prefer SSA-assigned location for result and static chain.
21499         Factor out DECL_RESULT and SET_DECL_RTL.
21500         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21501         anonymous SSA names.  Use promote_ssa_mode.
21502         (get_temp_reg): Likewise.
21503         (remove_ssa_form): Adjust.
21504         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21505         and get its reg_usage for reg invalidation.
21506         (compute_bb_dataflow): Pass it insn.
21507         (emit_notes_in_bb): Likewise.
21508         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21509         fail assert on conversion between unsigned types.
21511 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21513         PR tree-optimization/65460
21514         * omp-low.c (expand_omp_target): Set parallelized_function on
21515         cgraph_node for child_fn.
21517 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21519         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21520         parallelized_function before add_new_function.
21522 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
21524         * gcc-plugin.h: Move decls to plugin.h and include it.
21525         * plugin.h: Relocate decls from gcc-plugin.h
21526         * ggc-page.c: Include required header files.
21527         * passes.c: Likewise.
21528         * cgraphunit.c: Likewise.
21530 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21532         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21534 2015-06-09  Jason Merrill  <jason@redhat.com>
21536         PR bootstrap/66448
21537         * toplev.c (check_global_declaration): Don't warn about a clone.
21539 2015-06-09  Marek Polacek  <polacek@redhat.com>
21541         PR tree-optimization/66299
21542         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21543         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21544         patterns.
21546 2015-06-09  Richard Biener  <rguenther@suse.de>
21548         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21549         (vect_analyze_slp_instance): Instead do not falsely drop
21550         load permutations.
21552 2015-06-09  Richard Biener  <rguenther@suse.de>
21554         PR middle-end/66423
21555         * match.pd: Handle A % (unsigned)(1 << B).
21557 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
21559         * varasm.c (output_object_block_htab): Remove.
21560         (output_object_block_compare): New.
21561         (output_object_blocks): Sort named object_blocks before outputting
21562         them.
21564 2015-06-09  Richard Biener  <rguenther@suse.de>
21566         PR tree-optimization/66419
21567         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21568         consider GROUP_GAP when detecting a perfect subchain.
21570 2015-06-09  Nick Clifton  <nickc@redhat.com>
21572         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21573         place read only data in the .frodata section.
21575 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
21577         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21578         (atomic_store<mode>): Likewise.
21580 2015-06-09  Richard Biener  <rguenther@suse.de>
21582         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21584 2015-06-09  Richard Biener  <rguenther@suse.de>
21586         PR middle-end/66413
21587         * tree-inline.c (insert_init_debug_bind): Unshare value.
21589 2015-06-09  Richard Biener  <rguenther@suse.de>
21591         PR tree-optimization/66396
21592         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21593         Rename virtual operands.
21595 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21597         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21598         always return false.
21600 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21602         PR rtl-optimization/64164
21603         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21604         * tree-ssa-copyrename.c: Removed.
21605         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21606         -ftree-coalesce-vars.
21607         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21608         * common.opt (ftree-copyrename): Ignore.
21609         (ftree-coalesce-inlined-vars): Likewise.
21610         * doc/invoke.texi: Remove the ignored options above.
21611         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21612         * tree-ssa-coalesce.h: ... here.
21613         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21614         headers required by it.
21615         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21616         across variables when flag_tree_coalesce_vars.  Check register
21617         use and promoted modes to allow coalescing.  Moved to
21618         tree-ssa-coalesce.c.
21619         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21620         with its member functions to tree-ssa-coalesce.c.
21621         (var_map_base_init): Likewise.  Renamed to
21622         compute_samebase_partition_bases.
21623         (partition_view_normal): Drop want_bases parameter.
21624         (partition_view_bitmap): Likewise.
21625         * tree-ssa-live.h: Adjust declarations.
21626         * tree-ssa-coalesce.c: Include explow.h.
21627         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21628         default defs at the entry point.
21629         (dump_part_var_map): New.
21630         (compute_optimized_partition_bases): New, called by...
21631         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21632         of compute_samebase_partition_bases.  Adjust.
21633         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21634         * cfgexpand.c (leader_merge): New.
21635         (get_rtl_for_parm_ssa_default_def): New.
21636         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21637         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21638         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21639         redundant MEM attr setting.
21640         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21641         from...
21642         (expand_one_stack_var): ... this.  New wrapper to check and
21643         skip already expanded SSA partitions.
21644         (record_alignment_for_reg_var): New, factored out of...
21645         (expand_one_var): ... this.
21646         (expand_one_ssa_partition): New.
21647         (adjust_one_expanded_partition_var): New.
21648         (expand_one_register_var): Check and skip already expanded SSA
21649         partitions.
21650         (expand_used_vars): Don't create DECLs for anonymous SSA
21651         names.  Expand all SSA partitions, then adjust all SSA names.
21652         (pass::execute): Replace the loops that set
21653         SA.partition_to_pseudo from partition leaders and cleared
21654         DECL_RTL for multi-location variables, and that which used to
21655         rename vars and set attrs, with one that clears DECL_RTL and
21656         checks that PARMs and RESULTs default_defs match DECL_RTL.
21657         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21658         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21659         * explow.c (promote_ssa_mode): New.
21660         * explow.h (promote_ssa_mode): Declare.
21661         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21662         * function.c: Include cfgexpand.h.
21663         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21664         (use_register_for_parm_decl): Wrapper for the above to
21665         special-case the result_ptr.
21666         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21667         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21668         multiple locations.
21669         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21670         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21671         (assign_parm_setup_block): Prefer SSA-assigned location.
21672         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21673         if stack_parm is NULL.
21674         (assign_parm_setup_stack): Prefer SSA-assigned location.
21675         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21676         rtl before testing for pointer bounds.  Special-case result_ptr.
21677         (expand_function_start): Maybe reset DECL_RTL of result.
21678         Prefer SSA-assigned location for result and static chain.
21679         Factor out DECL_RESULT and SET_DECL_RTL.
21680         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21681         anonymous SSA names.  Use promote_ssa_mode.
21682         (get_temp_reg): Likewise.
21683         (remove_ssa_form): Adjust.
21684         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21685         and get its reg_usage for reg invalidation.
21686         (compute_bb_dataflow): Pass it insn.
21687         (emit_notes_in_bb): Likewise.
21688         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21689         fail assert on conversion between unsigned types.
21691 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21693         PR debug/58315
21694         * tree-inline.c (reset_debug_binding): New.
21695         (reset_debug_bindings): Likewise.
21696         (expand_call_inline): Call it.
21698 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21700         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21701         TYPE_STRING_FLAG.
21703 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21705         * lto-streamer-out.c (lto_output_location): Stream
21706         reserved locations correctly.
21707         * lto-streamer-in.c (lto_output_location): Likewise.
21709 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
21711         * coretypes.h: Include hash-table.h and hash-set.h for host files.
21712         * ggc.h: Don't include statistics.h>
21713         * hash-map.h: Remove all includes.
21714         * hash-set.h: Likewise.
21715         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21716         the include list. Remove <new>.
21717         * inchash.h: Remove all includes.
21718         * mem-stats.h: Likewise.
21719         * vec.h: No special processing for generators or ggc.
21720         * alias.c : Adjust include files.
21721         * alloc-pool.c : Likewise.
21722         * alloc-pool.h : Likewise.
21723         * asan.c : Likewise.
21724         * attribs.c : Likewise.
21725         * auto-inc-dec.c : Likewise.
21726         * auto-profile.c : Likewise.
21727         * bb-reorder.c : Likewise.
21728         * bitmap.c : Likewise.
21729         * bitmap.h : Likewise.
21730         * bt-load.c : Likewise.
21731         * builtins.c : Likewise.
21732         * caller-save.c : Likewise.
21733         * calls.c : Likewise.
21734         * ccmp.c : Likewise.
21735         * cfg.c : Likewise.
21736         * cfganal.c : Likewise.
21737         * cfgbuild.c : Likewise.
21738         * cfgcleanup.c : Likewise.
21739         * cfgexpand.c : Likewise.
21740         * cfghooks.c : Likewise.
21741         * cfgloop.c : Likewise.
21742         * cfgloop.h : Likewise.
21743         * cfgloopanal.c : Likewise.
21744         * cfgloopmanip.c : Likewise.
21745         * cfgrtl.c : Likewise.
21746         * cgraph.c : Likewise.
21747         * cgraphbuild.c : Likewise.
21748         * cgraphclones.c : Likewise.
21749         * cgraphunit.c : Likewise.
21750         * cilk-common.c : Likewise.
21751         * combine-stack-adj.c : Likewise.
21752         * combine.c : Likewise.
21753         * compare-elim.c : Likewise.
21754         * context.c : Likewise.
21755         * convert.c : Likewise.
21756         * coverage.c : Likewise.
21757         * cppbuiltin.c : Likewise.
21758         * cprop.c : Likewise.
21759         * cse.c : Likewise.
21760         * cselib.c : Likewise.
21761         * data-streamer-in.c : Likewise.
21762         * data-streamer-out.c : Likewise.
21763         * data-streamer.c : Likewise.
21764         * data-streamer.h : Likewise.
21765         * dbxout.c : Likewise.
21766         * dce.c : Likewise.
21767         * ddg.c : Likewise.
21768         * debug.c : Likewise.
21769         * df-core.c : Likewise.
21770         * df-problems.c : Likewise.
21771         * df-scan.c : Likewise.
21772         * df.h : Likewise.
21773         * dfp.c : Likewise.
21774         * dojump.c : Likewise.
21775         * dominance.c : Likewise.
21776         * domwalk.c : Likewise.
21777         * double-int.c : Likewise.
21778         * dse.c : Likewise.
21779         * dumpfile.c : Likewise.
21780         * dwarf2asm.c : Likewise.
21781         * dwarf2cfi.c : Likewise.
21782         * dwarf2out.c : Likewise.
21783         * emit-rtl.c : Likewise.
21784         * et-forest.c : Likewise.
21785         * except.c : Likewise.
21786         * except.h : Likewise.
21787         * explow.c : Likewise.
21788         * expmed.c : Likewise.
21789         * expr.c : Likewise.
21790         * final.c : Likewise.
21791         * fixed-value.c : Likewise.
21792         * fold-const.c : Likewise.
21793         * function.c : Likewise.
21794         * fwprop.c : Likewise.
21795         * gcc-plugin.h : Likewise.
21796         * gcc.c : Likewise.
21797         * gcse-common.c : Likewise.
21798         * gcse.c : Likewise.
21799         * genattrtab.c : Likewise.
21800         * genautomata.c : Likewise.
21801         * genconditions.c : Likewise.
21802         * genemit.c : Likewise.
21803         * generic-match-head.c : Likewise.
21804         * genextract.c : Likewise.
21805         * gengtype-state.c : Likewise.
21806         * gengtype.c : Likewise.
21807         * genhooks.c : Likewise.
21808         * genmatch.c : Likewise.
21809         * genmodes.c : Likewise.
21810         * genrecog.c : Likewise.
21811         * gensupport.c : Likewise.
21812         * ggc-common.c : Likewise.
21813         * ggc-internal.h : Likewise.
21814         * ggc-none.c : Likewise.
21815         * ggc-page.c : Likewise.
21816         * gimple-builder.c : Likewise.
21817         * gimple-expr.c : Likewise.
21818         * gimple-fold.c : Likewise.
21819         * gimple-iterator.c : Likewise.
21820         * gimple-low.c : Likewise.
21821         * gimple-match-head.c : Likewise.
21822         * gimple-pretty-print.c : Likewise.
21823         * gimple-ssa-isolate-paths.c : Likewise.
21824         * gimple-ssa-strength-reduction.c : Likewise.
21825         * gimple-ssa.h : Likewise.
21826         * gimple-streamer-in.c : Likewise.
21827         * gimple-streamer-out.c : Likewise.
21828         * gimple-streamer.h : Likewise.
21829         * gimple-walk.c : Likewise.
21830         * gimple.c : Likewise.
21831         * gimplify-me.c : Likewise.
21832         * gimplify.c : Likewise.
21833         * godump.c : Likewise.
21834         * graph.c : Likewise.
21835         * graphds.c : Likewise.
21836         * graphite-blocking.c : Likewise.
21837         * graphite-dependences.c : Likewise.
21838         * graphite-interchange.c : Likewise.
21839         * graphite-isl-ast-to-gimple.c : Likewise.
21840         * graphite-optimize-isl.c : Likewise.
21841         * graphite-poly.c : Likewise.
21842         * graphite-scop-detection.c : Likewise.
21843         * graphite-sese-to-poly.c : Likewise.
21844         * graphite.c : Likewise.
21845         * haifa-sched.c : Likewise.
21846         * hard-reg-set.h : Likewise.
21847         * hw-doloop.c : Likewise.
21848         * ifcvt.c : Likewise.
21849         * inchash.c : Likewise.
21850         * incpath.c : Likewise.
21851         * init-regs.c : Likewise.
21852         * input.c : Likewise.
21853         * internal-fn.c : Likewise.
21854         * ipa-chkp.c : Likewise.
21855         * ipa-comdats.c : Likewise.
21856         * ipa-cp.c : Likewise.
21857         * ipa-devirt.c : Likewise.
21858         * ipa-icf-gimple.c : Likewise.
21859         * ipa-icf.c : Likewise.
21860         * ipa-inline-analysis.c : Likewise.
21861         * ipa-inline-transform.c : Likewise.
21862         * ipa-inline.c : Likewise.
21863         * ipa-polymorphic-call.c : Likewise.
21864         * ipa-profile.c : Likewise.
21865         * ipa-prop.c : Likewise.
21866         * ipa-pure-const.c : Likewise.
21867         * ipa-ref.c : Likewise.
21868         * ipa-reference.c : Likewise.
21869         * ipa-split.c : Likewise.
21870         * ipa-utils.c : Likewise.
21871         * ipa-visibility.c : Likewise.
21872         * ipa.c : Likewise.
21873         * ira-build.c : Likewise.
21874         * ira-color.c : Likewise.
21875         * ira-conflicts.c : Likewise.
21876         * ira-costs.c : Likewise.
21877         * ira-emit.c : Likewise.
21878         * ira-lives.c : Likewise.
21879         * ira.c : Likewise.
21880         * jump.c : Likewise.
21881         * langhooks.c : Likewise.
21882         * lcm.c : Likewise.
21883         * libfuncs.h : Likewise.
21884         * lists.c : Likewise.
21885         * loop-doloop.c : Likewise.
21886         * loop-init.c : Likewise.
21887         * loop-invariant.c : Likewise.
21888         * loop-iv.c : Likewise.
21889         * loop-unroll.c : Likewise.
21890         * lower-subreg.c : Likewise.
21891         * lra-assigns.c : Likewise.
21892         * lra-coalesce.c : Likewise.
21893         * lra-constraints.c : Likewise.
21894         * lra-eliminations.c : Likewise.
21895         * lra-lives.c : Likewise.
21896         * lra-remat.c : Likewise.
21897         * lra-spills.c : Likewise.
21898         * lra.c : Likewise.
21899         * lto-cgraph.c : Likewise.
21900         * lto-compress.c : Likewise.
21901         * lto-opts.c : Likewise.
21902         * lto-section-in.c : Likewise.
21903         * lto-section-out.c : Likewise.
21904         * lto-streamer-in.c : Likewise.
21905         * lto-streamer-out.c : Likewise.
21906         * lto-streamer.c : Likewise.
21907         * lto-streamer.h : Likewise.
21908         * mcf.c : Likewise.
21909         * mode-switching.c : Likewise.
21910         * modulo-sched.c : Likewise.
21911         * omega.c : Likewise.
21912         * omp-low.c : Likewise.
21913         * optabs.c : Likewise.
21914         * opts-global.c : Likewise.
21915         * opts.h : Likewise.
21916         * passes.c : Likewise.
21917         * plugin.c : Likewise.
21918         * postreload-gcse.c : Likewise.
21919         * postreload.c : Likewise.
21920         * predict.c : Likewise.
21921         * print-rtl.c : Likewise.
21922         * print-tree.c : Likewise.
21923         * profile.c : Likewise.
21924         * read-md.c : Likewise.
21925         * read-md.h : Likewise.
21926         * read-rtl.c : Likewise.
21927         * real.c : Likewise.
21928         * realmpfr.c : Likewise.
21929         * recog.c : Likewise.
21930         * ree.c : Likewise.
21931         * reg-stack.c : Likewise.
21932         * regcprop.c : Likewise.
21933         * reginfo.c : Likewise.
21934         * regrename.c : Likewise.
21935         * regstat.c : Likewise.
21936         * reload.c : Likewise.
21937         * reload1.c : Likewise.
21938         * reorg.c : Likewise.
21939         * resource.c : Likewise.
21940         * rtl-chkp.c : Likewise.
21941         * rtl.c : Likewise.
21942         * rtl.h : Likewise.
21943         * rtlanal.c : Likewise.
21944         * rtlhash.c : Likewise.
21945         * rtlhash.h : Likewise.
21946         * rtlhooks.c : Likewise.
21947         * sanopt.c : Likewise.
21948         * sched-deps.c : Likewise.
21949         * sched-ebb.c : Likewise.
21950         * sched-rgn.c : Likewise.
21951         * sched-vis.c : Likewise.
21952         * sdbout.c : Likewise.
21953         * sel-sched-dump.c : Likewise.
21954         * sel-sched-ir.c : Likewise.
21955         * sel-sched-ir.h : Likewise.
21956         * sel-sched.c : Likewise.
21957         * sese.c : Likewise.
21958         * shrink-wrap.c : Likewise.
21959         * shrink-wrap.h : Likewise.
21960         * simplify-rtx.c : Likewise.
21961         * stack-ptr-mod.c : Likewise.
21962         * statistics.c : Likewise.
21963         * stmt.c : Likewise.
21964         * stor-layout.c : Likewise.
21965         * store-motion.c : Likewise.
21966         * stringpool.c : Likewise.
21967         * symtab.c : Likewise.
21968         * target-globals.c : Likewise.
21969         * targhooks.c : Likewise.
21970         * tlink.c : Likewise.
21971         * toplev.c : Likewise.
21972         * tracer.c : Likewise.
21973         * trans-mem.c : Likewise.
21974         * tree-affine.c : Likewise.
21975         * tree-affine.h : Likewise.
21976         * tree-browser.c : Likewise.
21977         * tree-call-cdce.c : Likewise.
21978         * tree-cfg.c : Likewise.
21979         * tree-cfgcleanup.c : Likewise.
21980         * tree-chkp-opt.c : Likewise.
21981         * tree-chkp.c : Likewise.
21982         * tree-chrec.c : Likewise.
21983         * tree-complex.c : Likewise.
21984         * tree-data-ref.c : Likewise.
21985         * tree-dfa.c : Likewise.
21986         * tree-diagnostic.c : Likewise.
21987         * tree-dump.c : Likewise.
21988         * tree-eh.c : Likewise.
21989         * tree-eh.h : Likewise.
21990         * tree-emutls.c : Likewise.
21991         * tree-hasher.h : Likewise.
21992         * tree-if-conv.c : Likewise.
21993         * tree-inline.c : Likewise.
21994         * tree-inline.h : Likewise.
21995         * tree-into-ssa.c : Likewise.
21996         * tree-iterator.c : Likewise.
21997         * tree-loop-distribution.c : Likewise.
21998         * tree-nested.c : Likewise.
21999         * tree-nrv.c : Likewise.
22000         * tree-object-size.c : Likewise.
22001         * tree-outof-ssa.c : Likewise.
22002         * tree-parloops.c : Likewise.
22003         * tree-phinodes.c : Likewise.
22004         * tree-predcom.c : Likewise.
22005         * tree-pretty-print.c : Likewise.
22006         * tree-profile.c : Likewise.
22007         * tree-scalar-evolution.c : Likewise.
22008         * tree-sra.c : Likewise.
22009         * tree-ssa-address.c : Likewise.
22010         * tree-ssa-alias.c : Likewise.
22011         * tree-ssa-ccp.c : Likewise.
22012         * tree-ssa-coalesce.c : Likewise.
22013         * tree-ssa-copy.c : Likewise.
22014         * tree-ssa-copyrename.c : Likewise.
22015         * tree-ssa-dce.c : Likewise.
22016         * tree-ssa-dom.c : Likewise.
22017         * tree-ssa-dse.c : Likewise.
22018         * tree-ssa-forwprop.c : Likewise.
22019         * tree-ssa-ifcombine.c : Likewise.
22020         * tree-ssa-live.c : Likewise.
22021         * tree-ssa-loop-ch.c : Likewise.
22022         * tree-ssa-loop-im.c : Likewise.
22023         * tree-ssa-loop-ivcanon.c : Likewise.
22024         * tree-ssa-loop-ivopts.c : Likewise.
22025         * tree-ssa-loop-manip.c : Likewise.
22026         * tree-ssa-loop-niter.c : Likewise.
22027         * tree-ssa-loop-prefetch.c : Likewise.
22028         * tree-ssa-loop-unswitch.c : Likewise.
22029         * tree-ssa-loop.c : Likewise.
22030         * tree-ssa-math-opts.c : Likewise.
22031         * tree-ssa-operands.c : Likewise.
22032         * tree-ssa-phiopt.c : Likewise.
22033         * tree-ssa-phiprop.c : Likewise.
22034         * tree-ssa-pre.c : Likewise.
22035         * tree-ssa-propagate.c : Likewise.
22036         * tree-ssa-reassoc.c : Likewise.
22037         * tree-ssa-sccvn.c : Likewise.
22038         * tree-ssa-scopedtables.c : Likewise.
22039         * tree-ssa-sink.c : Likewise.
22040         * tree-ssa-strlen.c : Likewise.
22041         * tree-ssa-structalias.c : Likewise.
22042         * tree-ssa-tail-merge.c : Likewise.
22043         * tree-ssa-ter.c : Likewise.
22044         * tree-ssa-threadedge.c : Likewise.
22045         * tree-ssa-threadupdate.c : Likewise.
22046         * tree-ssa-uncprop.c : Likewise.
22047         * tree-ssa-uninit.c : Likewise.
22048         * tree-ssa.c : Likewise.
22049         * tree-ssanames.c : Likewise.
22050         * tree-stdarg.c : Likewise.
22051         * tree-streamer-in.c : Likewise.
22052         * tree-streamer-out.c : Likewise.
22053         * tree-streamer.c : Likewise.
22054         * tree-streamer.h : Likewise.
22055         * tree-switch-conversion.c : Likewise.
22056         * tree-tailcall.c : Likewise.
22057         * tree-vect-data-refs.c : Likewise.
22058         * tree-vect-generic.c : Likewise.
22059         * tree-vect-loop-manip.c : Likewise.
22060         * tree-vect-loop.c : Likewise.
22061         * tree-vect-patterns.c : Likewise.
22062         * tree-vect-slp.c : Likewise.
22063         * tree-vect-stmts.c : Likewise.
22064         * tree-vectorizer.c : Likewise.
22065         * tree-vectorizer.h : Likewise.
22066         * tree-vrp.c : Likewise.
22067         * tree.c : Likewise.
22068         * tsan.c : Likewise.
22069         * ubsan.c : Likewise.
22070         * valtrack.c : Likewise.
22071         * valtrack.h : Likewise.
22072         * value-prof.c : Likewise.
22073         * var-tracking.c : Likewise.
22074         * varasm.c : Likewise.
22075         * varpool.c : Likewise.
22076         * vec.c: Likewise.
22077         * vmsdbgout.c : Likewise.
22078         * vtable-verify.c : Likewise.
22079         * vtable-verify.h : Likewise.
22080         * web.c : Likewise.
22081         * wide-int.cc : Likewise.
22082         * xcoffout.c : Likewise.
22083         * config/aarch64/aarch64-builtins.c : Likewise.
22084         * config/aarch64/aarch64.c : Likewise.
22085         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22086         * config/alpha/alpha.c : Likewise.
22087         * config/arc/arc.c : Likewise.
22088         * config/arm/aarch-common.c : Likewise.
22089         * config/arm/arm-builtins.c : Likewise.
22090         * config/arm/arm-c.c : Likewise.
22091         * config/arm/arm.c : Likewise.
22092         * config/avr/avr-c.c : Likewise.
22093         * config/avr/avr-log.c : Likewise.
22094         * config/avr/avr.c : Likewise.
22095         * config/bfin/bfin.c : Likewise.
22096         * config/c6x/c6x.c : Likewise.
22097         * config/cr16/cr16.c : Likewise.
22098         * config/cris/cris.c : Likewise.
22099         * config/darwin-c.c : Likewise.
22100         * config/darwin.c : Likewise.
22101         * config/default-c.c : Likewise.
22102         * config/epiphany/epiphany.c : Likewise.
22103         * config/epiphany/mode-switch-use.c : Likewise.
22104         * config/epiphany/resolve-sw-modes.c : Likewise.
22105         * config/fr30/fr30.c : Likewise.
22106         * config/frv/frv.c : Likewise.
22107         * config/ft32/ft32.c : Likewise.
22108         * config/glibc-c.c : Likewise.
22109         * config/h8300/h8300.c : Likewise.
22110         * config/i386/i386-c.c : Likewise.
22111         * config/i386/i386.c : Likewise.
22112         * config/i386/msformat-c.c : Likewise.
22113         * config/i386/winnt-cxx.c : Likewise.
22114         * config/i386/winnt-stubs.c : Likewise.
22115         * config/i386/winnt.c : Likewise.
22116         * config/ia64/ia64-c.c : Likewise.
22117         * config/ia64/ia64.c : Likewise.
22118         * config/iq2000/iq2000.c : Likewise.
22119         * config/lm32/lm32.c : Likewise.
22120         * config/m32c/m32c-pragma.c : Likewise.
22121         * config/m32c/m32c.c : Likewise.
22122         * config/m32r/m32r.c : Likewise.
22123         * config/m68k/m68k.c : Likewise.
22124         * config/mcore/mcore.c : Likewise.
22125         * config/mep/mep-pragma.c : Likewise.
22126         * config/mep/mep.c : Likewise.
22127         * config/microblaze/microblaze-c.c : Likewise.
22128         * config/microblaze/microblaze.c : Likewise.
22129         * config/mips/mips.c : Likewise.
22130         * config/mmix/mmix.c : Likewise.
22131         * config/mn10300/mn10300.c : Likewise.
22132         * config/moxie/moxie.c : Likewise.
22133         * config/msp430/msp430-c.c : Likewise.
22134         * config/msp430/msp430.c : Likewise.
22135         * config/nds32/nds32-cost.c : Likewise.
22136         * config/nds32/nds32-fp-as-gp.c : Likewise.
22137         * config/nds32/nds32-intrinsic.c : Likewise.
22138         * config/nds32/nds32-isr.c : Likewise.
22139         * config/nds32/nds32-md-auxiliary.c : Likewise.
22140         * config/nds32/nds32-memory-manipulation.c : Likewise.
22141         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22142         * config/nds32/nds32-predicates.c : Likewise.
22143         * config/nds32/nds32.c : Likewise.
22144         * config/nios2/nios2.c : Likewise.
22145         * config/nvptx/nvptx.c : Likewise.
22146         * config/pa/pa.c : Likewise.
22147         * config/pdp11/pdp11.c : Likewise.
22148         * config/rl78/rl78-c.c : Likewise.
22149         * config/rl78/rl78.c : Likewise.
22150         * config/rs6000/rs6000-c.c : Likewise.
22151         * config/rs6000/rs6000.c : Likewise.
22152         * config/rx/rx.c : Likewise.
22153         * config/s390/s390-c.c : Likewise.
22154         * config/s390/s390.c : Likewise.
22155         * config/sh/sh-c.c : Likewise.
22156         * config/sh/sh-mem.cc : Likewise.
22157         * config/sh/sh.c : Likewise.
22158         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22159         * config/sh/sh_treg_combine.cc : Likewise.
22160         * config/sol2-c.c : Likewise.
22161         * config/sol2-cxx.c : Likewise.
22162         * config/sol2-stubs.c : Likewise.
22163         * config/sol2.c : Likewise.
22164         * config/sparc/sparc-c.c : Likewise.
22165         * config/sparc/sparc.c : Likewise.
22166         * config/spu/spu-c.c : Likewise.
22167         * config/spu/spu.c : Likewise.
22168         * config/stormy16/stormy16.c : Likewise.
22169         * config/tilegx/mul-tables.c : Likewise.
22170         * config/tilegx/tilegx-c.c : Likewise.
22171         * config/tilegx/tilegx.c : Likewise.
22172         * config/tilepro/mul-tables.c : Likewise.
22173         * config/tilepro/tilepro-c.c : Likewise.
22174         * config/tilepro/tilepro.c : Likewise.
22175         * config/v850/v850-c.c : Likewise.
22176         * config/v850/v850.c : Likewise.
22177         * config/vax/vax.c : Likewise.
22178         * config/visium/visium.c : Likewise.
22179         * config/vms/vms-c.c : Likewise.
22180         * config/vms/vms.c : Likewise.
22181         * config/vxworks.c : Likewise.
22182         * config/winnt-c.c : Likewise.
22183         * config/xtensa/xtensa.c : Likewise.
22185 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22187         PR lto/65378
22188         * ipa-utils.h (warn_types_mismatch): Update prototype.
22189         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22190         parameters.
22191         (type_mismatch_p): New function.
22192         (warn_types_mismatch): Reorg to work better on non-C++ types.
22193         (odr_types_equivalent_p): Add loc1/loc2 parameters.
22194         (add_type_duplicate): Update.
22196 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22198         PR rtl-optimization/66444
22199         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22200         call_used_regs.
22202 2015-06-08  Richard Biener  <rguenther@suse.de>
22204         PR tree-optimization/66422
22205         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22206         block after inserted gcc_unreachable.
22208 2015-06-08  Nick Clifton  <nickc@redhat.com>
22210         * config/rx/rx.c (rx_function_value): Do not promote vector types.
22211         (rx_promote_function_mode): Likewise.
22212         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22214 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
22216         * genattrtab.c (insn_alternatives): Change type from int *
22217         to uint64_t *.
22218         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22219         (get_attr_value): Change type of num_alt to uint64_t.
22220         (compute_alternative_mask): Change return type from
22221         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22222         (make_alternative_compare, mk_attr_alt): Change argument type
22223         from int to uint64_t.
22224         (simplify_test_exp): Change type of i from int to uint64_t.
22225         Shift ((uint64_t) 1) instead of 1 up.
22226         (main): Adjust oballocvec first argument from int to uint64_t.
22227         Shift ((uint64_t) 1) instead of 1 up.
22229 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
22231         PR other/65366
22232         * gdbhooks.py: Import sys.
22233         (intptr): New function.  Replace int(...) by intptr(...).
22235 2015-06-08  Richard Biener  <rguenther@suse.de>
22237         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22238         adjustment for gaps at the end of a SLP load group properly.
22239         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22240         all permutations we can generate.
22241         (vect_transform_slp_perm_load): Use the correct group-size.
22243 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
22245         * genmatch.c (expr::gen_transform): For conditions, guess the type
22246         from the second operand.
22248 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22250         PR tree-optimization/66442
22251         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22252         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22253         if the loop latch is not a singleton.  Use
22254         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22256 2015-06-08  Marek Polacek  <polacek@redhat.com>
22258         PR sanitizer/66452
22259         * toplev.c (check_global_declaration): Don't warn about artificial
22260         decls.
22262 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22264         PR tree-optimization/66436
22265         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22266         dump file.
22267         * gimplify.c: Add tree-dump.h include.
22268         (gimplify_function_tree): Dump function to gimple dump file.
22269         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22270         dump file.
22272 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22274         PR tree-optimization/66435
22275         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22276         function.
22278 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
22280         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22281         of ptr_type_node to not be ptr_to_node.
22282         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22283         TREE_TYPE of pointers.
22284         * gimple-expr.c (useless_type_conversion): Reorder the check for
22285         function pointers and TYPE_CANONICAL.
22287 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
22289         PR bootstrap/66319
22290         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22291         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22292         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22293         later.
22294         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22295         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22296         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22297         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22298         and non iso if unix2003.
22300 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
22302         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22304 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
22306         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22307         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22308         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22309         except.c, final.c, function.c, gcse-common.c, genemit.c,
22310         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22311         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22312         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22313         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22314         more derived ones.
22316 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
22318         * combine.c (combine_split_insns): Remove cast.
22319         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22320         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22321         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22322         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22323         * genemit.c (gen_split): Change return type of generated functions to
22324         rtx_insn.
22325         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22326         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22327         gen_peephole2_* functions.
22328         (print_subroutine, main): Likewise.
22329         * recog.c (peephole2_optimize): Remove cast.
22330         (peep2_next_insn): Promote return type to rtx_insn.
22331         * recog.h (peep2_next_insn): Fix prototype.
22332         * rtl.h (try_split, split_insns): Likewise.
22334 2015-06-06  DJ Delorie  <dj@redhat.com>
22336         * config/msp430/msp430.c (msp430_asm_integer): Support addition
22337         and subtraction too.
22339 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
22341         PR target/66410
22342         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22343         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22344         instead of Snd.  Disparage Sid/z alternative with '^'.
22346 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
22348         * dwarf2out.c: Remove deferred_locations*.
22349         (dwarf2_debug_hooks): Add early_finish hook.
22350         Remove global_decl hook.
22351         Add early_global_decl and late_global_decl hook.
22352         New global early_dwarf.
22353         New structure set_early_dwarf.
22354         (output_die): Indicate whether a DIE was generated early
22355         when generating assembly with -dA.
22356         (struct limbo_die_struct): Document created_for field.
22357         Remove file_table_last_lookup.
22358         (remove_AT): Return TRUE if successful.
22359         (remove_child_TAG): Clear die_parent.
22360         (reparent_child): New function abstracted from...
22361         (splice_child_die): ...here.
22362         (new_die): ICE if a DIE ends up in limbo too late.
22363         (check_die): New.
22364         (defer_location): Remove.
22365         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22366         (fill_variable_array_bounds): New.
22367         (decl_start_label): Call fill_variable_array_bounds.
22368         (gen_formal_parameter_die): Rewrite to reuse previously generated
22369         DIEs.
22370         (gen_subprogram_die): Same.
22371         (gen_variable_die): Same.
22372         (gen_const_die): Same.
22373         (gen_label_die): Same.
22374         (gen_lexical_block_die): Same.
22375         (decl_will_get_specification_p): New.
22376         (local_function_static): New.
22377         (gen_struct_or_union_type_die): Fill in variable-length fields.
22378         (gen_typedef_die): Fill in variable-length typedefs.
22379         (gen_tagged_type_die): Gracefully return on error_mark_node.
22380         Handle re-entrancy.
22381         (gen_type_die_with_usage): Handle variable-length types.
22382         Remove duplicate code for ARRAY_TYPE case.
22383         (process_scope_var): Only process imported modules during early
22384         dwarf.
22385         (dwarf2out_early_global_decl): New.
22386         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22387         (dwarf2out_type_decl): Set early_dwarf while calling
22388         dwarf2out_decl.
22389         (dwarf2out_decl): Verify that we did not recreate a previously
22390         generated DIE.
22391         Do not return on DECL_EXTERNALs in VAR_DECLs.
22392         Abstract some code to local_function_static.
22393         (lookup_filename): Remove use of file_table_last_lookup.
22394         Gracefully exit on missing file_name.
22395         (dwarf2out_finish): Verify limbo list.
22396         Remove deferred_locations_list use.
22397         Move deferred_asm_name and limbo flushing to...
22398         (dwarf2out_early_finish): ...here.  New.
22399         (dwarf2out_c_finalize): Remove set of deferred_location_list,
22400         deferred_asm_name, and file_table_last_lookup.
22401         * cgraph.h (referred_to_p): Add default argument.
22402         * cgraphunit.c (referred_to_p): Add and handle include_self
22403         argument.
22404         (analyze_functions): Add first_time argument.
22405         Call check_global_declaration for all symbols.
22406         Call late_global_decl for nodes for moribund nodes.
22407         (finalize_compilation_unit): Add new argument to
22408         analyze_functions.
22409         Call early_global_decl for functions.
22410         Call early_finish debug hook.
22411         * dbxout.c (dbxout_early_global_decl): New.
22412         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
22413         (dbx_debug_hooks): Add new hooks.
22414         (xcoff_debug_hooks): Same.
22415         * debug.c (do_nothing_debug_hooks): Add early_finish field.
22416         Add early and late debug hooks.
22417         Remove global_decl hook.
22418         * debug.h (struct gcc_debug_hooks): Add early_finish,
22419         early_global_decl, and late_global_decl fields.
22420         Remove global_decl field.
22421         Document gcc_debug_hooks.
22422         * gengtype.c (output_typename): Remove.
22423         * godump.c (go_early_global_decl): New.
22424         (go_late_global_decl): New.
22425         (go_global_decl): Remove.
22426         (dump_go_spec_init): Remove global_decl.  Add
22427         {early,late}_global_decl.
22428         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22429         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22430         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22431         (write_global_declarations): Remove.
22432         (global_decl_processing): New.
22433         * langhooks.h (struct lang_hooks_for_decls): Remove
22434         final_write_globals field.
22435         Add post_compilation_parsing_cleanups field.
22436         * passes.c (rest_of_decl_compilation): Call early_global_decl.
22437         * sdbout.c: Add early and late_global_decl hooks.  Remove
22438         sdbout_global_decl hook.
22439         Add early_finish field for sdb_debug_hooks.
22440         (sdbout_global_decl): Remove.
22441         (sdbout_early_global_decl): New.
22442         (sdbout_late_global_decl): New.
22443         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22444         * toplev.c (check_global_declaration): Rename from
22445         check_global_declaration_1.
22446         Adapt to use symtab infrastructure.
22447         (check_global_declarations): Remove.
22448         (emit_debug_global_declarations): Remove.
22449         (compile_file): Remove call to final_write_globals langhook.
22450         Run the actual compilation process.
22451         Perform any post compilation parser cleanups.
22452         Generate late debug info.
22453         * toplev.h (check_global_declaration): New.
22454         (check_global_declaration_1): Remove.
22455         (check_global_declarations): Remove.
22456         (write_global_declarations): Remove.
22457         (emit_debug_global_declarations): Remove.
22458         (global_decl_processing): New.
22459         * tree-core.h (struct tree_block): Add DIE field.
22460         * tree.h (BLOCK_DIE): New.
22461         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22462         throughout.
22463         (vmsdbgout_early_global_decl): New.
22464         (vmsdbgout_late_global_decl): New.
22465         Add early_finish debug hook field to vmsdbg_debug_hooks.
22466         Remove vmsdbgout_decl to vmsdbgout_function_decl.
22467         Add early and late_global_decl debug hooks.
22469 2015-06-05  Julian Brown  <julian@codesourcery.com>
22470             Sandra Loosemore  <sandra@codesourcery.com>
22472         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22473         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22474         to print-sysroot-suffix.sh script.
22476 2015-06-05  Tom de Vries  <tom@codesourcery.com>
22478         merge from gomp4 branch:
22479         2015-05-28  Tom de Vries  <tom@codesourcery.com>
22481         PR tree-optimization/65443
22482         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22483         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22484         (try_transform_to_exit_first_loop_alt): New function.
22485         (transform_to_exit_first_loop): Use
22486         try_transform_to_exit_first_loop_alt.
22488 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
22490         * builtins.c (expand_builtin_atomic_compare_exchange): Call
22491         emit_cmp_and_jump_insns with the mode of target.
22493 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22495         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22497 2015-06-04  DJ Delorie  <dj@redhat.com>
22499         * config/msp430/msp430.md (movsi_s): New.  Special case for
22500         storing a 20-bit symbol into a 32-bit register.
22501         * config/msp430/msp430.c (msp430_subreg): Add support for it.
22502         * config/msp430/predicates.md (msp430_symbol_operand): New.
22504 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
22506         * c-family/c-common.c (noplt): New attribute.
22507         (handle_noplt_attribute): New handler.
22508         * calls.c (prepare_call_address): Check for noplt
22509         attribute.
22510         * config/i386/i386.c (ix86_expand_call): Check
22511         for noplt attribute.
22512         (ix86_nopic_noplt_attribute_p): New function.
22513         (ix86_output_call_insn): Output indirect call for non-pic
22514         no plt calls.
22515         * doc/extend.texi (noplt): Document new attribute.
22516         * doc/invoke.texi: Document new attribute.
22518 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
22520         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22521         real.h, and fixed-value.h when included in host source files.
22522         * double-int.h: Remove redundant #includes listed above.
22523         * fixed-value.h: Likewise.
22524         * real.h: Likewise.
22525         * wide-int.h: Likewise.
22526         * inchash.h: Likewise.
22527         * rtl.h: Add some include files When included from a generator file.
22528         * target.h: Remove wide-int.h and insn-modes.h from the include list.
22529         * internal-fn.h: Don't include coretypes.h.
22530         * alias.c: Adjust includes for restructured coretypes.h.
22531         * asan.c: Likewise.
22532         * attribs.c: Likewise.
22533         * auto-inc-dec.c: Likewise.
22534         * auto-profile.c: Likewise.
22535         * bb-reorder.c: Likewise.
22536         * bt-load.c: Likewise.
22537         * builtins.c: Likewise.
22538         * caller-save.c: Likewise.
22539         * calls.c: Likewise.
22540         * ccmp.c: Likewise.
22541         * cfg.c: Likewise.
22542         * cfganal.c: Likewise.
22543         * cfgbuild.c: Likewise.
22544         * cfgcleanup.c: Likewise.
22545         * cfgexpand.c: Likewise.
22546         * cfghooks.c: Likewise.
22547         * cfgloop.c: Likewise.
22548         * cfgloop.h: Likewise.
22549         * cfgloopanal.c: Likewise.
22550         * cfgloopmanip.c: Likewise.
22551         * cfgrtl.c: Likewise.
22552         * cgraph.c: Likewise.
22553         * cgraphbuild.c: Likewise.
22554         * cgraphclones.c: Likewise.
22555         * cgraphunit.c: Likewise.
22556         * cilk-common.c: Likewise.
22557         * combine-stack-adj.c: Likewise.
22558         * combine.c: Likewise.
22559         * compare-elim.c: Likewise.
22560         * convert.c: Likewise.
22561         * coverage.c: Likewise.
22562         * cppbuiltin.c: Likewise.
22563         * cprop.c: Likewise.
22564         * cse.c: Likewise.
22565         * cselib.c: Likewise.
22566         * data-streamer-in.c: Likewise.
22567         * data-streamer-out.c: Likewise.
22568         * data-streamer.c: Likewise.
22569         * dbxout.c: Likewise.
22570         * dce.c: Likewise.
22571         * ddg.c: Likewise.
22572         * debug.c: Likewise.
22573         * df-core.c: Likewise.
22574         * df-problems.c: Likewise.
22575         * df-scan.c: Likewise.
22576         * df.h: Likewise.
22577         * dfp.c: Likewise.
22578         * dojump.c: Likewise.
22579         * dominance.c: Likewise.
22580         * domwalk.c: Likewise.
22581         * double-int.c: Likewise.
22582         * dse.c: Likewise.
22583         * dumpfile.c: Likewise.
22584         * dwarf2asm.c: Likewise.
22585         * dwarf2cfi.c: Likewise.
22586         * dwarf2out.c: Likewise.
22587         * dwarf2out.h: Likewise.
22588         * emit-rtl.c: Likewise.
22589         * et-forest.c: Likewise.
22590         * except.c: Likewise.
22591         * explow.c: Likewise.
22592         * expmed.c: Likewise.
22593         * expr.c: Likewise.
22594         * final.c: Likewise.
22595         * fixed-value.c: Likewise.
22596         * fold-const.c: Likewise.
22597         * function.c: Likewise.
22598         * fwprop.c: Likewise.
22599         * gcc-plugin.h: Likewise.
22600         * gcse.c: Likewise.
22601         * generic-match-head.c: Likewise.
22602         * ggc-page.c: Likewise.
22603         * gimple-builder.c: Likewise.
22604         * gimple-expr.c: Likewise.
22605         * gimple-fold.c: Likewise.
22606         * gimple-iterator.c: Likewise.
22607         * gimple-low.c: Likewise.
22608         * gimple-match-head.c: Likewise.
22609         * gimple-pretty-print.c: Likewise.
22610         * gimple-ssa-isolate-paths.c: Likewise.
22611         * gimple-ssa-strength-reduction.c: Likewise.
22612         * gimple-streamer-in.c: Likewise.
22613         * gimple-streamer-out.c: Likewise.
22614         * gimple-streamer.h: Likewise.
22615         * gimple-walk.c: Likewise.
22616         * gimple.c: Likewise.
22617         * gimplify-me.c: Likewise.
22618         * gimplify.c: Likewise.
22619         * godump.c: Likewise.
22620         * graph.c: Likewise.
22621         * graphite-blocking.c: Likewise.
22622         * graphite-dependences.c: Likewise.
22623         * graphite-interchange.c: Likewise.
22624         * graphite-isl-ast-to-gimple.c: Likewise.
22625         * graphite-optimize-isl.c: Likewise.
22626         * graphite-poly.c: Likewise.
22627         * graphite-scop-detection.c: Likewise.
22628         * graphite-sese-to-poly.c: Likewise.
22629         * graphite.c: Likewise.
22630         * haifa-sched.c: Likewise.
22631         * hooks.h: Likewise.
22632         * hw-doloop.c: Likewise.
22633         * ifcvt.c: Likewise.
22634         * incpath.c: Likewise.
22635         * init-regs.c: Likewise.
22636         * internal-fn.c: Likewise.
22637         * ipa-chkp.c: Likewise.
22638         * ipa-comdats.c: Likewise.
22639         * ipa-cp.c: Likewise.
22640         * ipa-devirt.c: Likewise.
22641         * ipa-icf-gimple.c: Likewise.
22642         * ipa-icf.c: Likewise.
22643         * ipa-inline-analysis.c: Likewise.
22644         * ipa-inline-transform.c: Likewise.
22645         * ipa-inline.c: Likewise.
22646         * ipa-polymorphic-call.c: Likewise.
22647         * ipa-profile.c: Likewise.
22648         * ipa-prop.c: Likewise.
22649         * ipa-pure-const.c: Likewise.
22650         * ipa-ref.c: Likewise.
22651         * ipa-reference.c: Likewise.
22652         * ipa-split.c: Likewise.
22653         * ipa-utils.c: Likewise.
22654         * ipa-visibility.c: Likewise.
22655         * ipa.c: Likewise.
22656         * ira-build.c: Likewise.
22657         * ira-color.c: Likewise.
22658         * ira-conflicts.c: Likewise.
22659         * ira-costs.c: Likewise.
22660         * ira-emit.c: Likewise.
22661         * ira-lives.c: Likewise.
22662         * ira.c: Likewise.
22663         * jump.c: Likewise.
22664         * langhooks.c: Likewise.
22665         * lcm.c: Likewise.
22666         * loop-doloop.c: Likewise.
22667         * loop-init.c: Likewise.
22668         * loop-invariant.c: Likewise.
22669         * loop-iv.c: Likewise.
22670         * loop-unroll.c: Likewise.
22671         * lower-subreg.c: Likewise.
22672         * lra-assigns.c: Likewise.
22673         * lra-coalesce.c: Likewise.
22674         * lra-constraints.c: Likewise.
22675         * lra-eliminations.c: Likewise.
22676         * lra-lives.c: Likewise.
22677         * lra-remat.c: Likewise.
22678         * lra-spills.c: Likewise.
22679         * lra.c: Likewise.
22680         * lto-cgraph.c: Likewise.
22681         * lto-compress.c: Likewise.
22682         * lto-opts.c: Likewise.
22683         * lto-section-in.c: Likewise.
22684         * lto-section-out.c: Likewise.
22685         * lto-streamer-in.c: Likewise.
22686         * lto-streamer-out.c: Likewise.
22687         * lto-streamer.c: Likewise.
22688         * mcf.c: Likewise.
22689         * mode-switching.c: Likewise.
22690         * modulo-sched.c: Likewise.
22691         * omega.c: Likewise.
22692         * omp-low.c: Likewise.
22693         * optabs.c: Likewise.
22694         * opts-global.c: Likewise.
22695         * passes.c: Likewise.
22696         * plugin.c: Likewise.
22697         * postreload-gcse.c: Likewise.
22698         * postreload.c: Likewise.
22699         * predict.c: Likewise.
22700         * print-rtl.c: Likewise.
22701         * print-tree.c: Likewise.
22702         * profile.c: Likewise.
22703         * real.c: Likewise.
22704         * realmpfr.c: Likewise.
22705         * realmpfr.h: Likewise.
22706         * recog.c: Likewise.
22707         * ree.c: Likewise.
22708         * reg-stack.c: Likewise.
22709         * regcprop.c: Likewise.
22710         * reginfo.c: Likewise.
22711         * regrename.c: Likewise.
22712         * regs.h: Likewise.
22713         * regstat.c: Likewise.
22714         * reload.c: Likewise.
22715         * reload1.c: Likewise.
22716         * reorg.c: Likewise.
22717         * resource.c: Likewise.
22718         * rtl-chkp.c: Likewise.
22719         * rtlanal.c: Likewise.
22720         * rtlhooks.c: Likewise.
22721         * sanopt.c: Likewise.
22722         * sched-deps.c: Likewise.
22723         * sched-ebb.c: Likewise.
22724         * sched-rgn.c: Likewise.
22725         * sched-vis.c: Likewise.
22726         * sdbout.c: Likewise.
22727         * sel-sched-dump.c: Likewise.
22728         * sel-sched-ir.c: Likewise.
22729         * sel-sched.c: Likewise.
22730         * sese.c: Likewise.
22731         * shrink-wrap.c: Likewise.
22732         * shrink-wrap.h: Likewise.
22733         * simplify-rtx.c: Likewise.
22734         * stack-ptr-mod.c: Likewise.
22735         * statistics.c: Likewise.
22736         * stmt.c: Likewise.
22737         * stor-layout.c: Likewise.
22738         * store-motion.c: Likewise.
22739         * stringpool.c: Likewise.
22740         * symtab.c: Likewise.
22741         * target-globals.c: Likewise.
22742         * targhooks.c: Likewise.
22743         * toplev.c: Likewise.
22744         * tracer.c: Likewise.
22745         * trans-mem.c: Likewise.
22746         * tree-affine.c: Likewise.
22747         * tree-affine.h: Likewise.
22748         * tree-browser.c: Likewise.
22749         * tree-call-cdce.c: Likewise.
22750         * tree-cfg.c: Likewise.
22751         * tree-cfgcleanup.c: Likewise.
22752         * tree-chkp-opt.c: Likewise.
22753         * tree-chkp.c: Likewise.
22754         * tree-chrec.c: Likewise.
22755         * tree-complex.c: Likewise.
22756         * tree-data-ref.c: Likewise.
22757         * tree-dfa.c: Likewise.
22758         * tree-diagnostic.c: Likewise.
22759         * tree-dump.c: Likewise.
22760         * tree-eh.c: Likewise.
22761         * tree-emutls.c: Likewise.
22762         * tree-if-conv.c: Likewise.
22763         * tree-inline.c: Likewise.
22764         * tree-into-ssa.c: Likewise.
22765         * tree-iterator.c: Likewise.
22766         * tree-loop-distribution.c: Likewise.
22767         * tree-nested.c: Likewise.
22768         * tree-nrv.c: Likewise.
22769         * tree-object-size.c: Likewise.
22770         * tree-outof-ssa.c: Likewise.
22771         * tree-parloops.c: Likewise.
22772         * tree-phinodes.c: Likewise.
22773         * tree-predcom.c: Likewise.
22774         * tree-pretty-print.c: Likewise.
22775         * tree-pretty-print.h: Likewise.
22776         * tree-profile.c: Likewise.
22777         * tree-scalar-evolution.c: Likewise.
22778         * tree-sra.c: Likewise.
22779         * tree-ssa-address.c: Likewise.
22780         * tree-ssa-alias.c: Likewise.
22781         * tree-ssa-ccp.c: Likewise.
22782         * tree-ssa-coalesce.c: Likewise.
22783         * tree-ssa-copy.c: Likewise.
22784         * tree-ssa-copyrename.c: Likewise.
22785         * tree-ssa-dce.c: Likewise.
22786         * tree-ssa-dom.c: Likewise.
22787         * tree-ssa-dse.c: Likewise.
22788         * tree-ssa-forwprop.c: Likewise.
22789         * tree-ssa-ifcombine.c: Likewise.
22790         * tree-ssa-live.c: Likewise.
22791         * tree-ssa-loop-ch.c: Likewise.
22792         * tree-ssa-loop-im.c: Likewise.
22793         * tree-ssa-loop-ivcanon.c: Likewise.
22794         * tree-ssa-loop-ivopts.c: Likewise.
22795         * tree-ssa-loop-manip.c: Likewise.
22796         * tree-ssa-loop-niter.c: Likewise.
22797         * tree-ssa-loop-prefetch.c: Likewise.
22798         * tree-ssa-loop-unswitch.c: Likewise.
22799         * tree-ssa-loop.c: Likewise.
22800         * tree-ssa-loop.h: Likewise.
22801         * tree-ssa-math-opts.c: Likewise.
22802         * tree-ssa-operands.c: Likewise.
22803         * tree-ssa-phiopt.c: Likewise.
22804         * tree-ssa-phiprop.c: Likewise.
22805         * tree-ssa-pre.c: Likewise.
22806         * tree-ssa-propagate.c: Likewise.
22807         * tree-ssa-reassoc.c: Likewise.
22808         * tree-ssa-sccvn.c: Likewise.
22809         * tree-ssa-scopedtables.c: Likewise.
22810         * tree-ssa-sink.c: Likewise.
22811         * tree-ssa-strlen.c: Likewise.
22812         * tree-ssa-structalias.c: Likewise.
22813         * tree-ssa-tail-merge.c: Likewise.
22814         * tree-ssa-ter.c: Likewise.
22815         * tree-ssa-threadedge.c: Likewise.
22816         * tree-ssa-threadupdate.c: Likewise.
22817         * tree-ssa-uncprop.c: Likewise.
22818         * tree-ssa-uninit.c: Likewise.
22819         * tree-ssa.c: Likewise.
22820         * tree-ssanames.c: Likewise.
22821         * tree-stdarg.c: Likewise.
22822         * tree-streamer-in.c: Likewise.
22823         * tree-streamer-out.c: Likewise.
22824         * tree-streamer.c: Likewise.
22825         * tree-switch-conversion.c: Likewise.
22826         * tree-tailcall.c: Likewise.
22827         * tree-vect-data-refs.c: Likewise.
22828         * tree-vect-generic.c: Likewise.
22829         * tree-vect-loop-manip.c: Likewise.
22830         * tree-vect-loop.c: Likewise.
22831         * tree-vect-patterns.c: Likewise.
22832         * tree-vect-slp.c: Likewise.
22833         * tree-vect-stmts.c: Likewise.
22834         * tree-vectorizer.c: Likewise.
22835         * tree-vrp.c: Likewise.
22836         * tree.c: Likewise.
22837         * tsan.c: Likewise.
22838         * ubsan.c: Likewise.
22839         * valtrack.c: Likewise.
22840         * value-prof.c: Likewise.
22841         * var-tracking.c: Likewise.
22842         * varasm.c: Likewise.
22843         * varpool.c: Likewise.
22844         * vmsdbgout.c: Likewise.
22845         * vtable-verify.c: Likewise.
22846         * web.c: Likewise.
22847         * wide-int-print.cc: Likewise.
22848         * wide-int-print.h: Likewise.
22849         * wide-int.cc: Likewise.
22850         * xcoffout.c: Likewise.
22851         * config/aarch64/aarch64-builtins.c: Likewise.
22852         * config/aarch64/aarch64.c: Likewise.
22853         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22854         * config/alpha/alpha.c: Likewise.
22855         * config/arc/arc.c: Likewise.
22856         * config/arm/aarch-common.c: Likewise.
22857         * config/arm/arm-builtins.c: Likewise.
22858         * config/arm/arm-c.c: Likewise.
22859         * config/arm/arm.c: Likewise.
22860         * config/avr/avr-c.c: Likewise.
22861         * config/avr/avr-log.c: Likewise.
22862         * config/avr/avr.c: Likewise.
22863         * config/bfin/bfin.c: Likewise.
22864         * config/c6x/c6x.c: Likewise.
22865         * config/cr16/cr16.c: Likewise.
22866         * config/cris/cris.c: Likewise.
22867         * config/darwin-c.c: Likewise.
22868         * config/darwin.c: Likewise.
22869         * config/default-c.c: Likewise.
22870         * config/epiphany/epiphany.c: Likewise.
22871         * config/epiphany/mode-switch-use.c: Likewise.
22872         * config/epiphany/resolve-sw-modes.c: Likewise.
22873         * config/fr30/fr30.c: Likewise.
22874         * config/frv/frv.c: Likewise.
22875         * config/ft32/ft32.c: Likewise.
22876         * config/glibc-c.c: Likewise.
22877         * config/h8300/h8300.c: Likewise.
22878         * config/i386/i386-c.c: Likewise.
22879         * config/i386/i386.c: Likewise.
22880         * config/i386/msformat-c.c: Likewise.
22881         * config/i386/winnt-cxx.c: Likewise.
22882         * config/i386/winnt-stubs.c: Likewise.
22883         * config/i386/winnt.c: Likewise.
22884         * config/ia64/ia64-c.c: Likewise.
22885         * config/ia64/ia64.c: Likewise.
22886         * config/iq2000/iq2000.c: Likewise.
22887         * config/lm32/lm32.c: Likewise.
22888         * config/m32c/m32c-pragma.c: Likewise.
22889         * config/m32c/m32c.c: Likewise.
22890         * config/m32r/m32r.c: Likewise.
22891         * config/m68k/m68k.c: Likewise.
22892         * config/mcore/mcore.c: Likewise.
22893         * config/mep/mep-pragma.c: Likewise.
22894         * config/mep/mep.c: Likewise.
22895         * config/microblaze/microblaze-c.c: Likewise.
22896         * config/microblaze/microblaze.c: Likewise.
22897         * config/mips/mips.c: Likewise.
22898         * config/mmix/mmix.c: Likewise.
22899         * config/mn10300/mn10300.c: Likewise.
22900         * config/moxie/moxie.c: Likewise.
22901         * config/msp430/msp430-c.c: Likewise.
22902         * config/msp430/msp430.c: Likewise.
22903         * config/nds32/nds32-cost.c: Likewise.
22904         * config/nds32/nds32-fp-as-gp.c: Likewise.
22905         * config/nds32/nds32-intrinsic.c: Likewise.
22906         * config/nds32/nds32-isr.c: Likewise.
22907         * config/nds32/nds32-md-auxiliary.c: Likewise.
22908         * config/nds32/nds32-memory-manipulation.c: Likewise.
22909         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22910         * config/nds32/nds32-predicates.c: Likewise.
22911         * config/nds32/nds32.c: Likewise.
22912         * config/nios2/nios2.c: Likewise.
22913         * config/nvptx/nvptx.c: Likewise.
22914         * config/pa/pa.c: Likewise.
22915         * config/pdp11/pdp11.c: Likewise.
22916         * config/rl78/rl78-c.c: Likewise.
22917         * config/rl78/rl78.c: Likewise.
22918         * config/rs6000/rs6000-c.c: Likewise.
22919         * config/rs6000/rs6000.c: Likewise.
22920         * config/rx/rx.c: Likewise.
22921         * config/s390/s390-c.c: Likewise.
22922         * config/s390/s390.c: Likewise.
22923         * config/sh/sh-c.c: Likewise.
22924         * config/sh/sh-mem.cc: Likewise.
22925         * config/sh/sh.c: Likewise.
22926         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22927         * config/sh/sh_treg_combine.cc: Likewise.
22928         * config/sol2-c.c: Likewise.
22929         * config/sol2-cxx.c: Likewise.
22930         * config/sol2-stubs.c: Likewise.
22931         * config/sol2.c: Likewise.
22932         * config/sparc/sparc-c.c: Likewise.
22933         * config/sparc/sparc.c: Likewise.
22934         * config/spu/spu-c.c: Likewise.
22935         * config/spu/spu.c: Likewise.
22936         * config/stormy16/stormy16.c: Likewise.
22937         * config/tilegx/mul-tables.c: Likewise.
22938         * config/tilegx/tilegx-c.c: Likewise.
22939         * config/tilegx/tilegx.c: Likewise.
22940         * config/tilepro/mul-tables.c: Likewise.
22941         * config/tilepro/tilepro-c.c: Likewise.
22942         * config/tilepro/tilepro.c: Likewise.
22943         * config/v850/v850-c.c: Likewise.
22944         * config/v850/v850.c: Likewise.
22945         * config/vax/vax.c: Likewise.
22946         * config/visium/visium.c: Likewise.
22947         * config/vms/vms-c.c: Likewise.
22948         * config/vms/vms.c: Likewise.
22949         * config/vxworks.c: Likewise.
22950         * config/winnt-c.c: Likewise.
22951         * config/xtensa/xtensa.c: Likewise.
22952         * common/config/bfin/bfin-common.c: Likewise.
22954 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
22956         * tree.h (tree_code_for_canonical_type_merging): New function.
22957         * tree.c (gimple_canonical_types_compatible_p): Use
22958         tree_code_for_canonical_type_merging..
22960 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22962         PR c++/66192
22963         PR target/66200
22964         * doc/tm.texi: Regenerate.
22965         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22966         * target.def (TARGET_RELAXED_ORDERING): Likewise.
22967         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22968         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22969         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22970         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22971         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22972         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22973         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22975 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22977         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22978         register fma steering pass.
22979         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22980         AARCH64_TUNE_FMA_STEERING.
22982 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
22984         * tree.c (verify_type_variant): Verify that type and variant is
22985         compatible.
22986         (gimple_canonical_types_compatible_p): Look for main variants.
22988 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22990         * config.gcc (powerpc*-*-*): Add support for a new configure
22991         option --with-advance-toolchain=<xxx> which overrides using the
22992         default header files, libraries and dynamic linker.
22994         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22995         specs to support the configure --with-advance-toolchain=<xxx>
22996         option.
22997         (INCLUDE_EXTRA_SPEC): Likewise.
22998         (LINK_OS_EXTRA_SPEC32): Likewise.
22999         (LINK_OK_EXTRA_SPEC64): Likewise.
23000         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23001         (DYNAMIC_LINKER_PREFIX): Likewise.
23002         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23003         toolchain support.
23004         (GLIBC_DYNAMIC_LINKER32): Likewise.
23005         (GLIBC_DYNAMIC_LINKER64): Likewise.
23006         (LINK_OS_LINUX_SPEC32): Likewise.
23007         (LINK_OS_LINUX_SPEC64): Likewise.
23009         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23010         configuration option.
23012 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
23014         PR target/66275
23015         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23016         to determine current function ABI.
23017         (ix86_function_value_regno_p): Ditto.
23019 2015-06-03  Martin Liska  <mliska@suse.cz>
23021         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23022         * bitmap.h (struct bitmap_usage): Likewise.
23023         * ggc-common.c (struct ggc_usage): Likewise.
23024         * mem-stats.h (struct mem_location): Likewise.
23025         (struct mem_usage): Likewise.
23026         * vec.c (struct vec_usage): Likewise.
23028 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
23030         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23031         -Bsymbolic.
23033 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
23035         * doc/plugins.texi (enum plugin_event): New event.
23036         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23037         and PLUGIN_FINISH_FUNCTION.
23038         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23039         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23041 2015-06-03  Richard Biener  <rguenther@suse.de>
23043         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23044         compute GROUP_GAP for the first element.
23045         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23046         on in-group gaps.
23048 2015-06-03  Nick Clifton  <nickc@redhat.com>
23050         * config/rl78/rl78-real.md: Add peepholes to avoid a register
23051         copy when calling a function.
23052         * config/rl78/rl78.c (need_to_save): Do not push the frame
23053         pointer in an interrupt handler prologue if it is never used.
23055 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23057         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23059 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23061         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23062         reference when cloning alias node.
23064 2015-06-03  Martin Liska  <mliska@suse.cz>
23066         * alloc-pool.h (struct pool_usage): Correct space padding.
23067         * ggc-page.c (ggc_print_statistics): Align columns in a report.
23068         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23069         * tree.c (dump_tree_statistics): Align columns in a report.
23071 2015-06-03  Martin Liska  <mliska@suse.cz>
23073         * alloc-pool.c (allocate_pool_descriptor): Remove.
23074         (struct pool_output_info): Likewise.
23075         (print_alloc_pool_statistics): Likewise.
23076         (dump_alloc_pool_statistics): Likewise.
23077         * alloc-pool.h (struct pool_usage): New struct.
23078         (pool_allocator::initialize): Change usage of memory statistics
23079         to a new interface.
23080         (pool_allocator::release): Likewise.
23081         (pool_allocator::allocate): Likewise.
23082         (pool_allocator::remove): Likewise.
23083         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23084         for a pool allocator.
23085         * mem-stats.h (struct mem_location): Add new ctor.
23086         (struct mem_usage): Add counter for number of
23087         instances.
23088         (mem_alloc_description::register_descriptor): New overload of
23089         * mem-stats.h (mem_location::to_string): New function.
23090         * bitmap.h (struct bitmap_usage): Use this new function.
23091         * ggc-common.c (struct ggc_usage): Likewise.
23092         the function.
23094 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23096         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23097         of GCC_INSN_FLAGS_H block.
23099 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23101         * explow.c (plus_constant): Update check after force_const_mem call
23102         to see if the value returned is not a NULL_RTX.
23104 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23106         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23107         remove instumentation thunks calling reachable functions.
23108         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23109         * lto/lto-partition.c (privatize_symbol_name_1): New.
23110         (privatize_symbol_name): Privatize both decl and orig_decl
23111         names for instrumented functions.
23112         * cgraph.c (cgraph_node::verify_node): Add transparent
23113         alias chain check for instrumented node.
23115 2015-06-03  Marek Polacek  <polacek@redhat.com>
23117         PR c/64223
23118         PR c/29358
23119         * tree.c (attribute_value_equal): Handle attribute format.
23120         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23122 2015-06-03  Richard Biener  <rguenther@suse.de>
23124         PR tree-optimization/63916
23125         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23126         Forward-propagate non-invariant addresses by splicing their
23127         reference ops if the result isn't going to be used by PRE.
23128         (vn_reference_lookup_3): Remove pointless assert.
23130 2015-06-03  Richard Biener  <rguenther@suse.de>
23132         PR tree-optimization/66375
23133         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23134         add to the evolution before following SSA edges.
23136 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
23138         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23139         (dump_use, dump_cand, find_induction_variables): Pass new argument
23140         to dump_iv.
23141         (record_use): Preserve the ssa name information in IV.
23143 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23145         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23146         NO_MODE_TEST.
23147         (add_mode_tests): Don't add mode tests if the predicate only
23148         accepts scalar constant integers.  Otherwise, allow the mode
23149         of "op" to be VOIDmode if the predicate does accept such integers.
23151 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
23153         PR target/66258
23154         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23155         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23156         (aarch64_secondary_reload): Likewise
23157         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23158         to !TARGET_FLOAT.
23159         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23160         Likewise.
23162 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
23163             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23165         PR target/65768
23166         * cprop.c (try_replace_reg): Check cost of constants before propagating.
23168 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23170         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23171         provide access to the IBM extended double floating point mode if
23172         long double is IEEE 128-bit floating point.
23173         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23174         point if long double is the IBM extended double type.
23176         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23177         enable adding IEEE 128-bit floating point support.
23178         (-mfloat128-software): Likewise.
23179         (-mfloat128-sw): Likewise.
23181         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23182         128-bit floating point types to occupy any register if
23183         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
23184         -mfloat128-software is enabled.
23185         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23186         support.
23187         (rs6000_option_override_internal): Add -mfloat128-* support.
23188         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23190         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23191         and float128 type nodes.
23192         (ieee128_float_type_node): Likewise.
23193         (ibm128_float_type_node): Likewise.
23195 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23197         PR target/66136
23198         * config/aarch64/geniterators.sh: Rewrite in awk.
23200 2015-06-02  Martin Liska  <mliska@suse.cz>
23202         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23203         values to avoid -Wmaybe-uninitialized errors.
23205 2015-06-02  Richard Biener  <rguenther@suse.de>
23207         PR debug/65549
23208         * dwarf2out.c (lookup_context_die): New function.
23209         (resolve_addr): Avoid forcing a full DIE for the
23210         target of a DW_TAG_GNU_call_site during late compilation.
23211         Instead create a stub DIE without a type if we have a
23212         context DIE present.
23214 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
23216         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23218 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23220         PR tree-optimization/48052
23221         * cfgloop.h (struct control_iv): New.
23222         (struct loop): New field control_ivs.
23223         * tree-ssa-loop-niter.c : Include "stor-layout.h".
23224         (number_of_iterations_lt): Set no_overflow information.
23225         (number_of_iterations_exit): Init control iv in niter struct.
23226         (record_control_iv): New.
23227         (estimate_numbers_of_iterations_loop): Call record_control_iv.
23228         (loop_exits_before_overflow): New.  Interface factored out of
23229         scev_probably_wraps_p.
23230         (scev_probably_wraps_p): Factor loop niter related code into
23231         loop_exits_before_overflow.
23232         (free_numbers_of_iterations_estimates_loop): Free control ivs.
23233         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23235 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
23237         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23238         the target doesn't belong to the current function.
23240 2015-06-02  Marek Polacek  <polacek@redhat.com>
23242         PR middle-end/66345
23243         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23244         get_maxval_strlen does not produce an INTEGER_CST.
23246 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
23248         * config/arc/constraints.md: Use lower-case names in match_code.
23249         * config/mmix/constraints.md: Likewise.
23251 2015-06-02  Richard Biener  <rguenther@suse.de>
23253         PR tree-optimization/65961
23254         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23255         check and clarify dump message.
23256         (vect_build_slp_tree): If all children are built up from scalars
23257         build up the parent from scalars instead.
23258         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23260 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23262         PR other/65366
23263         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
23264         instead of print ... .
23266 2015-06-02  Alan Modra  <amodra@gmail.com>
23268         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23269         2014-08-11 change.
23271 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23273         PR tree-optimization/52563
23274         PR tree-optimization/62173
23275         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
23276         (alloc_iv, set_iv): New parameter.
23277         (determine_biv_step): Delete.
23278         (find_bivs): Inline original determine_biv_step.  Pass new
23279         argument to set_iv.
23280         (idx_find_step): Use no_overflow information for conversion.
23281         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23282         resolve_mixers handle folded_casts.
23283         (instantiate_scev_name): Change bool parameter to bool pointer.
23284         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23285         (instantiate_array_ref, instantiate_scev_not): Ditto.
23286         (instantiate_scev_3, instantiate_scev_2): Ditto.
23287         (instantiate_scev_1, instantiate_scev_r): Ditto.
23288         (instantiate_scev_convert, ): Change parameter.  Pass argument
23289         to chrec_convert_aggressive.
23290         (instantiate_scev): Change argument.
23291         (resolve_mixers): New parameter and set it.
23292         (scev_const_prop): New argument.
23293         * tree-scalar-evolution.h (resolve_mixers): New parameter.
23294         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23295         of chrec_conert_1.
23296         (chrec_convert): New parameter.  Move definition below.
23297         (chrec_convert_aggressive): New parameter and set it.  Call
23298         convert_affine_scev.
23299         * tree-chrec.h (chrec_convert): New parameter.
23300         (chrec_convert_aggressive): Ditto.
23302 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
23304         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23305         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23306         the LHS of a no-return call if its type has variable size.
23307         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23308         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23310 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
23312         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23313         * config.in: Regenerate.
23315 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
23317         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23318         consecutive accesses within outer-loop with force_vectorize
23319         for references with zero step in inner-loop.
23321 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23323         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23324         rather than from gcc/build directory.
23326 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23328         PR target/65697
23329         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23330         for __sync memory models, emit initial loads and final barriers as
23331         appropriate.
23333 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23335         PR target/65697
23336         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23337         (aarch64_split_atomic_op): Check for __sync memory models, emit
23338         appropriate initial loads and final barriers.
23340 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23342         * Makefile.in: Fix gcov dependencies that should
23343         not point to a build folder.
23345 2015-06-01  Richard Biener  <rguenther@suse.de>
23347         Revert
23348         2015-05-29  Richard Biener  <rguenther@suse.de>
23350         PR tree-optimization/66314
23351         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23352         parameter that says which loop the new block belongs to.
23353         (ssa_create_duplicates): Blocks duplicated for the threaded
23354         path belong to the loop of the thread destination.
23356 2015-06-01  Martin Liska  <mliska@suse.cz>
23358         * sched-deps.c: Include pool-alloc.h before
23359         cselib.h header file is included.
23361 2015-06-01  Richard Biener  <rguenther@suse.de>
23363         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23364         functions.
23366 2015-06-01  Martin Liska  <mliska@suse.cz>
23368         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23369         a function local variable.
23371 2015-06-01  Martin Liska  <mliska@suse.cz>
23373         * alloc-pool.c (create_alloc_pool): Remove.
23374         (empty_alloc_pool): Likewise.
23375         (free_alloc_pool): Likewise.
23376         (free_alloc_pool_if_empty): Likewise.
23377         (pool_alloc): Likewise.
23378         (pool_free): Likewise.
23379         * alloc-pool.h: Remove old declarations.
23381 2015-06-01  Martin Liska  <mliska@suse.cz>
23383         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23384         (ira_create_object): Likewise.
23385         (ira_create_allocno): Likewise.
23386         (ira_create_live_range): Likewise.
23387         (copy_live_range): Likewise.
23388         (ira_finish_live_range): Likewise.
23389         (ira_free_allocno_costs): Likewise.
23390         (finish_allocno): Likewise.
23391         (finish_allocnos): Likewise.
23392         (initiate_prefs): Likewise.
23393         (ira_create_pref): Likewise.
23394         (finish_pref): Likewise.
23395         (finish_prefs): Likewise.
23396         (initiate_copies): Likewise.
23397         (ira_create_copy): Likewise.
23398         (finish_copy): Likewise.
23399         (finish_copies): Likewise.
23400         (finish_prefs): Likewise.
23402 2015-06-01  Martin Liska  <mliska@suse.cz>
23404         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23405         (allocate_and_init_ipcp_value): Likewise.
23406         (ipcp_lattice::add_value): Likewise.
23407         (merge_agg_lats_step): Likewise.
23408         (ipcp_driver): Likewise.
23409         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23410         (ipa_free_all_structures_after_iinln): Likewise.
23411         * ipa-prop.h: Likewise.
23413 2015-06-01  Martin Liska  <mliska@suse.cz>
23415         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23416         pool allocator.
23417         (set_hint_predicate): Likewise.
23418         (inline_summary_alloc): Likewise.
23419         (reset_inline_edge_summary): Likewise.
23420         (reset_inline_summary): Likewise.
23421         (set_cond_stmt_execution_predicate): Likewise.
23422         (set_switch_stmt_execution_predicate): Likewise.
23423         (compute_bb_predicates): Likewise.
23424         (estimate_function_body_sizes): Likewise.
23425         (inline_free_summary): Likewise.
23427 2015-06-01  Martin Liska  <mliska@suse.cz>
23429         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23430         (ipa_edge_duplication_hook): Likewise.
23431         (ipa_free_all_structures_after_ipa_cp): Likewise.
23432         (ipa_free_all_structures_after_iinln): Likewise.
23434 2015-06-01  Martin Liska  <mliska@suse.cz>
23436         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23437         (ipa_profile_generate_summary): Likewise.
23438         (ipa_profile_read_summary): Likewise.
23439         (ipa_profile): Likewise.
23441 2015-06-01  Martin Liska  <mliska@suse.cz>
23443         * tree-ssa-structalias.c (new_var_info): Use new type-based
23444         pool allocator.
23445         (new_constraint): Likewise.
23446         (init_alias_vars): Likewise.
23447         (delete_points_to_sets): Likewise.
23449 2015-06-01  Martin Liska  <mliska@suse.cz>
23451         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23452         (free_strinfo): Likewise.
23453         (pass_strlen::execute): Likewise.
23455 2015-06-01  Martin Liska  <mliska@suse.cz>
23457         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23458         pool allocator.
23459         (vn_reference_insert_pieces): Likewise.
23460         (vn_phi_insert): Likewise.
23461         (visit_reference_op_call): Likewise.
23462         (copy_phi): Likewise.
23463         (copy_reference): Likewise.
23464         (process_scc): Likewise.
23465         (allocate_vn_table): Likewise.
23466         (free_vn_table): Likewise.
23468 2015-06-01  Martin Liska  <mliska@suse.cz>
23470         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23471         pool allocator.
23472         (add_repeat_to_ops_vec): Likewise.
23473         (get_ops): Likewise.
23474         (maybe_optimize_range_tests): Likewise.
23475         (init_reassoc): Likewise.
23476         (fini_reassoc): Likewise.
23478 2015-06-01  Martin Liska  <mliska@suse.cz>
23480         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23481         pool allocator.
23482         (bitmap_set_new): Likewise.
23483         (get_or_alloc_expr_for_constant): Likewise.
23484         (get_or_alloc_expr_for): Likewise.
23485         (phi_translate_1): Likewise.
23486         (compute_avail): Likewise.
23487         (init_pre): Likewise.
23488         (fini_pre): Likewise.
23490 2015-06-01  Martin Liska  <mliska@suse.cz>
23492         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23493         (delete_dep_node): Likewise.
23494         (create_deps_list): Likewise.
23495         (free_deps_list): Likewise.
23496         (sched_deps_init): Likewise.
23497         (sched_deps_finish): Likewise.
23499 2015-06-01  Martin Liska  <mliska@suse.cz>
23501         * regcprop.c (free_debug_insn_changes): Use new type-based
23502         pool allocator.
23503         (replace_oldest_value_reg): Likewise.
23504         (pass_cprop_hardreg::execute): Likewise.
23506 2015-06-01  Martin Liska  <mliska@suse.cz>
23508         * ira-build.c (initiate_cost_vectors): Use new type-based
23509         pool allocator.
23510         (ira_allocate_cost_vector): Likewise.
23511         (ira_free_cost_vector): Likewise.
23512         (finish_cost_vectors): Likewise.
23514 2015-06-01  Martin Liska  <mliska@suse.cz>
23516         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23517         pool allocator.
23518         (free_sched_pools): Likewise.
23519         * sel-sched-ir.h (_list_alloc): Likewise.
23520         (_list_remove): Likewise.
23522 2015-06-01  Martin Liska  <mliska@suse.cz>
23524         * stmt.c (add_case_node): Use new type-based pool allocator.
23525         (expand_case): Likewise.
23526         (expand_sjlj_dispatch_table): Likewise.
23528 2015-06-01  Martin Liska  <mliska@suse.cz>
23530         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23531         (free_bb): Likewise.
23532         (pass_cse_reciprocals::execute): Likewise.
23534 2015-06-01  Martin Liska  <mliska@suse.cz>
23536         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23537         (sra_deinitialize) Likewise.
23538         (create_access_1) Likewise.
23539         (build_accesses_from_assign) Likewise.
23540         (create_artificial_child_access) Likewise.
23542 2015-06-01  Martin Liska  <mliska@suse.cz>
23544         * dse.c (get_group_info):Use new type-based pool allocator.
23545         (dse_step0) Likewise.
23546         (free_store_info) Likewise.
23547         (delete_dead_store_insn) Likewise.
23548         (free_read_records) Likewise.
23549         (record_store) Likewise.
23550         (replace_read) Likewise.
23551         (check_mem_read_rtx) Likewise.
23552         (scan_insn) Likewise.
23553         (dse_step1) Likewise.
23554         (dse_step7) Likewise.
23556 2015-06-01  Martin Liska  <mliska@suse.cz>
23558         * df-scan.c (struct df_scan_problem_data):Use new type-based
23559         pool allocator.
23560         (df_scan_free_internal) Likewise.
23561         (df_scan_alloc) Likewise.
23562         (df_grow_reg_info) Likewise.
23563         (df_free_ref) Likewise.
23564         (df_insn_create_insn_record) Likewise.
23565         (df_mw_hardreg_chain_delete) Likewise.
23566         (df_insn_info_delete) Likewise.
23567         (df_free_collection_rec) Likewise.
23568         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23569         (df_sort_and_compress_mws) Likewise.
23570         (df_ref_create_structure) Likewise.
23571         (df_ref_record) Likewise.
23573 2015-06-01  Martin Liska  <mliska@suse.cz>
23575         * df-problems.c (df_chain_create):Use new type-based pool allocator.
23576         (df_chain_unlink_1) Likewise.
23577         (df_chain_unlink) Likewise.
23578         (df_chain_remove_problem) Likewise.
23579         (df_chain_alloc) Likewise.
23580         (df_chain_free) Likewise.
23581         * df.h (struct dataflow) Likewise.
23583 2015-06-01  Martin Liska  <mliska@suse.cz>
23585         * cselib.c (new_elt_list):Use new type-based pool allocator.
23586         (new_elt_loc_list) Likewise.
23587         (unchain_one_elt_list) Likewise.
23588         (unchain_one_elt_loc_list) Likewise.
23589         (unchain_one_value) Likewise.
23590         (new_cselib_val) Likewise.
23591         (cselib_init) Likewise.
23592         (cselib_finish) Likewise.
23594 2015-06-01  Martin Liska  <mliska@suse.cz>
23596         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23597         (sh_reorg) Likewise.
23599 2015-06-01  Martin Liska  <mliska@suse.cz>
23601         * cfg.c (initialize_original_copy_tables):Use new type-based
23602         pool allocator.
23603         (free_original_copy_tables) Likewise.
23604         (copy_original_table_clear) Likewise.
23605         (copy_original_table_set) Likewise.
23607 2015-06-01  Martin Liska  <mliska@suse.cz>
23609         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23610         pool allocator.
23611         (asan_mem_ref_new) Likewise.
23612         (free_mem_ref_resources) Likewise.
23614 2015-06-01  Martin Liska  <mliska@suse.cz>
23616         * var-tracking.c (variable_htab_free):Use new type-based
23617         pool allocator.
23618         (attrs_list_clear) Likewise.
23619         (attrs_list_insert) Likewise.
23620         (attrs_list_copy) Likewise.
23621         (shared_hash_unshare) Likewise.
23622         (shared_hash_destroy) Likewise.
23623         (unshare_variable) Likewise.
23624         (var_reg_delete_and_set) Likewise.
23625         (var_reg_delete) Likewise.
23626         (var_regno_delete) Likewise.
23627         (drop_overlapping_mem_locs) Likewise.
23628         (variable_union) Likewise.
23629         (insert_into_intersection) Likewise.
23630         (canonicalize_values_star) Likewise.
23631         (variable_merge_over_cur) Likewise.
23632         (dataflow_set_merge) Likewise.
23633         (remove_duplicate_values) Likewise.
23634         (variable_post_merge_new_vals) Likewise.
23635         (dataflow_set_preserve_mem_locs) Likewise.
23636         (dataflow_set_remove_mem_locs) Likewise.
23637         (variable_from_dropped) Likewise.
23638         (variable_was_changed) Likewise.
23639         (set_slot_part) Likewise.
23640         (clobber_slot_part) Likewise.
23641         (delete_slot_part) Likewise.
23642         (loc_exp_insert_dep) Likewise.
23643         (notify_dependents_of_changed_value) Likewise.
23644         (emit_notes_for_differences_1) Likewise.
23645         (vt_emit_notes) Likewise.
23646         (vt_initialize) Likewise.
23647         (vt_finalize) Likewise.
23649 2015-06-01  Martin Liska  <mliska@suse.cz>
23651         * ira-color.c (init_update_cost_records):Use new type-based
23652         pool allocator.
23653         (get_update_cost_record) Likewise.
23654         (free_update_cost_record_list) Likewise.
23655         (finish_update_cost_records) Likewise.
23656         (initiate_cost_update) Likewise.
23658 2015-06-01  Martin Liska  <mliska@suse.cz>
23660         * lra.c (init_insn_regs): Use new type-based pool allocator.
23661         (new_insn_reg) Likewise.
23662         (free_insn_reg) Likewise.
23663         (free_insn_regs) Likewise.
23664         (finish_insn_regs) Likewise.
23665         (init_insn_recog_data) Likewise.
23666         (init_reg_info) Likewise.
23667         (finish_reg_info) Likewise.
23668         (lra_free_copies) Likewise.
23669         (lra_create_copy) Likewise.
23670         (invalidate_insn_data_regno_info) Likewise.
23672 2015-06-01  Martin Liska  <mliska@suse.cz>
23674         * lra-lives.c (free_live_range): Use new type-based pool allocator.
23675         (free_live_range_list) Likewise.
23676         (create_live_range) Likewise.
23677         (copy_live_range) Likewise.
23678         (lra_merge_live_ranges) Likewise.
23679         (remove_some_program_points_and_update_live_ranges) Likewise.
23680         (lra_live_ranges_init) Likewise.
23681         (lra_live_ranges_finish) Likewise.
23683 2015-06-01  Martin Liska  <mliska@suse.cz>
23685         * et-forest.c (et_new_occ): Use new type-based pool allocator.
23686         (et_new_tree): Likewise.
23687         (et_free_tree): Likewise.
23688         (et_free_tree_force): Likewise.
23689         (et_free_pools): Likewise.
23690         (et_split): Likewise.
23692 2015-06-01  Martin Liska  <mliska@suse.cz>
23694         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23695         to header file.
23696         * alloc-pool.h (pool_allocator::pool_allocator): New function.
23697         (pool_allocator::release): Likewise.
23698         (inline pool_allocator::release_if_empty): Likewise.
23699         (inline pool_allocator::~pool_allocator): Likewise.
23700         (pool_allocator::allocate): Likewise.
23701         (pool_allocator::remove): Likewise.
23703 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23705         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23706         in comment.
23708 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23710         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23711         to fusible_ops.
23712         * config/arm/arm.c (arm_print_tune_info): Likewise.
23713         (arm_macro_fusion_p): Likewise.
23714         (arm_macro_fusion_pair_p): Likewise.
23716 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23718         * config/aarch64/aarch64-protos.h (tune_params): Rename
23719         fuseable_ops to fusible_ops.
23720         * config/aarch64/aarch64.c (generic_tunings): Rename
23721         fuseable_ops to fusible_ops.
23722         (cortexa53_tunings): Likewise.
23723         (cortexa57_tunings): Likewise.
23724         (thunderx_tunings): Likewise.
23725         (xgene1_tunings): Likewise.
23726         (aarch64_macro_fusion_p): Likewise.
23727         (aarch64_macro_fusion_pair_p): Likewise.
23729 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23731         * config/s390/driver-native.c: New file.
23732         * config/s390/x-native: New file.
23733         * config.host: Add new files for s390.
23734         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23735         and -march=native
23736         * config.gcc: Likewise.
23737         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23738         * config/s390/s390-opts.h (enum processor_type): Ditto.
23739         * config/s390/s390.c (s390_option_override): Catch unhandled
23740         PROCESSOR_NATIVE
23742 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
23744         PR target/65527
23745         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23746         redirection for instrumented calls.
23747         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23748         (append_compiler_options): Append -fcheck-pointer-bounds.
23749         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23750         (chkp_redirect_edge): New.
23751         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23752         (chkp_redirect_edge): New.
23754 2015-06-01  Richard Biener  <rguenther@suse.de>
23756         PR tree-optimization/66280
23757         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23758         def-use walking.
23760 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23762         * config/aarch64/aarch64.md
23763         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23764         logic_shift_imm.
23766 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
23768         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23769         Remove obsolete kludge.
23771 2015-06-01  Richard Biener  <rguenther@suse.de>
23773         * tree-ssa-reassoc.c (get_rank): Simplify.
23775 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
23777         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23778         * configure: Regenerated.
23780 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
23782         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23783         issue (add space between string literal and macro).
23784         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23786 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
23788         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23789         implict or explicit -fPIE or -fpie.
23791 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
23793         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23795 2015-05-28  DJ Delorie  <dj@redhat.com>
23797         * expmed.c (extract_bit_field_1): Avoid clobbering a
23798         yet-to-be-used base/index register.
23800 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
23802         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23803         (alias_stats): Add num_universal.
23804         (alias_set_subset_of): Special case pointers; be ready for NULL
23805         children.
23806         (alias_sets_conflict_p): Special case pointers; be ready for NULL
23807         children.
23808         (init_alias_set_entry): Break out from ...
23809         (record_alias_subset): ... here; propagate new fields;
23810         allocate children only when really needed.
23811         (get_alias_set): Do less generous pointer globbing.
23812         (dump_alias_stats_in_alias_c): Update statistics.
23814 2015-05-30  Alan Modra  <amodra@gmail.com>
23816         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23817         correct block for use of r12.
23818         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23820 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23822         PR target/66215
23823         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23824         with -mhotpatch=.
23826 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
23828         PR tree-optimization/66142
23829         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23830         virtual phis that feed themselves.
23832 2015-05-29  Richard Biener  <rguenther@suse.de>
23834         PR tree-optimization/66314
23835         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23836         parameter that says which loop the new block belongs to.
23837         (ssa_create_duplicates): Blocks duplicated for the threaded
23838         path belong to the loop of the thread destination.
23840 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23842         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23843         to cleanup-saved-temps.
23844         * doc/sourcebuild.texi (Clean up generated test files): Expand
23845         introduction.
23846         (dg-keep-saved-temps): Document new proc.
23847         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23848         cleanup-saved-temps): Remove.
23850 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
23852         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23853         gcc_AC_CHECK_DECLS.
23854         * configure: Regenerate.
23856 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23858         * config/nios2/linux.h (CPP_SPEC): Define.
23860 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23862         * config/microblaze/linux.h (CPP_SPEC): Define.
23864 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23866         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23867         -pthread is specified.
23869 2015-05-28  Richard Biener  <rguenther@suse.de>
23871         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23872         (vect_fixup_scalar_cycles_with_patterns): Likewise.
23873         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23874         after pattern recog.
23875         (vect_create_epilog_for_reduction): Properly handle reductions
23876         with patterns.
23877         (vectorizable_reduction): Likewise.
23878         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23879         reduction chains.
23880         (vect_get_constant_vectors): Create the correct number of
23881         initial values for reductions.
23882         (vect_schedule_slp_instance): Handle reduction chains that are
23883         type changing properly.
23884         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23886 2015-05-28  Richard Biener  <rguenther@suse.de>
23888         PR tree-optimization/66142
23889         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23890         values better in memcpy destination handling.  Handle non-aliasing
23891         we discover here.
23893 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
23895         PR target/63810
23896         * config/darwin-c.c (version_components): New global enum.
23897         (parse_version, version_as_legacy_macro)
23898         (version_as_modern_macro, macosx_version_as_macro): New functions.
23899         (version_as_macro): Remove.
23900         (darwin_cpp_builtins): Use new function.
23902 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23904         * builtins.c (expand_builtin_acc_on_device): Mark parameters
23905         with ATTRIBUTE_UNUSED.
23907 2015-05-28  Julian Brown  <julian@codesourcery.com>
23909         PR libgomp/65742
23911         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23912         sequence for !ACCEL_COMPILER.
23914 2015-05-28  Nick Clifton  <nickc@redhat.com>
23916         * config/rx/rx.c (push_regs): New function.  Extracts code from...
23917         (rx_expand_prologue): ... here.  Use push_regs to push even small
23918         spans of registers.
23919         (pop_regs): New function.
23920         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
23921         registers.
23923 2015-05-28  Richard Biener  <rguenther@suse.de>
23925         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23926         member.
23927         (SLP_INSTANCE_BODY_COST_VEC): Remove.
23928         (vect_update_slp_costs_according_to_vf): Likewise.
23929         (vect_slp_analyze_operations): Update prototype.
23930         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23931         vect_update_slp_costs_according_to_vf, adjust.
23932         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23933         (vect_analyze_slp_cost_1): Likewise.
23934         (vect_analyze_slp_cost): Likewise.  Properly deal with
23935         widening reduction ops.  Commit body costs.
23936         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
23937         cost for loops from here.
23938         (vect_slp_analyze_operations): But do it from here when
23939         the vectorization factor is known and stmts are analyzed.
23940         (vect_bb_vectorization_profitable_p): Simplify.
23941         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23942         (vect_update_slp_costs_according_to_vf): Remove.
23944 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
23945             H.J. Lu  <hongjiu.lu@intel.com>
23947         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23948         (BUILD_CFLAGS): Likewise.
23949         (BUILD_CXXFLAGS): Likewise.
23950         (LINKER): Add @NO_PIE_FLAG@.
23951         (BUILD_LDFLAGS): Likewise.
23952         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23953         --enable-default-pie.
23954         * common.opt (fPIE): Initialize to -1.
23955         (fpie): Likewise.
23956         (no-pie): New option.
23957         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23958         * configure.ac: Add --enable-default-pie.
23959         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
23960         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
23961         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
23962         * gcc.c (NO_PIE_SPEC): New.
23963         (PIE_SPEC): Likewise.
23964         (NO_FPIE1_SPEC): Likewise.
23965         (FPIE1_SPEC): Likewise.
23966         (NO_FPIE2_SPEC): Likewise.
23967         (FPIE2_SPEC): Likewise.
23968         (NO_FPIE2_SPEC): Likewise.
23969         (FPIE_SPEC): Likewise.
23970         (NO_FPIE_SPEC): Likewise.
23971         (NO_FPIC1_SPEC): Likewise.
23972         (FPIC1_SPEC): Likewise.
23973         (NO_FPIC2_SPEC): Likewise.
23974         (FPIC2_SPEC): Likewise.
23975         (NO_FPIC2_SPEC): Likewise.
23976         (FPIC_SPEC): Likewise.
23977         (NO_FPIC_SPEC): Likewise.
23978         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23979         (FPIE1_OR_FPIC1_SPEC): Likewise.
23980         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23981         (FPIE2_OR_FPIC2_SPEC): Likewise.
23982         (NO_FPIE_AND_FPIC_SPEC): Likewise.
23983         (FPIE_OR_FPIC_SPEC): Likewise.
23984         (LD_PIE_SPEC): Likewise.
23985         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
23986         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23987         * config/darwin.h (PIE_SPEC): Renamed to ...
23988         (DARWIN_PIE_SPEC): This.
23989         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23990         * config/darwin9.h (PIE_SPEC): Renamed to ...
23991         (DARWIN_PIE_SPEC): This.
23992         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23993         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23994         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23995         FPIE2_OR_FPIC2_SPEC.
23996         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23997         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23998         * config/sol2.h (ASM_PIC_SPEC): Likewise.
23999         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24000         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24001         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24002         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24003         * config/m32r/m32r.h (ASM_SPEC): Likewise.
24004         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24005         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24006         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24007         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24008         * config/sparc/linux.h (ASM_SPEC): Likewise.
24009         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24010         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24011         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24012         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24013         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24014         * config/sparc/sparc.h (ASM_SPEC): Likewise.
24015         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24016         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24017         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24018         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24019         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24020         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24021         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24022         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24023         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24024         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24025         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24026         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24027         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24028         * config/vax/linux.h (ASM_SPEC): Likewise.
24029         * doc/install.texi: Document --enable-default-pie.
24030         * doc/invoke.texi: Document -no-pie.
24031         * config.in: Regenerated.
24032         * configure: Likewise.
24034 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24036         PR rtl-optimization/66168
24037         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24038         can_move_invariant_reg.
24040 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
24042         PR target/66148
24043         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24044         REG_EQUAL note when doing insert.
24046         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24047         instead of "%d" for 'o' operand.
24049 2015-05-27  Nathan Sidwell  <nathan@acm.org>
24051         PR c++/66270
24052         * tree.c (build_pointer_type_for_mode): Canonical type does not
24053         inherit can_alias_all.
24054         (build_reference_type_for_mode): Likewise.
24056 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24058         * expr.h (array_at_struct_end_p): Move to...
24059         (array_ref_element_size): Likewise.
24060         (component_ref_field_offset): Likewise.
24061         * tree.h (array_ref_element_size): ...here.
24062         (array_at_struct_end_p): Likewise.
24063         (component_ref_field_offset): Likewise.
24064         * expr.c (array_ref_element_size): Move to...
24065         (array_ref_low_bound): Likewise.
24066         (array_at_struct_end_p): Likewise.
24067         (array_ref_up_bound): Likewise.
24068         (component_ref_field_offset): Likewise.
24069         * tree.c (array_ref_element_size): ...here.
24070         (array_ref_low_bound): Likewise.
24071         (array_ref_up_bound): Likewise.
24072         (array_at_struct_end_p): Likewise.
24073         (component_ref_field_offset): Likewise.
24075 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24076             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24078         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24080 2015-05-27  Jason Merrill  <jason@redhat.com>
24082         PR bootstrap/66304
24083         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24084         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24085         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24087 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
24089         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24090         is true.
24092         * statistics.c (statistics_fini_pass): Print pass name.
24094 2015-05-27  Richard Biener  <rguenther@suse.de>
24096         PR tree-optimization/66272
24097         Revert parts of
24098         2014-08-15  Richard Biener  <rguenther@suse.de>
24100         PR tree-optimization/62031
24101         * tree-data-ref.c (dr_analyze_indices): Do not set
24102         DR_UNCONSTRAINED_BASE.
24103         (dr_may_alias_p): All indirect accesses have to go the
24104         formerly DR_UNCONSTRAINED_BASE path.
24105         * tree-data-ref.h (struct indices): Remove
24106         unconstrained_base member.
24107         (DR_UNCONSTRAINED_BASE): Remove.
24109 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
24111         * dwarf2out.c: Remove block_map.
24112         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24113         (gen_lexical_block_die): Same.
24114         (dwarf2out_function_decl): Remove block_map use.
24115         (dwarf2out_c_finalize): Same.
24116         * tree-core.h (struct tree_block): Add die field.
24117         * tree.h (BLOCK_DIE): New.
24119 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24121         PR target/65358
24122         * expr.c (memory_load_overlap): New function.
24123         (emit_push_insn): When pushing partial args to the stack would
24124         clobber the register part load the overlapping part into a pseudo
24125         and put it into the hard reg after pushing.  Change return type
24126         to bool.  Add bool argument.
24127         * expr.h (emit_push_insn): Change return type to bool.
24128         Add bool argument.
24129         * calls.c (expand_call): Cancel sibcall optimization when encountering
24130         partial argument on targets with ARGS_GROW_DOWNWARD and
24131         !STACK_GROWS_DOWNWARD.
24132         (emit_library_call_value_1): Update callsite of emit_push_insn.
24133         (store_one_arg): Likewise.
24135 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24137         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24139 2015-05-27  Martin Liska  <mliska@suse.cz>
24141         * Makefile.in: Add additional dependencies related to memory report
24142         enhancement.
24143         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24144         * bitmap.c (struct bitmap_descriptor_d): Remove.
24145         (struct loc): Likewise.
24146         (struct bitmap_desc_hasher): Likewise.
24147         (bitmap_desc_hasher::hash): Likewise.
24148         (bitmap_desc_hasher::equal): Likewise.
24149         (get_bitmap_descriptor): Likewise.
24150         (bitmap_register): User new memory descriptor API.
24151         (register_overhead): Likewise.
24152         (bitmap_find_bit): Register nsearches and search_iter statistics.
24153         (struct bitmap_output_info): Remove.
24154         (print_statistics): Likewise.
24155         (dump_bitmap_statistics): Use new memory descriptor.
24156         * bitmap.h (struct bitmap_usage): New class.
24157         * genmatch.c: Extend header file inclusion.
24158         * genpreds.c: Likewise.
24159         * ggc-common.c (struct ggc_usage): New class.
24160         (struct ggc_loc_desc_hasher): Remove.
24161         (ggc_loc_desc_hasher::hash): Likewise.
24162         (ggc_loc_desc_hasher::equal): Likewise.
24163         (struct ggc_ptr_hash_entry): Likewise.
24164         (struct ptr_hash_hasher): Likewise.
24165         (ptr_hash_hasher::hash): Likewise.
24166         (ptr_hash_hasher::equal): Likewise.
24167         (make_loc_descriptor): Likewise.
24168         (ggc_prune_ptr): Likewise.
24169         (dump_ggc_loc_statistics): Use new memory descriptor.
24170         (ggc_record_overhead): Likewise.
24171         (ggc_free_overhead): Likewise.
24172         (final_cmp_statistic): Remove.
24173         (cmp_statistic): Likewise.
24174         (ggc_add_statistics): Liekwise.
24175         (ggc_prune_overhead_list): Likewise.
24176         * hash-map-traits.h: New file.
24177         * hash-map.h (struct default_hashmap_traits): Move the traits to a
24178         separate header file.
24179         * hash-set.h: Pass memory statistics info to ctor.
24180         * hash-table.c (void dump_hash_table_loc_statistics): New function.
24181         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24182         (hash_table::~hash_table): Register memory release operation.
24183         (hash_table::alloc_entries): Handle memory allocation operation.
24184         (hash_table::expand): Likewise.
24185         * inchash.c (iterative_hash_hashval_t): Move implementation to header
24186         file.
24187         (iterative_hash_host_wide_int): Likewise.
24188         * inchash.h (class hash): Likewise.
24189         * mem-stats-traits.h: New file.
24190         * mem-stats.h: New file.
24191         (mem_location): Add new class.
24192         (mem_usage): Likewise.
24193         (mem_alloc_description): Likewise.
24194         * sese.c: Add new header file inclusision.
24195         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24196         and hash_set.
24197         * tree-sra.c: Add new header file inclusision.
24198         * vec.c (struct vec_descriptor): Remove.
24199         (hash_descriptor): Likewise.
24200         (struct vec_usage): Likewise.
24201         (struct ptr_hash_entry): Likewise.
24202         (hash_ptr): Likewise.
24203         (eq_ptr): Likewise.
24204         (vec_prefix::register_overhead): Use new memory descriptor API.
24205         (vec_prefix::release_overhead): Likewise.
24206         (add_statistics): Remove.
24207         (dump_vec_loc_statistics): Use new memory descriptor API.
24208         * vec.h (struct vec_prefix): Likewise.
24209         (va_heap::reserve): Likewise.
24210         (va_heap::release): Likewise.
24211         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24213 2015-05-27  Richard Biener  <rguenther@suse.de>
24215         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24216         earlier and remove ??? comment.
24217         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24218         and got called from loop analysis bail out.  Always pass the SLP
24219         node to the vectorizable_* functions.
24220         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24221         the premature SLP check here.
24222         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24223         detected SLP stmts.
24224         (vect_detect_hybrid_slp_1): Likewise.
24226 2015-05-26  Jeff Law  <law@redhat.com>
24228         * combine.c (find_split_point): Verify that the shift count is a
24229         constant when choosing (plus (ashift ...)) as a split point.
24231         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24232         No functional changes.
24234 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
24236         * ipa-polymorphic-call.c
24237         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24238         case when call target is already known.
24240 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
24242         PR target/65979
24243         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24244         take into account the case that operands[1] and operands[2]
24245         are the same register.
24247 2015-05-26  Michael Matz  <matz@suse.de>
24249         PR middle-end/66251
24251         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24252         stores.
24253         (vect_create_vectorized_demotion_stmts): Always set
24254         STMT_VINFO_VEC_STMT, also with SLP.
24255         (vectorizable_store): Handle strided group stores.
24257 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24259         PR target/66049
24260         * config/aarch64/aarch64.md
24261         (*adds_shift_imm_<mode>):  New pattern.
24262         (*subs_shift_imm_<mode>):  Likewise.
24263         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
24264         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24265         (*add_uxt<mode>_shift2): Likewise.
24266         (*add_uxtsi_shift2_uxtw): Likewise.
24267         (*sub_uxt<mode>_shift2): Likewise.
24268         (*sub_uxtsi_shift2_uxtw): Likewise.
24270 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
24272         * config/rs6000/constraints.md (Y, U): Use match_test.
24274 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24276         PR target/52144
24277         * config/arm/arm.c (arm_option_check_internal)
24278         (arm_option_params_internal): Check opts->target_flags to set macros.
24279         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24280         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24281         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24282         (builtin_define): Replaced with def_or_undef_macro.
24283         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24284         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24285         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24286         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24287         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24288         (TARGET_ARM_FEATURE_LDREX_P)
24289         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24290         * config/arm/arm-c.c (def_or_undef_macro): New function.
24291         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24293 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24295         * c-common.h (builtin_define_with_int_value)
24296         (builtin_define_type_sizeof): Declare.
24297         * c-cppbuiltin.c (builtin_define_with_int_value)
24298         (builtin_define_type_sizeof): Externalize.
24299         (builtin_define_std): Cleanup declaration.
24300         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24301         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24302         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24303         (builtin_define, builtin_assert): New macros.
24305 2015-05-26  Richard Biener  <rguenther@suse.de>
24307         PR tree-optimization/66142
24308         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24309         MEM_REFs for the same base address.
24311 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24313         PR ipa/66181
24314         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24316 2015-05-26  Jason Merrill  <jason@redhat.com>
24318         * configure.ac: Set CXXFLAGS for ISL test.
24319         * configure: Regenerate.
24321         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
24322         strstr and basename.
24323         * configure: Regenerate.
24325 2015-05-26  Richard Biener  <rguenther@suse.de>
24327         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24328         X % C -> X & (C - 1) for C being a power-of two to ...
24329         * match.pd: ... patterns.
24331 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
24333         * match.pd (swapped_tcc_comparison): New operator list.
24334         (-A CMP -B): New simplification.
24335         * fold-const.c (fold_comparison): Remove corresponding code.
24337 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24339         * caller-save.c (init_caller_save): Base temporary register numbers
24340         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24341         * cfgloopanal.c (init_set_costs): Likewise.
24342         * dojump.c (prefer_and_bit_test): Likewise.
24343         * expr.c (init_expr_target): Likewise.
24344         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24345         * lower-subreg.c (init_lower_subreg): Likewise.
24346         * postreload.c (reload_cse_regs_1): Likewise.
24348 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24350         * gensupport.h (compute_test_codes): Declare.
24351         * gensupport.c (compute_predicate_codes): Rename to...
24352         (compute_test_codes): ...this.  Generalize error message.
24353         (process_define_predicate): Update accordingly.
24354         * genpreds.c (compute_maybe_allows): Delete.
24355         (add_constraint): Use compute_test_codes to determine whether
24356         something can accept a SUBREG, REG or MEM.
24358 2015-05-26  Torvald Riegel  <triegel@redhat.com>
24360         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24361         'memory model' to align with C++11; fix description of memory orders;
24362         fix a few typos.
24364 2015-05-26  Richard Biener  <rguenther@suse.de>
24366         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24367         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
24368         detect whether we apply SLP.  Remove call to
24369         vect_update_slp_costs_according_to_vf.
24370         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24371         vect_update_slp_costs_according_to_vf from here.  Dispatch
24372         to vect_slp_analyze_operations to analyze SLP stmts.
24373         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24374         unused bb_vec_info parameter, adjust assert.
24375         (vect_slp_analyze_operations): Pass in the slp instance tree
24376         instead of bb_vec_info.
24377         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24378         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24380 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
24382         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24383         Q_REGS.  Expand comment.
24384         (REG_CLASS_NAMES): Ditto.
24385         (REG_CLASS_CONTENTS): Ditto.
24387 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
24389         PR target/66274
24390         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24391         when LEGACY_INT_REGNO_P is processed.
24393 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
24395         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24397 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
24399         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24400         register if not marked dead/unused, before return.
24402 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24404         PR lto/66180
24405         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24406         is set; check for assembler name at LTO time.
24407         (type_in_anonymous_namespace): Remove hacks, check that all
24408         anonymous types are called "<anon>"
24409         (odr_type_p): Simplify; add check for "<anon>"
24410         (odr_subtypes_equivalent): Add odr_type_p check.
24411         * tree.c (need_assembler_name_p): Even anonymous namespace needs
24412         assembler name.
24414 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24416         * ipa-utils.h (method_class_type): Remove.
24417         * cgraphunit.c (walk_polymorphic_call_targets): Use
24418         TYPE_METHOD_BASETYPE.
24419         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24420         on main variants only.
24421         (method_class_type): Remove.
24422         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24423         (build_type_inheritance_graph): Likewise.
24424         * ipa-icf.c (sem_function::equals_wpa): Likewise.
24425         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24426         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24428 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
24430         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24431         is_typedef_decl, typedef_variant_p): Constify.
24432         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24433         is_typedef_decl, typedef_variant_p): Constify.
24435 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24437         * defaults.h (gen_tablejump): New function.
24438         (HAVE_tablejump): Add default value.
24439         * expr.c: Adjust.
24440         * stmt.c: Likewise.
24442 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24444         * defaults.h (gen_store_multiple): New function.
24445         (HAVE_store_multiple): Add default value.
24446         * expr.c (move_block_from_reg): Adjust.
24448 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24450         * defaults.h (gen_load_multiple): New function.
24451         (HAVE_load_multiple): Add default value.
24452         * expr.c (move_block_to_reg): Adjust.
24454 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24456         * defaults.h (gen_mem_signal_fence): New function.
24457         (HAVE_mem_signal_fence): Add default value.
24458         * optabs.c: Adjust.
24460 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24462         * defaults.h (gen_memory_barrier): New function.
24463         (HAVE_memory_barrier): Add default value.
24464         * optabs.c: Adjust.
24466 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24468         * defaults.h (gen_mem_thread_fence): New function.
24469         (HAVE_mem_thread_fence): Add default definition.
24470         * optabs.c: Adjust.
24472 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24474         * combine.c (find_split_point): Check the value of HAVE_lo_sum
24475         instead of if it is defined.
24476         (combine_simplify_rtx): Likewise.
24477         * lra-constraints.c (process_address_1): Likewise.
24478         * config/darwin.c: Adjust.
24479         * genconfig.c (main): Always define HAVE_lo_sum.
24481 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24483         * genmatch.c (parser::parse_operation): Reject expanding
24484         operator-list inside 'for'.
24486 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24488         * genmatch.c (parser::parse_for): Reject iterator if used as
24489         operator-list.
24491 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24493         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24494         after end of id-list.
24496 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24498         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24499         we do not try to compute canonical type for type that does not need
24500         alias set.
24501         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24502         FUNCITON_TYPE.
24503         * tree.h (type_with_alias_set_p): New.
24505 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24507         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
24508         function attributes.
24509         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24511 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
24513         * Makefile.in (check_gcc_parallelize): Delete.
24514         (lang_checks_parallelized): Update comment.
24516 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
24518         PR rtl-optimization/66237
24519         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24520         location of an "as_a" cast.
24522 2015-05-22  Jeff Law  <law@redhat.com>
24524         * config/pa/pa.md (non-canonical shift-add insns): Remove.
24525         (peepholes with non-canonical RTL sources): Remove.
24526         (peepholes for indexed stores of FP regs in integer modes): Match and
24527         generate canonical RTL.
24529 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24531         PR tree-optimization/63387
24532         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24533         ((x ord x) & (y ord y) -> (x ord y),
24534         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24535         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24536         vectors like scalars.
24538 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24540         * convert.c (convert_to_integer, convert_to_vector): Include the
24541         types in the error message.
24543 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24545         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24546         simplifications.
24548 2015-05-22  Jeff Law  <law@redhat.com>
24550         * config/pa/pa.md (integer_indexed_store splitters): Use
24551         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
24552         insns -- adjusting the constant 2nd operand accordingly.
24554         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24555         (plus (ashift X log2) Y) if it is a split point.
24557         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24558         out of hppa_legitimize_address to handle both forms of a multiply
24559         by 2, 4 or 8.
24560         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24561         Always generate the ASHIFT variant as the result is not directly
24562         used in a MEM.  Update comments and refactor slightly to improve
24563         readability.
24565 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24567         PR target/65491
24568         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24569         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
24570         (aarch64_composite_type_p): Return false if given type and mode are
24571         for a short vector.
24573 2015-05-22  Richard Biener  <rguenther@suse.de>
24575         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24576         member.
24577         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24578         patterns when determining whether SLP is pure.
24579         (vect_is_slp_reduction): Remove check for pattern stmts.
24580         (vect_is_simple_reduction_1): Remove dead code.
24581         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24582         (vect_get_and_check_slp_defs): Pass in the stmt number.
24583         Allow the first def in a reduction to be not a pattern stmt when
24584         the rest of the stmts def are patterns.
24585         (vect_build_slp_tree_1): Allow tcc_expression codes like
24586         SAD_EXPR and DOT_PROD_EXPR.
24587         (vect_build_slp_tree): Adjust.
24588         (vect_analyze_slp): Refactor and move BB vect error message ...
24589         (vect_slp_analyze_bb_1): ... here.
24591 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
24593         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24594         for CSWTCH temporary.
24596 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24598         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24599         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
24600         unknown unspecs.
24602 2015-05-22  Richard Biener  <rguenther@suse.de>
24604         PR tree-optimization/66251
24605         * tree-vect-stmts.c (vectorizable_conversion): Properly
24606         set STMT_VINFO_VEC_STMT even for the SLP case.
24608 2015-05-22  Marek Polacek  <polacek@redhat.com>
24610         * doc/extend.texi: Use @pxref instead of @xref.
24612 2015-05-22  hiraditya  <hiraditya@msn.com>
24614         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24615         redundant if.
24617 2015-05-22  Richard Biener  <rguenther@suse.de>
24619         PR tree-optimization/65701
24620         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24621         Move peeling cost models into one place.  Peel for alignment
24622         for single loads only if an aligned load is cheaper than
24623         an unaligned load.
24625 2015-05-22  Marek Polacek  <polacek@redhat.com>
24627         PR c/47043
24628         * doc/extend.texi (Enumerator Attributes): New section.
24629         Document syntax of enumerator attributes.
24631 2015-05-22  Richard Biener  <rguenther@suse.de>
24633         * tree-vect-loop.c (get_reduction_op): New function.
24634         (vect_model_reduction_cost): Use it, add reduc_index parameter.
24635         Make ready for BB reductions.
24636         (vect_create_epilog_for_reduction): Use get_reduction_op.
24637         (vectorizable_reduction): Init reduc_index to a valid value.
24638         Adjust vect_model_reduction_cost call.
24639         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24640         operand for reduction defaults.  Add SAD_EXPR support.
24641         Assert we have a neutral op for SLP reductions.
24642         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24643         walking pattern stmt ops only recurse to SSA names.
24645 2015-05-22  Richard Biener  <rguenther@suse.de>
24647         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24648         assert with guard, remove check on detected reduction.
24649         (vect_recog_sad_pattern): Likewise.
24650         (vect_recog_widen_sum_pattern): Likewise.
24652 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24654         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24655         __always_inline__ attribute.
24656         (vaesdq_u8): Likewise.
24657         (vaesmcq_u8): Likewise.
24658         (vaesimcq_u8): Likewise.
24659         (vsha1cq_u32): Likewise.
24660         (vsha1mq_u32): Likewise.
24661         (vsha1pq_u32): Likewise.
24662         (vsha1h_u32): Likewise.
24663         (vsha1su0q_u32): Likewise.
24664         (vsha1su1q_u32): Likewise.
24665         (vsha256hq_u32): Likewise.
24666         (vsha256h2q_u32): Likewise.
24667         (vsha256su0q_u32): Likewise.
24668         (vsha256su1q_u32): Likewise.
24669         (vmull_p64): Likewise.
24670         (vmull_high_p64): Likewise.
24672 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24674         * final.c (final_scan_insn): Don't check HAVE_peephole with the
24675         preprocessor.
24676         * output.h: Likewise.
24677         * genconfig.c (main): Alwways define HAVE_peephole.
24678         * genpeep.c: Don't emit checks of HAVE_peephole.
24680 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24682         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24683         check HAVE_conditional_move with the preprocessor.
24685 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24687         * genconfig.c (main): Always define HAVE_conditional_move.
24688         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24689         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24690         is defined.
24692 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24694         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24695         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24696         and FRAME_POINTER_REGNUM with the preprocessor.
24698 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24700         * defaults.h: Add default for STACK_PUSH_CODE.
24701         * expr.c: Don't redefine STACK_PUSH_CODE.
24702         * recog.c: Likewise.
24704 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24706         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24707         sched-deps.c: Use if instead of preprocessor checks with
24708         STACK_GROWS_DOWNWARD.
24710 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24712         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24713         is defined.
24714         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24715         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24716         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24717         * doc/tm.texi: Regenerate.
24719 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
24721         PR target/66232
24722         * config/i386/constraints.md (Bg): New constraint for GOT memory
24723         operand.
24724         * config/i386/i386.md (*call_got_x32): New pattern.
24725         (*call_value_got_x32): Likewise.
24726         * config/i386/predicates.md (GOT_memory_operand): New predicate.
24728 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
24730         PR tree-optimization/66233
24731         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24732         Simplify.
24734 2015-05-21  Jeff Law  <law@redhat.com>
24736         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24737         than MULT for shadd sequences.
24739 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
24741         * alias.c (alias_stats): New static var.
24742         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24743         (dump_alias_stats_in_alias_c): New function.
24744         * alias.h (dump_alias_stats_in_alias_c): Declare.
24745         * tree-ssa-alias.c (dump_alias_stats): Call it.
24747 2015-05-08  Michael Matz  <matz@suse.de>
24749         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24750         to strided_p.
24751         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24752         (STMT_VINFO_STRIDED_P): ... this.
24753         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24754         (vect_verify_datarefs_alignment): Likewise.
24755         (vect_enhance_data_refs_alignment): Likewise.
24756         (vect_analyze_data_ref_access): Likewise.
24757         (vect_analyze_data_refs): Accept strided stores.
24758         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24759         (vect_model_load_cost): Adjust for macro rename.
24760         (vectorizable_mask_load_store): Likewise.
24761         (vectorizable_load): Likewise.
24762         (vectorizable_store): Open code strided stores.
24764 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24766         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24767         Document sqrt_insn.
24769 2015-05-21  Richard Biener  <rguenther@suse.de>
24771         PR c++/66211
24772         * match.pd: Guard pattern optimzing (int)(float)int
24773         conversions to apply only on GIMPLE.
24775 2015-05-21  Jeff Law  <law@redhat.com>
24777         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24778         multiply-accumulate/shift-add insn generation.
24780 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24782         PR target/54236
24783         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24784         operands[1] are the same.
24786 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
24788         PR middle-end/66221
24789         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24790         build_distinct_type_copy to copy bounds.
24792 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
24794         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24795         Change to unsigned int.
24797 2015-05-20  Jeff Law  <law@redhat.com>
24799         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24800         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24801         (pa_shadd_constant_p): Allow constants for shadd insns rather
24802         than valid scaling constants for memory addresses.
24803         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24804         * config/pa/predicates.md (mem_shadd_operand): New predicate.
24805         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24806         (shift-add insns using ASHIFT): New patterns.
24808 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
24810         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24811         feasible.
24812         (fix_up_fall_thru_edges): Likewise.
24813         (fix_crossing_conditional_branches): Likewise. Promote jump targets
24814         from to rtx_insn to rtx_code_label where feasible.
24815         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24816         gen_move_insn (returned type changed to rtx_insn).
24817         * builtins.c (expand_errno_check): Fix arguments of
24818         do_compare_rtx_and_jump (now expects rtx_code_label).
24819         (expand_builtin_acc_on_device): Likewise.
24820         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24821         invert_jump (now exprects rtx_jump_insn).
24822         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24823         (construct_init_block): Use rtx_code_label.
24824         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24825         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24826         calling redirect_jump.
24827         (patch_jump_insn): Likewise.
24828         (redirect_branch_edge): Likewise.
24829         (force_nonfallthru_and_redirect): Likewise.
24830         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24831         when suitable.
24832         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24833         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24834         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24835         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24836         to store the value retured by gen_label_rtx.
24837         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24838         rtx_jump_insn.
24839         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24840         (split_branches): Fix calls of redirect_jump.
24841         * dojump.c (jumpifnot): Promote argument type from rtx to
24842         rtx_code_label.
24843         (jumpifnot_1): Likewise.
24844         (jumpif): Likewise.
24845         (jumpif_1): Likewise.
24846         (do_jump_1): Likewise.
24847         (do_jump): Likewise. Use rtx_code_label when feasible.
24848         (do_jump_by_parts_greater_rtx): Likewise.
24849         (do_jump_by_parts_zero_rtx): Likewise.
24850         (do_jump_by_parts_equality_rtx): Likewise.
24851         (do_compare_rtx_and_jump): Likewise.
24852         * dojump.h: Update function prototypes.
24853         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24854         returns rtx_insn).
24855         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24856         rtx_jump_insn.
24857         (emit_label_before): Likewise.
24858         (emit_jump_insn_after_noloc): Likewise.
24859         (emit_jump_insn_after_setloc): Likewise.
24860         (emit_jump_insn_after): Likewise
24861         (emit_jump_insn_before_setloc): Likewise.
24862         (emit_jump_insn_before): Likewise.
24863         (emit_label_before): Promote return type to rtx_code_label.
24864         (emit_label): Likewise.
24865         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24866         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24867         gen_move_insn.
24868         (emit_stack_restore): Likewise.
24869         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24870         (do_cmp_and_jump): Likewise.
24871         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24872         from rtx to rtx_code_label.
24873         (gen_move_insn_uncast): New function.
24874         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24875         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24876         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24877         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24878         invert_jump_1 and redirect_jump_1.
24879         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24880         do_compare_rtx_and_jump.
24881         (expand_addsub_overflow): Likewise.
24882         (expand_neg_overflow): Likewise.
24883         (expand_mul_overflow): Likewise.
24884         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24885         return value of gen_move_insn.
24886         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24887         * loop-doloop.c (add_test): Use rtx_code_label.
24888         (doloop_modify): Likewise.
24889         (doloop_optimize): Likewise.
24890         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24891         * lra-constraints.c (emit_spill_move): Remove cast of value returned
24892         by gen_move_insn.
24893         (inherit_reload_reg): Add cast when calling dump_insn_slim.
24894         (split_reg): Likewise.
24895         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24896         gen_move_insn.
24897         * optabs.c (expand_binop_directly): Remove casts of values returned by
24898         maybe_gen_insn.
24899         (expand_unop_direct): Likewise.
24900         (expand_abs): Likewise.
24901         (maybe_emit_unop_insn): Likewise.
24902         (maybe_gen_insn): Promote return type to rtx_insn.
24903         * optabs.h: Update prototype of maybe_gen_insn.
24904         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24905         redundant cast.
24906         * recog.c (struct peep2_insn_data): Promote type of insn field to
24907         rtx_insn.
24908         (peep2_reinit_state): Use NULL instead of NULL_RTX.
24909         (peep2_attempt): Remove casts of insn in peep2_insn_data.
24910         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24911         * recog.h (struct insn_gen_fn): Promote return types of function
24912         pointers and operator ().from rtx to rtx_insn.
24913         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24914         (fill_eager_delay_slots): Likewise.
24915         (relax_delay_slots): Likewise.
24916         (make_return_insns): Likewise.
24917         (dbr_schedule): Likewise.
24918         (optimize_skips): Likewise.
24919         (reorg_redirect_jump): Likewise.
24920         (fill_slots_from_thread): Likewise.
24921         * reorg.h: Update prototypes.
24922         * resource.c (find_dead_or_set_registers): Use dyn_cast to
24923         rtx_jump_insn instead of check.  Use it's jump_target method.
24924         * rtl.h (rtx_jump_insn::jump_label): Define new method.
24925         (rtx_jump_insn::jump_target): Define new method.
24926         (rtx_jump_insn::set_jump_target): Define new method.
24927         * rtlanal.c (tablejump_p): Promote type of one local variable.
24928         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24929         (sched_analyze_insn): Likewise.
24930         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24931         (print_insn): Likewise.
24932         * stmt.c (label_rtx): Promote return type to rtx_insn.
24933         (force_label_rtx): Likewise.
24934         (jump_target_rtx): Define new function.
24935         (expand_label): Use it, get rid of one cast.
24936         (expand_naked_return): Promote rtx to rtx_code_label.
24937         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24938         (expand_case): Use rtx_code_label instread of rtx where feasible.
24939         (expand_sjlj_dispatch_table): Likewise.
24940         (emit_case_nodes): Likewise.
24941         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
24942         * store-motion.c (insert_store): Make use of new return type of
24943         gen_move_insn and remove a cast.
24944         (replace_store_insn): Likewise.
24946 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
24948         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24949         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24951 2015-05-20  Jeff Law  <law@redhat.com>
24953         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24954         dispose of the jump thread path when the jump threading
24955         opportunity is cancelled.
24957 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24959         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24960         when printing the caret character.
24962 2015-05-20  Marek Polacek  <polacek@redhat.com>
24964         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24966 2015-05-20  Marek Polacek  <polacek@redhat.com>
24968         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24969         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24970         * gimple-fold.c (canonicalize_bool): Likewise.
24971         (same_bool_result_p): Likewise.
24972         * tree-if-conv.c (parse_predicate): Likewise.
24974 2015-05-20  Marek Polacek  <polacek@redhat.com>
24976         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24977         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24979 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24981         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24982         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24983         values.
24985 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
24987         * config/mips/mips.h (micromips_globals): Declare.
24989 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
24991         * timevar.def (TV_INITIALIZE_RTL): New.
24992         * toplev.c (initialize_rtl): Use an auto_timevar to account this
24993         function's time to TV_INITIALIZE_RTL.
24995 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24997         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24998         gimple_build_nop calls.
24999         (chkp_find_bounds_for_elem): Likewise.
25000         (chkp_get_zero_bounds): Likewise.
25001         (chkp_get_none_bounds): Likewise.
25002         (chkp_get_bounds_by_definition): Likewise.
25003         (chkp_generate_extern_var_bounds): Likewise.
25004         (chkp_get_bounds_for_decl_addr): Likewise.
25005         (chkp_get_bounds_for_string_cst): Likewise.
25007 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
25009         PR tree-optimization/65447
25010         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25011         (dump_use, dump_uses): Support to dump sub use.
25012         (record_use): New parameters to support sub use.  Remove call to
25013         dump_use.
25014         (record_sub_use, record_group_use): New functions.
25015         (compute_max_addr_offset, split_all_small_groups): New functions.
25016         (group_address_uses, rewrite_use_address): New functions.
25017         (strip_offset): New declaration.
25018         (find_interesting_uses_address): Call record_group_use.
25019         (add_candidate): New assertion.
25020         (infinite_cost_p): Move definition forward.
25021         (add_costs): Check INFTY cost and return immediately.
25022         (get_computation_cost_at): Clear setup cost and dependent bitmap
25023         for sub uses.
25024         (determine_use_iv_cost_address): Compute cost for sub uses.
25025         (rewrite_use_address_1): Rename from old rewrite_use_address.
25026         (free_loop_data): Free sub uses.
25027         (tree_ssa_iv_optimize_loop): Call group_address_uses.
25029 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25030             Jim Wilson  <jim.wilson@linaro.org>
25032         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25033         new  fields loadv and storev.
25034         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25035         Initialize loadv and storev.
25036         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25037         (cortexa53_extra_costs): Likewise.
25038         (cortexa57_extra_costs): Likewise.
25039         (xgene1_extra_costs): Likewise.
25040         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25041         rtx_costs.
25043 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25045         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25046          storev.
25047         (cortexa8_extra_costs): Likewise.
25048         (cortexa5_extra_costs): Likewise.
25049         (cortexa7_extra_costs): Likewise.
25050         (cortexa12_extra_costs): Likewise.
25051         (cortexa15_extra_costs): Likewise.
25052         (v7m_extra_costs): Likewise.
25054 2015-05-20  Jeff Law  <law@redhat.com>
25056         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25057         instead of open-coded version.  Also delete the jump thread created
25058         within this function.
25060 2015-05-20  Alan Modra  <amodra@gmail.com>
25062         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25063         stack adjusting insn.  Formatting.
25064         (rs6000_emit_prologue): Track stack adjusting insn, and use of
25065         r12.  If possible, emit first -fsplit-stack arg pointer insn
25066         before stack adjust.  Don't use r12 to save cr if split-stack.
25068 2015-05-20  Alan Modra  <amodra@gmail.com>
25070         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25071         Define.
25072         (rs6000_supports_split_stack): New function.
25073         * config/rs6000/rs6000.c (machine_function): Add
25074         split_stack_arg_pointer.
25075         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25076         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25077         rather than virtual_incoming_args_rtx.
25078         (rs6000_va_start): Likewise.
25079         (split_stack_arg_pointer_used_p): New function.
25080         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25081         (morestack_ref): New var.
25082         (gen_add3_const, rs6000_expand_split_stack_prologue,
25083         rs6000_internal_arg_pointer, rs6000_live_on_entry,
25084         rs6000_split_stack_space_check): New functions.
25085         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25086         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25087         (UNSPECV_SPLIT_STACK_RETURN): Define.
25088         (split_stack_prologue, load_split_stack_limit,
25089         load_split_stack_limit_di, load_split_stack_limit_si,
25090         split_stack_return, split_stack_space_check): New expands and insns.
25091         * config/rs6000/rs6000-protos.h
25092         (rs6000_expand_split_stack_prologue): Declare.
25093         (rs6000_split_stack_space_check): Declare.
25095 2015-05-20  Alan Modra  <amodra@gmail.com>
25097         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25098         (direct_return): Test vrsave_size rather than vrsave_mask.
25099         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
25100         (rs6000_emit_epilogue): Likewise.
25102 2015-05-20  Alan Modra  <amodra@gmail.com>
25104         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25105         when not saving registers.
25106         (debug_stack_info): Adjust to omit printing unused offsets,
25107         as before.
25108         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25109         expression.
25111 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25113         PR c++/65835
25114         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25115         value_type to const char *.
25117 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
25119         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25120         to build a biarch toolchain again.
25122 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25124         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25125         or implicit declarations.
25126         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25127         into it.
25128         (get_odr_type): Check type has linkage before adding bases.
25129         (register_odr_type): Check that type has linkage before adding it.
25130         (type_known_to_have_no_deriavations_p): Rename to ..
25131         (type_known_to_have_no_derivations_p): This one.
25132         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25133         (type_known_to_have_no_derivations_p): This one.
25134         * ipa-polymorphic-call.c
25135         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25136         type has linkage.
25138 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25140         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25141         (layout_type): Use RECORD_OR_UNION_TYPE_P.
25143 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25145         * config/s390/s390.c (s390_vector_bool_type_p): New function.
25146         (s390_invalid_binary_op): New function.
25147         (TARGET_INVALID_BINARY_OP): Define macro.
25149 2015-05-19  David Sherwood  <david.sherwood@arm.com>
25151         * loop-invariant.c (create_new_invariant): Don't calculate address cost
25152         if mode is not a scalar integer.
25153         (get_inv_cost): Increase computational cost for unused invariants.
25155 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25157         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
25158         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
25159         * config/s390/s390-builtin-types.def: New file.
25160         * config/s390/s390-builtins.def: New file.
25161         * config/s390/s390-builtins.h: New file.
25162         * config/s390/s390-c.c: New file.
25163         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25164         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25165         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25166         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25167         prototypes.
25168         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25169         Include.
25170         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25171         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25172         variable definitions.
25173         (s390_const_operand_ok): New function.
25174         (s390_expand_builtin): Rewrite.
25175         (s390_init_builtins): New function.
25176         (s390_handle_vectorbool_attribute): New function.
25177         (s390_attribute_table): Add s390_vector_bool attribute.
25178         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25179         (s390_branch_condition_mask): Generate masks for new modes.
25180         (s390_expand_vec_compare_cc): New function.
25181         (s390_mangle_type): Add mangling for vector bool types.
25182         (enum s390_builtin): Remove.
25183         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25184         efpc builtins.
25185         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25186         s390_cpu_cpp_builtins.
25187         (REGISTER_TARGET_PRAGMAS): New macro.
25188         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25189         (insn_cmp mode attribute): Add new CC modes.
25190         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25191         (lcbb): New pattern definition.
25192         * config/s390/s390intrin.h: Include vecintrin.h.
25193         * config/s390/t-s390: New file.
25194         * config/s390/vecintrin.h: New file.
25195         * config/s390/vector.md: Include vx-builtins.md.
25196         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25197         support.
25199 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25201         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25202         CCVFHE.
25203         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25204         (s390_select_ccmode): Likewise.
25205         (s390_canonicalize_comparison): Swap operands if necessary.
25206         (s390_expand_vec_compare_scalar): Expand DFmode compare using
25207         single element vector instructions.
25208         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25209         (s390_branch_condition_mask): Generate CC masks for the new modes.
25210         * config/s390/s390.md (v0, vf, vd): New mode attributes.
25211         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25212         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25213         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25214         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25215         (*extend<DSF:mode><BFP:mode>2): New insn definition.
25216         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25217         (extend<DSF:mode><BFP:mode>2): Turn into expander.
25218         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25219         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25220         (sqrt<mode>2): Add vector instruction.
25222 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25224         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25225         constraints.
25226         * config/s390/predicates.md (const0_operand, constm1_operand)
25227         (constable_operand): Accept vector operands.
25228         * config/s390/s390-modes.def: Add supported vector modes.
25229         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25230         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25231         (s390_bytemask_vector_p, s390_expand_vec_strlen)
25232         (s390_expand_vec_compare, s390_expand_vcond)
25233         (s390_expand_vec_init): Add prototypes.
25234         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25235         (s390_vector_mode_supported_p): New function.
25236         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25237         (s390_contiguous_bitmask_vector_p): New function.
25238         (s390_bytemask_vector_p): New function.
25239         (s390_split_ok_p): Vector regs don't work either.
25240         (regclass_map): Add VEC_REGS.
25241         (s390_legitimate_constant_p): Handle vector constants.
25242         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25243         (legitimate_reload_vector_constant_p): New function.
25244         (s390_preferred_reload_class): Handle CONST_VECTOR.
25245         (s390_reload_symref_address):  Likewise.
25246         (s390_secondary_reload): Vector memory instructions only support
25247         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
25248         (s390_emit_ccraw_jump): New function.
25249         (s390_expand_vec_strlen): New function.
25250         (s390_expand_vec_compare): New function.
25251         (s390_expand_vcond): New function.
25252         (s390_expand_vec_init): New function.
25253         (s390_dwarf_frame_reg_mode): New function.
25254         (print_operand): Handle addresses with 'O' and 'R' constraints.
25255         (NR_C_MODES, constant_modes): Add vector modes.
25256         (s390_output_pool_entry): Handle vector constants.
25257         (s390_hard_regno_mode_ok): Handle vector registers.
25258         (s390_class_max_nregs): Likewise.
25259         (s390_cannot_change_mode_class): New function.
25260         (s390_invalid_arg_for_unprototyped_fn): New function.
25261         (s390_function_arg_vector): New function.
25262         (s390_function_arg_float): Remove size variable.
25263         (s390_pass_by_reference): Handle vector arguments.
25264         (s390_function_arg_advance): Likewise.
25265         (s390_function_arg): Likewise.
25266         (s390_return_in_memory): Vector values are returned in a VR if
25267         possible.
25268         (s390_function_and_libcall_value): Handle vector arguments.
25269         (s390_gimplify_va_arg): Likewise.
25270         (s390_call_saved_register_used): Consider the arguments named.
25271         (s390_conditional_register_usage): Disable v16-v31 for non-vec
25272         targets.
25273         (s390_preferred_simd_mode): New function.
25274         (s390_support_vector_misalignment): New function.
25275         (s390_vector_alignment): New function.
25276         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25277         (TARGET_VECTOR_MODE_SUPPORTED_P)
25278         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25279         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25280         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25281         (TARGET_VECTOR_ALIGNMENT): Define target macro.
25282         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25283         (FIRST_PSEUDO_REGISTER): Increase value.
25284         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25285         (VECTOR_REG_P): Define macros.
25286         (FIXED_REGISTERS, CALL_USED_REGISTERS)
25287         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25288         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25289         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25290         Add vector registers.
25291         (CANNOT_CHANGE_MODE_CLASS): Call C function.
25292         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25293         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25294         memory.
25295         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25296         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25297         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25298         (VR*_REGNUM): New constants.
25299         (ALL): New mode iterator.
25300         (INTALL): Remove mode iterator.
25301         Include vector.md.
25302         (movti): Implement TImode moves for VRs.
25303         Disable TImode splitter for VR targets.
25304         Implement splitting TImode GPR<->VR moves.
25305         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25306         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25307         reload<mode>_la_in, reload<mode>_la_out.
25308         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25309         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25310         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25311         (mov<mode> SF SD): Prefer lder, lde for loading.
25312         Add lrl and strl instructions.
25313         Add vector instructions.
25314         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25315         Call s390_expand_vec_strlen on z13.
25316         (*cc_to_int): Change predicate to nonimmediate_operand.
25317         (addti3): Rename to *addti3.  New expander.
25318         (subti3): Rename to *subti3.  New expander.
25319         * config/s390/vector.md: New file.
25321 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25323         * common/config/s390/s390-common.c (processor_flags_table): Add
25324         z13.
25325         * config.gcc: Add z13.
25326         * config/s390/s390-opts.h (enum processor_type): Add
25327         PROCESSOR_2964_Z13.
25328         * config/s390/s390.c (s390_adjust_priority): Check for
25329         PROCESSOR_2964_Z13.
25330         (s390_reorg): Likewise.
25331         (s390_sched_reorder): Likewise.
25332         (s390_sched_variable_issue): Likewise.
25333         (s390_loop_unroll_adjust): Likewise.
25334         (s390_option_override): Likewise. Default to -mvx when available.
25335         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25336         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25337         (TARGET_VX_ABI): Define macros.
25338         macros.
25339         (TARGET_DEFAULT): Add MASK_OPT_VX.
25340         * config/s390/s390.md ("cpu" attribute): Add z13.
25341         ("cpu_facility" attribute): Add vec.
25342         * config/s390/s390.opt (processor_type): Add z13.
25343         (mvx): New options.
25344         * doc/invoke.texi: Add z13 option for -march.
25346 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25348         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25349         mode check to make sure that only scalar integer values are
25350         accepted.
25352 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25354         * tree.c (verify_type_variant): Fix #undef.
25355         (gimple_canonical_types_compatible_p): Move here from lto.c
25356         (verify_type): Verify TYPE_CANONICAL compatibility.
25357         * tree.h (gimple_canonical_types_compatible_p): Declare.
25359 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
25361         PR middle-end/66199
25362         * tree.h (OMP_TEAMS_COMBINED): Define.
25363         * gimplify.c (enum gimplify_omp_var_data): Add
25364         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25365         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25366         (omp_notice_variable): Accept both ORT_TEAMS
25367         and ORT_COMBINED_TEAMS.  Don't recurse if
25368         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25369         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25370         GOVD_FIRSTPRIVATE.
25371         (omp_no_lastprivate): New function.
25372         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25373         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25374         notice_outer and set appropriate bits, otherwise make
25375         sure default(none) combined constructs won't complain.
25376         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25377         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25378         omp_no_lastprivate either remove the clause or turn it
25379         into OMP_CLAUSE_PRIVATE.
25380         (gimplify_omp_for): Fix up handling of implicit
25381         lastprivate or linear iterators.
25382         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25383         ORT_COMBINED_TEAMS.
25384         * omp-low.c (lower_omp_for_lastprivate): For combined
25385         for simd use fd.loop.n2 from the for rather than simd.
25387 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25389         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25390         instead of gen_rtx_raw_REG.
25391         (cris_expand_epilogue): Likewise.
25392         * config/microblaze/microblaze.c (microblaze_classify_address):
25393         Likewise.
25394         * config/sparc/sparc.md: Likewise.
25396 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
25398         * config/alpha/alpha.c (alpha_legitimize_reload_address)
25399         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25400         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25401         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25402         Use CASE_CONST_SCALAR_INT.
25403         (print_operand) <case 'M'>: Use mode_width_operand to check the
25404         value of the constant.
25405         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25406         * config/alpha/predicates.md (input_operand): Use general_operand
25407         instead of match_code as operand check.
25408         (symbolic_operand): Use match_code with subexpression digits.
25409         * config/alpha/constraints.md (Q): Ditto.
25411 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25413         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25415 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25417         * config/s390/s390.c (s390_secondary_reload): Fix check for
25418         load/store relative.
25420 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25422         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
25423         alternative_mask to uint64_t.
25425 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
25427         PR tree-optimization/66187
25428         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25429         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
25430         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25432 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
25434         * diagnostic.c (diagnostic_report_current_module): Strengthen
25435         local "new_map" from const line_map * to
25436         const line_map_ordinary *.
25437         * genmatch.c (error_cb): Likewise for local "map".
25438         (output_line_directive): Likewise for local "map".
25439         * input.c (expand_location_1): Likewise for local "map".
25440         Pass NULL rather than &map to
25441         linemap_unwind_to_first_non_reserved_loc, since the value is never
25442         read from there, and the value written back not read from here.
25443         (is_location_from_builtin_token): Strengthen local "map" from
25444         const line_map * to const line_map_ordinary *.
25445         (dump_location_info): Strengthen locals "map" from
25446         line_map *, one to const line_map_ordinary *, the other
25447         to const line_map_macro *.
25448         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25449         const line_map * to const line_map_macro *.
25450         (maybe_unwind_expanded_macro_loc): Add a call to
25451         linemap_check_macro when writing to the "map" field of the
25452         loc_map_pair.
25453         Introduce local const line_map_ordinary * "ord_map", using it in
25454         place of "map" in the part of the function where we know we have
25455         an ordinary map.  Strengthen local "m" from const line_map * to
25456         const line_map_ordinary *.
25458 2015-05-19  Nick Clifton  <nickc@redhat.com>
25460         PR target/66156
25461         * config/msp430/msp430.md (zero_extendhisi2): Add support for
25462         separate source and destination registers.
25464 2015-05-19  Richard Biener  <rguenther@suse.de>
25466         PR tree-optimization/66165
25467         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25468         for no load permutation.
25470         PR tree-optimization/66185
25471         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25472         when building the SLP node from scalars.
25474 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25475             Tristan Gingold  <gingold@adacore.com>
25477         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25478         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25479         (expand_stack_restore): Call record_new_stack_level.
25480         (expand_stack_save): Do not call do_pending_stack_adjust.
25481         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25482         * calls.c (expand_call): Call record_new_stack_level for alloca.
25483         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25484         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25485         (update_sjlj_context): New global function.
25486         * except.h (update_sjlj_context): Declare.
25487         * explow.c (record_new_stack_level): New global function.
25488         (allocate_dynamic_stack_space): Call record_new_stack_level.
25489         * explow.h (record_new_stack_level): Declare.
25490         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25491         * cfgrtl.c (duplicate_insn_chain): Likewise.
25493 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25495         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25496         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25497         STACK_GROWS_DOWNWARD as normal if.
25498         (expand_call): Likewise.
25500 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
25502         PR target/54236
25503         * config/sh/sh.md (*round_int_even): New insn_and_split and
25504         accompanying new unnamed split.
25506 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25508         * bitmap.c (bitmap_set_range): Handle count==1 specially.
25509         (bitmap_clear_range): Likewise.
25510         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25511         bitmap_set_range unconditionally.
25512         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25513         * df-scan.c (df_mark_reg): Likewise.
25514         * haifa-sched.c (setup_ref_regs): Likewise.
25515         * sched-rgn.c (update_live_1): Likewise.
25517 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25519         * regs.h (END_HARD_REGNO): Delete.
25520         (END_REGNO): Move to...
25521         * rtl.h: ...here.
25522         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25523         * caller-save.c (mark_set_regs): Likewise.
25524         * combine.c (move_deaths, distribute_notes): Likewise.
25525         * cse.c (invalidate, invalidate_for_call): Likewise.
25526         * df-scan.c (df_ref_record): Likewise.
25527         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25528         (record_last_reg_set_info): Likewise.
25529         * reg-stack.c (convert_regs_exit): Likewise.
25530         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25531         * resource.c (update_live_status): Likewise.
25532         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25534 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25536         * rtl.h (reg_info): Add an nregs field.
25537         (REG_NREGS): Use it.
25538         (SET_REGNO_RAW): Delete.
25539         (set_regno_raw): New function.
25540         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25541         (END_REGNO): Redefine in terms of REG_NREGS.
25542         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25543         SET_REGNO_RAW.
25544         * emit-rtl.c (set_mode_and_regno): Likewise.
25545         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25546         instead of SET_REGNO_RAW.
25548 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25550         * rtl.h (PUT_MODE_RAW): New macro.
25551         (PUT_REG_NOTE_KIND): Use it.
25552         (set_mode_and_regno): Declare.
25553         (gen_raw_REG): Change regno to "unsigned int".
25554         (gen_rtx_REG): Change "unsigned" to "unsigned int".
25555         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25556         use set_mode_and_regno to change the mode of registers.
25557         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25558         * emit-rtl.c (set_mode_and_regno): New function.
25559         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
25560         * caller-save.c (reg_save_code): Use set_mode_and_regno.
25561         * expr.c (init_expr_target): Likewise.
25562         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25563         * postreload.c (reload_cse_simplify_operands): Likewise.
25565 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25567         * caller-save.c (init_caller_save): Use word_mode and
25568         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25569         * expr.c (init_expr_target): Likewise.
25570         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25571         * postreload.c (reload_cse_regs_1): Likewise.
25573 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25575         * rtl.def (REG): Change format to "r".
25576         * rtl.h (rtunion): Remove rt_reg.
25577         (reg_info): New structure.
25578         (rtx_def): Add reg field to main union.
25579         (X0REGATTR): Delete.
25580         (REG_CHECK): New macro.
25581         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25582         * rtl.c (rtx_format): Document "r".
25583         (rtx_code_size): Handle REG specially.
25584         * gengenrtl.c (special_format): Return true for formats
25585         that include 'r'.
25586         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25587         Deal with REG_ATTRS after the field loop.
25588         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25589         * expmed.c (init_expmed): Call gen_raw_REG instead of
25590         gen_rtx_raw_REG.
25591         * expr.c (init_expr_target): Likewise.
25592         * regcprop.c (maybe_mode_change): Likewise.
25593         * varasm.c (make_decl_rtl): Likewise.
25594         * final.c (leaf_renumber_regs_insn): Return early after
25595         handling REGs.
25596         * genemit.c (gen_exp): Handle 'r' fields.
25597         * genpeep.c (match_rtx): Likewise.
25598         * gensupport.c (subst_pattern_match): Likewise.
25599         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25600         (alter_constraints, subst_dup): Likewise.
25601         * read-rtl.c (read_rtx_code): Likewise.
25602         * print-rtl.c (print_rtx): Likewise.
25603         * genrecog.c (find_operand, find_matching_operand): Likewise.
25604         (validate_pattern, match_pattern_2): Likewise.
25605         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25606         (rtx_test::regno_field): New function.
25607         (operator ==, safe_to_hoist_p, transition_parameter_type)
25608         (parameter_type_string, print_parameter_value)
25609         (print_nonbool_test, print_test): Handle new enum values.
25610         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25611         * lra-constraints.c (operands_match_p): Likewise.
25613 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25615         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25616         Change type of new_regno to unsigned int.
25617         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25618         new_regno to unsigned int.
25619         (df_ref_change_reg_with_loc): Remove old_regno parameter.
25620         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
25621         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25622         (SET_REGNO_RAW): Add space after ",".
25624 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25626         * rtl.h (REG_NREGS): New macro
25627         * alias.c (record_set): Use it.
25628         * cfgcleanup.c (mark_effect): Likewise.
25629         * combine.c (likely_spilled_retval_1): Likewise.
25630         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25631         (move_deaths, distribute_notes): Likewise.
25632         * cselib.c (cselib_record_set): Likewise.
25633         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25634         * df-scan.c (df_mark_reg): Likewise.
25635         * dse.c (look_for_hardregs): Likewise.
25636         * dwarf2out.c (reg_loc_descriptor): Likewise.
25637         (multiple_reg_loc_descriptor): Likewise.
25638         * expr.c (write_complex_part, read_complex_part): Likewise.
25639         (emit_move_complex): Likewise.
25640         * haifa-sched.c (setup_ref_regs): Likewise.
25641         * ira-lives.c (mark_hard_reg_live): Likewise.
25642         * lra.c (lra_set_insn_recog_data): Likewise.
25643         * mode-switching.c (create_pre_exit): Likewise.
25644         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25645         (reload_combine_recognize_pattern): Likewise.
25646         (reload_combine_note_use, move2add_record_mode): Likewise.
25647         (reload_cse_move2add): Likewise.
25648         * reg-stack.c (subst_stack_regs_pat): Likewise.
25649         * regcprop.c (kill_value, copy_value): Likewise.
25650         (copyprop_hardreg_forward_1): Likewise.
25651         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25652         (build_def_use): Likewise.
25653         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25654         (deps_analyze_insn): Likewise.
25655         * sched-rgn.c (check_live_1, update_live_1): Likewise.
25656         * sel-sched.c (count_occurrences_equiv): Likewise.
25657         * valtrack.c (dead_debug_insert_temp): Likewise.
25659 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25661         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25662         * dse.c (note_add_store): Likewise.
25663         * ira-lives.c (mark_hard_reg_dead): Likewise.
25664         * loop-invariant.c (mark_reg_store): Likewise.
25665         (mark_reg_death): Likewise.
25666         * postreload.c (reload_combine): Likewise.
25667         (reload_combine_note_store): Likewise.
25668         (reload_combine_note_use): Likewise.
25669         * recog.c (peep2_reg_dead_p): Likewise.
25671 2015-05-19  Alan Modra  <amodra@gmail.com>
25673         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25674         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25675         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25676         unused predicates.
25677         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25678         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
25679         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25680         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25682 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
25684         * config/mips/mips.md (JOIN_MODE): New mode iterator.
25685         (join2_load_Store<JOIN_MODE:mode>): New pattern.
25686         (join2_loadhi): Likewise.
25687         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25688         load-load and store-stores.
25689         * config/mips/mips.opt (mload-store-pairs): New option.
25690         (TARGET_LOAD_STORE_PAIRS): New macro.
25691         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25692         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25693         * config/mips/mips.c (mips_load_store_bonding_p): New function.
25695 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
25697         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25698         explicit swaps.
25699         * dojump.c (do_compare_rtx_and_jump): Likewise.
25700         * expmed.c (emit_store_flag_1): Likewise.
25701         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25702         * final.c (sprint_ul): Use std::reverse for reversing a string.
25703         * fold-const.c (extract_muldiv_1): Use std::swap.
25704         * genmodes.c (emit_mode_int_n): Likewise.
25705         * ifcvt.c (dead_or_predicable): Likewise.
25706         * ira-build.c (ira_merge_live_ranges): Likewise.
25707         (swap_allocno_copy_ends_if_necessary): Likewise.
25708         * ira.c (ira_setup_alts): Likewise.
25709         * loop-iv.c (iv_analyze_expr): Likewise.
25710         (implies_p): Likewise.
25711         (canon_condition): Likewise.
25712         * lra-constraints.c (swap_operands): Likewise.
25713         * lra-lives.c (lra_merge_live_ranges): Likewise.
25714         * omega.c (swap): Remove.
25715         (bswap): Remove.
25716         (omega_unprotect_1): Use std::swap.
25717         (omega_solve_geq): Likewise.
25718         * optabs.c (expand_binop_directly): Likewise.
25719         (expand_binop): Likewise.
25720         (emit_conditional_move): Likewise.
25721         (emit_conditional_add): Likewise.
25722         * postreload.c (reload_cse_simplify_operands): Likewise.
25723         * reg-stack.c (emit_swap_insn): Likewise.
25724         (swap_to_top): Likewise.
25725         (compare_for_stack_reg): Likewise.
25726         (subst_asm_stack_regs): Likewise.
25727         * reload.c (find_reloads): Likewise.
25728         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25729         * sel-sched.c (invoke_reorder_hooks): Likewise.
25730         (create_block_for_bookkeeping): Likewise.
25731         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25732         (lambda_matrix_right_hermite): Use std::swap.
25733         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25734         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25735         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25736         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25737         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25738         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25739         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25740         * tree-vrp.c (compare_ranges): Likewise.
25741         * var-tracking.c (add_with_sets): Likewise.
25742         (vt_find_locations): Likewise.
25744 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
25746         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25747         pie executables.
25748         (FBSD_ENDFILE_SPEC): Likewise.
25749         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25750         config/freebsd-spec.h.
25751         (ENDFILE_SPEC): Likewise.
25753 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
25754             Richard Henderson  <rth@redhat.com>
25756         PR target/57032
25757         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25758         Check for a memory location that is not a reference (using an AND)
25759         to an unaligned location here.
25760         * config/alpha/predicates.md (normal_memory_operand): Remove.
25762 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
25764         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25765         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25767 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
25769         * config/mips/mips.c (micromips_globals): New variable.
25770         (mips_set_compression_mode): Save and reinitialize target-dependent
25771         state for microMIPS.
25773 2015-05-18  Martin Liska  <mliska@suse.cz>
25775         * dbgcnt.def: Add new counter.
25776         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25778 2015-05-18  Martin Liska  <mliska@suse.cz>
25780         * dbgcnt.def: Sort counters.
25781         * opts.c (common_handle_option): Do not compile if
25782         -fdbg-cnt-list is enabled.
25784 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25786         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25787         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
25788         address operator to va_list operand.
25789         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25790         unconditionally.
25791         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25792         operand.
25793         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25794         * config/s390/s390.c (s390_gimplify_va_arg): Same.
25795         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25797 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25799         * tree-ssa-tail-merge.c: Fix whitespace.
25801 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
25803         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25804         cortex-a17, and cortex-a17.cortex-a7.
25806 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
25808         PR target/54236
25809         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25811 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
25813         PR target/66174
25814         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25815         QImode inner modes for TARGET_AVX512BW.  Force mask operand
25816         to a register for AVX512F modes.
25818 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25820         * toplev.c (emit_debug_global_declarations): Do not output debug info
25821         when doing slim LTO objects.
25823 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25825         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25826         odr_types_equivalent_p): Declare.
25827         (odr_type_p): Use gcc_checking_assert.
25828         (type_in_anonymous_namespace_p) Declare.
25829         (type_with_linkage_p): Declare.
25830         * common.opt (Wlto-type-mismatch): New warning.
25831         * ipa-devirt.c (compound_type_base): New function.
25832         (odr_or_derived_type_p): New function.
25833         (odr_types_equivalent_p): New function.
25834         (add_type_duplicate): Simplify.
25835         (type_with_linkage_p): Add hack to prevent false positives on C types
25836         (type_in_anonymous_namespace_p): Likewise.
25837         * tree.c (need_assembler_name_p): Use type_with_linkage.
25838         * tree.h (type_in_anonymous_namespace_p): Remove.
25839         * doc/invoke.texi (-Wlto-type-mismatch): Document
25841 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25843         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25844         (verify_type): Verify STRING_FLAG.
25846 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25848         PR fortran/44054
25849         * tree-pretty-print.c (percent_K_format): Replace locus pointer
25850         with accessor function.
25851         * tree-diagnostic.c (diagnostic_report_current_function): Use
25852         diagnostic_location function.
25853         (maybe_unwind_expanded_macro_loc): Likewise.
25854         (virt_loc_aware_diagnostic_finalizer): Likewise.
25855         (default_tree_printer): Replace locus pointer with accessor function.
25856         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25857         (diagnostic_set_info_translated): Initialize second location.
25858         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25859         (diagnostic_show_locus): Handle two locations. Call
25860         diagnostic_print_caret_line.
25861         (diagnostic_print_caret_line): New.
25862         (default_diagnostic_starter): Use diagnostic_location function.
25863         (diagnostic_report_diagnostic): Use diagnostic_location function.
25864         (verbatim): Do not set text.locus.
25865         * diagnostic.h (struct diagnostic_info): Remove location field.
25866         (struct diagnostic_context): Make caret_chars an array of two.
25867         (diagnostic_location): New inline.
25868         (diagnostic_expand_location): Handle two locations.
25869         (diagnostic_same_line): New inline.
25870         (diagnostic_print_caret_line): Declare.
25871         (CARET_LINE_MARGIN): New constant.
25872         * pretty-print.c (pp_printf): Do not set text.locus.
25873         (pp_verbatim): Do not set text.locus.
25874         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25875         (struct text_info): Replace locus pointer with locations
25876         array. Add accessor functions.
25878 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
25879             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25881         PR target/65768
25882         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25883         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25884          large constants in register instead of splitting them.
25886 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
25888         PR target/66140
25889         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25890         replacements in memory addresses.
25891         (get_unaligned_address): Ditto.
25893 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
25895         * config/ft32/*: New files for FT32 port.
25896         * doc/install.texi: Add FT32 information.
25897         * doc/invoke.texi: Add FT32 information.
25898         * doc/md.texi: Add FT32 information.
25899         * doc/contrib.texi: Self added.
25901 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
25903         PR tree-optimization/64454
25904         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25905         (-1 - A -> ~A): Remove unnecessary condition.
25907 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
25909         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25910         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25911         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25913 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
25915         * ipa-chkp.h (chkp_wrap_function): New.
25916         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25917         (chkp_wrap_function_name): New.
25918         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25919         to get wrapper name.
25920         * lto-cgraph.c: Include ipa-chkp.h.
25921         (input_cgraph_1): Avoid alias chain for wrappers.
25923 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25925         PR middle-end/66134
25926         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25927         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25929 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25931         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25932         (AARCH64_FL_SLOWMUL): Delete.
25933         (AARCH64_FL_CRC): Redefine to 1<<3.
25934         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25936 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25938         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25939         casting.
25941 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25943         * config/alpha/alpha.md (extendqidi2): Use general_operand
25944         instead of some_operand for operand[1] predicate.
25945         (extendhidi2): Ditto.
25946         (cbranchdi4): Use general_operand instead of some_operand
25947         for operand[1] and operands[2] predicates.
25948         (cstoredi4): Ditto.
25949         * config/alpha/predicates.md (some_operand): Remove unused predicate.
25950         (some_ni_operand): Ditto.
25952 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25954         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25955         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
25956         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25957         low part of the constant using alpha_emit_set_const_1.
25958         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25960 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
25962         * varasm.c (output_constant_pool_1): Pass down alignment from
25963         constant pool entry's descriptor to output_constant_pool_2.
25964         (output_object_block): Add comment prior to call to
25965         output_constant_pool_1.
25967 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
25969         PR rtl-optimization/65862
25970         * target.def (ira_change_pseudo_allocno_class): New hook.
25971         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25972         value of the hook.
25973         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25974         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25975         hook.
25976         * ira-costs.c (find_costs_and_classes): Call the hook and change
25977         classes when it is necessary.
25978         * doc/tm.texi: Update.
25980 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
25982         * config/i386/i386.md (sibcall_memory): Check that register with
25983         callee address is not also used as one of the arguments, instead
25984         of checking that it is not live after the sibcall.
25985         (sibcall_pop_memory): Ditto.
25986         (sibcall_value_memory): Ditto.
25987         (sibcall_value_pop_memory): Ditto.
25989 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
25991         * generic-match-head.c (types_match): Handle non-types.
25992         * gimple-match-head.c (types_match): Likewise.
25993         * match.pd: Remove unnecessary TREE_TYPE for types_match.
25995 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
25997         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25998         (csneg3<mode>_insn): Enable expansion of pattern.
26000 2015-05-14  Nick Clifton  <nickc@redhat.com>
26002         * config/rl78/rl78.c (rl78_select_section): Select the correct
26003         default section based upon the category of the decl.
26005 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26007         PR rtl-optimization/30967
26008         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26009         destination mode for the cost of scc patterns.
26011 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26013         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26014         using SWIM248 mode iterator.
26015         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26016         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
26017         for operand[2] constraint.
26018         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26020 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26022         PR middle-end/66133
26023         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26024         make sure it is never noreturn, even when the task body does not
26025         return.
26026         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26027         right before GIMPLE_OMP_RETURN.
26028         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26029         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
26030         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26032 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26034         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26035         * tree-ssa-math-opts.c: Include params.h
26036         (pow_synth_sqrt_info): New struct.
26037         (representable_as_half_series_p): New function.
26038         (get_fn_chain): Likewise.
26039         (print_nested_fn): Likewise.
26040         (dump_fractional_sqrt_sequence): Likewise.
26041         (dump_integer_part): Likewise.
26042         (expand_pow_as_sqrts): Likewise.
26043         (gimple_expand_builtin_pow): Use above to attempt to expand
26044         pow as series of square roots.  Removed now unused variables.
26046 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26048         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26049         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26050         Remove *p0 and *p1 arguments.  Rewrite function.
26051         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26052         (alpha_split_const_mov): Update calls to alpha_extract_integer and
26053         alpha_emit_set_long_const.
26054         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26055         (alpha_output_mi_thunk_osf): Ditto.
26056         * config/alpha/alpha.md (movti): Do not check operands[1]
26057         for CONST_DOUBLE.
26059 2015-05-13  Richard Biener  <rguenther@suse.de>
26061         PR tree-optimization/66129
26062         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26063         commutative.
26064         (vect_schedule_slp_instance): Fix typo.
26066 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
26068         * common.opt (fdump-internal-locations): New option.
26069         * input.c: Include diagnostic-core.h.
26070         (get_end_location): New function.
26071         (write_digit): New function.
26072         (write_digit_row): New function.
26073         (dump_location_range): New function.
26074         (dump_labelled_location_range): New function.
26075         (dump_location_info): New function.
26076         * input.h (dump_location_info): New prototype.
26077         * toplev.c (compile_file): Handle flag_dump_locations.
26079 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
26081         * gimple-expr.h (is_gimple_constant): Reorder.
26082         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26084 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26086         * combine.c (simplify_set): When generating a CC set, if the
26087         source already is in the correct mode, do not wrap it in a
26088         compare.  Simplify the rest of that code.
26090 2015-05-13  Richard Biener  <rguenther@suse.de>
26092         PR tree-optimization/66123
26093         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26094         a taken edge.
26096 2015-05-13  Richard Biener  <rguenther@suse.de>
26098         PR middle-end/66110
26099         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26100         specially.
26101         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26103 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26105         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26106         * aclocal.m4: Regenerated with automake-1.11.6.
26108 2015-05-13  Tom de Vries  <tom@codesourcery.com>
26110         PR tree-optimization/66010
26111         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26112         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26113         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
26114         and rval based on do_deref.
26116 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26118         PR target/65103
26119         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26120         link time constants into adress expressions and therefore set
26121         their cost to 0.
26123 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26125         PR target/66112
26126         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26127         Use SWI248 iterator instead of SWI.
26128         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
26129         Use eq_attr "alternative" "0" instead of match_test in
26130         length_immediate attribute computation.
26131         (*mulvhi4, *mulvhi4_1): New define_insns.
26133         PR target/66112
26134         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26135         SIGNED to get precision of non-negative value.
26137 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26139         PR target/66048
26140         * function.c (diddle_return_value_1): Process bounds first.
26141         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26142         register.
26144 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26146         PR rtl-optimization/64616
26147         * loop-invariant.c (can_move_invariant_reg): New.
26148         (move_invariant_reg): Call above new function to decide whether
26149         instruction can just be moved, skipping creation of temporary
26150         register.
26152 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26154         PR target/pr66047.c
26155         * i386.c (ix86_function_sseregparm): Only return -1 if local function
26156         with implied regparm is called from -mno-sse function.
26157         (init_cumulative_args): Output error if ix86_function_sseregparm
26158         return -1 and SSE register would be needed.
26159         (function_arg_advance_32): Likewise.
26160         (function_arg_32): Likewise.
26161         * i386.h (ix86_args): Add decl field.
26163 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26165         PR ipa/65873
26166         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26167         inlines across optimization boundary.
26169 2015-05-12  Jason Merrill  <jason@redhat.com>
26171         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26172         string literal and macro name.
26174 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
26176         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26177         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26178         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26180 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26182         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26183         (-Wmisleading-indentation): New option.
26184         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26186 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
26188         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26189         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26190         (alpha_extract_integer): Ditto.
26191         (alpha_legitimate_constant_p): Ditto.
26192         (alpha_split_tmode_pair): Ditto.
26193         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26194         (alpha_expand_mov): Ditto.
26195         (print_operand): Remove handling of 'H' modifier.
26196         <case 'm'>: Remove CONST_DOUBLE handling.
26197         (summarize_insn): Handle CONST_WIDE_INT.
26198         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26199         (anddi3): Ditto.
26200         (movti): Handle CONST_WIDE_INT.
26201         * config/alpha/constraints.md ('H'): Remove constraint definition.
26202         ('G'): Do not match MODE_FLOAT class.
26203         * config/alpha/predicates.md (const0_operand): Also match
26204         const_wide_int.
26205         (non_add_const_operand): Ditto.
26206         (non_zero_const_operand): Ditto.
26207         (some_operand): Ditto.
26208         (input_operand): Ditto.  Handle CONST_WIDE_INT.
26209         (and_operand): Do not match const_double.
26210         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26212 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
26214         PR target/65697
26215         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26216         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26217         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26218         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26219         is_mm_seq_cst, is_mm_sync): New accessor functions.
26220         * builtins.c (expand_builtin_sync_operation,
26221         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26222         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26223         (get_memmodel,  expand_builtin_atomic_compare_exchange,
26224         expand_builtin_atomic_load, expand_builtin_atomic_store,
26225         expand_builtin_atomic_clear): Use new accessor routines.
26226         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26227         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26228         (maybe_emit_sync_lock_test_and_set): Use new accessors and
26229         MEMMODEL_SYNC_ACQUIRE.
26230         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26231         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26232         expand_atomic_store): Use new accessors.
26233         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26234         * tsan.c (instrument_builtin_call): Update check for memory model beyond
26235         final enum to use MEMMODEL_LAST.
26236         * c-family/c-common.c: Use new accessor for memmodel_base.
26237         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26238         accessors.
26239         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26240         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26241         mem_thread_fence, *dmb): Likewise.
26242         * config/alpha/alpha.c (alpha_split_compare_and_swap,
26243         alpha_split_compare_and_swap_12): Likewise.
26244         * config/arm/arm.c (arm_expand_compare_and_swap,
26245         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26246         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26247         atomic_loaddi): Likewise.
26248         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26249         Likewise.
26250         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26251         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26252         use new accessors.
26253         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26254         atomic_store<mode>, atomic_compare_and_swap<mode>,
26255         atomic_exchange<mode>): Use new accessors.
26256         * config/mips/mips.c (mips_process_sync_loop): Likewise.
26257         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26258         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26259         rs6000_post_atomic_barrier): Add new cases.
26260         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26261         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26262         (atomic_load<mode>): Add new cases and use new accessors.
26263         (store_quadpti): Add new cases.
26264         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26265         accessors.
26266         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26267         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26268         model, not 8.
26270 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26272         * ipa-devirt.c (type_with_linkage_p): New function.
26273         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26274         type has linkage.
26275         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26276         (can_be_name_hashed_p): Simplify.
26277         (hash_odr_name): Check that type has linkage before checking if it is
26278         anonymous.
26279         (types_same_for_odr): Likewise.
26280         (odr_name_hasher::equal): Likewise.
26281         (odr_subtypes_equivalent_p): Likewise.
26282         (warn_types_mismatch): Likewise.
26283         (get_odr_type): Likewise.
26284         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26285         * ipa-utils.h (odr_type_p): Move offline.
26286         * tree.c (need_assembler_name_p): Fix handling of types
26287         without linkages.
26288         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26290 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26292         * timevar.c (timevar_enable): Delete in favor of...
26293         (g_timer): New global.
26294         (struct timevar_def): Move to timevar.h inside class timer.
26295         (struct timevar_stack_def): Likewise.
26296         (timevars): Delete global in favor of field "m_timevars" within
26297         class timer in timevar.h
26298         (stack): Likewise, in favor of field "m_stack".
26299         (unused_stack_instances): Likewise, in favor of field
26300         "m_unused_stack_instances".
26301         (start_time): Likewise, in favor of field "m_start_time".
26302         (get_time): Eliminate check for timevar_enable.
26303         (timer::timer): New function, built from part of timevar_init.
26304         (timevar_init): Rewrite idempotency test from using
26305         "timevar_enable" bool to using dynamic allocation of "g_timer".
26306         Move rest of implementation into timer's constructor.
26307         (timevar_push_1): Rename to...
26308         (timer::push): ...this, adding "m_" prefixes to variables that
26309         are now fields of timer.
26310         (timevar_pop_1): Likewise, rename to...
26311         (timer::pop): ...this, and add "m_" prefixes.
26312         (timevar_start): Replace test for "timevar_enable" with one for
26313         "g_timer", and move bulk of implementation to...
26314         (timer::start): ...here, adding "m_" prefixes.
26315         (timevar_stop): Likewise, from here...
26316         (timer::stop): ...to here.
26317         (timevar_cond_start): Likewise, from here...
26318         (timer::cond_start): ...to here.
26319         (timevar_cond_stop): Likewise, from here...
26320         (timer::cond_stop): ...to here.
26321         (validate_phases): Rename to...
26322         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
26323         locals "total" and "tv" const.
26324         (timevar_print): Rename to...
26325         (timer::print): ...this, and add "m_" prefixes.  Make locals
26326         "total" and "tv" const.  Eliminate test for timevar_enable.
26327         * timevar.h (timevar_enable): Eliminate.
26328         (g_timer): New declaration.
26329         (timevar_push_1): Eliminate.
26330         (timevar_pop_1): Eliminate.
26331         (timevar_print): Eliminate.
26332         (class timer): New class.
26333         (timevar_push): Rewrite to use g_timer.
26334         (timevar_pop): Likewise.
26335         * toplev.c (toplev::~toplev): Likewise.
26337 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
26339         * arm-protos.h (arm_sched_autopref): Delete.
26340         (tune_params): Re-organize, use enums for flag values.
26341         (FUSE_OPS): New macro.
26342         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26343         (ARM_PREFETCH_BENEFICIAL): Likewise.
26344         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26345         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26346         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26347         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26348         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26349         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
26350         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26351         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26352         format.
26353         (arm_option_override, thumb2_reorg, arm_print_tune_info)
26354         (aarch_macro_fusion_pair_p): Update uses of current_tune.
26355         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26357 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
26359         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26360         "break".
26362 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
26363             Sandra Loosemore <sandra@codesourcery.com>
26365         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26366         value.
26367         (REG_CLASS_NAMES): Add "IJMP_REGS".
26368         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26369         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26370         use new "c" register constraint.
26371         * config/nios2/constraint.md (c): New register constraint
26372         corresponding to IJMP_REGS.
26374 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26376         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26377         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26378         define_splits): Delete, revamp, transmogrify into ...
26379         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26380         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26381         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26382         New.
26384 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26386         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26387         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26389 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26391         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26392         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26393         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26394         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26395         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26396         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26397         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26398         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26399         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26400         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26401         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26402         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26403         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26404         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26405         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26406         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26407         and 30 corresponding splitters): Delete.
26409 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26411         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26412         zero_extract.
26414 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26416         * combine.c (recog_for_combine_1): New function, factored out
26417         from recog_for_combine.
26418         (change_zero_ext): New function.
26419         (recog_for_combine): If recog fails, try again with the pattern
26420         modified by change_zero_ext; if that still fails, restore the
26421         pattern.
26423 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
26425         * combine.c (get_undo_marker): New function.
26426         (undo_to_marker): New function, largely factored out from ...
26427         (undo_all): ... this.  Adjust.
26429 2015-05-12  Richard Biener  <rguenther@suse.de>
26431         PR tree-optimization/66101
26432         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26433         fixup if we turn a loop exit edge to a fallthru edge.
26435 2015-05-12  Richard Biener  <rguenther@suse.de>
26437         PR tree-optimization/37021
26438         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26439         (SLP_TREE_TWO_OPERATORS): New define.
26440         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26441         SLP_TREE_TWO_OPERATORS.
26442         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26443         SLP node.
26444         (vect_build_slp_tree): Adjust.
26445         (vect_analyze_slp_cost_1): Likewise.
26446         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26447         emitting two vector stmts and mixing the results.
26449 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26451         * call.c (print_z_candidates): Remove dead code.
26453 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26455         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26456         and zEC12_simple_fp.
26457         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26458         to 1.
26460 2015-05-12  Tom de Vries  <tom@codesourcery.com>
26462         PR tree-optimization/66010
26463         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26464         ifn_va_arg.
26465         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26466         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
26467         va_lists are passed, and remove corresponding handling.
26468         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
26469         do_deref argument to ifn_va_arg.
26470         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26471         ifn_va_arg.
26473 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26475         PR target/65955
26476         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26477         REG before taking its REGNO.
26479 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26481         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26482         rsp->sign_bit_copies and rsp->nonzero_bits into ...
26483         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
26484         present to get more accurate information about the number of sign bit
26485         copies and non zero bits.
26487 2015-05-12  Richard Biener  <rguenther@suse.de>
26489         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26490         do not allow unrolling.
26492 2015-05-11  Richard Henderson  <rth@redhat.com>
26494         * config/i386/i386-modes.def (CCP): New.
26495         * config/i386/i386.c (put_condition_code): Handle it.
26496         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26498 2015-05-11  Richard Henderson  <rth@redhat.com>
26500         * target.def (md_asm_clobbers): Replace with...
26501         (md_asm_adjust): this.
26502         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26503         (TARGET_MD_ASM_ADJUST): New.
26504         * tm.texi: Rebuild.
26505         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26506         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26507         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26509         * cfgexpand.c (check_operand_nalternatives): Accept vector of
26510         constraints instead of lists of outputs and inputs.
26511         (expand_asm_stmt): Save and restore input_location around the
26512         body of the function.  Move asm data into vectors instead of
26513         building tree lists.  Generate cleanup sequences as needed,
26514         rather than waiting til the end.  Use new md_asm_adjust hook.
26516         * config/vxworks.c: Include vec.h before target.h.
26517         * gimple.c: Likewise.
26518         * incpath.c: Likewise.
26519         * mode-switching.c: Likewise.
26521         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26522         (cris_md_asm_adjust): this.
26523         (TARGET_MD_ASM_CLOBBERS): Remove.
26524         (TARGET_MD_ASM_ADJUST): New.
26525         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26526         (ix86_md_asm_adjust): this.
26527         (TARGET_MD_ASM_CLOBBERS): Remove.
26528         (TARGET_MD_ASM_ADJUST): New.
26529         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26530         (mn10300_md_asm_adjust): this.
26531         (TARGET_MD_ASM_CLOBBERS): Remove.
26532         (TARGET_MD_ASM_ADJUST): New.
26533         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26534         (rs6000_md_asm_adjust): this.
26535         (TARGET_MD_ASM_CLOBBERS): Remove.
26536         (TARGET_MD_ASM_ADJUST): New.
26537         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26538         (visium_md_asm_adjust): this.
26539         (TARGET_MD_ASM_CLOBBERS): Remove.
26540         (TARGET_MD_ASM_ADJUST): New.
26542 2015-05-11  Richard Henderson  <rth@redhat.com>
26544         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26545         if noutputs is zero.
26546         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26548         * cfgexpand.c (expand_asm_operands): Merge into...
26549         (expand_asm_stmt): ... here.
26551         * cfgexpand.c (expand_asm_operands): Don't call
26552         resolve_asm_operand_names.
26553         * stmt.c (resolve_asm_operand_names): Clarify block comment.
26555 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
26557         * dwarf2out.c (gen_member_die): Sanity check that we access
26558         TYPE_MAIN_VARIANT for TYPE_METHODS.
26559         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26560         checking TYPE_METHODS.
26561         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26562         if non-null.
26563         (build_distinct_type_copy): Clear TYPE_METHODS.
26564         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26565         (verify_type): Allow TYPE_METHODS to be error_mark_node.
26566         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26568 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
26570         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26571         (emit_pattern_before_setloc): Likewise.
26573 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26575         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26576         for define_peephole2s.
26577         (get_peephole2_pattern): New function.
26578         (main): Use it.  Call validate_pattern.
26580 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
26582         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26583         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26584         (Last callee saved reg is different for AVR_TINY architecture)
26586 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26588         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26589         when looking for memory references.
26591 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26593         PR target/65753
26594         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26595         via function pointers.
26597 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26599         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26600         indirect call by forcing address into a pseudo with -fno-plt.
26601         * common.opt (flag_plt): New option.
26602         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26603         ([-fno-plt]): Document.
26605 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
26607         PR bootstrap/66105
26608         * config/rs6000/option-defaults.h: Add space between string literal
26609         and macro name.
26611 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26613         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26614         accross ARM targets.
26616 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26618         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26619         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26621 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26623         PR rtl-optimization/66076
26624         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26625         Don't grow the heap array if it is already big enough from a
26626         previous iteration.
26628 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26630         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26631         (is_called_in_ARM_mode): Remove.
26632         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26633         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26634         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26635          arm_declare_function_name.
26637 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26639         * config/arm/arm.c (arm_option_override): Reoganized and split into :
26640         (arm_option_params_internal); New function.
26641         (arm_option_check_internal): New function.
26642         (arm_option_override_internal): New function.
26643         (thumb_code, thumb1_code): Remove.
26644         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26645         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26646         (thumb_code, thumb1_code): Remove.
26647         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26649 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26651         * config/alpha/alpha.c (alpha_emit_set_const_1)
26652         (alpha_emit_set_long_const, alpha_extract_integer)
26653         (alpha_legitimate_constant_p, alpha_split_const_mov)
26654         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26655         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26656         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26657         HOST_WIDE_INT_1U.
26658         * config/alpha/predicates.md (mode_mask_operand): Do not match
26659         const_double RTX.
26660         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26661         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26662         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26663         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26664         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26666 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
26668         PR target/65780
26669         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26670         default_binds_local_p_2.
26671         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26672         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26674 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26676         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26678 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26680         Patch by Richard Biener
26681         * coverage.c (coverage_obj_init): Delay building of type variant
26682         until the type is finished.
26684 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26686         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26687         mismatch between C and C++ type; compoare correctly ARG_TYPES
26688         for non-prototypes and output correctly parameter index for METHOD_TYPE.
26689         (odr_types_equivalent_p): Fix wording of warning about attributes;
26690         it is OK to match prototype and non-prototype.
26692 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26694         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26695         TYPE_ARG_TYPES list.
26696         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26697         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26699 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26701         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26702         * tree.h (is_lang_specific): Constify.
26704 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
26706         PR tree-optimization/64454
26707         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26708         Rewrite.
26710 2015-05-08  Jason Merrill  <jason@redhat.com>
26712         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26713         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26714         config/darwin.h, config/darwin9.h, config/elfos.h,
26715         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26716         config/microblaze/microblaze.h, config/mips/mips.h,
26717         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26718         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26719         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26720         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26721         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26722         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26723         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26724         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26725         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26726         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26727         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26728         between string literal and macro name.
26730 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26732         * jump.c: Change argument types to rtx_insn *.
26733         * rtl.h: Adjust.
26735 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26737         * lra-constraints.c: Change argument type to rtx_insn *.
26739 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26741         * df-problems.c: Change argument type to rtx_insn *.
26743 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26745         * combine.c: Change argument type to rtx_insn *.
26747 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26749         * rtl.h: Adjust.
26750         * rtlanal.c: Change argument type to rtx_insn *.
26752 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26754         * sched-deps.c: Change argument types to rtx_insn *.
26755         * sched-int.h: Adjust.
26757 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26759         * dwarf2cfi.c: Change argument type to rtx_insn *.
26761 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26763         * ira.c (decrease_live_ranges_number): Changetype of local
26764         variable to rtx_insn *.
26765         * recog.c: Change argument types to rtx_insn *.
26766         * recog.h: Adjust.
26768 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26770         * reorg.c: Change argument types to rtx_insn *.
26772 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26774         * ira-color.c: Change argument types to rtx_insn *.
26775         * lra-eliminations.c: Likewise.
26776         * ira.h: Adjust.
26778 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26780         * gcse.c: Change argument types to rtx_insn *.
26782 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26784         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26786 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26788         * emit-rtl.c (emit_debug_insn_before): Change argument type to
26789         rtx_insn *.
26790         * rtl.h: Adjust.
26792 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26794         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26795         * rtl.h: Adjust.
26797 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26799         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26800         * rtl.h: Adjust.
26802 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26804         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26805         * rtl.h: Adjust.
26807 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26809         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26810         * rtl.h: Adjust.
26812 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26814         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26815         to rtx_insn *.
26816         * rtl.h: Adjust.
26818 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26820         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26821         to rtx_insn *.
26822         * rtl.h: Likewise.
26824 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26826         * except.c (can_nonlocal_goto): Change type of argument to
26827         rtx_insn *.
26828         * rtl.h: Adjust.
26830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26832         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26833         * rtl.h: Adjust.
26835 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26837         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26838         * cfgrtl.c (can_delete_label_p): Adjust.
26839         * rtl.h: likewise.
26841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26843         * reorg.c (stop_search_p): Change argument to rtx_insn *.
26845 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26847         * except.c (make_reg_eh_region_note): Change argument to
26848         rtx_insn *.
26849         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26850         * except.h: Adjust.
26852 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26854         * mode-switching.c (commit_mode_sets): Change type of local
26855         variable from rtx to rtx_insn *.
26857 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
26859         * doc/install.texi (--enable-languages): Add missing jit and lto info.
26860         Add ^ to grep command.
26861         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26862         arg to last gimple_simplify declaration.  Add missing gimple_build
26863         declaration for built-in function case with four tree args.
26865 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26866             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26868         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26869         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26870         (GNU_USER_DYNAMIC_LINKERN32): Update.
26872 2015-05-08  Richard Biener  <rguenther@suse.de>
26874         PR tree-optimization/66036
26875         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26876         Handle strided group loads.
26877         (vect_verify_datarefs_alignment): Likewise.
26878         (vect_enhance_data_refs_alignment): Likewise.
26879         (vect_analyze_group_access): Likewise.
26880         (vect_analyze_data_ref_access): Likewise.
26881         (vect_analyze_data_ref_accesses): Likewise.
26882         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26883         (vectorizable_load): Likewise.
26885 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
26887         * config/rs6000/rs6000.md: Require operand inequality in one
26888         of the peepholes.
26890 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
26891             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26893         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26894         from (set ...).
26895         * config/rx/rx.md (movdi, movdf): Likewise.
26896         Likewise for define_peephole2s.
26898 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26900         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26901         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26902         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26903         vtst_u64): Rewrite using gcc vector extensions.
26905 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26907         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26908         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26910 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26912         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26914 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26916         * config/glibc-stdint.h (OPTION_MUSL): Define.
26917         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26918         Change the definition based on OPTION_MUSL for 64 bit targets.
26919         * config/linux.h (OPTION_MUSL): Redefine.
26920         * config/alpha/linux.h (OPTION_MUSL): Redefine.
26921         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26922         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26924 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26925             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26927         * config.gcc (LIBC_MUSL): New tm_defines macro.
26928         * config/linux.h (OPTION_MUSL): Define.
26929         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26930         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26931         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26932         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26933         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26934         * config/linux.opt (mmusl): New option.
26935         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26936         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26937         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26938         * configure: Regenerate.
26940 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
26941             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26943         PR target/48904
26944         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26945         * config/i386/knetbsd-gnu64.h: New file.
26947 2015-05-08  Marek Polacek  <polacek@redhat.com>
26949         PR c/64918
26950         * doc/invoke.texi: Document -Woverride-init-side-effects.
26952 2015-05-07  Marek Polacek  <polacek@redhat.com>
26954         PR c/65179
26955         * doc/invoke.texi: Document -Wshift-negative-value.
26957 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
26959         * gcov-tool.c (do_merge): Refactore to remove int ret.
26960         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26961         !type == FUNC to type != FUNC.
26962         * reload.h (struct target_reload): Changee to type of
26963         x_spill_indirect_levels from bool to unsigned char.
26965 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
26967         * rtl.h (always_void_p): New function.
26968         * gengenrtl.c (always_void_p): Likewise.
26969         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26970         with code foo are always VOIDmode.
26971         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26972         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26973         compare-elim.c, config/aarch64/aarch64.c,
26974         config/aarch64/aarch64.md, config/alpha/alpha.c,
26975         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26976         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26977         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26978         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26979         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26980         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26981         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26982         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26983         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26984         config/ia64/vect.md, config/iq2000/iq2000.c,
26985         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26986         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26987         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26988         config/mep/mep.c, config/microblaze/microblaze.c,
26989         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26990         config/mn10300/mn10300.c, config/msp430/msp430.c,
26991         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26992         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26993         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26994         config/rs6000/altivec.md, config/rs6000/rs6000.c,
26995         config/rs6000/rs6000.md, config/rs6000/vector.md,
26996         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26997         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26998         config/sh/sh.md, config/sh/sh_treg_combine.cc,
26999         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27000         config/spu/spu.md, config/stormy16/stormy16.c,
27001         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27002         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27003         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27004         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27005         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27006         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27007         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27008         var-tracking.c: Update calls accordingly.
27010 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27012         PR middle-end/192
27013         PR middle-end/54303
27014         * varasm.c (function_mergeable_rodata_prefix): New function.
27015         (mergeable_string_section): Use it.
27016         (mergeable_constant_section): Use it.
27018 2015-05-07  Jeff Law  <law@redhat.com>
27020         PR target/39726
27021         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27022         simplifier to narrow arithmetic.
27023         * generic-match-head.c: (types_match, single_use): New functions.
27024         * gimple-match-head.c: (types_match, single_use): New functions.
27026 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27028         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27029         rtx type.
27031 2015-05-07  Richard Biener  <rguenther@suse.de>
27033         PR tree-optimization/66002
27034         * passes.def: Schedule another pass_merge_phi after ifcombine, right
27035         before phiopt.
27037 2015-05-07  Marek Polacek  <polacek@redhat.com>
27038             Martin Uecker  <uecker@eecs.berkeley.edu>
27040         * doc/invoke.texi: Document -fsanitize=bounds-strict.
27041         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27042         into SANITIZE_NONDEFAULT.
27043         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27045 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
27047         PR target/66015
27048         * config/alpha/alpha.c (alpha_override_options_after_change): New.
27049         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27050         (alpha_override_options): Move align_loops, align_jumps and
27051         align_functions handling into alpha_override_options_after_change.
27053 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
27054             Chris Jones  <chrisj@nvidia.com>
27055             Joshua Conner  <jconner@nvidia.com>
27057         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27058         linking of crtfastmath.o.
27059         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27061 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27063         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27064         (cstore<mode>4_unsigned_imm): New expander.
27065         (cstore<mode>4): Remove empty constraint strings.  Use the new
27066         expanders.
27068 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
27070         PR target/64208
27071         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27072         alternatives.
27074 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27076         * config/aarch64/geniterators.sh: Use standard BRE in sed.
27078 2015-05-06  Alan Modra  <amodra@gmail.com>
27080         PR target/66033
27081         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27082         (UNSPEC_NOP): Define.
27083         (reload_vsx_from_gpr<mode>): Add missing DONE.
27084         (reload_gpr_from_vsx<mode>): Likewise.
27085         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27086         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27088 2015-05-06  Christian Bruel  <christian.bruel@st.com>
27090         PR target/66015
27091         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27092         align_jumps, align_functions into aarch64_override_options_after_change.
27094 2015-05-06  Richard Biener  <rguenther@suse.de>
27096         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27097         vect_transform_slp_perm_load to check if we support a permutation
27098         for basic-block vectorization.
27100 2015-05-06  Nick Clifton  <nickc@redhat.com>
27102         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27103         used, even if it is not being used as a frame pointer.
27105 2015-05-05  Jason Merrill  <jason@redhat.com>
27107         * dwarf2out.c (gen_member_die): Don't emit anything for an
27108         anonymous class constructor.
27110 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
27112         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27113         that it reflects the block structure.
27114         (afdo_propagate_edge): Likewise.
27115         (afdo_calculate_branch_prob): Likewise.
27116         (afdo_annotate_cfg): Likewise.
27117         * cfgcleanup.c (equal_different_set_p): Likewise.
27118         (try_crossjump_to_edge): Likewise.
27119         * cgraph.c (cgraph_node::verify_node): Likewise.
27120         * cgraphunit.c (expand_all_functions): Likewise.
27121         * config/i386/i386.c (ix86_expand_copysign): Likewise.
27122         (exact_dependency_1): Likewise.
27123         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27124         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27125         * gensupport.c (process_define_subst): Likewise.
27126         * lto-wrapper.c (merge_and_complain): Likewise.
27127         * tree-if-conv.c (if_convertible_bb_p): Likewise.
27128         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27129         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27130         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27131         * tree-vect-loop.c (vectorizable_reduction): Likewise.
27132         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27133         * tree-vect-stmts.c (vectorizable_shift): Likewise.
27134         * tree-vrp.c (vrp_finalize): Likewise.
27135         * tree.c (variably_modified_type_p): Likewise.
27137 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
27139         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27140         on darwin12 and later.
27141         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27142         file to pass -rdynamic on darwin12 and later.
27143         * config/darwin.opt (rdynamic): Add.
27145 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27147         * doc/extend.texi (C Extensions): Update menu for moved Variable
27148         Attributes and Type Attributes sections.
27150 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27152         PR target/65990
27153         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27154         if rep_8byte stringop strategy was specified for 32-bit target.
27156 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
27158         PR target/65915
27159         * config/i386/i386.md (vector convert to float spltiter): Check for
27160         xmm16+, when splitting scalar float conversion.
27161         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27163 2015-05-05  Nick Clifton  <nickc@redhat.com>
27165         * config/msp430/msp430-opts.h (enum msp430_regions): New.
27166         * config/msp430/msp430.c (msp430_override_options): Complain if
27167         -mcode-region or -mdata-region is used on a non MSP430X.
27168         (msp430_section_attr): New function.  Checks lower, upper and
27169         either attributes.
27170         (msp430_attribute_table): Add lower, upper and either.
27171         (gen_prefix): New function.  Generates a prefix for a section
27172         name.
27173         (msp430_select_section): New function - handles the choice of
27174         section for an object.  Takes into account memory region
27175         attributes and options.
27176         (msp430_function_section): Use gen_prefix.
27177         (TARGET_SECTION_TYPE_FLAGS): Define.
27178         (msp430_section_type_flags): New function.
27179         (TARGET_ASM_UNIQUE_SECTION): Define.
27180         (msp430_unique_section): New function.
27181         (msp430_output_aligned_decl_common): New function.
27182         (msp430_do_not_relax_short_jumps): New function.
27183         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27184         Define.
27185         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27186         * config/msp430/msp430-protos.h
27187         (msp430_do_not_relax_short_jumps): New prototype.
27188         (msp430_output_aligned_decl_common): New prototype.
27189         * config/msp430/msp430.md (length): New attribute.
27190         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27191         then use a long code sequence for short jumps.
27192         * config/msp430/msp430.opt (mcode-region): New.
27193         (mdata-region): New.
27194         * doc/invoke.texi: Document new options.
27195         * doc/extend.texi: Document new attributes.
27197 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27199         * config/aarch64-protos.h (struct cpu_branch_cost): New.
27200         (tune_params): Add field branch_costs.
27201         (aarch64_branch_cost): Declare.
27202         * config/aarch64.c (generic_branch_cost): New.
27203         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27204         (cortexa53_tunings): Likewise.
27205         (cortexa57_tunings): Likewise.
27206         (thunderx_tunings): Likewise.
27207         (xgene1_tunings): Likewise.
27208         (aarch64_branch_cost): Define.
27209         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27211 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27213         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27214         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27215         * config/i386/i386.md: Ditto.
27216         * config/i386/winnt.c: Ditto.
27218 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27220         * doc/extend.texi (__atomic Builtins): Move implementation details
27221         to the end of the description, rewrite opening paragraphs, state
27222         difference with __sync builtins, state C11/C++11 assumptions,
27223         weaken itemized descriptions, add explanation of memory model
27224         behaviour, expand description of compare-exchange, simplify text.
27226 2015-05-05  Renlin Li  <renlin.li@arm.com>
27228         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27230 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
27232         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27233         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27234         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27235         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27236         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27237         * configure: Regenerate.
27238         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27239         * doc/install.texi (aarch64*-*-*): Document new
27240         --enable-fix-cortex-a53-843419 option.
27241         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27242         and -mno-fix-cortex-a53-843419 options.
27244 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27246         PR target/65871
27247         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27249 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
27251         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27252         fix overactive TYPE_MIN_VALUE check and add FIXME for type
27253         compatibility problems.
27255 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27257         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27258         constraints.
27259         (cbranchsi4_reg): New.
27260         * config/microblaze/microblaze.c
27261         (microblaze_expand_conditional_branch_reg): New.
27262         * config/microblaze/microblaze-protos.h
27263         (microblaze_expand_conditional_branch_reg): New prototype.
27265 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27267         * config/microblaze/microblaze.md (peephole2): New.
27269 2015-05-04  Jeff Law  <law@redhat.com>
27271         Revert:
27272         2015-05-04  Jeff Law  <law@redhat.com>
27274         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27275         simplifier to narrow arithmetic.
27276         * generic-match-head.c: (types_match, single_use): New functions.
27277         * gimple-match-head.c: (types_match, single_use): New functions.
27279 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27281         PR target/65987
27282         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27283         (split_branches): Likewise.
27285 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
27287         * common.opt (fdelete-null-pointer-checks): Init to -1.
27288         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27289         override flag_delete_null_pointer_checks default.
27290         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27291         behavior re address zero.  Better document target-specific behavior.
27292         (-fisolate-errneous-paths-dereference): Mention relationship to
27293         -fdelete-null-pointer-checks.
27295 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
27297         PR tree-optimization/65984
27298         * ubsan.c: Include tree-cfg.h.
27299         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27300         stmt_could_throw_p test, rename can_throw variable to ends_bb.
27302 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27304         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27305         to CONST_DOUBLE_P predicate.
27306         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27307         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27308         allow only operands that satisfy standard_sse_constant_p predicate.
27309         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27310         to CONST_DOUBLE_P predicate.
27312 2015-05-04  Jeff Law  <law@redhat.com>
27314         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27315         simplifier to narrow arithmetic.
27316         * generic-match-head.c: (types_match, single_use): New functions.
27317         * gimple-match-head.c: (types_match, single_use): New functions.
27319 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
27321         * config/arm/arm.c: Restore bootstrap.
27323 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27325         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27326         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27327         as CONST_WIDE_INT, not CONST_DOUBLE.
27328         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27329         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27330         (ix86_find_base_term): Do not check for CONST_DOUBLE.
27331         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27332         (ix86_build_signbit_mask): Rewrite using wide ints.
27333         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27334         (ix86_rtx_costs): Handle CONST_WIDE_INT.
27335         (find_constant): Ditto.
27336         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27337         using gen_int_mode.
27338         * config/i386/predicates.md (x86_64_immediate_operand)
27339         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27340         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27341         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27342         (const0_operand): Also match const_wide_int.
27343         (constm1_operand): Ditto.
27344         (const1_operand): Ditto.
27346 2015-05-04  Richard Biener  <rguenther@suse.de>
27348         PR tree-optimization/65965
27349         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27350         store groups at gaps.
27352 2015-05-04  Richard Biener  <rguenther@suse.de>
27354         PR tree-optimization/65935
27355         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27356         then make sure to apply that swapping to the IL.
27358 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
27360         * Makefile.in (PATCHLEVEL_c): New variable.
27361         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27362         expand the same way as if DEVPHASE_c was non-empty.
27364 2015-05-04  Kai Tietz  <ktietz@redhat.com>
27366         PR target/65559
27367         * lto-wrapper.c (run_gcc): Open filename
27368         in binary-mode.
27370 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
27372         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
27373         sections up in file, to immediately after the Function Attributes
27374         section.
27376 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
27378         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27380 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27382         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27383         (insert_partition_copy_on_edge): Adjust.
27384         (insert_rtx_to_part_on_edge): Likewise.
27385         (insert_part_to_rtx_on_edge): Likewise.
27387 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27389         * function.c (set_return_jump_label): Change type of argument to
27390         rtx_insn *.
27391         * function.h (set_return_jump_label): Adjust.
27393 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27395         * reload.h (struct reg_equivs_t): Change type of init to
27396         rtx_insn *.
27397         * ira.c (fix_reg_equiv_init): Adjust.
27398         * reload1.c (eliminate_regs_1): Likewise.
27399         (init_eliminable_invariants): Likewise.
27401 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27403         * cselib.c (fp_setter_insn): Take a rtx_insn *.
27404         * cselib.h (fp_setter_insn): Adjust.
27406 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27408         * recog.c (struct validate_replace_src_data): Change type of
27409         insn field to rtx_insn *.
27410         (validate_replace_src_group): Change type of argument to rtx_insn *.
27411         * recog.h (validate_replace_src_group): Adjust.
27413 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27415         * haifa-sched.c: Change the type of some variables to rtx_insn *.
27416         * sched-deps.c: Likewise.
27417         * sched-int.h: Likewise.
27418         * sched-rgn.c: Likewise.
27419         * sel-sched.c: Likewise.
27421 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27423         to rtx_insn *.
27424         * config/i386/i386.c: Change the type of some arguments to
27425         rtx_insn *.
27426         * config/arm/arm.c: Likewise.
27428 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27430         * lra-constraints.c: Change type of some arguments to rtx_insn *.
27432 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27434         * regcprop.c (kill_autoinc_value): Change type of argument to
27435         rtx_insn *.
27437 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27439         * genrecog.c (print_subroutine): Adjust.
27440         * recog.c (get_bool_attr_mask_uncached): Likewise.
27441         * recog.h (struct recog_data_d): Change the type of insn to
27442         rtx_insn *.
27444 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27446         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27448 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27450         * df-problems.c (df_set_note): Change type of argument to
27451         rtx_insn *.
27453 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27455         * builtins.c (expand_builtin_trap): Change type of local
27456         variable to rtx_insn *.
27457         (add_sched_insns_for_speculation): Likewise.
27458         (ix86_emit_save_regs): Likewise.
27459         (get_scratch_register_on_entry): Likewise.
27460         (ix86_emit_restore_reg_using_pop): Likewise.
27461         (ix86_emit_leave): Likewise.
27462         (ix86_emit_restore_regs_using_mov): Likewise.
27463         (ix86_expand_epilogue): Likewise.
27464         Likewise.
27465         (rl78_alloc_physical_registers_umul): Likewise.
27466         * cselib.c (discard_useless_locs): Likewise.
27467         (cselib_invalidate_regno): Likewise.
27468         (cselib_invalidate_mem): Likewise.
27469         * function.c (expand_function_start): Likewise.
27470         (emit_use_return_register_into_block): Likewise.
27471         * gcse.c: Likewise.
27472         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27473         * ifcvt.c (noce_get_alt_condition): Likewise.
27474         * loop-doloop.c (doloop_condition_get): Likewise.
27475         * lra-constraints.c (inherit_in_ebb): Likewise.
27476         * modulo-sched.c (sms_schedule_by_order): Likewise.
27477         * recog.c (next_insn_tests_no_inequality): Likewise.
27478         * reorg.c (emit_delay_sequence): Likewise.
27479         (update_reg_dead_notes): Likewise.
27480         (fix_reg_dead_note): Likewise.
27481         (fill_slots_from_thread): Likewise.
27482         (delete_computation): Likewise.
27484 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
27486         * doc/extend.texi (Variable Attributes): Add menu and proper
27487         @nodes to subsections.  Move Microsoft Windows attributes to
27488         their own subsection.
27489         (Type Attributes): Reorganize introduction to remove duplicate
27490         list of attributes.  Add menu and proper @nodes to subsections.
27491         Alphabetize the main table of common attributes.
27493 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27495         * match.pd: New simplification patterns.
27496         (x + (x & 1))  -> ((x + 1) & ~1)
27497         (x & ~(x & y)) -> ((x & ~y))
27498         (x | ~(x | y)) -> ((x | ~y))
27500 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27502         * target.def (attribute_table): Mention that struct attribute_spec
27503         is defined in tree-core.h rather than tree.h
27504         * doc/tm.texi: Regenerate.
27506 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
27508         * genrecog.c (test): Rename to rtx_test.  Update rest of file
27509         accordingly.
27511 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
27513         PR translation/65959
27514         * params.h (DEFPARAM): Rename msgid to nocmsgid.
27516 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27518         * config/aarch64/aarch64-protos.h (tune_params):
27519         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27520         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27521         Return value depending on target.
27522         (generic_tunings): Initialize new target settings.
27523         (cortexa53_tunings): Likewise.
27524         (cortexa57_tunings): Likewise.
27525         (thunderx_tunings): Likewise.
27526         (xgene1_tunings): Likewise.
27528 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27530         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27531         Make Cortex-A53 shift costs more accurate.
27533 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27535         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27536         UNSIGNED_FLOAT.
27538 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27540         * config/aarch64/aarch64.c (aarch64_rtx_costs):
27541         Calculate cost of op0 and op1 in PLUS and MINUS cases.
27543 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27545         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27546         Add cost of op0 in the compare-with-fpzero case.
27548 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
27550         * builtins.c (fold_builtin_1): Remove spurious second
27551         semicolon.
27552         * cgraph.h (symtab_node::get_availability): Likewise.
27553         * opts.c (common_handle_option): Remove spurious second semicolon.
27554         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27555         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27557 2015-04-30  Caroline Tice  <cmtice@google.com>
27559         PR gcov-profile/65929
27560         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27561         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27562         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27563         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27564         * doc/tm.texi: Regenerate.
27565         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
27566         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27567         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
27568         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27570 2015-04-30  Marek Polacek  <polacek@redhat.com>
27572         * varasm.c (handle_cache_entry): Fix logic.
27574 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27576         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27577         (*extrsi5_insn_uxtw_alt): Likewise.
27578         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27579         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27580         operations.
27582 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27584         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27585         fabd in ABS case.
27587 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27589         * config/aarch64/aarch64.md
27590         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27591         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27592         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27593         appropriately.  Handle alternative EON form.
27595 2015-04-30  Renlin Li  <renlin.li@arm.com>
27597         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27598         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27600 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27602         PR ipa/65873
27603         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27604         -fstrict-aliasing boundaries.
27606 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27608         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27609         and [SU]MNEGL patterns.
27611 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27613         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27614         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27615         combined arithmetic-shift ops.  Properly handle all shift and extend
27616         operations that can occur in combination with PLUS/MINUS.
27617         Rename maybe_fma to compound_p.
27618         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27619         arithmetic and shift operations.
27621 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27623         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27624         rather than arith_shift cost when costing ADD/MINUS of an
27625         extended value.
27627 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27629         PR lto/65948
27630         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27631         to itself.
27633 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
27635         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27636         are for the same position.
27638 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
27640         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
27641         vectorize_loops.
27642         (vectorize_loops): Use it.
27644 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27646         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27647         for aggregate types.
27648         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27649         type to be non_ODR.
27650         * tree.c (need_assembler_name_p): Compute mangled name for
27651         non-fundamental types and integer types.
27653 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
27655         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27656         manual swaps.
27657         * expr.c (expand_expr_real_2): Likewise.
27659 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27661         * tree.c (build_common_builtin_nodes): Do not build
27662         __builtin_alloca_with_align as equivalent of library alloca.
27664 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27666         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27667         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27668         bugus variants.
27669         * tree.c: Include print-tree.h and ipa-utils.h
27670         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27671         (free_lang_data_in_cgraph): Call verify_type.
27672         (verify_type_variant): New function.
27673         (verify_type): New function.
27674         * tree.h (verify_type): Declare.
27676 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
27678         * config/mips/mips-cpus.def: (mips4): Change default processor
27679         from PROCESSOR_R8000 to PROCESSOR_R10000.
27681 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27683         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27684         la/jalr instead of jal.
27686 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
27688         PR target/65871
27689         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27690         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27691         (setcc+movzbl peephole2): Check also clobbered reg.
27692         (setcc+andl peephole2): Ditto.
27694 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
27696         PR libgomp/65099
27697         * config/nvptx/mkoffload.c (target_ilp32): New variable.
27698         (main): Set it depending on "-foffload-abi=[...]".
27699         (compile_native, main): Use it to pass "-m32" or "-m64" to the
27700         compiler.
27702 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27704         PR target/65770
27705         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27706         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27707         Flip lane index back at assembly time for bigendian.
27709 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
27711         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27712         * gimplify.c (gimplify_omp_workshare): Use it.
27714 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27716         * Makefile.in (build/genrecog.o): Depend on inchash.h.
27717         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27718         build/inchash.o
27719         * genrecog.c: Rewrite most of the code except for the third page.
27721 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27723         * inchash.h, inchash.c: Include bconfig.h for build objects.
27724         * Makefile.in (build/inchash.o): New rule.
27726 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
27728         PR target/65924
27729         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27730         number in type attribute expression.
27732 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27734         * loop-iv.c (canon_condition): Generalize to all types of integer
27735         constant.
27737 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
27739         * gimple-walk.c: Prune duplicate or unneeded includes.
27740         (walk_gimple_asm): Only call parse_input_constraint or
27741         parse_output_constraint if their findings are used.
27742         Honour parse_input_constraint and parse_output_constraint
27743         result.
27745 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27747         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27749 2015-04-29  Tom de Vries  <tom@codesourcery.com>
27751         PR tree-optimization/65893
27752         * passes.def (pass_all_optimizations): Move pass_stdarg to after
27753         pass_dce.
27755 2015-04-29  Richard Biener  <rguenther@suse.de>
27757         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27758         compute GROUP_SIZE for basic-block SLP.
27759         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27760         take into account gaps.
27761         (vect_get_mask_element): Properly reject references to previous
27762         vectors.
27763         (vect_transform_slp_perm_load): Likewise.
27765 2015-04-29  Christian Bruel  <christian.bruel@st.com>
27767         PR target/64835
27768         * config/i386/i386.c (ix86_default_align): New function.
27769         (ix86_override_options_after_change): Call ix86_default_align.
27770         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27771         (ix86_override_options_after_change): New function.
27773 2015-04-28  Jeff Law  <law@redhat.com>
27775         * tree-ssa-dom.c (record_equality); Fix comment typos.
27777 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27779         PR tree-optimization/65887
27780         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27782 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
27784         * doc/extend.texi (Declaring Attributes of Functions): Split into
27785         subsections by target.  Alphabetize the table of common attributes.
27786         Rewrite some of the introductory text to reflect the new structure.
27787         Update some cross-references to point to the new subsections.
27788         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
27789         duplicate copies in the discussion of function, label, and type
27790         attributes.
27792 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
27794         PR bootstrap/65910
27795         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27797 2015-04-28  Jason Merrill  <jason@redhat.com>
27799         PR c++/65734
27800         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27801         (finalize_type_size): Respect TYPE_USER_ALIGN.
27802         (layout_type) [ARRAY_TYPE]: Likewise.
27804 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
27806         * config/arm/arm.md (*arm_movt): Fix type attribute.
27807         (*cmpsi_shiftsi): Likewise.
27808         (*cmpsi_shiftsi_swp): Likewise.
27809         (*movsicc_insn): Likewise.
27810         (*cond_move): Likewise.
27811         (*if_plus_move): Likewise.
27812         (*if_move_plus): Likewise.
27813         (*if_arith_move): Likewise.
27814         (*if_move_arith): Likewise.
27815         (*if_shift_move): Likewise.
27816         (*if_move_shift): Likewise.
27817         (*arm_movtas_ze): Likewise.
27818         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27819         redundancy and type attribute.
27820         (*thumb2_movsi_insn): Fix type attribute.
27821         (*thumb2_addsi_short): Likewise.
27822         (thumb2_addsi3_compare0): Likewise.
27823         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27824         attributes accordingly.
27826 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
27828         PR other/65911
27829         * function.c (pad_to_arg_alignment): Add parentheses.
27831 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
27833         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27834         libgcc/config/frv/elf-lib.h.
27836 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27838         * tree-call-cdce.c: Fix example in header comment.
27840 2015-04-28  Richard Biener  <rguenther@suse.de>
27842         PR tree-optimization/62283
27843         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27844         fails fatally and we are vectorizing a basic-block simply
27845         cause the child to be constructed piecewise.
27846         (vect_analyze_slp_cost_1): Adjust.
27847         (vect_detect_hybrid_slp_stmts): Likewise.
27848         (vect_bb_slp_scalar_cost): Likewise.
27849         (vect_get_constant_vectors): For piecewise constructed
27850         constants place them after the last def.
27851         (vect_get_slp_defs): Adjust.
27852         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27853         externals for basic-block vectorization.
27855 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27857         PR target/63503
27858         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27859         aarch64-*-*.
27860         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27861         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27862         (AARCH64_TUNE_FMA_STEERING): Likewise.
27863         * config/aarch64/aarch64-cores.def: Set
27864         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27865         FMUL/FMADD instructions.
27866         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27867         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
27868         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27869         * config/aarch64/cortex-a57-fma-steering.h: New file.
27870         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27872 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
27874         * gensupport.c (std_preds): Add missing codes to address_operand entry.
27876 2015-04-28  Richard Biener  <rguenther@suse.de>
27878         PR tree-optimization/65851
27879         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27880         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
27881         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
27882         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27883         (ccp_visit_phi_node): Adjust.
27884         (evaluate_stmt): For simplifications to SSA names return its
27885         lattice value if that isn't VARYING.  Return immediately when
27886         simplified to a constant.
27887         (visit_assignment): Adjust.
27888         (ccp_visit_stmt): Likewise.
27890 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27892         PR tree-optimization/65818
27893         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27894         evaluated.
27896 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27898         * calls.c (save_fixed_argument_area): Don't check
27899         ARGS_GROW_DOWNWARD with the preprocessor.
27900         (restore_fixed_argument_area): Likewise.
27901         (mem_overlaps_already_clobbered_arg_p): Likewise.
27902         (check_sibcall_argument_overlap): Likewise.
27903         (expand_call): Likewise.
27904         (emit_library_call_value_1): Likewise.
27905         (store_one_arg): Likewise.
27906         * function.c (assign_parms): Likewise.
27907         (locate_and_pad_parm): Likewise.
27908         (pad_to_arg_alignment): Likewise.
27909         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27911 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27913         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27914         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27915         * calls.c (save_fixed_argument_area): Don't chekc if
27916         ARGS_GROW_DOWNWARD is defined.
27917         (restore_fixed_argument_area): Likewise.
27918         (mem_overlaps_already_clobbered_arg_p): Likewise.
27919         (check_sibcall_argument_overlap): Likewise.
27920         (expand_call): Likewise.
27921         (emit_library_call_value_1): Likewise.
27922         (store_one_arg): Likewise.
27923         * function.c (assign_parms): Likewise.
27924         (locate_and_pad_parm): Likewise.
27925         (pad_to_arg_alignment): Likewise.
27926         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27928 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27930         * defaults.h (gen_epilogue): New function.
27931         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27932         defined.
27933         * cfgrtl.c (cfg_layout_finalize): Likewise.
27934         * df-scan.c: Likewise.
27935         * function.c (thread_prologue_and_epilogue_insns): Likewise.
27936         (reposition_prologue_and_epilogue_notes): Likewise.
27937         * reorg.c (find_end_label): Likewise.
27938         * toplev.c: Likewise.
27940 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27942         * bb-reorder.c (HAVE_return): Don't check if its undefined.
27943         * defaults.h (gen_simple_return): New function.
27944         (gen_simple_return): Likewise.
27945         (HAVE_return): Add default definition to false.
27946         (HAVE_simple_return): Likewise.
27947         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27948         HAVE_return and HAVE_simple_return are defined.
27949         * function.c (gen_return_pattern): Likewise.
27950         (convert_jumps_to_returns): Likewise.
27951         (thread_prologue_and_epilogue_insns): Likewise.
27952         * reorg.c (find_end_label): Likewise.
27953         (dbr_schedule): Likewise.
27954         * shrink-wrap.c: Likewise.
27955         * shrink-wrap.h: Likewise.
27957 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27959         * defaults.h (EPILOGUE_USES): Add default definition of false.
27960         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27961         * resource.c (init_resource_info): Likewise.
27963 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27965         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27966         to false.
27967         * dwarf2out.c (field_byte_offset): REmove check if
27968         PCC_BITFIELD_TYPE_MATTERS is defined.
27969         * stor-layout.c (layout_decl): Likewise.
27970         (update_alignment_for_field): Likewise.
27971         (place_field): Likewise.
27973 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27975         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27976         true.
27977         * regrename.c (check_new_reg_p): Remove check if
27978         HARD_REGNO_RENAME_OK is defined.
27979         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27981 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27983         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27984         * cse.c (fold_rtx): Likewise.
27985         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27986         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27987         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27988         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27989         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27990         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27991         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27992         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27993         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27994         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27995         * Likewise.
27996         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27997         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27998         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27999         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28000         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28001         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28002         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28003         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28004         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28005         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28006         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28007         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28008         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28009         * doc/tm.texi: Regenerate.
28010         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28011         either true or false.
28013 2015-04-27  Jeff Law  <law@redhat.com>
28015         PR tree-optimization/65217
28016         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28017         of them has a single use, make sure it is the LHS of the implied
28018         copy.
28020 2015-04-28  Alan Modra  <amodra@gmail.com>
28022         PR target/65810
28023         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28024         (offsettable_ok_by_alignment): Use minimum of decl and toc
28025         pointer alignment.  Replace dead code with assertion.
28026         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
28027         case if size exceeds toc pointer alignment.
28028         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28029         (rs6000_emit_move): Likewise.
28030         * configure.ac: Add linker toc pointer alignment check.
28031         * configure: Regenerate.
28032         * config.in: Regenerate.
28034 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
28036         * config.gcc: Add h8300-*-linux.
28037         * config/h8300/linux.h: New.
28038         * config/h8300/t-linux: New.
28039         * config/h8300/h8300.c (h8300_option_override): Normal mode
28040         is not supported for h8300-*-linux.
28041         (h8300_file_start): Target priority change.
28042         (get_shift_alg): Likewise.
28043         (h8300_shift_need_scratch_p): Likewise.
28044         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28045         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28047 2015-04-27  Caroline Tice  <cmtice@google.com>
28049         * final.c (final_scan_insn):  Output cold_function_name as function
28050         type.
28051         * varasm.c (cold_function_name):  Make global.
28052         (assemble_start_function):  Re-set cold_function_name.
28053         (assemble_end_function): Output cold partition size.
28054         * varasm.h (cold_function_name):  Declare global.
28056 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
28058         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28059         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28060         constraint.
28061         (*movxi_internal_avx512f): Ditto.
28062         (define_split): Check for xmm16+, when splitting scalar float_extend.
28063         (*extendsfdf2_mixed): Use "v" constraint.
28064         (define_split): Check for xmm16+, when splitting scalar float_truncate.
28065         (*truncdfsf_fast_sse): Use "v" constraint.
28066         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28067         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28068         (define_peephole2): Check for xmm16+, when converting scalar
28069         float_truncate.
28070         (define_peephole2): Check for xmm16+, when converting scalar
28071         float_extend.
28072         (*fop_<mode>_comm_mixed): Use "v" constraint.
28073         (*fop_<mode>_comm_sse): Ditto.
28074         (*fop_<mode>_1_mixed): Ditto.
28075         (*sqrt<mode>2_sse): Ditto.
28076         (*ieee_s<ieee_maxmin><mode>3): Ditto.
28078 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28080         * combine.c (simplify_if_then_else): Use std::swap instead
28081         of manually swapping.
28082         (known_cond): Likewise.
28083         (simplify_comparison): Likewise.
28085 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
28087         PR target/64579
28088         * config/rs6000/htm.md: Remove all define_expands.
28089         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28090         UNSPECV_HTM_TABORTWCI): Remove.
28091         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28092         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28093         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28094         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28095         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28096         tabortwci_internal): Remove define_insns.
28097         (tabort<wd>c, tabort<wd>ci): New define_insns.
28098         (tabort): Use gpc_reg_operand.
28099         (tcheck): Remove operand.
28100         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28101         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28102         expected value.
28103         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28104         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
28105         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28106         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28107         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28108         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28109         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28110         (tcheck): Remove builtin argument.
28111         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28112         not TARGET_64BIT.
28113         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
28114         tabortdc and tabortdci builtins when not in 64-bit mode.
28115         Modify code to handle the loss of the HTM define_expands.
28116         Emit code to copy the CR register to TARGET.
28117         (htm_init_builtins): Modify code to handle the loss of the HTM
28118         define_expands.
28119         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28120         (RS6000_BTC_64BIT): Likewise.
28121         (RS6000_BTC_CR): New macro.
28122         * doc/extend.texi: Update documentation for htm builtins.
28124 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28126         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28127         of manually swapping.
28128         (simplify_associative_operation): Likewise.
28129         (simplify_binary_operation): Likewise.
28130         (simplify_plus_minus): Likewise.
28131         (simplify_relational_operation): Likewise.
28132         (simplify_ternary_operation): Likewise.
28134 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28136         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28137         (xs_hi_nonmemory_operand): Remove error.
28138         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28139         general_operand rather than xs_hi_general_operand.
28141 2015-04-27  Richard Biener  <rguenther@suse.de>
28143         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28144         (record_equivalences_from_stmt): Valueize rhs.
28145         (record_equality): Canonicalize x and y order via
28146         tree_swap_operands_p.  Do not swap operands for same loop depth.
28148 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
28150         PR target/65296
28151         PR target/65895
28152         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28153         Add hint how to use own spec file.
28155 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
28157         PR tree-optimization/65875
28158         * tree-vrp.c (update_value_range): If in is_new case setting
28159         old_vr to VR_VARYING, also set new_vr to it.  Remove
28160         old_vr->type == VR_VARYING test.
28161         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28162         SSA_PROP_INTERESTING if update_value_range returned true,
28163         but new range is VR_VARYING.
28165 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28167         * combine.c (sign_extend_short_imm): New.
28168         (set_nonzero_bits_and_sign_copies): Use above new function for sign
28169         extension of src short immediate.
28170         (reg_nonzero_bits_for_combine): Likewise for tem.
28172 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28174         * stor-layout.c (self_referential_component_ref_p): New predicate.
28175         (copy_self_referential_tree_r): Use it.
28176         (self_referential_size): Punt for simple operations directly involving
28177         self-referential component references.
28178         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28180 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28182         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28184 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28186         * vec.h (vec): Make splice arguments const.  Update definitions
28187         accordingly.
28189 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
28191         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28192         alternatives.
28194 2015-04-26  Tom de Vries  <tom@codesourcery.com>
28196         PR tree-optimization/65826
28197         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28199 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
28201         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28202         (*madd3<mode>): Ditto.
28203         (*msub4<mode>): Ditto.
28204         (*msub3<mode>): Ditto.
28205         (*nmadd4<mode>): Ditto.
28206         (*nmadd3<mode>): Ditto.
28207         (*nmadd4<mode>_fastmath): Ditto.
28208         (*nmadd3<mode>_fastmath): Ditto.
28209         (*nmsub4<mode>): Ditto.
28210         (*nmsub3<mode>): Ditto.
28211         (*nmsub4<mode>_fastmath): Ditto.
28212         (*nmsub3<mode>_fastmath): Ditto.
28214 2015-04-24  Jason Merrill  <jason@redhat.com>
28216         PR c++/50800
28217         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28218         down when building TYPE_CANONICAL.
28219         (build_pointer_type_for_mode): Likewise.
28221 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
28223         * genrecog.c (validate_pattern): Check matching constraint refers
28224         to a lower numbered operand.
28226 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28228         PR target/65849
28229         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28230         save to independent variables use the Save attribute.  This will
28231         allow these options to be modified with the #pragma/attribute
28232         target support.
28233         (-mallow-movmisalign): Likewise.
28234         (-mallow-df-permute): Likewise.
28235         (-msched-groups): Likewise.
28236         (-malways-hint): Likewise.
28237         (-malign-branch-targets): Likewise.
28238         (-mvectorize-builtins): Likewise.
28239         (-msave-toc-indirect): Likewise.
28241         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28242         can be set via the #pragma/attribute target support.
28243         (rs6000_opt_vars): Likewise.
28244         (rs6000_inner_target_options): If VSX was set, also set
28245         -mno-avoid-indexed-addresses.
28247 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28249         * config/arm/iterators.md (shiftable_ops): Rename to...
28250         (SHIFTABLE_OPS): ... This.  Update use in comments.
28251         (ior_xor): Rename to...
28252         (IOR_XOR): ... This.
28253         (vqh_ops): Rename to...
28254         (VQH_OPS): ... This.
28255         (vqhs_ops): Rename to...
28256         (VQHS_OPS): ... This.
28257         (rshifts): Rename to...
28258         (RSHIFTS): ... This.
28259         (returns): Rename to...
28260         (RETURNS): ... This.
28261         * config/arm/arm.md: Update uses of the above.
28262         * config/arm/neon.md: Likewise.
28264 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28266         * config.host (case ${host}): Add aarch64*-*-linux case.
28267         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28268         fields to all the cores.
28269         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28270         Add MCPU_MTUNE_NATIVE_SPECS.
28271         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28272         field to all extensions.
28273         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28274         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28275         Adjust definition of AARCH64_OPT_EXTENSION.
28276         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28277         (MCPU_MTUNE_NATIVE_SPECS): Define.
28278         * config/aarch64/driver-aarch64.c: New file.
28279         * config/aarch64/x-arch64: New file.
28280         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28281         -mtune and -march.
28283 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28284             Wei Mi  <wmi@google.com>
28286         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28287         * config/i386/i386.c (extract_base_offset_in_addr): New function.
28288         (ix86_operands_ok_for_move_multiple): Ditto.
28289         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28290         (movlpd/movhpd to movupd peephole2): Ditto.
28292 2015-04-24  Marek Polacek  <polacek@redhat.com>
28294         PR c/61534
28295         * input.h (from_macro_expansion_at): Define.
28297         PR c/63357
28298         * doc/invoke.texi: Update description of -Wlogical-op.
28300 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28302         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28303         ternary operator in fprintf and harmonize spacing.
28305 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28307         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28308         Mark operand1 commutative.
28310 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28312         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28313         input operands in memory.
28314         (*vec_concatv2si_sse4_1): Ditto.
28315         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28316         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28317         register_operand.
28318         (vec_extract_hi_v32hi): Ditto.
28319         (vec_extract_hi_v64hi): Ditto.
28320         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28322 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28323             Steven Bosscher <steven@gcc.gnu.org>
28325         PR rtl-optimization/34503
28326         * cprop.c (cprop_reg_p): New.
28327         (hash_scan_set): Use above function to check if register can be
28328         propagated.
28329         (find_avail_set): Return up to two sets, one whose source is a
28330         register and one whose source is a constant.  Sets are returned in an
28331         array passed as parameter rather than as a return value.
28332         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
28333         sets returned by find_avail_set, starting with the one whose source is
28334         a constant. Use cprop_reg_p to check if register can be propagated.
28335         (do_local_cprop): Use cprop_reg_p to check if register can be
28336         propagated.
28337         (implicit_set_cond_p): Likewise.
28339 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28341         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28342         (sem_function::equals): IGNORED_NODES parameter is now unused;
28343         update call of equals_private.
28344         (sem_function::equals_private): Do not call equals_wpa; skip
28345         gimple body matching if there is no body.
28346         (sem_function::init): Add logic to hash tthunk info.
28347         (sem_function::parse): Also parse thunks.
28348         * ipa-icf.h (equals_private): Update declaration.
28350 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28352         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28353         asterisk from name so this can be generated directly.
28354         (*altivec_stvx_<mode>_internal): Likewise.
28355         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28356         that this is never called during or after reload/lra.
28357         (rs6000_frame_related): Remove split_reg
28358         argument and logic that references it.
28359         (emit_frame_save): Remove last parameter from call to
28360         rs6000_frame_related.
28361         (rs6000_emit_prologue): Remove last parameter from eight calls to
28362         rs6000_frame_related.  Force generation of stvx instruction for
28363         Altivec register saves.  Remove split_reg handling, which is no
28364         longer needed.
28365         (rs6000_emit_epilogue):  Force generation of lvx instruction for
28366         Altivec register restores.
28368 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28370         * config/rs6000/rs6000.opt (mcrypto): Change option description to
28371         match category changes in ISA 2.07B.
28373 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28375         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28376         iterators.
28377         (cmp_op, cmp_type): New code attributes.
28378         (NEON_VCMP, NEON_VACMP): New int iterators.
28379         (cmp_op_unsp): New int attribute.
28380         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28381         (neon_vceq<mode>): Delete.
28382         (neon_vc<cmp_op><mode>_insn): New pattern.
28383         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28384         (neon_vcgeu<mode>): Delete.
28385         (neon_vcle<mode>): Likewise.
28386         (neon_vclt<mode>: Likewise.
28387         (neon_vcage<mode>): Likewise.
28388         (neon_vcagt<mode>): Likewise.
28389         (neon_vca<cmp_op><mode>): New define_expand.
28390         (neon_vca<cmp_op><mode>_insn): New pattern.
28391         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28393 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28395         * tree.h (attribute_value_equal): Declare.
28396         * tree.c (attribute_value_equal): Export.
28398 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28400         * ipa-icf.c (sem_item::compare_attributes): New function.
28401         (sem_item::compare_referenced_symbol_properties): Compare variable
28402         attributes.
28403         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28404         (sem_function::param_used_p): New function.
28405         (sem_function::equals_wpa): Fix attribute comparsion; match
28406         parameter type codes; do not compare paremter flags when
28407         they are not used; compare edge flags; compare indirect calls.
28408         (sem_item::update_hash_by_addr_refs): Hash reference type.
28409         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28410         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28411         reference use type.
28412         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28413         * ipa-icf.h (compare_attributes, param_used_p): Declare.
28415 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28417         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28418         cleanup.
28419         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28420         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28421         (sem_item::compare_referenced_symbol_properties): New.
28422         (sem_item::hash_referenced_symbol_properties): New.
28423         (sem_item::compare_cgraph_references): Rename to ...
28424         (sem_item::compare_symbol_references): ... this one; use
28425         compare_referenced_symbol_properties.
28426         (sem_function::equals_wpa): Do not compare
28427         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28428         DECL_IS_OPERATOR_NEW; compare pointer sizes.
28429         (sem_item::update_hash_by_addr_refs): Call
28430         hash_referenced_symbol_properties.
28431         (sem_item::update_hash_by_local_refs): Cleanup.
28432         (sem_function::merge): Do not mix up symbol properties.
28433         (sem_variable::equals_wpa): Use compare_symbol_references.
28434         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28435         (sem_item::hash_referenced_symbol_properties): New.
28436         (sem_item::compare_symbol_references): New.
28437         (sem_item::compare_cgraph_references): Remove.
28439 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
28441         PR target/26702
28442         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28443         Emit size of local.
28445 2015-04-23  Nick Clifton  <nickc@redhat.com>
28447         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28448         ATTRIBUTE_UNUSED to x parameter.
28449         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28451 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28453         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28454         TARGET_CRYPTO to TARGET_P8_VECTOR>
28455         (crypto_vpermxor_<mode>): Likewise.
28456         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28457         (BU_CRYPTO_3A): Likewise.
28458         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28459         (BU_CRYPTO_OVERLOAD_3A): New #define.
28460         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28461         (VPMSUMH): Likewise.
28462         (VPMSUMW): Likewise.
28463         (VPMSUMD): Likewise.
28464         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28465         (VPERMXOR_V4SI): Likewise.
28466         (VPERMXOR_V8HI): Likewise.
28467         (VPERMXOR_V16QI): Likewise.
28468         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28469         BU_CRYPTO_OVERLOAD_2A.
28470         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28471         BU_CRYPTO_OVERLOAD_3A.
28472         * config/rs6000/rs6000.opt (mcrypto): Change description of
28473         option.
28475 2015-04-23  Richard Biener  <rguenther@suse.de>
28477         * passes.def: Remove copy propagation passes run directly after CCP.
28478         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28479         SSA names.
28480         (ccp_visit_phi_node): Rework to handle first executable edge
28481         specially.
28483 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
28485         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28486         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28487         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28488         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28489         (thumb_legimitimize_reload_address): Remove.
28490         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28491         Remove.
28492         (thumb_legimitimize_reload_address): Remove.
28494 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28496         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28498 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28500         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28501         MAX_LDM_STM_OPS.
28502         (store_multiple): Likewise.
28504 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28506         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28507         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28508         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28509         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28510         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28511         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28512         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28513         Specify issue_rate value.
28514         (arm_issue_rate): Look up issue rate from tuning structs. Remove
28515         large switch statement.
28516         (arm_marvell_pj4_tune): New struct.
28517         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28518         struct.
28520 2015-04-23  Richard Biener  <rguenther@suse.de>
28522         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28523         (vect_find_last_store_in_slp_instance): Rename to ...
28524         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28525         (vect_analyze_slp_cost_1): Use vector_load for constant defs
28526         and vec_construct for external defs when estimating prologue cost.
28527         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28528         Compute costs here only when vectorizing loops.
28529         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28530         have been determined.
28531         (vect_schedule_slp_instance): Simplify vectorized code placement
28532         and prepare for in-BB external defs.
28533         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28534         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28535         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28536         guard.
28537         (vect_model_load_cost): Likewise.
28538         (vectorizable_store): Instead add it here.
28539         (vectorizable_load): Likewise.
28540         (vect_is_simple_use): Dump def type textually.
28542 2015-04-23  Richard Biener  <rguenther@suse.de>
28544         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28545         * cfgloop.c (verify_loop_structure): Verify the root loop node.
28546         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28547         instead of get_eh_region_from_lp_number.
28548         * loop-init.c (fix_loop_structure): If we removed a loop, reset
28549         the SCEV cache.
28551 2015-04-23  Anton Blanchard  <anton@samba.org>
28553         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28554         need for -mprofile-kernel to save LR to stack.
28556 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28558         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28559         adjustments.
28560         (insn_is_swappable_p): Return 1 for a convert from double to
28561         single precision when all of its uses are splats of BE element
28562         zero.
28564 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
28566         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28568 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28570         PR target/65456
28571         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
28572         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28573         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28574         option.
28575         (rs6000_builtin_mask_for_load): Return 0 for targets with
28576         efficient unaligned VSX accesses so that the vectorizer will use
28577         direct unaligned loads.
28578         (rs6000_builtin_support_vector_misalignment): Always return true
28579         for targets with efficient unaligned VSX accesses.
28580         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28581         stores on targets with efficient unaligned VSX accesses is almost
28582         always the same as the cost of an aligned load or store, so model
28583         it that way.
28584         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28585         unaligned vectors if we have efficient unaligned VSX accesses.
28586         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28587         undocumented option.
28589 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28591         Revert:
28592         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28594         * config.gcc (LIBC_MUSL): New tm_defines macro.
28595         * config/linux.h (OPTION_MUSL): Define.
28596         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28597         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28598         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28600         * config/linux.opt (mmusl): New option.
28601         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28602         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28604         * configure: Regenerate.
28606 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28608         * config.gcc (LIBC_MUSL): New tm_defines macro.
28609         * config/linux.h (OPTION_MUSL): Define.
28610         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28611         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28612         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28614         * config/linux.opt (mmusl): New option.
28615         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28616         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28618         * configure: Regenerate.
28620 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
28622         * doc/invoke.texi (-fsanitize-sections): Update description.
28623         * asan.c (set_sanitized_sections): Parse incoming arg.
28624         (section_sanitized_p): Support wildcards.
28626 2015-04-22  Tom de Vries  <tom@codesourcery.com>
28628         PR tree-optimization/65823
28629         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28630         equality between ap_copy and ap.
28632 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28634         PR target/47098
28635         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28637 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28639         PR target/47122
28640         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28642 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28644         PR target/55144
28645         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28646         remove already contained t-files.
28648 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28650         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28651         Remove unneeded forward declarations.
28652         (suitable_for_tail_call_opt_p): Commentary typo fix.
28654 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28656         * varasm.c (emit_bss): Remove redundant guard.
28658 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28660         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28662 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28664         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28666 2015-04-22  Hale Wang  <hale.wang@arm.com>
28667             Terry Guo  <terry.guo@arm.com>
28669         PR rtl-optimization/64818
28670         * combine.c (can_combine_p): Don't combine user-specified
28671         register if it is in an asm input.
28673 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
28675         PR ipa/65076
28676         * passes.def (early_optimizations): Add pass_dse.
28678 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28680         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28681         * reorg.c (redundant_insn): Remove ifdef
28682         INSN_REFERENCES_ARE_DELAYED.
28683         * resource.c (mark_referenced_resources): Likewise.
28685 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28687         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28688         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28689         * resource.c (mark_set_resources): Likewise.
28691 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28693         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28694         * cfgcleanup.c (flow_find_cross_jump): Likewise.
28695         (flow_find_head_matching_sequence): Likewise.
28696         (try_head_merge_bb): Likewise.
28697         * combine.c (can_combine_p): Likewise.
28698         (try_combine): Likewise.
28699         (distribute_notes): Likewise.
28700         * df-problems.c (can_move_insns_across): Likewise.
28701         * final.c (final): Likewise.
28702         * gcse.c (insert_insn_end_basic_block): Likewise.
28703         * ira.c (find_moveable_pseudos): Likewise.
28704         * reorg.c (try_merge_delay_insns): Likewise.
28705         (fill_simple_delay_slots): Likewise.
28706         (fill_slots_from_thread): Likewise.
28707         * sched-deps.c (sched_analyze_2): Likewise.
28709 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28711         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28712         PIC_OFFSET_TABLE_REGNUM.
28714 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28716         * alias.c (init_alias_target): Remove ifdef
28717         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28718         * df-scan.c (df_insn_refs_collect): Likewise.
28719         (df_get_regular_block_artificial_uses): Likewise.
28720         (df_get_eh_block_artificial_uses): Likewise.
28721         (df_get_entry_block_def_set): Likewise.
28722         (df_get_exit_block_use_set): Likewise.
28723         * emit-rtl.c (gen_rtx_REG): Likewise.
28724         * ira.c (ira_setup_eliminable_regset): Likewise.
28725         * reginfo.c (init_reg_sets_1): Likewise.
28726         * regrename.c (rename_chains): Likewise.
28727         * reload1.c (reload): Likewise.
28728         (eliminate_regs_in_insn): Likewise.
28729         * resource.c (mark_referenced_resources): Likewise.
28730         (init_resource_info): Likewise.
28732 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28734         * defaults.h (MASK_RETURN_ADDR): New definition.
28735         * except.c (expand_builtin_extract_return_addr): Remove ifdef
28736         MASK_RETURN_ADDR.
28738 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28740         * defaults.h (RETURN_ADDR_OFFSET): New definition.
28741         * except.c (expand_builtin_extract_return_addr): Remove ifdef
28742         RETURN_ADDR_OFFSET.
28743         (expand_builtin_frob_return_addr): Likewise.
28745 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28747         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28748         (try_redirect_by_replacing_jump): Likewise.
28749         (rtl_tidy_fallthru_edge): Likewise.
28750         * combine.c (insn_a_feeds_b): Likewise.
28751         (find_split_point): Likewise.
28752         (simplify_set): Likewise.
28753         * cprop.c (cprop_jump): Likewise.
28754         * cse.c (cse_extended_basic_block): Likewise.
28755         * df-problems.c (can_move_insns_across): Likewise.
28756         * function.c (emit_use_return_register_into_block): Likewise.
28757         * haifa-sched.c (sched_init): Likewise.
28758         * ira.c (find_moveable_pseudos): Likewise.
28759         * loop-invariant.c (find_invariant_insn): Likewise.
28760         * lra-constraints.c (curr_insn_transform): Likewise.
28761         * postreload.c (reload_combine_recognize_const_pattern):
28762         * Likewise.
28763         * reload.c (find_reloads): Likewise.
28764         * reorg.c (delete_scheduled_jump): Likewise.
28765         (steal_delay_list_from_target): Likewise.
28766         (steal_delay_list_from_fallthrough): Likewise.
28767         (redundant_insn): Likewise.
28768         (fill_simple_delay_slots): Likewise.
28769         (fill_slots_from_thread): Likewise.
28770         (delete_computation): Likewise.
28771         * sched-rgn.c (add_branch_dependences): Likewise.
28773 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28775         * genconfig.c (main): Always define HAVE_cc0.
28776         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28777         HAVE_cc0.
28778         * cfgcleanup.c (flow_find_cross_jump): Likewise.
28779         (flow_find_head_matching_sequence): Likewise.
28780         (try_head_merge_bb): Likewise.
28781         * cfgrtl.c (rtl_merge_blocks): Likewise.
28782         (try_redirect_by_replacing_jump): Likewise.
28783         (rtl_tidy_fallthru_edge): Likewise.
28784         * combine.c (do_SUBST_MODE): Likewise.
28785         (insn_a_feeds_b): Likewise.
28786         (combine_instructions): Likewise.
28787         (can_combine_p): Likewise.
28788         (try_combine): Likewise.
28789         (find_split_point): Likewise.
28790         (subst): Likewise.
28791         (simplify_set): Likewise.
28792         (distribute_notes): Likewise.
28793         * cprop.c (cprop_jump): Likewise.
28794         * cse.c (cse_extended_basic_block): Likewise.
28795         * df-problems.c (can_move_insns_across): Likewise.
28796         * final.c (final): Likewise.
28797         (final_scan_insn): Likewise.
28798         * function.c (emit_use_return_register_into_block): Likewise.
28799         * gcse.c (insert_insn_end_basic_block): Likewise.
28800         * haifa-sched.c (sched_init): Likewise.
28801         * ira.c (find_moveable_pseudos): Likewise.
28802         * loop-invariant.c (find_invariant_insn): Likewise.
28803         * lra-constraints.c (curr_insn_transform): Likewise.
28804         * optabs.c (prepare_cmp_insn): Likewise.
28805         * postreload.c (reload_combine_recognize_const_pattern):
28806         * Likewise.
28807         * reload.c (find_reloads): Likewise.
28808         (find_reloads_address_1): Likewise.
28809         * reorg.c (delete_scheduled_jump): Likewise.
28810         (steal_delay_list_from_target): Likewise.
28811         (steal_delay_list_from_fallthrough): Likewise.
28812         (try_merge_delay_insns): Likewise.
28813         (redundant_insn): Likewise.
28814         (fill_simple_delay_slots): Likewise.
28815         (fill_slots_from_thread): Likewise.
28816         (delete_computation): Likewise.
28817         (relax_delay_slots): Likewise.
28818         * sched-deps.c (sched_analyze_2): Likewise.
28819         * sched-rgn.c (add_branch_dependences): Likewise.
28821 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28823         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28824         that is trivially ded on non cc0 targets.
28825         (simplify_set): Likewise.
28826         (mark_used_regs_combine): Likewise.
28827         * cse.c (new_basic_block): Likewise.
28828         (fold_rtx): Likewise.
28829         (cse_insn): Likewise.
28830         (cse_extended_basic_block): Likewise.
28831         (set_live_p): Likewise.
28832         * rtlanal.c (canonicalize_condition): Likewise.
28833         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28835 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28837         * conditions.h: Define macros even if HAVE_cc0 is undefined.
28838         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28839         * final.c: Likewise.
28840         * jump.c: Likewise.
28841         * recog.c: Likewise.
28842         * recog.h: Declare functions even when HAVE_cc0 is undefined.
28843         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28845 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28847         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28848         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28849         * builtins.c (expand_builtin): Remove check if
28850         EH_RETURN_DATA_REGNO is defined.
28851         * df-scan.c (df_bb_refs_collect): Likewise.
28852         (df_get_exit_block_use_set): Likewise.
28853         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28854         * ira-lives.c (process_bb_node_lives): Likewise.
28855         * lra-lives.c (process_bb_lives): Likewise.
28857 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28859         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28860         FIRST_PSEUDO_REG): New.
28861         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28862         (ARG_POINTER_REGNUM): Define to ARGP_REG.
28863         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28864         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28865         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28866         (FIRST_INT_REG): New.
28867         (LAST_INT_REG): New.
28868         (FIRST_*_REG): Define using *_REG.
28869         (LAST_*_REG): Ditto.
28870         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28871         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28872         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28874 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28876         * expmed.c: (synth_mult): Only assume overlapping
28877         shift with previous steps in alg_sub_t_m2 case.
28879 2015-04-21  Richard Biener  <rguenther@suse.de>
28881         PR tree-optimization/65650
28882         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28883         transitions involving copies.
28884         (set_lattice_value): Adjust for copy lattice state.
28885         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28886         if that doesn't dominate the merge point.
28887         (bit_value_unop): Adjust what we treat as varying mask.
28888         (bit_value_binop): Likewise.
28889         (bit_value_assume_aligned): Likewise.
28890         (evaluate_stmt): When we simplified to a SSA name record a copy
28891         instead of dropping to varying.
28892         (visit_assignment): Simplify.
28894         * gimple-match.h (gimple_simplify): Add another callback.
28895         * gimple-fold.c (fold_stmt_1): Adjust caller.
28896         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28897         for the 2nd callback.
28898         * gimple-match-head.c (gimple_simplify): Add a callback that is
28899         used to valueize the stmt operands and use it that way.
28901 2015-04-21  Richard Biener  <rguenther@suse.de>
28903         PR tree-optimization/65788
28904         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28906 2015-04-21  Richard Biener  <rguenther@suse.de>
28908         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28909         vec_construct cost by vec_stmt_cost.
28911 2015-04-21  Richard Biener  <rguenther@suse.de>
28913         * cfghooks.h (create_basic_block): Replace with two overloads
28914         for RTL and GIMPLE.
28915         (split_block): Likewise.
28916         * cfghooks.c (split_block): Rename to ...
28917         (split_block_1): ... this.
28918         (split_block): Add two type-safe overloads for RTL and GIMPLE.
28919         (split_block_after_labels): Call split_block_1.
28920         (create_basic_block): Rename to ...
28921         (create_basic_block_1): ... this.
28922         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28923         (create_empty_bb): Call create_basic_block_1.
28924         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28925         split_block_after_labels.
28926         * omp-low.c (expand_parallel_call): Likewise.
28927         (expand_omp_target): Likewise.
28928         (simd_clone_adjust): Likewise.
28929         * tree-chkp.c (chkp_get_entry_block): Likewise.
28930         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28931         create_basic_block overload.
28932         (cgraph_node::expand_thunk): Likewise.
28933         * tree-cfg.c (make_blocks): Likewise.
28934         (handle_abnormal_edges): Likewise.
28935         * tree-inline.c (copy_bb): Likewise.
28937 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28939         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28940         New pattern.
28941         (*xor_one_cmplsidi3_ze): Likewise.
28943 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28945         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28946         use df_remove_problem rather than manually removing problems, leaving
28947         holes in df->problems_in_order[].
28949 2015-04-21  Tom de Vries  <tom@codesourcery.com>
28951         PR tree-optimization/65802
28952         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28954 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28956         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28957         Increase to 128.
28958         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28959         at '.'.  Assert that there's enough space for everything.
28961 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28963         PR tree-optimization/64950
28964         Revert:
28965         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
28967         PR target/41089
28968         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28969         as volatile.
28971 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
28973         PR rtl-optimization/64916
28974         * cfgcleanup.c (values_equal_p): New function.
28975         (can_replace_by): Use it.
28977 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
28979         PR c++/65801
28980         * doc/invoke.texi ([-Wnarrowing]): Update.
28982 2015-04-20  Jeff Law  <law@redhat.com>
28984         PR tree-optimization/65658
28985         * tree-ssa-threadupdate.c (redirection_block_p): Remove
28986         redundant test for GIMPLE_ASSIGN in last change.
28988 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
28990         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28991         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28992         (legitimize_tls_address): Ditto.
28993         (ix86_expand_move): Ditto.
28994         (ix86_expand_binary_operator): Remove reload_in_progress checks.
28995         (ix86_expand_unary_operator): Ditto.
28996         * config/i386/predicates.md (index_register_operand): Ditto.
28998 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
29000         * reorg.c (try_merge_delay_insns): Improve correctness checking
29001         for targets with multiple delay slots.
29003 2015-04-20  Jeff Law  <law@redhat.com>
29005         PR tree-optimization/65658
29006         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29007         statements too.
29009 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29011         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29012         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29013         Delete.
29015 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
29017         PR debug/65807
29018         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29020 2015-04-20  Richard Biener  <rguenther@suse.de>
29022         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29023         * gimple-fold.c (gimple_build_valueize): New function.
29024         (gimple_build): Always use gimple_build_valueize as valueize hook.
29026 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29028         PR target/64134
29029         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29030         and overwrite variable parts if <= 1/2 the elements are variable.
29032 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29034         PR rtl-optimization/65805
29035         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29036         Don't use difference of offset and previous offset if
29037         update_sp_offset is non-zero.
29038         (eliminate_regs_in_insn): Ditto.
29039         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29040         lra_eliminate_regs_1 call.
29041         * lra-constraints.c (get_equiv_with_elimination): Ditto.
29043 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
29045         * hash-table.h: Remove version of hash_table that stored value_type *.
29046         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29047         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29048         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29049         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29050         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29051         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29052         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29053         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29054         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29055         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29056         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29057         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29058         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29059         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29060         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29061         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29063 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29064             Jakub Jelinek  <jakub@redhat.com>
29066         PR target/65787
29067         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29068         subsequent SH_NONE operand does not overwrite an existing *special
29069         value.
29070         (adjust_extract): Handle case where a vec_extract operation is
29071         wrapped in a PARALLEL.
29073 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29075         PR target/65780
29076         * config/i386/i386.c (ix86_binds_local_p): Define only if
29077         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29079 2015-04-17  Jeff Law  <law@redhat.com>
29081         PR tree-optimization/47679
29082         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29083         * tree-ssa-scopedtables.c: New file.
29084         * tree-ssa-scopedtables.h: New file.
29085         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29086         (const_and_copies): Change name/type.
29087         (record_const_or_copy): Move into tree-ssa-scopedtables.c
29088         (record_const_or_copy_1): Similarly.
29089         (restore_vars_to_original_value): Similarly.
29090         (pass_dominator::execute): Create and destroy const_and_copies table.
29091         (thread_across_edge): Update passing of const_and_copies.
29092         (record_temporary_equivalence): Use method calls rather than
29093         manipulating const_and_copies directly.
29094         (record_equality, cprop_into_successor_phis): Similarly.
29095         (dom_opt_dom_walker::before_dom_children): Similarly.
29096         (dom_opt_dom_walker::after_dom_children): Similarly.
29097         (eliminate_redundant_computations): Similarly.
29098         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29099         (record_temporary_equivalence): Likewise.
29100         (invalidate_equivalences): Likewise.
29101         (record_temporary_equivalences_from_phis): Update due to type
29102         change of const_and_copies.  Use method calls rather than
29103         manipulating the stack directly.
29104         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29105         (thread_through_normal_block, thread_across_edge): Likewise.
29106         (thread_across_edge): Likewise.
29107         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29108         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
29109         of equiv_stack.
29110         (identify_jump_threads): Update due to type change of equiv_stack.
29111         (finalize_jump_threads): Delete the equiv_stack when complete.
29113 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
29115         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29116         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29117         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29119 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
29121         PR target/65535
29122         * config.gcc: Exit with a comment when we do not have a major version
29123         number for the FreeBSD target.
29125 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29127         PR target/65689
29128         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29129         maybe_allows_mem bitfields.
29130         (maybe_allows_none_start, maybe_allows_none_end,
29131         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29132         maybe_allows_mem_end): New variables.
29133         (compute_maybe_allows): New function.
29134         (add_constraint): Use it to initialize maybe_allows_reg and
29135         maybe_allows_mem fields.
29136         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29137         is_address constraints such that those that allow neither mem nor
29138         reg come first, then those that only allow reg but not mem, then
29139         those that only allow mem but not reg, then the rest.
29140         (write_allows_reg_mem_function): New function.
29141         (write_tm_preds_h): Call it.
29142         * stmt.c (parse_output_constraint, parse_input_constraint): Use
29143         the generated insn_extra_constraint_allows_reg_mem function
29144         instead of always setting *allows_reg = true; *allows_mem = true;
29145         for unknown extra constraints.
29147 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29149         PR target/65780
29150         * output.h (default_binds_local_p_3): New.
29151         * varasm.c (default_binds_local_p_3): Make it public.  Take an
29152         argument to indicate if common symbol may be local.  If common
29153         symbol may be local, treat non-external variable as defined
29154         locally.
29155         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29156         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29157         * config/i386/i386.c (ix86_binds_local_p): New.
29158         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29159         ix86_binds_local_p.
29161 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29163         PR debug/65771
29164         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29165         trying mem_loc_descriptor on XEXP (rtl, 0).
29167 2015-04-17  Martin Liska  <mliska@suse.cz>
29169         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29170         Release symbol_compare_collection.
29171         * ipa-reference.c: Add TODO that a vector should be released.
29173 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29175         PR target/65296
29176         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29177         to new AVR-LibC file layout (bug #44574).
29178         (*avrlibc_devicelib): Same.
29179         * config/avr/avr-mcus.def: Adjust comments.
29180         * config/avr/avr.opt (nodevicelib): Adjust help.
29182 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
29184         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29186 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
29188         PR c++/64527
29189         * gimplify.c (gimplify_init_constructor): Always emit a
29190         side-effecting constructor.
29192 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29194         PR tree-optimization/64950
29195         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29196         in cfun->curr_properties.
29197         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29198         if we generate an IFN_VA_ARG.
29199         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29200         function if PROP_gimple_lva is not set in src function.
29202 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29203             Michael Matz  <matz@suse.de>
29205         PR tree-optimization/64950
29206         * gimple-iterator.c (update_modified_stmts): Remove static.
29207         * gimple-iterator.h (update_modified_stmts): Declare.
29208         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29209         (gimplify_va_arg_internal): New function.
29210         (gimplify_va_arg_expr): Use IFN_VA_ARG.
29211         * gimplify.h (gimplify_va_arg_internal): Declare.
29212         * internal-fn.c (expand_VA_ARG): New unreachable function.
29213         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29214         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29215         (expand_ifn_va_arg): New function.
29216         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29217         (pass_stdarg::execute): Call expand_ifn_va_arg.
29218         (pass_data_lower_vaarg): New pass_data.
29219         (pass_lower_vaarg): New gimple_opt_pass.
29220         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29221         (make_pass_lower_vaarg): New function.
29222         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29223         properties_required field.
29224         * passes.def (all_passes): Add pass_lower_vaarg.
29225         * tree-pass.h (PROP_gimple_lva): Add define.
29226         (make_pass_lower_vaarg): Declare.
29228 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29230         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29231         * calls.c (call_expr_flags): Same.
29233 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29235         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29236         (pass_stdarg::execute): ... here.
29238 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29239             Michael Matz  <matz@suse.de>
29241         * tree-cfg.c (make_blocks_1): Factor out of ...
29242         (make_blocks): ... here.
29243         (make_edges_bb): Factor out of ...
29244         (make_edges): ... here.
29245         (gimple_find_sub_bbs): New function.
29246         * tree-cfg.h (gimple_find_sub_bbs): Declare.
29248 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29250         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29252 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
29254         * asan.c (set_sanitized_sections): New function.
29255         (section_sanitized_p): Ditto.
29256         (asan_protect_global): Optionally sanitize user-defined
29257         sections.
29258         * asan.h (set_sanitized_sections): Declare new function.
29259         * common.opt (fsanitize-sections): New option.
29260         * doc/invoke.texi (-fsanitize-sections): Document new option.
29261         * opts-global.c (handle_common_deferred_options): Handle new
29262         option.
29264 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29266         PR debug/65771
29267         * dwarf2out.c (loc_list_from_tree): Return NULL
29268         for DEBUG_EXPR_DECL.
29270 2015-04-17  Christian Bruel  <christian.bruel@st.com>
29272         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29273         same attributes.
29275 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29277         * ira-color.c (setup_left_conflict_sizes_p): Do not process
29278         node itself when computing left conflict subnode size.
29280 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29282         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29283         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29284         *fop_<mode>_1_sse using enabled attribute.  Use
29285         register_mixssei387nonimm_operand operand 1 predicate. Change
29286         alternative 3 constraints from "x" to "v".
29288 2015-04-16  Richard Biener  <rguenther@suse.de>
29290         PR tree-optimization/65774
29291         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29292         bit-value tracking on.
29294 2015-04-16  Richard Biener  <rguenther@suse.de>
29296         PR tree-optimization/64277
29297         * tree-vrp.c (check_array_ref): Fix anti-range handling,
29298         simplify upper bound handling.
29299         (search_for_addr_array): Simplify.
29300         (check_array_bounds): Handle ADDR_EXPRs here.
29301         (check_all_array_refs): Simplify.
29303 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29305         * config/i386/i386.c (print_reg): Rewrite function.
29307 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29309         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29310         Invert the condition.
29312 2015-04-16  Renlin Li  <renlin.li@arm.com>
29314         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29315         simplifications for UNSIGNED_FLOAT.
29317 2015-04-16  Nick Clifton  <nickc@redhat.com>
29319         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29320         MUL_UNINIT.
29321         (enum rl78_cpu_type): New.
29322         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29323         (umulhi3_shift_virt): Remove m constraint from operand 1.
29324         (umulqihi3_virt): Likewise.
29325         * config/rl78/rl78.c (rl78_option_override): Add code to process
29326         -mcpu and -mmul options.
29327         (rl78_alloc_physical_registers): Add code to handle divhi and
29328         divsi valloc attributes.
29329         (set_origin): Likewise.
29330         * config/rl78/rl78.h (RL78_MUL_G14): Define.
29331         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29332         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29333         __RL78_Gxx__.
29334         (ASM_SPEC): Pass -mcpu on to assembler.
29335         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29336         (mulqi3_rl78): Likewise.
29337         (mulhi3_g13): Likewise.
29338         (mulhi3): Generate the G13 or G14 versions of the insn directly.
29339         (mulsi3): Likewise.
29340         (mulhi3_g14): Add clobbers of AX and BC.
29341         (mulsi3_g14): Likewise.
29342         (mulsi3_g13): Likewise.
29343         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29344         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29345         * config/rl78/rl78.opt (mmul): Initialise value to
29346         RL78_MUL_UNINIT.
29347         (mcpu): New option.
29348         (m13, m14, mrl78): New option aliases.
29349         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29350         (MULTILIB_DIRNAMES): Add g13 and g14.
29351         * doc/invoke.texi: Document -mcpu and -mmul options.
29353 2015-04-16  Richard Biener  <rguenther@suse.de>
29355         * tree-ssa-ccp.c (likely_value): See if we have operands that
29356         are marked as never simulate again and return CONSTANT in this
29357         case.
29358         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29359         not have any operands that will be simulated again as
29360         not being simulated again.
29362 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
29364         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29365         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29366         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29367         attribute.
29368         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29369         enabled attribute.
29370         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29371         *float<SWI48:mode><MODEF:mode>2_sse.
29372         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29373         enabled attribute.
29374         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29375         enabled attribute.
29377 2015-04-15  Tom de Vries  <tom@codesourcery.com>
29379         PR other/65487
29380         * function.c (push_dummy_function): New function.
29381         (init_dummy_function_start): Use push_dummy_function.
29382         (pop_dummy_function): New function.  Factored out of ...
29383         (expand_dummy_function_end): ... here.
29384         * function.h (push_dummy_function, pop_dummy_function): Declare.
29385         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29386         pop_dummy_function.
29387         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29389 2015-04-15  Jeff Law  <law@redhat.com>
29391         PR tree-optimization/47679
29392         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29393         need for forward declaration in upcoming changes.
29394         (record_conditions, record_edge_info): Likewise.
29396         PR rtl-optimization/42522
29397         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29398         SIGN_EXTRACT as a whole object rather than simplifying
29399         its operand.
29401 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
29403         PR ipa/65765
29404         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29405         and GIMPLE_PREDICT use break instead of return true. For
29406         GIMPLE_EH_DISPATCH, compare dispatch region.
29408 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
29410         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
29411         details about the implementation.  Make clear preference for
29412         __atomic builtins.  Reduce possibility of future change.
29414 2015-04-15  Nick Clifton  <nickc@redhat.com>
29416         * config/rx/rx.opt (mallow-string-insns): New option.
29417         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29418         builtin if string instructions are denied.
29419         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29420         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29421         appropriate.
29422         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29423         * config/rx/rx.md (movstr): Enable pattern only if string
29424         instructions are allowed.
29425         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29426         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29427         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29428         (MULTILIB_DIRNAMES): Add no-strings.
29429         * doc/invoke.texi: Document -mno-allow-string-insns.
29431 2015-04-15  Alan Modra  <amodra@gmail.com>
29433         PR target/65408
29434         PR target/58744
29435         PR middle-end/36043
29436         * calls.c (load_register_parameters): Don't load past end of
29437         mem unless suitably aligned.
29439 2015-04-15  Nick Clifton  <nickc@redhat.com>
29441         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29442         decrement instruction as being frame related.
29443         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29444         based addresses.
29445         If zero extending a function address enclose the operation in
29446         %code(...).
29447         (rl78_preferred_reload_class): New function.
29448         (TARGET_PREFERRED_RELOAD_CLASS): Define.
29449         * config/rl78/rl78.md: Remove useless constraints in expanders.
29450         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29451         (mulhi3_rl78): Likewise.
29452         (mulhi3_g13): Likewise.
29453         (mulsi3_rl78): Likewise.
29454         (es_addr): Move to before the multiply patterns.
29456 2015-04-15  Alan Modra  <amodra@gmail.com>
29458         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29459         and sequence_stack.  Add seq.
29460         (seq_stack): Delete.
29461         * function.c (prepare_function_start): Don't access x_last_insn.
29462         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29463         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29464         * emit_rtl.c (start_sequence, push_topmost_sequence,
29465         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29466         sequence accessors.
29467         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29468         remove_insn): Likewise.  Simplify.
29469         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29470         and pop_topmost_sequence.
29471         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
29472         debug insns.
29473         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29475 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
29477         PR target/65729
29478         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29479         the assertiion.
29481 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29483         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29484         (LEGACY_INT_REGNO_P): Ditto.
29485         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29486         (ANY_MASK_REG_P): Remove.
29487         (BND_REG_P): Rename from ANY_BND_REG_P.
29488         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29489         legacy integer registers.  Do not handle MMX_REG_P in a special way.
29490         Merge 64byte and 32byte SSE handling.
29492 2015-04-14  Nick Clifton  <nickc@redhat.com>
29494         * expr.c (expand_assignment): Force an address offset computation
29495         into a register before changing its mode.
29496         (expand_expr_real_1): Likewise.
29498 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
29500         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29501         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29502         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29503         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29504         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29505         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29506         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29507         and __aarch64_vget_lane_any.
29509 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
29511         PR rtl-optimization/65761
29512         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29513         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29515 2015-04-14  Richard Biener  <rguenther@suse.de>
29517         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29518         (graphite_can_represent_scev): Use POINTER_TYPE_P.
29520 2015-04-14  Richard Biener  <rguenther@suse.de>
29522         PR tree-optimization/65758
29523         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29524         against -1.
29525         (ccp_lattice_meet): Likewise.
29526         (bit_value_unop): Likewise.
29527         (bit_value_binop): Likewise.
29528         (bit_value_assume_aligned): Likewise.
29530 2015-04-14  Christian Bruel  <christian.bruel@st.com>
29532         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29533         function.
29535 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
29537         PR tree-optimization/63387
29538         * match.pd ((x unord x) | (y unord y) -> (x unord y),
29539         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29541 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29543         * config/i386/predicates.md (any_QIreg_operand): Rename from
29544         q_regs_operand.  Do not process subregs.
29545         (QIreg_operand): Use QI_REGNO_P predicate.
29546         (ext_QIreg_operand): Ditto.
29547         (ext_register_operand): Ditto.
29548         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29549         (AND splitters): Ditto.
29550         (AND with -65536 splitter): Add SWI48 mode for operand 0.
29551         (AND with -256 splitter): Use any_QIreg_operand predicate and
29552         SWI248 mode for operand 0.
29553         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29554         mode for operand 0.
29555         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29557 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
29559         * doc/plugins.texi: Rewrite first introductory paragraph.
29561 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29563         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29564         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29566 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29568         * ipa-profie.c (ipa_profile): Check number of parameters
29569         and possible polymorphic call targets before
29570         devirtualizing.
29572 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
29574         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29575         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29577 2015-04-13  Richard Biener  <rguenther@suse.de>
29579         PR tree-optimization/65204
29580         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29581         takens for bit-CCP.
29583 2015-04-13  Richard Biener  <rguenther@suse.de>
29585         PR target/65660
29586         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29587         and cond_not_taken_branch_cost to 4 and 2.
29588         (bdver2_cost): Likewise.
29589         (bdver3_cost): Likewise.
29590         (bdver4_cost): Likewise.
29592 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29594         * hash-table.h (hash_table constructor): Add mem stats.
29595         (alloc_entries): Likewise.
29597 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29599         * ipa-cp.c (ipcp_driver): Relase prev_edge.
29600         * passes.c (execute_one_pass): Only add transform if pass has one.
29602 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
29604         * config/i386/i386.c (ix86_option_override_internal): Don't set
29605         -fprefetch-loop-arrays if optimizing for size.
29607 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29608             Gerald Pfeifer  <gerald@pfeifer.com>
29610         * doc/contrib.texi (Contributors): Add Martin Jambor and
29611         Michael Matz.
29613 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
29615         * BASE-VER: Set to 6.0.0.
29617         PR tree-optimization/65747
29618         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29619         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29621 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29623         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29624         sentence.  Improve grammar.
29626 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29628         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29630 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29632         PR ipa/65743
29633         * ipa-inline-transform.c (speculation_removed): Remove static var.
29634         (check_speculations): New function.
29635         (clone_inlined_nodes): Do not check spculations.
29636         (inline_call): Call check_speculations.
29637         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29638         consider non-invariants.
29640 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29641             Martin Liska  <mliska@suse.cz>
29643         PR ipa/65722
29644         * ipa-icf.c (sem_item::compare_cgraph_references): function and
29645         variable can not match.
29646         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29647         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29649 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
29651         PR tree-optimization/65735
29652         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29653         Remove visited_phis argument, add visited_bbs, avoid recursing into the
29654         same bb rather than just into the same phi node.
29655         (thread_through_normal_block): Adjust caller.
29657 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29659         * doc/contrib.texi (Contributors): Add Ira Rosen.
29661 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
29663         * gcov.c (find_source): Fix miswording in error message.
29664         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29665         (ix86_expand_sse_comi_round): Fix typo in error message.
29667 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29669         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29671 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
29673         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29675 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29677         PR target/65710
29678         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29679         Print bad_spills_num and insn_pseudos_num.
29681 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29683         PR target/65694
29684         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29685         when creating +1 values for SImode.
29687 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29689         PR target/65729
29690         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29691         assert.
29693 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
29694             Iain Sandoe  <iain@codesourcery.com>
29696         PR target/65351
29697         * configure: Regenerate.
29699 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
29701         PR target/65671
29702         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29704 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
29706         * doc/contrib.texi (Contributors): Add John Marino.
29708 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
29710         PR tree-optimization/65709
29711         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29712         TREE_TYPE (TREE_TYPE (t)).
29714 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
29716         PR target/65710
29717         * lra-int.h (lra_bad_spill_regno_start): New.
29718         * lra.c (lra_bad_spill_regno_start): New.
29719         (lra): Set up lra_bad_spill_regno_start.  Set up
29720         lra_constraint_new_regno_start unconditionally.
29721         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29722         spill preferences.
29724 2015-04-09  Marek Polacek  <polacek@redhat.com>
29725             Jakub Jelinek  <jakub@redhat.com>
29727         PR middle-end/65554
29728         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29729         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29730         of STRIP_NOPS.
29732 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
29734         PR rtl-optimization/65693
29735         * combine.c (is_parallel_of_n_reg_sets): Move outside of
29736         #ifndef HAVE_cc0.
29738 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
29740         PR target/65296
29741         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29742         device specs file if "device-specs%s" didn't resolve to a path.
29744 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
29746         PR target/65676
29747         * config/i386/i386.c (fixup_modeless_constant): New.
29748         (ix86_expand_args_builtin): Fixup modeless constant operand.
29749         (ix86_expand_round_builtin): Ditto.
29750         (ix86_expand_special_args_builtin): Ditto.
29751         (ix86_expand_builtin): Ditto.
29753 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
29755         PR target/65693
29756         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29757         any pow2 integer in between 2 and 0x80000000U inclusive.
29759 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
29761         PR rtl-optimization/65693
29762         * combine.c (is_parallel_of_n_reg_sets): Change first argument
29763         from an rtx_insn * to an rtx.
29764         (try_combine): Adjust both callers.  Use it once more.
29766 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29768         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29769         (chkp_make_static_const_bounds): Search existing
29770         symbol by assembler name.  Use make_decl_one_only.
29771         (chkp_get_zero_bounds_var): Remove node search which
29772         is now performed in chkp_make_static_const_bounds.
29773         (chkp_get_none_bounds_var): Likewise.
29775 2015-04-08  Michael Witten  <mfwitten@gmail.com>
29777         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29778         to an example.
29780 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29782         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29784 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29786         * doc/extend.texi (__sync Builtins): Fix grammar.
29788 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29790         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29792 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29794         * varasm.c (emit_local): Move definition of align.
29796 2015-04-08  Julian Brown  <julian@codesourcery.com>
29798         * config/nvptx/mkoffload.c (process): Support variable mapping.
29800 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
29802         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29803         alpha_links **.
29804         (alpha_write_one_linkage): Correct typo.
29806 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29808         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29810 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29812         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29814 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29816         * tree-chkp.h (chkp_insert_retbnd_call): New.
29817         * tree-chkp.c (chkp_insert_retbnd_call): New.
29818         * ipa-split.c (insert_bndret_call_after): Remove.
29819         (split_function): Use chkp_insert_retbnd_call.
29820         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29821         bounds for instrumented functions.
29823 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
29825         PR ipa/65540
29826         * calls.c (initialize_argument_information): When producing tail
29827         call also turn SSA_NAMES passed by references to original PARM_DECLs
29829 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
29831         PR target/65648
29832         * lra-remat.c (do_remat): Process input and non-input insn
29833         registers separately.
29835 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29837         PR debug/65678
29838         * valtrack.c (debug_lowpart_subreg): New function.
29839         (dead_debug_insert_temp): Use it.
29841         PR middle-end/65680
29842         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29843         into signed HOST_WIDE_INT the same as negative bit_offset.
29845 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
29847         * ipa-comdats.c (ipa_comdats): Visit all thunks
29848         to set proper comdat group.
29850 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29852         PR target/65489
29853         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29854         on constants for NEON VSTRUCT modes.
29856 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29857             Iain Sandoe  <iain@codesourcery.com>
29859         PR target/65351
29860         * configure: Regenerate.
29862 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29864         PR target/65614
29865         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29866         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29867         that LFD is used to load double constants instead of LFS.  Add
29868         defaults for all costs structures.  Add comments for missing
29869         initialization fields.
29870         (size32_cost): Likewise.
29871         (size64_cost): Likewise.
29872         (rs64a_cost): Likewise.
29873         (mpccore_cost): Likewise.
29874         (ppc403_cost): Likewise.
29875         (ppc405_cost): Likewise.
29876         (ppc440_cost): Likewise.
29877         (ppc476_cost): Likewise.
29878         (ppc601_cost): Likewise.
29879         (ppc603_cost): Likewise.
29880         (ppc604_cost): Likewise.
29881         (ppc604e_cost): Likewise.
29882         (ppc620_cost): Likewise.
29883         (ppc630_cost): Likewise.
29884         (ppccell_cost): Likewise.
29885         (ppc750_cost): Likewise.
29886         (ppc7450_cost): Likewise.
29887         (ppc8540_cost): Likewise.
29888         (ppce300c2c3_cost): Likewise.
29889         (ppce500mc_cost): Likewise.
29890         (ppce500mc64_cost): Likewise.
29891         (ppce5500_cost): Likewise.
29892         (ppce6500_cost): Likewise.
29893         (titan_cost): Likewise.
29894         (power4_cost): Likewise.
29895         (power6_cost): Likewise.
29896         (power7_cost): Likewise.
29897         (power8_cost): Likewise.
29898         (ppca2_cost): Likewise.
29899         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29901         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29902         instead of XXLOR to copy SFmode to clear out dirty bits created
29903         when SFmode denormals are generated.
29904         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29905         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29907 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29909         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29910         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29911         * config/aarch64/aarch64-tune.md: Regenerate.
29913 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29915         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29916         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29917         * config/arm/arm-cores.def (exynos-m1): New core.
29918         * config/arm/arm-tune.md: Regenerate.
29919         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29920         * config/arm/bpabi.h: Likewise.
29922 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29924         * ipa-cp (set_single_call_flag): Remove too
29925         restrictive assert.
29927 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
29929         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29930         GOMP_offload_unregister from the destructor.
29932 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29934         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29935         flags for instrumentation thunk.
29936         (chkp_produce_thunks): Likewise.
29938 2015-04-05  Martin Liska  <mliska@suse.cz>
29940         PR ipa/65665
29941         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29942         has computed data structure.
29943         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29945 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
29947         * invoke.texi (inline-unit-growth): Increase growth to 20%
29948         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29950 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
29952         PR target/65647
29953         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
29954         value checking.
29955         (lra_rematerialization_iter): New.
29956         * lra.c (lra): Initialize lra_rematerialization_iter.
29957         Stop updating lra_constraint_new_regno_start after switching of
29958         inheritance and rematerialization.
29959         * lra-remat.c (lra_rematerialization_iter): New.
29960         (lra_remat): Add printing pass iteration.  Do rematerialization
29961         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29963 2015-04-04  Richard Biener  <rguenther@suse.de>
29965         PR tree-optimization/64909
29966         PR tree-optimization/65660
29967         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29968         to take a cost vector for scalar iteration cost.
29969         (vect_get_single_scalar_iteration_cost): Likewise.
29970         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29971         Compute the scalar iteration cost into a cost vector.
29972         (vect_get_known_peeling_cost): Use the scalar cost vector to
29973         account for the cost of the peeled iterations.
29974         (vect_estimate_min_profitable_iters): Likewise.
29975         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29976         Likewise.
29978 2015-04-04  Alan Modra  <amodra@gmail.com>
29980         PR target/65576
29981         PR target/65240
29982         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29983         0.0 constant unless TARGET_VSX.
29984         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29985         alternative.
29987 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29989         PR ipa/65654
29990         * ipa-inline-transform.c (inline_call): Skip sanity check to work
29991         around the ICE
29993 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29995         PR ipa/65655
29996         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29997         speculative indirect edges to avoid ordering issue.
29999 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30001         PR ipa/65076
30002         * ipa-inline.c (edge_badness): Add combined size to the denominator.
30004 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
30006         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30007         TYPE_ARTIFICIAL on the .omp_data* types.
30009 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30011         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30012         instrumentation thunks.
30014 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30016         * config/i386/i386.c (ix86_expand_call): Avoid nested
30017         PARALLEL in returned call value.
30019 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30021         * lto-cgraph.c (input_cgraph_1): Always link instrumented
30022         assembler name with original one.
30024 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30026         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30028 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30030         Revert parts of r216820.
30031         * config/i386/i386.md (movqi_internal): Correct type calculation
30032         for alternatives 3 and 5.
30034 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
30036         PR preprocessor/61977
30037         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30038         predefine __vector/__bool/__pixel macros nor context sensitive
30039         macros for CLK_ASM.
30040         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30042 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
30044         * config/pa/pa.c (pa_output_move_double): Directly handle register
30045         indexed memory operand.  Simplify handling of scaled register indexed
30046         memory operands.
30048 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30050         PR driver/65444
30051         * config/i386/linux-common.h (MPX_SPEC): New.
30052         (CHKP_SPEC): Add MPX_SPEC.
30053         * doc/invoke.texi (-fcheck-pointer-boudns): Document
30054         possible issues with '-z bndplt' support in linker.
30056 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30058         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30059         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30060         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30061         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30062         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30064 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
30066         * config/i386/sync.md (UNSPEC_MOVA): Remove.
30067         (atomic_load<mode>): Change operand 0 predicate to
30068         nonimmediate_operand and fix up the destination when needed.
30069         Use UNSPEC_LDA.
30070         (atomic_loaddi_fpu): Use UNSPEC_LDA.
30071         (atomic_store<mode>): Change operand 1 predicate to
30072         nonimmendate_operand and move the source to register when needed.
30073         Use UNSPEC_STA.
30074         (atomic_store<mode>_1): Use UNSPEC_STA.
30075         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30076         Fix moves from memory operand.  Use UNSPEC_STA.
30078 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30080         * expmed.c (strict_volatile_bitfield_p): Check that the access will
30081         not cross a MODESIZE boundary.
30082         (store_bit_field, extract_bit_field): Added assertions in the
30083         strict volatile bitfields code path.
30085 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30087         PR target/65624
30088         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30089         Increase args array size by one to avoid buffer overflow.
30091 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30093         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30094         split_part.
30095         * ipa-inline.c (edge_badness): Add wrapper penalty.
30096         (sum_callers): Move up.
30097         (inline_small_functions): Set single_caller.
30098         * ipa-inline.h (inline_summary): Add single_caller.
30099         * ipa-split.c (split_function): Set split_part.
30100         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30101         * cgraph.h (cgraph_node): Add split_part.
30103 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
30105         PR target/58945
30106         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30107         Do not split operands 0 and operands 2 to halfmode.
30108         (atomic_compare_and_swap<mode>): Update for
30109         atomic_compare_and_swap<dwi>_doubleword changes.
30111 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30113         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30114         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30115         no caching is done.
30117 2015-03-31  Martin Liska  <mliska@suse.cz>
30119         PR ipa/65557
30120         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30121         has already filled up function summary.
30122         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30124 2015-03-31  Richard Biener  <rguenther@suse.de>
30126         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30127         of types.
30129 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30131         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30132         nested functions.
30133         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30134         (s390_asm_output_function_label): Adapt to new signature of
30135         s390_function_num_hotpatch_hw
30136         Optimise the code generating assembler output.
30137         Add comments to assembler file.
30139 2015-03-31  Richard Biener  <rguenther@suse.de>
30141         PR middle-end/65626
30142         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30143         of the noreturn call so it is last and cleanup_control_flow_bb
30144         can do the CFG part.
30146 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
30148         PR target/65531
30149         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30150         same_comdat_group for external symbols.
30151         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30152         infinite same_comdat_group traversal loop.
30154 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
30156         PR plugins/61176
30157         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30158         automatically to $headers.
30160 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
30162         PR ipa/65610
30163         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30164         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30165         function.
30166         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30167         Use it.
30168         * ipa-prop.c (param_type_may_change_p): Likewise.
30169         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30170         (remove_unused_scope_block_p): Add in_ctor_dtor_block
30171         argument.  Before inlining, preserve
30172         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30173         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
30174         recursive calls.
30175         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30177 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30179         PR ipa/65076
30180         * ipa-inline.c (edge_badness): Base denominator on callee's
30181         grwoth squared.
30183 2015-03-27  Martin Jambor  <mjambor@suse.cz>
30185         PR ipa/65478
30186         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30187         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30188         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30189         node_calling_single_call.
30190         * ipa-cp.c (count_callers): New function.
30191         (set_single_call_flag): Likewise.
30192         (initialize_node_lattices): Count callers and set single_flag_call if
30193         necessary.
30194         (incorporate_penalties): New function.
30195         (good_cloning_opportunity_p): Use it, dump new flags.
30196         (propagate_constants_topo): Set node_within_scc flag if appropriate.
30197         * doc/invoke.texi (ipa-cp-recursion-penalty,
30198         ipa-cp-single-call-pentalty): Document.
30200 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30202         PR ipa/65588
30203         * symtab.c (symtab_node::get_partitioning_class): Register vars
30204         are duplicated.
30205         * varpool.c (symbol_table::output_variables) Do not assemble unefined
30206         decls for non-symbols.
30208 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30210         PR target/65248
30211         * output.h (default_binds_local_p_2): New.
30212         * varasm.c (default_binds_local_p_2): Renamed to ...
30213         (default_binds_local_p_3): This.  Don't return true on protected
30214         data symbol if protected data may be external.
30215         (default_binds_local_p): Use default_binds_local_p_3.
30216         (default_binds_local_p_1): Likewise.
30217         (default_binds_local_p_2): New.
30218         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30219         default_binds_local_p_2 if TARGET_MACHO is undefined.
30221 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
30223         PR target/65593
30224         * config/i386/i386.c (legitimize_pic_address): If base
30225         is SYMBOL_REF or LABEL_REF using %rip addressing, force
30226         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30228 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30230         PR target/65531
30231         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30232         comdat groups.
30234 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30236         PR ipa/65600
30237         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30238         of optimized out indirect call.
30239         (redirect_to_unreachable): Always build symbol table node for
30240         BUILT_IN_UNREACHABLE
30242 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30244         PR target/65407
30245         * ira-costs.c (record_reg_classes): Process all constraint string
30246         containing 0-9.
30248 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
30250         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30251         memory_operand.
30253         PR target/65052
30254         * config/c6x/constraints.md (S3): New constraint.
30255         * config/c6x/c6x.md (real_jump): Use it.
30257 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30259         PR middle-end/65595
30260         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30261         do redirection if the call is not optimized out.
30263 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30265         PR target/65495
30266         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30267         (fchkp-check-incomplete-type): Add LTO.
30268         (fchkp-zero-input-bounds-for-main): Likewise.
30269         (fchkp-first-field-has-own-bounds): Likewise.
30270         (fchkp-narrow-bounds): Likewise.
30271         (fchkp-narrow-to-innermost-array): Likewise.
30272         (fchkp-use-static-bounds): Likewise.
30273         (fchkp-use-static-const-bounds): Likewise.
30274         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30276 2015-03-27  Marek Polacek  <polacek@redhat.com>
30278         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30280 2015-03-27  Marek Polacek  <polacek@redhat.com>
30282         PR sanitizer/65583
30283         * ubsan.c (ubsan_create_edge): New function.
30284         (instrument_bool_enum_load): Call it.
30285         (instrument_nonnull_arg): Likewise.
30286         (instrument_nonnull_return): Likewise.
30287         (instrument_object_size): Likewise.
30289 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30291         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30292         auto_vec.
30294 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30296         PR lto/65536
30297         * lto-streamer.h (class lto_location_cache): New.
30298         (struct data_in): Add location_cache.
30299         (lto_input_location): Update prototype.
30300         (stream_input_location_now): New.
30301         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30302         pointer to location.
30303         (stream_input_location): Update.
30304         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30305         (warn_odr): Apply location cache before warning.
30306         (lto_input_location): Update prototype.
30307         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30308         Use stream_input_location_now.
30309         * lto-streamer-in.c (lto_location_cache::current_cache): New static
30310         variable.
30311         (lto_location_cache::cmp_loc): New function.
30312         (lto_location_cache::apply_location_cache): New function.
30313         (lto_location_cache::accept_location_cache): New function.
30314         (lto_location_cache::revert_location_cache): New function.
30315         (lto_location_cache::input_location): New function.
30316         (lto_input_location): Do location caching.
30317         (stream_input_location_now): New function.
30318         (input_eh_region, input_struct_function_base): Use
30319         stream_input_location_now.
30320         (lto_data_in_create): use new.
30321         (lto_data_in_delete): Use delete.
30322         * tree-streamer-in.c (unpack_ts_block_value_fields,
30323         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30324         lto_input_ts_exp_tree_pointers): Update for cached location api.
30326 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30328         PR ipa/65076
30329         * passes.def: Add pass_nothrow.
30330         * ipa-pure-const.c: (pass_data_nothrow): New.
30331         (pass_nothrow): New.
30332         (pass_nothrow::execute): New.
30333         (make_pass_nothrow): New.
30334         * tree-pass.h (make_pass_nothrow): Declare.
30336 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30338         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30339         edge to change by speculation resolution or redirection.
30340         (edge_set_predicate): Likewise.
30341         (inline_summary_t::duplicate): Likewise.
30342         (remap_edge_summaries): Likewise.
30344 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30346         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30347         New macros.
30348         (can_inline_edge_p): Relax option matching for always inline functions.
30350 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
30352         PR target/65561
30353         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30354         Check operand 4 and operand 0 for equality.
30355         (avx512f_vextract<shuffletype>32x4_1_maskm):
30356         Check operand 6 and operand 0 for equality.
30357         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30358         for equality.
30359         (vec_extract_hi_<mode>_maskm): Ditto.
30361 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30363         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30364         dead calls back to live.
30365         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30366         cross check to ...
30367         (cgraph_node::verify_node): ... here; verify only callee edges,
30368         not caller.
30369         * cif-code.def (CILK_SPAWN): New code.
30371 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30373         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30374         (edge_set_predicate): Use it to mark unreachable edges.
30375         (inline_summary_t::duplicate): Remove unnecesary code.
30376         (remap_edge_summaries): Likewise.
30377         (dump_inline_summary): Report contains_cilk_spawn.
30378         (compute_inline_parameters): Compute contains_cilk_spawn.
30379         (inline_read_section, inline_write_summary): Stream
30380         contains_cilk_spawn.
30381         * ipa-inline.c (can_inline_edge_p): Do not touch
30382         DECL_STRUCT_FUNCTION that may not be available;
30383         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30384         remove check for callee_fun->can_throw_non_call_exceptions and
30385         replace it by optimization attribute check; check for flag_exceptions.
30386         * ipa-inline-transform.c (inline_call): Maintain
30387         DECL_FUNCTION_PERSONALITY
30388         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30390 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
30392         PR tree-optimization/65551
30393         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30394         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30396 2015-03-26  Richard Biener  <rguenther@suse.de>
30398         PR middle-end/65555
30399         * tree-cfg.c (verify_gimple_call): Do not require a call to
30400         have no LHS if it wasn't recognized as control altering yet.
30402 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
30404         PR tree-optimization/64715
30405         * passes.def: Add another instance of pass_object_sizes before ccp1.
30406         * tree-object-size.c (pass_object_sizes::execute): In
30407         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30408         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30409         __bos result and the computed constant.  Remove redundant
30410         checks, obsoleted by gimple_call_builtin_p test.
30412         * var-tracking.c (variable_tracking_main_1): Don't track
30413         variables for targetm.no_register_allocation targets.
30415 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
30417         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30418         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30420 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
30422         PR target/65569
30423         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30424         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
30425         0.0 is correctly setup.
30426         (extenddftf2_internal): Likewise.
30428 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
30430         PR tree-optimization/65177
30431         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30432         (bb_in_bbs): New.
30433         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
30434         edges not adjacent on the path to the original code.
30436 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
30438         PR bootstrap/65537
30439         * doc/install.texi (Building a native compiler): Document new
30440         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
30441         configuration assumes that the host supports the linker plugin.
30443 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
30445         PR target/65508
30446         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30447         chain for generated call.
30449 2015-03-25  Richard Biener  <rguenther@suse.de>
30451         * passes.c (pass_manager::execute_early_local_passes): Guard
30452         execution of pass_chkp_instrumentation_passes with
30453         flag_check_pointer_bounds.
30454         (pass_chkp_instrumentation_passes::gate): Likewise.
30456 2015-03-25  Martin Liska  <mliska@suse.cz>
30458         PR tree-optimization/65538
30459         * symbol-summary.h (function_summary::~function_summary):
30460         Relese memory for allocated summaries.
30461         (function_summary::release): New function.
30463 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
30465         PR lto/65515
30466         * lto-streamer-out.c (DFS::worklist): New struct.
30467         (DFS::worklist_vec): New data member.
30468         (DFS::next_dfs_num): Remove.
30469         (DFS::DFS): Rewritten using worklist instead of recursion,
30470         using most of code from DFS::DFS_write_tree.
30471         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30472         pass it to DFS_write_tree calls.
30473         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30474         quick initial checks push it into worklist_vec and return.
30476 2015-03-25  Richard Biener  <rguenther@suse.de>
30478         PR middle-end/65519
30479         * genmatch.c (expr::gen_transform): Re-write to avoid
30480         using gimple_build.
30482 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30484         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30486 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30488         * config/arm/arm.opt (print_tune_info): New option.
30489         * config/arm/arm.c (arm_print_tune_info): New function.
30490         (arm_file_start): Call arm_print_tune_info.
30491         * config/arm/arm-protos.h (struct tune_params): Add comment.
30492         * doc/invoke.texi (@item -mprint-tune-info): New item.
30493         (-mtune): mention it in ARM Option Summary.
30495 2015-03-25  DJ Delorie  <dj@redhat.com>
30497         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30498         correct clause.
30500 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
30501             Martin Liska  <mliska@suse.cz>
30503         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30504         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30505         (sem_item::add_type): New function.
30506         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30507         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30508         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30509         (sem_function::equals_wpa): Fix typo.
30510         * ipa-icf.h (sem_item::add_type): New function.
30511         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30512         order.
30514 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
30516         PR tree-optimization/65533
30517         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30518         with swapped operands, call vect_free_slp_tree on
30519         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30520         vector.
30522 2015-03-24  Richard Biener  <rguenther@suse.de>
30524         PR middle-end/65517
30525         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30526         for fixup if necessary.
30528 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
30530         * doc/extend.texi (Function Attributes): Add @cindex entries
30531         for all attributes and regularize their format.  Delete text
30532         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
30533         information about "eightbit_data", "tiny_data", and "model"
30534         variable attributes to the Variable Attributes section.  Fix
30535         some obvious typos and copy-editing issues.
30536         (Variable Attributes, Type Attributes): Likewise add/fix
30537         @cindex entries for all attributes.
30539 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30541         PR target/65523
30542         * tree-chkp.c (chkp_build_returned_bound): Ignore
30543         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30545 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
30547         PR target/65505
30548         * config/sh/predicates.md (simple_mem_operand,
30549         displacement_mem_operand): Add test for reg.
30550         (short_displacement_mem_operand): Test for displacement_mem_operand
30551         before invoking sh_disp_addr_displacement.
30552         * config/sh/constraints.md (Sdd, Sra): Simplify.
30553         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30554         Remove redundant displacement_mem_operand tests.
30556 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
30558         PR target/65296
30559         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30560         the same -mmcu=MCU more than once.
30562 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30564         PR bootstrap/65522
30565         * ipa-devirt.c: Remove duplicate demangle.h include.
30567         PR target/65504
30568         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30569         on the pseudo.
30570         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30571         REG_POINTER on *destptr after adjusting it for prologue size.
30573         PR ipa/65521
30574         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30575         ultimate_alias_target ()->order ints instead of
30576         ultimate_alias_target () pointers.
30578 2015-03-23  Richard Biener  <rguenther@suse.de>
30580         PR tree-optimization/65518
30581         * tree-vect-stmts.c (vectorizable_load): Reject single-element
30582         interleaving cases we generate absymal code for.
30584 2015-03-23  Richard Biener  <rguenther@suse.de>
30586         PR tree-optimization/65494
30587         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30588         matches here.
30589         (vect_analyze_slp_instance): But do that here, always and once.
30591 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30593         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30594         adding T or multiplying by T+1 and subracting T.
30596 2015-03-22  Jeff Law  <law@redhat.com>
30598         PR rtl-optimization/64317
30599         * Makefile.in (OBJS): Add gcse-common.c
30600         * gcse.c: Include gcse-common.h
30601         (struct modify_pair_s): Move structure definition to gcse-common.h
30602         (compute_transp): Move function to gcse-common.c.
30603         (canon_list_insert): Similarly.
30604         (record_last_mem_set_info): Break out some code and put it into
30605         gcse-common.c.  Call into the new common code.
30606         (compute_local_properties): Pass additional arguments to compute_transp.
30607         * postreload-gcse.c: Include gcse-common.h and df.h
30608         (modify_mem_list_set, blocks_with_calls): New variables.
30609         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30610         (get_bb_avail_insn): Pass in the expression index too.
30611         (alloc_mem): Allocate memory for the new bitmaps and lists.
30612         (free_mem): Free memory for the new bitmaps and lists.
30613         (insert_expr_in_table): Record a bitmap index for each entry we
30614         add to the table.
30615         (record_last_mem_set_info): Call into common code in gcse-common.c.
30616         (get_bb_avail_insn): If no available insn was found in the requested
30617         BB.  If BB has a single predecessor, see if the expression is
30618         transparent in BB and available in that single predecessor.
30619         (compute_expr_transp): New wrapper for compute_transp.
30620         (eliminate_partially_redundant_load): Pass expression's bitmap_index
30621         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
30622         (gcse_after_reload_main): If there are elements in the hash table,
30623         then compute transparency for all the elements in the hash table.
30624         * gcse-common.h: New file.
30625         * gcse-common.c: New file.
30627 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
30629         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30630         as an adjective.
30631         (System Headers): Likewise.
30632         (Ifdef): Likewise.
30633         (Traditional macros): Likewise.
30634         (Invocation): Likewise.
30635         (Option Index): Likewise.
30636         * doc/cppopts.texi (-M): Likewise.
30637         (-finput-charset): Likewise.
30638         (--help): Likewise.
30639         * doc.invoke.texi (AVR Options): Likewise.
30640         (V850 Options): Likewise.
30642 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
30644         PR ipa/65475
30645         * ipa-devirt.c: Include demangle.h
30646         (odr_type_d): Add field rtti_broken.
30647         (odr_subtypes_equivalent_p): Do not require name to match.
30648         (compare_virtual_tables): Fix typo; if type already has ODR violation,
30649         bypass the tests; be ready for function referneces in vtables that are
30650         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30651         (warn_odr): Give up for nameless types.
30652         (warn_types_mismatch): Report mismatch in mangled names;
30653         report mismatch in anonymous namespaces; look into component types to
30654         give useful error; report when mismatch is dragged in from other ODR
30655         type.
30656         (odr_types_equivalent_p): Match types for being polymorphic; avoid
30657         duplicated diagnostics.
30658         (add_type_duplicate): Reorder checks so more informative ones come
30659         first; fix typo; do not output "the extra base is defined here" when
30660         we did not warn.
30661         (BINFO_N_BASE_BINFOS): Relax sanity check.
30663 2015-03-22  Martin Liska  <mliska@suse.cz>
30664             Jakub Jelinek  <jakub@redhat.com>
30666         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30667         masks that can potentially include a builtin.
30668         (ix86_add_new_builtins): Introduce fast filter for isa values
30669         that cannot trigger builtin inclusion.
30671 2015-03-22  Martin Liska  <mliska@suse.cz>
30673         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30674         (sem_item::update_hash_by_local_refs): Likewise.
30675         (sem_variable::get_hash): Empty line is fixed.
30676         (sem_item_optimizer::execute): Include adding of hash references.
30677         (sem_item_optimizer::update_hash_by_addr_refs): New function.
30678         (sem_item_optimizer::build_hash_based_classes): Use local hash.
30679         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30680         (sem_item::update_hash_by_local_refs): Likewise.
30682 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30684         PR ipa/65502
30685         * ipa-comdats.c (enqueue_references): Walk through thunks.
30686         (ipa_comdats): Likewise.
30687         (set_comdat_group_1): New function.
30689 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30691         PR ipa/65475
30692         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30693         non-polymorphic
30695 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
30696             Gerald Pfeifer  <gerald@pfeifer.com>
30698         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30700 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
30701             Sandra Loosemore  <sandra@codesourcery.com>
30703         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30704         function parameter declaration.
30705         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30706         Update arguments to nios2_adjust_call_address().
30707         (sibcall_internal): Rename from *sibcall.
30708         (sibcall_value_internal): Rename from *sibcall_value.
30709         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30710         (nios2_large_got_address): Add target temp reg parameter.
30711         (nios2_got_address): Adjust call to nios2_large_got_address, add
30712         force_reg around it.
30713         (nios2_load_pic_address): Add target temp reg parameter, replace call
30714         to nios2_got_address with corresponding code.
30715         (nios2_legitimize_constant_address): Update call to
30716         nios2_load_pic_address.
30717         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30718         to use temp reg for PIC loading purposes.
30719         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30720         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30721         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30723 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30725         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30726         usage of "the @option{...}".
30727         (-Wopenmp-simd): Likewise.
30728         (-fsanitize-recover): Likewise.
30729         (-fsanitize-undefined-trap-on-error): Likewise.
30730         (-flto): Likewise.
30731         (tracer-dynamic-coverage-feedback): Likewise.
30732         (reorder-block-duplicate-feedback): Likewise.
30733         (loop-unroll-jam-size): Likewise.
30734         (-B): Likewise.
30735         (-I-): Likewise.
30736         (-mabs=legacy): Likewise.
30737         (-mupper-regs-df): Likewise.
30738         (-mupper-regs-sf): Likewise.
30739         (-mpointers-to-nested-functions): Likewise.
30741 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30743         * doc/extend.texi (Cilk Plus Builtins): Add markup.
30745 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30747         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30748         additional index entries and cross-references.
30749         (-fchkp-check-incomplete-type): Likewise.
30750         (-fchkp-first-field-has-own-bounds): Likewise.
30751         (-fchkp-narrow-to-innermost-array): Likewise.
30752         (-fchkp-use-fast-string-functions): Likewise.
30753         (-fchkp-use-nochk-string-functions): Likewise.
30754         (-fchkp-use-static-const-bounds): Likewise.
30755         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30756         (-fchkp-instrument-marked-only): Likewise.
30757         (-fchkp-use-wrappers): Likewise.
30758         (-static-libmpx): Likewise.
30759         (-static-libmpxwrappers): Likewise.
30760         * doc/extend.texi (bnd_legacy): Likewise.
30761         (bnd_instrument): Likewise.
30762         (bnd_variable_size): Likewise.
30763         (Pointer Bounds Checker builtins): Likewise.
30765 2015-03-21  Tom de Vries  <tom@codesourcery.com>
30767         PR tree-optimization/65458
30768         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30769         * cgraph.h (cgraph_node): Add parallelized_function field.
30770         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30771         (input_overwrite_node): Read parallelized_function field.
30772         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30773         parallelized_function on cgraph_node for child_fn.
30774         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30775         Remove include of gt-tree-parloops.h.
30776         (parallelized_functions): Remove static variable.
30777         (parallelized_function_p): Rewrite using parallelized_function field of
30778         cgraph_node.
30779         (create_loop_fn): Remove adding to parallelized_functions.
30780         * Makefile.in (GTFILES): Remove tree-parloops.c
30782 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
30784         PR rtl-optimization/64366
30785         * lra.c (lra_update_insn_regno_info): Consider regs in
30786         CALL_INSN_FUNCTION_USAGE memory.
30788 2015-03-20  Richard Biener  <rguenther@suse.de>
30790         PR middle-end/64715
30791         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30792         for type comparison and gcc_checking_assert.
30793         (chrec_fold_plus_poly_poly): Likewise.
30794         (chrec_fold_multiply_poly_poly): Likewise.
30795         (chrec_convert_1): Likewise.
30796         * gimplify.c (gimplify_expr): Remove premature folding of
30797         &X + CST to &MEM[&X, CST].
30799 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30801         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30802         already is final.
30803         (ipa_inline): Recompute inline_failed codes.
30804         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30805         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30806         CIF_FINAL_ERROR.
30808 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
30810         PR rtl-optimization/60851
30811         * recog.c (constrain_operands): Accept a pseudo register before reload
30812         for LRA enabled targets.
30814 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
30816         PR target/65240
30817         * config/rs6000/predicates.md (easy_fp_constant): Remove special
30818         -ffast-math handling that kept non-0 constants live in the RTL
30819         until reload.  Remove logic testing the number of instructions it
30820         took to create a constant in a GPR that was never used, due to a
30821         test for soft-float earlier.
30822         (memory_fp_constant): Delete, no longer used.
30824         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30825         alternatives for loading non-0 constants into GPRs for hard
30826         floating point that is no longer needed due to changes in
30827         easy_fp_constant.  Add support for loading 0.0 into GPRs.
30828         (mov<mode>_hardfloat32): Likewise.
30829         (mov<mode>_hardfloat64): Likewise.
30830         (mov<mode>_64bit_dm): Likewise.
30831         (movtd_64bit_nodm): Likewise.
30832         (pre-reload move FP constant define_split): Delete define_split,
30833         since it is no longer used.
30834         (extenddftf2_internal): Remove GHF constraints that are not valid
30835         for extenddftf2.
30837 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
30839         PR rtl-optimization/63491
30840         * lra-constraints.c (check_and_process_move): Use src instead of
30841         sreg.  Remove some dead code.
30843 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
30845         PR ipa/65380
30846         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30847         (sem_variable::merge): Likewise.
30849 2015-03-19  Martin Liska  <mliska@suse.cz>
30851         PR ipa/65465
30852         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30853         all fields of cgraph_thunk_info.
30855 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30857         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30858         clone instrumented thunks.
30860 2015-03-19  Richard Biener  <rguenther@suse.de>
30862         Revert
30863         2015-03-10  Richard Biener  <rguenther@suse.de>
30865         PR middle-end/63155
30866         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30867         * tree-ssa-coalesce.c: Include timevar.h.
30868         (attempt_coalesce): Handle graph being NULL.
30869         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30870         Split out abnormal coalescing to ...
30871         (perform_abnormal_coalescing): ... this function.
30872         (coalesce_ssa_name): Perform abnormal coalescing without computing
30873         live/conflict.
30874         (verify_ssa_coalescing_worker): New function.
30875         (verify_ssa_coalescing): Likewise.
30877 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30878             Jakub Jelinek  <jakub@redhat.com>
30880         PR sanitizer/65400
30881         * tsan.c (instrument_gimple): Clear tail call flag on
30882         calls.
30884 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
30886         PR sanitizer/65400
30887         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30888         call in the return bb.
30889         (find_split_points): Add RETURN_BB argument, don't call
30890         find_return_bb.
30891         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
30892         if true append TSAN_FUNC_EXIT internal call after the call to
30893         the split off function.
30894         (execute_split_functions): Call find_return_bb here.
30895         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30896         Adjust find_split_points and split_function calls.
30898 2015-03-18  DJ Delorie  <dj@redhat.com>
30900         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30901         (iorqi3_virt): Likewise.
30903 2015-03-18  Tom de Vries  <tom@codesourcery.com>
30905         * tree-parloops.c (parallelize_loops): Make static.
30906         * tree-parloops.h (parallelize_loops): Remove extern declaration.
30908 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
30910         PR middle-end/64491
30911         Revert:
30912         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
30914         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30915         condition would be removed due to undefined behaviour.
30917 2015-03-18  Martin Liska  <mliska@suse.cz>
30919         PR ipa/65432
30920         * cgraph.c (cgraph_node::get_create): Remove unnecessary
30921         xstrdup_for_dump wrapper.
30922         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30923         sem_item::name.
30924         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30925         with xstrdup_for_dump.
30926         (sem_variable::equals): Likewise.
30927         (sem_item_optimizer::read_section): Use symtab_node::name instead of
30928         sem_item::name.
30929         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30930         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30931         symtab_node::asm_name with xstrdup_for_dump.
30932         (congruence_class::dump): Use symtab_node::name instead of
30933         sem_item::name.
30934         * ipa-icf.h (symtab_node::name): Remove.
30935         (symtab_node::asm_name): Likewise.
30937 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30939         PR tree-optimization/65450
30940         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30941         function.
30942         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30943         it instead of duplicate_ssa_name_ptr_info.
30945         PR target/65222
30946         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30948 2015-03-18  Richard Biener  <rguenther@suse.de>
30950         * tree-data-ref.h (struct access_matrix): Remove.
30951         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30952         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30953         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30954         (am_vector_index_for_loop): Likewise.
30955         (struct data_reference): Remove access_matrix member.
30956         (DR_ACCESS_MATRIX): Remove.
30957         (lambda_vector_new): Add comment.
30958         (lambda_matrix_new): Use XOBNEWVEC.
30960 2015-03-18  Richard Biener  <rguenther@suse.de>
30962         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30963         (pass_ch::execute): Cleanup the CFG only if we did sth.
30964         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30966 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30968         * expmed.c (synth_mult): Use std::swap instead of manually
30969         swapping algorithms.
30971 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30973         PR target/65078
30974         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30976 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
30978         PR target/65296
30979         * config/avr/avr.opt (-nodevicelib): New option.
30980         * doc/invoke.texi (AVR Options): Document it.
30981         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30982         libgcc.a, libc.a, libm.a.
30983         * config/avr/specs.h: Same.
30984         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30985         which don't (directly) depend on the device.  Print more help.
30986         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30987         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30988         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30989         case of an error.
30990         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30991         for specs file name.
30992         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30993         * config/avr/avr-mcus.def: Adjust initializers and comments.
30995 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
30997         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30998         DECL_ONE_ONLY to check if decl is one only.
30999         * ipa-split.c (consider_split): Limit splitt of one only functions.
31001 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31003         PR tree-optimization/65427
31004         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31005         functions.
31006         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31008 2015-03-16  Marek Polacek  <polacek@redhat.com>
31010         * cgraph.h (add_new_static_var): Remove declaration.
31011         * varpool.c (add_new_static_var): Remove function.
31013 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31015         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31016         instead of vec<tree> * with vec_alloc and release for args.
31017         Adjust all users.
31019         PR middle-end/65431
31020         * omp-low.c (delete_omp_context): Only splay_tree_delete
31021         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31022         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
31024 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31026         PR sanitizer/64820
31027         * cfgexpand.c (align_base): New function.
31028         (alloc_stack_frame_space): Call it.
31029         (expand_stack_vars): Align prev_frame to be sure
31030         data->asan_vec elements aligned properly.
31032 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
31034         PR middle-end/65409
31035         * expr.c (store_field): Do not do a direct block copy if the source is
31036         a PARALLEL with BLKmode.
31038 2015-03-16  Tom de Vries  <tom@codesourcery.com>
31040         PR middle-end/65414
31041         Revert:
31042         2015-03-12  Tom de Vries  <tom@codesourcery.com>
31044         PR rtl-optimization/64895
31045         * lra-lives.c (check_pseudos_live_through_calls): Use
31046         actual_call_used_reg_set instead of call_used_reg_set, if available.
31048 2015-03-16  Alan Modra  <amodra@gmail.com>
31050         PR target/63150
31051         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31052         Modify Z->r bswapdi splitter to use dest in place of scratch.
31053         In r->Z and Z->r bswapdi splitter rename word_high, word_low
31054         to word1, word2 and rearrange logic to suit.
31055         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31056         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
31057         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31058         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
31059         early clobber.
31061 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
31063         PR tree-optimization/65369
31064         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31065         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31066         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31068         PR tree-optimization/65418
31069         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31070         are casts in the first PLUS_EXPR operand, ensure tbias and
31071         *totallowp are in the inner type.
31073         PR rtl-optimization/65401
31074         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31075         argument.  If true, adjust_address_nv of x with big-endian
31076         correction for the mode widening to GET_MODE (y).
31077         (make_field_assignment): Don't do MEM mode widening here.
31078         Use MEM_P instead of GET_CODE == MEM.
31080 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
31082         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31083         the external decls.
31085 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31087         PR target/64600
31088         * config/arm/arm.c (arm_gen_constant, AND case): Use
31089         ARM_SIGN_EXTEND when constructing AND mask.
31091 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31093         * graph.c (print_graph_cfg): Make function names visible and append
31094         parenthesis to it.  Also make groups of basic blocks belonging to the
31095         same function visible.
31097 2015-03-12  Richard Biener  <rguenther@suse.de>
31099         PR middle-end/44563
31100         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31101         to avoid quadratic behavior with inline expansion splitting blocks.
31102         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31103         with the successor if the predecessor will be merged with it.
31104         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31105         entry block with its successor.
31107 2015-03-13  Richard Biener  <rguenther@suse.de>
31109         PR middle-end/44563
31110         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31111         (cleanup_tree_cfg_1): Do not call it.
31112         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31113         (fixup_noreturn_call): Mark the stmt as control altering.
31114         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31115         here.
31116         (pass_data_fixup_cfg): Produce a dump file.
31117         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31118         (need_noreturn_fixup): New global.
31119         (pass_dominator::execute): Fixup queued noreturn calls.
31120         (optimize_stmt): Queue calls that became noreturn for fixup.
31121         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31122         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31123         (el_to_fixup): New global.
31124         (eliminate_dom_walker::before_dom_childre): Queue calls that
31125         became noreturn for fixup.
31126         (eliminate): Fixup queued noreturn calls.
31127         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31128         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31129         (substitute_and_fold_dom_walker::before_dom_children): Queue
31130         alls that became noreturn for fixup.
31131         (substitute_and_fold): Fixup queued noreturn calls.
31133 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
31135         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31136         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31137         are building; for methods check ODR type of class they belong to if
31138         they may lead to a polymorphic call.
31139         (sem_function::compare_polymorphic_p): Be bit smarter about testing
31140         when function may lead to a polymorphic call.
31141         (sem_function::compare_type_list): Remove.
31142         (sem_variable::equals): Update use of compatible_types_p.
31143         (sem_variable::parse_tree_refs): Remove.
31144         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31145         cdtor.
31146         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31147         matching here.
31148         (func_checker::compatible_polymorphic_types_p): Break out from ...
31149         (unc_checker::compatible_types_p): ... here.
31150         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31151         Declare.
31152         (unc_checker::compatible_types_p): Update.
31153         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31154         Remove.
31156 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31158         PR rtl-optimization/65235
31159         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31160         When first element of vec_concat is const_int, calculate its size
31161         using second element.
31163 2015-03-12  Richard Biener  <rguenther@suse.de>
31165         PR middle-end/65270
31166         * fold-const.c (operand_equal_p): Fix ordering of resetting
31167         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31169 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31171         * config/s390/s390.c (s390_reorg): Move code to output nops after label
31172         to s390_reorg ().
31173         (s390_asm_output_function_label): Likewise.
31174         * config/s390/s390.c (s390_asm_output_function_label):
31175         Fix function label alignment with -mhtopatch.
31176         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31177         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31178         ("nop_2_byte"): New define_insn.
31179         ("nop_4_byte"): Likewise.
31180         ("nop_6_byte"): Likewise.
31181         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31182         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31184 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31186         PR target/65103
31187         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31188         register.
31190 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31192         PR target/65044
31193         * toplev.c (process_options): Restrict Pointer Bounds Checker
31194         usage with Address Sanitizer.
31196 2015-03-12  Richard Biener  <rguenther@suse.de>
31198         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31199         to split on.
31200         * omp-low.c (expand_omp_taskreg): Split block before removing
31201         the stmt.
31202         (expand_omp_target): Likewise.
31203         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31204         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31205         stmt to split_block.
31207 2015-03-12  Tom de Vries  <tom@codesourcery.com>
31209         PR rtl-optimization/64895
31210         * lra-lives.c (check_pseudos_live_through_calls): Use
31211         actual_call_used_reg_set instead of call_used_reg_set, if available.
31213 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31215         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31216         (cgraph_node::remove): Likewise.
31217         (cgraph_node::get_untransformed_body): Likewise.
31218         * varpool.c (varpool_node::remove): Likewise.
31219         (varpool_node::get_constructor): Add sanity check.
31221 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
31223         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31224         old GCC versions.
31225         (-fabi-compat-version): Likewise.
31226         (-ffriend-injection): Likewise.
31227         (-Wdeclaration-after-statement): Likewise.
31228         (-fomit-frame-pointer): Likewise.
31229         (-ftree-coalesce-inlined-vars): Likewise.
31230         (-fvisibility=): Likewise.
31231         * doc/extend.texi (Typeof): Likewise.
31232         (Zero Length): Likewise.
31233         (Escaped Newlines): Likewise.
31234         (Compound Literals): Likewise.
31235         (Function Attributes): Likewise.
31236         (Label Attributes): Likewise.
31237         (Type Attributes): Likewise.
31238         (Function Names): Likewise.
31239         (Other Builtins): Likewise.
31240         (Function Specific Option Pragmas): Likewise.
31241         (C++ Interface): Likewise.
31243 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
31245         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31247 2015-03-11  Marek Polacek  <polacek@redhat.com>
31249         PR tree-optimization/65388
31250         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31252 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31254         PR target/65296
31255         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31256         * configure: Regenerate.
31257         * config.in: Regenerate.
31258         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31259         [-mn-flash]: Document it.
31260         [__AVR_ARCH__]: Document avrtiny.
31262         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31263         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31264         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31266 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31268         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31270 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31272         PR target/65242
31273         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31274         allow reloads of PLUS in floating point/VSX registers.
31276 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
31278         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31279         crypto_sha256_fast.
31280         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31282 2015-03-11  Richard Biener  <rguenther@suse.de>
31284         PR tree-optimization/65310
31285         * tree-sra.c (build_ref_for_offset): Also preserve larger
31286         alignment.
31288 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
31290         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31292 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31294         PR target/65368
31295         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31296         new define_expand.
31297         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31299 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31301         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31302         (sem_function::equals_wpa): ... here.
31304 2015-03-10  Marek Polacek  <polacek@redhat.com>
31305             Jakub Jelinek  <jakub@redhat.com>
31307         PR sanitizer/65367
31308         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31309         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
31310         separately.
31312 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31314         PR target/65286
31315         * config/rs6000/t-linux: For powerpc64* target set
31316         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31318 2015-03-10  Richard Biener  <rguenther@suse.de>
31320         PR middle-end/44563
31321         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31322         for redirect_all_calls.
31324 2015-03-10  Marek Polacek  <polacek@redhat.com>
31326         * gdbinit.in (pcfun): Define and document.
31328 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
31330         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31331         of libgomp-plugin.h.
31332         (find_target_compiler): Support a case when the path to gcc is
31333         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31334         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31335         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31336         libgomp-plugin.h.
31337         (main): Use GCC_INSTALL_NAME as target_driver_name.
31338         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31339         define.
31340         (mkoffload.o): Remove obsolete include path and defines.
31341         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31343 2015-03-10  Richard Biener  <rguenther@suse.de>
31345         PR middle-end/63155
31346         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31347         * tree-ssa-coalesce.c: Include timevar.h.
31348         (attempt_coalesce): Handle graph being NULL.
31349         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31350         Split out abnormal coalescing to ...
31351         (perform_abnormal_coalescing): ... this function.
31352         (coalesce_ssa_name): Perform abnormal coalescing without computing
31353         live/conflict.
31354         (verify_ssa_coalescing_worker): New function.
31355         (verify_ssa_coalescing): Likewise.
31357 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31359         PR target/65296
31360         * config.gcc (extra_options) [avr]: Remove.
31361         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31362         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31363         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31365         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31366         (-mmcu=): Add Var and MissingArgError properties.
31367         (-march=): Remove.
31368         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31369         * config/avr/t-multilib: Regenerate.
31370         * config/avr/specs.h: New file.
31371         * config/avr/driver-avr.c: New file.
31372         * config/avr/genopt.sh: Remove file.
31373         * config/avr/avr-tables.opt: Remove file.
31374         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31375         * config/avr/avr-c.c: Same.
31376         * avr-arch.h: Same.
31377         (avr_current_device): Remove proto.
31378         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31379         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31380         (EXTRA_SPEC_FUNCTIONS): Define.
31381         (avr_devicespecs_file): New specs function proto.
31382         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31383         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31384         (avr_current_device): Remove definition and usage.
31385         (avr_set_core_architecture): New static function.
31386         (avr_option_override): Use it.
31387         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31388         (mcu_name): New static array.
31389         (comparator, avr_archs_str, avr_mcus_str): New static functions.
31390         (avr_inform_devices, avr_inform_core_architectures): New functions.
31391         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31392         (avrlibc.h) [WITH_AVRLIBC]: Include.
31393         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31394         (print_mcu): Rewrite from scratch.
31395         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31396         Forward to avr-specific specs defined in device-specs file.
31397         * config/avr/t-avr (driver-avr.o): New rule.
31398         (avr-devices.o): Depend on avr-arch.h.
31399         (avr-mcus): No more depend on avr-tables.opt.
31400         (avr-tables.opt): Remove rule.
31401         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31403 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31405         * c-family/c.opt (fchkp-use-wrappers): New.
31406         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31407         (chkp_wrap_function): New.
31408         (chkp_build_instrumented_fndecl): Support wrapped
31409         functions.
31410         * doc/invoke.texi (-fcheck-pointer-bounds): New.
31411         (-fchkp-check-incomplete-type): New.
31412         (-fchkp-first-field-has-own-bounds): New.
31413         (-fchkp-narrow-bounds): New.
31414         (-fchkp-narrow-to-innermost-array): New.
31415         (-fchkp-optimize): New.
31416         (-fchkp-use-fast-string-functions): New.
31417         (-fchkp-use-nochk-string-functions): New.
31418         (-fchkp-use-static-bounds): New.
31419         (-fchkp-use-static-const-bounds): New.
31420         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31421         (-fchkp-check-read): New.
31422         (-fchkp-check-write): New.
31423         (-fchkp-store-bounds): New.
31424         (-fchkp-instrument-calls): New.
31425         (-fchkp-instrument-marked-only): New.
31426         (-fchkp-use-wrappers): New.
31427         (-static-libmpx): New.
31428         (-static-libmpxwrappers): New.
31430 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31432         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31433         (CHKP_SPEC): Add wrappers library.
31434         * c-family/c.opt (static-libmpxwrappers): New.
31436 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
31438         * config/i386/linux-common.h (LIBMPX_LIBS): New.
31439         (LIBMPX_SPEC): New.
31440         (CHKP_SPEC): New.
31441         * gcc.c (CHKP_SPEC): New.
31442         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31443         * c-family/c.opt (static-libmpx): New.
31445 2015-03-10  Richard Biener  <rguenther@suse.de>
31447         PR middle-end/44563
31448         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31449         for compare_type.
31450         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31451         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31452         (cgraph_add_edge_to_call_site_hash): Likewise.
31453         (cgraph_node::get_edge): Likewise.
31454         (cgraph_edge::set_call_stmt): Likewise.
31455         (cgraph_edge::remove_caller): Likewise.
31457 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
31459         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31460         (callee_saved_gpr_regs_size): ... this.
31461         (callee_saved_regs_first_regno): Rename to ...
31462         (callee_saved_first_gpr_regno): ... this.
31463         (callee_saved_regs_last_regno) Rename to ...
31464         (callee_saved_last_gpr_regno): ... this.
31465         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31466         variables.
31467         (nds32_initial_elimination_offset): Likewise.
31468         (nds32_expand_prologue): Likewise.
31469         (nds32_expand_epilogue): Likewise.
31470         (nds32_expand_prologue_v3push): Likewise.
31471         (nds32_expand_epilogue_v3pop): Likewise.
31472         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31473         Adjust renamed variables.
31474         (nds32_output_stack_pop): Likewise.
31476 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31478         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31479         code in comment.
31481 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31483         PR rtl-optimization/65321
31484         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31485         than shift mode.
31486         * var-tracking.c (use_narrower_mode): Likewise.
31488 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31490         PR tree-optimization/65355
31491         * varasm.c (notice_global_symbol): Do not produce RTL.
31492         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31493         anchor.
31494         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31495         check for section anchors.
31497 2015-03-10  Alan Modra  <amodra@gmail.com>
31499         PR target/65286
31500         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31501         to be single-arch by default.  Set cpu_is_64bit for powerpc64
31502         given --with-cpu=native.
31503         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31504         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31505         and powerpc64le.
31506         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31507         rs6000_isa_flags rather than TARGET_64BIT.
31509 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
31510             Kaz Kojima  <kkojima@gcc.gnu.org>
31512         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31514 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
31516         PR lto/65361
31517         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31518         on a TREE_BINFO, instead use BINFO_TYPE.
31520 2015-03-09  Richard Biener  <rguenther@suse.de>
31522         PR middle-end/65270
31523         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31524         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31525         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
31526         of that.  When comparing dereferences compare alignment.
31527         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31529 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31531         * ipa-inline-analysis.c (check_callers): Check
31532         node->can_remove_if_no_direct_calls_and_refs_p.
31533         (growth_likely_positive): Reorganize to call
31534         can_remove_if_no_direct_calls_p later.
31535         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31536         will_be_removed_from_program_if_no_direct_calls_p): Add
31537         will_inline parameter.
31538         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31539         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31540         Handle inliner case correctly.
31542 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31544         PR tree-optimization/63743
31545         * cfgexpand.c (reorder_operands): Also reorder if only second operand
31546         had its definition forwarded by TER.
31548 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31550         PR lto/65316
31551         * ipa-utils.h (types_odr_comparable): Add strict argument.
31552         * ipa-devirt.c: Fix whitespace;
31553         (odr_hasher): Remove.
31554         (odr_name_hasher, odr_vtable_hasher): New hashers.
31555         (can_be_name_hashed_p): New predicate.
31556         (hash_type_name): remove.
31557         (hash_odr_name): New.
31558         (odr_name_hasher::hash): new.
31559         (can_be_vtable_hashed_p): New.
31560         (hash_odr_vtable): New.
31561         (odr_vtable_hasher::hash): New.
31562         (types_same_for_odr): Add strict parameter.
31563         (types_odr_comparable): Likewise.
31564         (odr_name_hasher::equal): New.
31565         (odr_vtable_hasher::equal): New.
31566         (odr_name_hasher::remove): New.
31567         (odr_hash_type): Change to hash_table<odr_name_hasher>.
31568         (odr_vtable_hash_type): New.
31569         (odr_vtable_hash): New.
31570         (odr_subtypes_equivalent_p): Do strict comparsion.
31571         (add_type_duplicate): Merge type names; cleanup; avoid type
31572         duplicates.
31573         (register_odr_type): Initialize vtable hash.
31574         (build_type_inheritance_graph): Likewise
31575         (get_odr_type): Reorg to use two hashes.
31576         (dump_possible_polymorphic_call_targets): Move sanity check after debug
31577         output.
31578         (ipa_devirt): Dump type_inheritance_graph.
31579         (types_same_for_odr): Add strict mode.
31581 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31583         PR ipa/65334
31584         * cgraph.h (symtab_node): Add definition_alignment,
31585         can_increase_alignment_p and increase_alignment.
31586         * symtab.c (symtab_node::can_increase_alignment_p,
31587         increase_alignment_1, symtab_node::increase_alignment,
31588         symtab_node::definition_alignment): New.
31589         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31590         can_increase_alignment_p.
31591         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31592         * tree-vect-stmts.c (ensure_base_align): Likewise.
31593         * varasm.c (function_section_1): Use definition_alignment.
31594         (assemble_start_function): Likewise.
31595         (emit_local): likewise.
31596         (build_constant_desc): Likewsie.
31597         (output_constant_def_contents): Likewise.
31598         (place_block_symbol): Likewise.
31599         (output_object_block): Likewise.
31601 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31603         PR ipa/65316
31604         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31605         when outputting debug.
31607 2015-03-07  Marek Polacek  <polacek@redhat.com>
31608             Martin Uecker  <uecker@eecs.berkeley.edu>
31610         PR sanitizer/65280
31611         * doc/invoke.texi: Update description of -fsanitize=bounds.
31613 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
31615         * tree-ssa-phiopt.c (neg_replacement): Remove.
31616         (tree_ssa_phiopt_worker): Remove negate optimization.
31618 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31620         PR ipa/65302
31621         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31623 2015-03-06  Richard Biener  <rguenther@suse.de>
31625         PR middle-end/64928
31626         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31627         and liveout_obstack members.
31628         (calculate_live_on_exit): Remove.
31629         (calculate_live_ranges): Change declaration.
31630         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31631         (new_tree_live_info): Adjust.
31632         (calculate_live_ranges): Delete livein when not wanted.
31633         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31634         Deal with partly deleted live info.
31635         (loe_visit_block): Remove temporary bitmap by using
31636         bitmap_ior_and_compl_into.
31637         (live_worklist): Adjust accordingly.
31638         (calculate_live_on_exit): Make static.
31639         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31640         we do not need livein.
31642 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
31644         * real.c (real_from_string): Fix typo in assertion.
31646 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
31648         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31649         the patch.
31651 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31653         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31655 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
31657         PR target/64342
31658         * lra-assigns.c (find_hard_regno_for): Rename to
31659         find_hard_regno_for_1.  Add a new parameter.
31660         (find_hard_regno_for): New function using find_hard_regno_for_1.
31662 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31664         PR rtl-optimization/65067
31665         * expmed.c (store_bit_field, extract_bit_field): Reworked the
31666         strict volatile bitfield handling.
31668 2015-03-05  Martin Liska  <mliska@suse.cz>
31670         PR ipa/65318
31671         * ipa-icf.c (sem_variable::equals): Compare variables types.
31673 2015-03-05  Richard Henderson  <rth@redhat.com>
31675         PR target/65121
31676         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31677         correctly check weak symbol binding.
31679 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
31681         PR middle-end/65315
31682         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31683         needed alignment.
31685 2015-03-05  Martin Liska  <mliska@suse.cz>
31687         * ipa-inline.c (inline_small_functions): Set default value to
31688         prevent warning during bootstrap.
31689         * tree.h: Add pragma guard that ignores false positives during
31690         bootstrap.
31692 2015-03-05  Richard Biener  <rguenther@suse.de>
31694         PR tree-optimization/65310
31695         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31696         Properly preserve alignment of the base of the access.
31698 2015-03-05  Richard Biener  <rguenther@suse.de>
31700         PR ipa/65270
31701         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31702         Compare dependence info.
31704 2015-03-05  Richard Biener  <rguenther@suse.de>
31706         PR middle-end/65233
31707         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31708         tree-into-ssa.h.
31709         (walk_ssa_copies): Revert last chage.  Instead do not walk
31710         SSA names registered for SSA update.
31712 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31714         PR ipa/65270
31715         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31716         vtable references for their containing type.
31717         (sem_function::equals_wpa): Compare TYPE_RESTRICT
31718         and type attributes.
31720 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
31722         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31723         before negating it.
31724         * stor-layout.c (finalize_record_size): Revert latest change.
31726 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
31728         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31730 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31732         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31733         for correct comdat handling.
31734         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31735         Likewise.
31736         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31737         (used_from_object_file_p_worker): Remove.
31738         (cgraph_node::only_called_directly_or_alised): Add
31739         used_from_object_file_p.
31740         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31741         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31742         can_remove_if_no_direct_calls_and_refs_p.
31744 2015-03-04  Nick Clifton  <nickc@redhat.com>
31746         * config/rl78/rl78.h (enum reg_class): Remove real registers from
31747         General register class.
31748         * config/rl78/rl78-real.md: Replace general register constraints
31749         with real+virtual register constraints.
31751 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31753         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31754         from checking for -mhtm option.
31756 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31758         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31759         (struct ipa_sra_check_caller_data): Add has_thunk field.
31760         (ipa_sra_check_caller): Check for thunk.
31761         (ipa_sra_preliminary_function_checks): Give up on function with
31762         thunks.
31763         (ipa_early_sra): Use call_for_symbol_and_aliases.
31765 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
31767         PR target/65249
31768         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31769         called for __stack_chk_guard symbol.
31771 2015-03-03  DJ Delorie  <dj@redhat.com>
31773         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31774         inc/dec.
31775         (*addhi3_real): Likewise.
31776         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31777         pattern to match incrementing memory.
31778         * config/rl78/predicates.md (rl78_1_2_operand): New.
31779         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31780         it's the same and only mem.
31781         (rl78_alloc_physical_registers_op2): If there's effectively only
31782         one MEM, transcode it into HL.
31783         (rl78_far_p): Reject addresses that aren't legitimate.
31785 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31787         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31788         negating it.
31790         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31792 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31794         Implement call0 ABI for xtensa
31795         * config/xtensa/constraints.md ("a" constraint): Include stack
31796         pointer in case of call0 ABI.
31797         ("q" constraint): Make empty in case of call0 ABI.
31798         ("D" constraint): Include stack pointer in case of call0 ABI.
31799         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31800         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31801         prototypes.
31802         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31803         variable.
31804         (xtensa_regno_to_class): Make it a local variable in the
31805         function xtensa_regno_to_class.
31806         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31807         macro, function prototype and implementation.
31808         (reg_nonleaf_alloc_order): Make it a local variable in the
31809         function order_regs_for_local_alloc.
31810         (xtensa_conditional_register_usage): New function.
31811         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31812         (xtensa_valid_move): Allow direct moves to stack pointer
31813         register in call0 ABI.
31814         (xtensa_setup_frame_addresses): Only spill register windows in
31815         windowed ABI.
31816         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31817         call0 ABI respectively.
31818         (xtensa_function_arg_1): Only mark a7 register for copying in
31819         windowed ABI.
31820         (xtensa_call_save_reg): New function.
31821         (compute_frame_size): Add space for callee saved register
31822         storage to the frame size in call0 ABI.
31823         (xtensa_expand_prologue): Generate code to set up stack frame
31824         and save callee-saved registers in call0 ABI.
31825         (xtensa_expand_epilogue): New function.
31826         (xtensa_set_return_address): New function.
31827         (xtensa_return_addr): Calculate return address in call0 ABI.
31828         (xtensa_builtin_saveregs): Only mark a7 register for copying and
31829         emit copying code in windowed ABI.
31830         (order_regs_for_local_alloc): Add preferred register allocation
31831         order for non-leaf function in call0 ABI.
31832         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31833         (xtensa_asm_trampoline_template): Add trampoline generation for
31834         call0 ABI.
31835         (xtensa_trampoline_init): Add trampoline initialization for
31836         call0 ABI.
31837         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31838         functions.
31839         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31840         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31841         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31842         ABI call-used registers.
31843         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31844         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31845         call0 ABI.
31846         (REG_CLASS_CONTENTS): Include all registers into the preferred
31847         reload registers set, adjust the set in the
31848         xtensa_conditional_register_usage.
31849         (xtensa_regno_to_class): Drop variable declaration.
31850         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31851         function.
31852         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31853         respectively.
31854         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31855         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31856         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31857         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31858         location in call0 ABI.
31859         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31860         stack adjustment size when handling exception.
31861         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31862         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31863         definitions.
31864         ("return" pattern): Generate ret.n/ret in call0 ABI.
31865         ("epilogue" pattern): Expand epilogue.
31866         ("nonlocal_goto" pattern): Use default in call0 ABI.
31867         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31868         emit eh_set_a0_* depending on ABI.
31869         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31870         ("eh_set_a0_call0", "blockage"): New patterns.
31872 2015-03-03  Martin Liska  <mliska@suse.cz>
31874         PR ipa/65287
31875         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31877 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
31879         PR 65138/target
31880         * config/rs6000/rs6000-tables.opt: Regenerate table.
31882 2015-03-03  Renlin Li  <renlin.li@arm.com>
31884         * doc/md.texi (@item ^): Change ? into ^.
31886 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31888         * doc/tm.texi: Regenerated.
31890 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31892         * builtins.c (expand_builtin_return_addr): Add
31893         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31894         surrounding #ifdef.
31895         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31896         definition to 1.
31897         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31898         Likewise.
31899         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31900         undefined.
31901         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31902         paragraph.
31904 2015-03-03  Martin Jambor  <mjambor@suse.cz>
31905             Eric Botcazou  <ebotcazou@adacore.com>
31907         * tree-sra.c (ipa_sra_check_caller_data): New type.
31908         (has_caller_p): Removed.
31909         (ipa_sra_check_caller): New function.
31910         (ipa_sra_preliminary_function_checks): Use it.
31912 2015-03-03  Martin Liska  <mliska@suse.cz>
31914         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31915         instead of if branch.
31917 2015-03-03  Martin Liska  <mliska@suse.cz>
31919         PR ipa/65282
31920         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31922 2015-03-23  Jeff Law  <law@redhat.com>
31924         PR tree-optimization/65241
31925         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31926         hash table if INSERT is true.
31928 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31930         PR target/65296
31931         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31933 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31935         PR target/64331
31936         * config/avr/avr.c (context.h, tree-pass.h): Include them.
31937         (avr_pass_data_recompute_notes): New static variable.
31938         (avr_pass_recompute_notes): New class.
31939         (avr_register_passes): New static function.
31940         (avr_option_override): Call it.
31942 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31944         Fix various problems with specs file generation.
31946         PR target/65296
31947         * config.gcc (extra_gcc_objs) [avr]: Remove.
31948         * config/avr/driver-avr.c: Remove file.
31949         * config/avr/t-avr (driver-avr.o): Remove rule.
31950         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31951         INCLUDES to build.  Depend on TM_H.
31952         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
31953         build warnings.  Fix non-matching types and non-existing %-codes.
31954         (tm.h): Include.
31955         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31956         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31957         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31958         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31959         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31960         (LIBGCC_SPEC): Remove definitions.
31962 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31964         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31965         to create a register in testing mode.
31967 2015-03-03  Martin Liska  <mliska@suse.cz>
31968             Jan Hubicka  <hubicka@ucw.cz>
31970         PR ipa/65263
31971         * cgraph.c (cgraph_node::has_thunk_p): New function.
31972         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31973         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31974         (sem_function::merge): Assert is changed.
31976 2015-03-03  Martin Liska  <mliska@suse.cz>
31977             Martin Jambor  <mjambor@suse.cz>
31979         PR ipa/65087
31980         * ipa-icf.c (sem_item_optimizer::execute): Change function
31981         return value to boolean.
31982         (sem_item_optimizer::merge_classes): Likewise.
31983         (ipa_icf_driver): Return TODO_remove_functions in case there's
31984         a merge operation processed.
31985         * ipa-icf.h: Change function return value to boolean.
31987 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
31989         PR 65138/target
31990         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31991         processor type for 64-bit little endian PowerPC.
31993         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31994         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
31995         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
31996         printing built-in mask so it does not pass NULL pointers.
31998         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31999         -mcpu=powerpc64le.
32001 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
32003         PR target/58158
32004         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32005         !ISA_HAS_FP_CONDMOVE.
32007 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
32009         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32010         reload_completed.
32012 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
32014         * doc/invoke.texi (Options for Code Generation Conventions):
32015         Fix URL of DSO paper.
32017 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32019         PR ipa/65130
32020         * ipa-inline.c (check_callers): Looks for recursion.
32021         (inline_to_all_callers): Give up on uninlinable or recursive edges.
32022         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32023         summary of inline clones.
32024         (do_estimate_growth_1): Fix recursion check.
32026 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32028         PR ipa/64988
32029         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32030         comdat groups.
32032 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32033             Aldy Hernandez  <aldyh@redhat.com>
32035         PR lto/65276
32036         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32037         when checking TYPE_BINFO.
32039 2015-03-02  Richard Biener  <rguenther@suse.de>
32041         PR ipa/65270
32042         * ipa-icf-gimple.c: Include builtins.h.
32043         (func_checker::compare_memory_operand): Compare base alignment.
32045 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32047         PR target/65184
32048         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32049         passed by reference.
32051 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32053         PR target/65183
32054         * tree-chkp.c (chkp_check_lower): Don't check against
32055         zero bounds for already instrumented functions.
32056         (chkp_check_upper): Likewise.
32057         (chkp_fini): Clean pass local data to avoid wrong reusage.
32059 2015-02-28  Martin Liska  <mliska@suse.cz>
32060             Jan Hubicka  <hubicka@ucw.cz>
32062         * ipa-icf.c (sem_variable::equals): Improve debug output;
32063         get variable constructor.
32064         (sem_variable::parse): Do not filter out too early; give up on
32065         volatile and register vars.
32066         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32067         variables.
32068         * ipa-icf.h (sem_variable::init): Do not set ctor.
32069         (sem_variable::ctor): Remove.
32071 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
32073         PR middle-end/65233
32074         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32076 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32078         * ipa-icf.c: Include stor-layout.h
32079         (sem_function::compare_cgraph_references): Rename to ...
32080         (sem_item::compare_cgraph_references): ... this one.
32081         (sem_variable::equals_wpa): New function
32082         (sem_variable::equals): Do not check stuff already verified by
32083         equals_wpa.
32084         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32085         * ipa-icf.h (sem_item): Add compare_cgraph_references.
32086         (sem_function): Remove compare_cgraph_references.
32087         (sem_variable): Turns equals_wpa into non-inline.
32089 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32091         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32092         (sem_item::add_expr): New function.
32093         (sem_function::hash_stmt): Handle operands of most statements.
32094         (sem_variable::get_hash): Hash the actual constructor.
32095         * ipa-icf.h (sem_item): Add add_expr.
32096         (sem_function): Update prototype of hash_stmt
32098 2015-02-28  Martin Liska  <mliska@suse.cz>
32099             Jan Hubicka  <hubicka@ucw.cz>
32101         PR ipa/65245
32102         * ipa-icf-gimple.c (func_checker::compare_function_decl):
32103         Remove.
32104         (func_checker::compare_variable_decl): Skip symtab vars.
32105         (func_checker::compare_cst_or_decl): Update.
32106         * ipa-icf.c (sem_function::parse): Do not consider aliases.
32107         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32108         use correct symtab predicates.
32109         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32110         (sem_variable::parse):  Update comment.
32111         (sem_item_optimizer::build_graph): Consider ultimate aliases
32112         for references.
32114 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32116         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32117         of OBJ_TYPE_REF.
32119 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32121         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32122         (sem_variable::merge) Likewise.
32124 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32126         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32127         target; also match flag_ipa_devirt.
32129 2015-03-01  Martin Liska  <mliska@suse.cz>
32130             Jan Hubicka  <hubicka@ucw.cz>
32132         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32133         Validate variable alignment.
32134         * ipa-icf.c (sem_function::equals_private): Be more precise
32135         about non-common function attributes.
32136         (sem_variable::equals): Likewise.
32138 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32140         PR ipa/65237
32141         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32142         across COMDAT group boundary.
32144 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32146         PR ipa/65232
32147         * ipa-icf.c (clear_decl_rtl): New function.
32148         (sem_function::merge): Clear RTL before forming alias.
32149         (sem_variable::merge): Clear RTL before forming alias.
32151 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32153         PR ipa/65236
32154         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32156 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
32158         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32159         to neon_to_gp<q>.
32161 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32163         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32164         a typo in the description.
32166 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32168         PR target/64317
32169         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32170         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32171         * lra-constraints.c: Include "params.h".
32172         (EBB_PROBABILITY_CUTOFF): Use
32173         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32174         (lra_inheritance): Use '<' instead of '<=' for
32175         EBB_PROBABILITY_CUTOFF.
32176         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32177         Document change.
32179 2015-02-27  Martin Liska  <mliska@suse.cz>
32181         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32182         vector length condition.
32184 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
32186         * doc/extend.texi (x86 transactional memory intrinsics):
32187         Reorganize discussion of _xbegin.  Clarify that the return
32188         value is a bit mask.  Expand example and move to end of section.
32190 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32191             Aldy Hernandez  <aldyh@redhat.com>
32193         PR rtl-optimization/65220
32194         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32196 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32198         PR target/65032
32199         * lra-remat.c (update_scratch_ops): New.
32200         (do_remat): Call it.
32201         * lra.c (lra_register_new_scratch_op): New. Take code from ...
32202         (remove_scratches): ... here.
32203         * lra-int.h (lra_register_new_scratch_op): New prototype.
32205 2015-02-27  Marek Polacek  <polacek@redhat.com>
32207         PR c/65040
32208         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32209         -Wformat-signedness anymore.
32211 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32213         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32214         function.
32215         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32217 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32219         * config/s390/s390.c (enum s390_builtin):
32220         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32221         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32222         (s390_init_builtins): Generate new builtin functions.
32223         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32224         (s390_sfpc, s390_efpc): New pattern definitions.
32226 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32228         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32229         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32230         (s390_builtin_decls): New array.
32231         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32232         (s390_builtin_decl): New function.
32233         (TARGET_BUILTIN_DECL): Define macro.
32235 2015-02-27  Richard Biener  <rguenther@suse.de>
32237         PR middle-end/63175
32238         * builtins.c (get_object_alignment_2): Make sure to re-apply
32239         the ANDed mask after recursing to its operand gets us a new
32240         misalignment bit position.
32242 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
32243             Martin Liska  <mliska@suse.cz>
32245         PR bootstrap/65150
32246         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32247         Use address_matters_p.
32248         (redirect_all_callers, set_addressable): New functions.
32249         (sem_function::merge): Reorganize and fix merging issues.
32250         (sem_variable::merge): Likewise.
32251         (sem_variable::compare_sections): Remove.
32252         * common.opt (fmerge-all-constants, fmerge-constants): Remove
32253         Optimization flag.
32254         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32255         redirect them.
32256         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32257         decl is used.
32258         (address_matters_1): New function.
32259         (symtab_node::address_matters_p): New function.
32260         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32261         check for merged flag.
32262         * cgraph.h (address_matters_p): Declare.
32263         (symtab_node::address_taken_from_non_vtable_p): Remove.
32264         (symtab_node::address_can_be_compared_p): New method.
32265         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32266         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32267         Remove.
32268         (comdat_can_be_unshared_p_1) Use address_matters_p.
32269         (update_vtable_references): Fix formating.
32270         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32271         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32272         * cgraphclones.c: Preserve merged and icf_merged flags.
32274 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
32276         * doc/extend.texi (Function Attributes): Fix spelling and typos.
32277         (Label Attributes): Likewise.
32278         (Cilk Plus Builtins): Likewise.
32279         (ARC SIMD Built-in Functions): Likewise.
32280         (ARM C Language Extensions (ACLE)): Likewise.
32281         (PowerPC Built-in Functions): Likewise.
32282         (PowerPC Hardware Transactional Memory Built-in Functions):
32283         Likewise.
32285 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32287         PR tree-optimization/65216
32288         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32289         new stmt and new SSA_NAME for lhs whenever the arguments have
32290         changed and weren't just swapped.  Fix comment typo.
32292         PR tree-optimization/65215
32293         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32294         for PDP endian targets.
32295         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32296         Fix up formatting issues.
32297         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
32298         size is smaller than the original, adjust MEM_REF offset by the
32299         difference of sizes.  Use is_gimple_mem_ref_addr instead of
32300         is_gimple_min_invariant test to avoid adding address temporaries.
32302 2015-02-26  Martin Liska  <mliska@suse.cz>
32303             Jan Hubicka  <hubicka@ucw.cz>
32305         PR ipa/64693
32306         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32307         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32308         (sem_item_optimizer::process_cong_reduction): Include division by
32309         sensitive references.
32310         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32311         * ipa-ref.c (ipa_ref::address_matters_p): New function.
32312         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32314 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
32316         PR target/65192
32317         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32318         Remove.
32319         * config/avr/avr.c: Same.
32320         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32321         Refuse any constant address not in 0..0xbf.
32322         * config/avr/avr.md (*mov<mode>, *movsf): Remove
32323         tiny_valid_direct_memory_access_range from insn conditions.
32324         (mov<mode>): Don't special-case expansion of avrtiny addresses.
32326 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
32328         PR target/61142
32329         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32330         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32331         * config/sh/predicates.md (const_logical_operand): New predicate.
32332         * config/sh/sh.md: Add new peephole2 patterns.
32334 2015-02-26  Marek Polacek  <polacek@redhat.com>
32336         PR ipa/65008
32337         * ipa-inline.c (early_inliner): Recompute inline parameters.
32339 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32341         PR target/65171
32342         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32343         instructions with TImode operands are included in the analysis.
32345 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
32347         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32348         of an EDGE_FSM_THREAD.
32350 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32352         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32354 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
32356         PR debug/46102
32357         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32359 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
32361         PR tree-optimization/65048
32362         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32363         (thread_through_all_blocks): Call valid_jump_thread_path.
32364         Remove invalid FSM jump-thread paths.
32366 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32368         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32369         (ipa_write_optimization_summaries): Likewise.
32370         * tree-streamer.h: Include data-streamer.h.
32371         (streamer_mode_table): Declare extern variable.
32372         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32373         * lto-streamer-out.c (lto_output_init_mode_table,
32374         lto_write_mode_table): New functions.
32375         (produce_asm_for_decls): Call lto_write_mode_table when streaming
32376         offloading LTO.
32377         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32378         (lto_create_simple_input_block): Add mode_table argument to the
32379         lto_input_block constructors.
32380         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32381         Likewise.
32382         * data-streamer-in.c (string_for_index): Likewise.
32383         * ipa-inline-analysis.c (inline_read_section): Likewise.
32384         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32385         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32386         * lto-streamer-in.c (lto_read_body_or_constructor,
32387         lto_input_toplevel_asms): Likewise.
32388         (lto_input_mode_table): New function.
32389         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32390         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32391         Use bp_pack_machine_mode.
32392         * real.h (struct real_format): Add name field.
32393         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32394         (class lto_input_block): Add mode_table member.
32395         (lto_input_block::lto_input_block): Add mode_table_ argument,
32396         initialize mode_table.
32397         (struct lto_file_decl_data): Add mode_table field.
32398         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32399         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32400         unpack_ts_decl_common_value_fields,
32401         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32402         * tree-streamer.c (streamer_mode_table): New variable.
32403         * real.c (ieee_single_format, mips_single_format,
32404         motorola_single_format, spu_single_format, ieee_double_format,
32405         mips_double_format, motorola_double_format,
32406         ieee_extended_motorola_format, ieee_extended_intel_96_format,
32407         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32408         ibm_extended_format, mips_extended_format, ieee_quad_format,
32409         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32410         decimal_single_format, decimal_double_format, decimal_quad_format,
32411         ieee_half_format, arm_half_format, real_internal_format): Add name
32412         field.
32413         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32415 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
32417         PR target/65161
32418         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32419         reordering for selective scheduling.
32421 2015-02-26  Terry Guo  <terry.guo@arm.com>
32423         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32424         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32425         (arm_arch_no_volatile_ce): Declare new global variable.
32426         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32427         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32428         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32429         (TARGET_NO_VOLATILE_CE): New macro.
32430         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32431         volatile memory access in IT block
32433 2015-02-25  Kai Tietz  <ktietz@redhat.com>
32435         PR tree-optimization/61917
32436         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32437         that reduc_def_stmt is null.
32439 2015-02-25  Martin Liska  <mliska@suse.cz>
32441         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32442         hard register variables.
32444 2015-02-25  Kai Tietz  <ktietz@redhat.com>
32446         PR target/64212
32447         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32448         (symtab::noninterposable_alias): Likewise.
32450 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
32452         PR target/65167
32453         * config/i386/i386.c (ix86_function_arg_regno_p): Support
32454         bounds registers.
32455         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32457 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
32459         PR target/64997
32460         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32461         as split condition; force split via '#' in output pattern.
32463 2015-02-25  Richard Biener  <rguenther@suse.de>
32464             Kai Tietz  <ktietz@redhat.com>
32466         PR tree-optimization/61917
32467         * tree-vect-loop.c (vectorizable_reduction): Allow
32468         vect_internal_def without reduction to exit graceful.
32470 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32472         PR target/65196
32473         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32474         only with NONDEBUG_INSN_P.
32476 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32478         Use variadic macros with avr-log.c.
32480         * config/avr/avr-protos.h (avr_vdump): New prototype.
32481         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32482         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32483         * config/avr/avr-log.c: Adjust comments.
32484         (avr_vdump): New function.
32485         (avr_vadump): Pass caller as 2nd argument instead of format string.
32486         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32487         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32489 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
32491         PR lto/64374
32492         * target.def (target_option_stream_in): New target hook.
32493         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32494         targetm.target_option.post_stream_in if non-NULL.
32495         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32496         * doc/tm.texi: Updated.
32497         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32498         function.
32499         (TARGET_OPTION_POST_STREAM_IN): Redefine.
32501 2015-02-24  Jeff Law  <law@redhat.com>
32503         PR target/65117
32504         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32505         of operand 0 and operand 2.
32506         (zero_cost_loop_end, loop_end): Similarly.
32508 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
32510         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32511         CXX_MEM_STAT_INFO.
32513 2015-02-24  DJ Delorie  <dj@redhat.com>
32515         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32516         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32517         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32518         instead of hardcoding SImode.
32520 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
32522         * omp-low.c (create_omp_child_function): Tag entrypoint
32523         functions with a special attribute.
32525 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32527         PR target/65058
32528         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32530 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
32532         PR rtl-optimization/65123
32533         * lra-remat.c (operand_to_remat): Check hard regs in insn
32534         definition too.
32536 2015-02-24  Nick Clifton  <nickc@redhat.com>
32538         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32539         to the assembler.
32541 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
32543         PR libgomp/64625
32544         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32545         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32546         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32547         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32548         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32549         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32550         (BUILT_IN_GOACC_PARALLEL): Specify as
32551         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32552         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32553         * builtin-types.def
32554         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32555         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32556         Remove function types.
32557         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32558         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32559         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32560         New function types.
32562 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
32564         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32566 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
32568         PR tree-optimization/65170
32569         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32570         if val[1] < 0, clear also val[2] and return 3.
32572 2015-02-24  Alan Modra  <amodra@gmail.com>
32574         PR target/65172
32575         * config/rs6000/rs6000.c (get_memref_parts): Only return true
32576         when *base is a reg.  Handle nested plus addresses.  Simplify
32577         pre_modify test.
32579 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
32581         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32582         use natural alignment when optimizing for size.
32584 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
32586         PR target/65153
32587         * config/sh/sh.md (movsicc_true+3): Remove peephole.
32588         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32589         * config/sh/sh.c (replace_n_hard_rtx): Remove.
32591 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
32593         PR fortran/63427
32594         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32595         too big for a wide_int.  Implement missing wrapping operation.
32597 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
32599         PR target/65163
32600         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32601         instead of const_int 4294901760.
32603 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
32605         * config/avr/t-avr: Fix typo in comment.
32607 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32609         * doc/rtl.texi (fma): Clarify documentation.
32611 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
32613         PR debug/58123
32614         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32615         over input_location.
32617 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32619         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32620         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32621         restrict alignments to absolute_biggest_alignment.
32622         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32623         Define.
32624         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32625         * doc/tm.texi: Regenerate.
32626         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32628 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
32630         PR target/64172
32631         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32633 2015-02-20  Richard Biener  <rguenther@suse.de>
32635         PR tree-optimization/65136
32636         * tree-ssa-propagate.c: Include cfgloop.h.
32637         (replace_phi_args_in): Avoid replacing loop latch edge PHI
32638         arguments with constants.
32640 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
32641             Martin Liska  <mliska@suse.cz>
32643         PR target/63892
32644         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32645         don't try to create_thunk if stdarg_p.  If
32646         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32647         redirect_callers if possible.
32648         (sem_item_optimizer::execute): Call unregister_hooks here...
32649         (ipa_icf_driver): ... instead of here.
32651 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32653         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32654         Mark operand 0 as earlyclobber in 2nd alternative.
32655         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32656         Write negated shift amount into QI lowpart operand 0 and use it
32657         in the shift step.
32658         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32660 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32662         * cgraph.h (clone_function_name_1): Declare.
32663         * cgraphclones.c (clone_function_name_1): New function.
32664         (clone_function_name): Use it.
32665         * lto-partition.c: Include "stringpool.h".
32666         (must_not_rename, maybe_rewrite_identifier)
32667         (validize_symbol_for_target): New static functions.
32668         (privatize_symbol_name): Use must_not_rename.
32669         (promote_symbol): Call validize_symbol_for_target.
32670         (lto_promote_cross_file_statics): Likewise.
32671         (lto_promote_statics_nonwpa): Likewise.
32673 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
32675         PR target/64452
32676         * config/avr/avr.md (pushhi_insn): New insn.
32677         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32679 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32680             Jakub Jelinek  <jakub@redhat.com>
32682         * tree-streamer.c (preload_common_nodes): Don't preload
32683         TI_VA_LIST* for offloading.
32684         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32685         in_lto_p.
32687 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
32689         * config/pa/pa.c (pa_emit_move_sequence): Always force
32690         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
32691         note on insn.
32693         * config/pa/pa.c (pa_reloc_rw_mask): New function.
32694         (TARGET_ASM_RELOC_RW_MASK): Define.
32695         (pa_cannot_force_const_mem): Revert previous change.
32697 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
32698             Jan Hubicka  <hubicka@ucw.cz>
32700         PR ipa/65028
32701         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32702         across jump functions.
32704 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
32706         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32708 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
32710         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32712 2015-02-19  Richard Henderson  <rth@redhat.com>
32714         PR middle-end/65074
32715         * varasm.c (default_binds_local_p_2): Don't test node->definition;
32716         test DECL_EXTERNAL independent of symtab_node.
32718 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
32720         PR lto/65012
32721         * varpool.c (varpool_node::get_constructor): Return early
32722         if this->lto_file_data is NULL.
32724 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
32726         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32727         (rank_for_schedule_debug): Update.
32728         (ready_sort): Make static.  Move sorting logic to ...
32729         (ready_sort_debug, ready_sort_real): New static functions.
32730         (schedule_block): Sort both debug insns and real insns in preparation
32731         for ready list trimming.  Improve debug output.
32732         * sched-int.h (ready_sort): Remove global declaration.
32734 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
32736         * ipa-icf.c (sem_function::equals_private): Adjust.
32737         (sem_function::bb_dict_test): Take a vec<int> * instead of
32738         auto_vec<int>.
32739         * ipa-icf.h (bb_dict_test): Likewise.
32741 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32743         PR gcov-profile/64634
32744         * tree-eh.c (frob_into_branch_around): Fix up typos
32745         in function comment.
32746         (lower_catch): Put eh_seq resulting from EH lowering of
32747         the cleanup sequence after the cleanup rather than before it.
32749 2015-02-18  Tom de Vries  <tom@codesourcery.com>
32751         * common.opt (fstdarg-opt): New option.
32752         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32753         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32754         (@item -fstdarg-opt): New item.
32756 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
32758         PR target/65064
32759         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32760         for common symbols.
32762 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32764         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32765         insn-modes.h.
32766         (ALL_HOST_OBJS): Add mkoffload.o.
32767         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32769 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
32771         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32772         (compare_virtual_tables): Be smarter about skipping typeinfos;
32773         do sane output on virtual table table mismatch.
32774         (warn_odr): Be ready for forward declarations of enums;
32775         output sane info on base mismatch and virtual table mismatch.
32776         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32777         when only one type is polymorphic.
32778         (get_odr_type): Fix hashtable corruption.
32779         (dump_odr_type): Dump mangled names.
32781 2015-02-18  Richard Biener  <rguenther@suse.de>
32783         PR tree-optimization/65063
32784         * tree-predcom.c (determine_unroll_factor): Return 1 if we
32785         have replaced looparound PHIs.
32787 2015-02-18  Martin Liska  <mliska@suse.cz>
32789         * lto-streamer.c (lto_streamer_init): Encapsulate
32790         streamer_check_handled_ts_structures with checking macro.
32792 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32794         PR ipa/65087
32795         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32796         section if !implicit_section.
32797         (cgraph_node::create_version_clone_with_body): Likewise.
32798         * trans-mem.c (ipa_tm_create_version): Likewise.
32800 2015-02-18  Richard Biener  <rguenther@suse.de>
32802         PR tree-optimization/62217
32803         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32804         into BIVs.
32806 2015-02-18  Marek Polacek  <polacek@redhat.com>
32808         PR sanitizer/65081
32809         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32810         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32811         is in range [-16K, -1].  Don't issue run-time error if
32812         (ptr > ptr + offset).
32814 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
32816         * doc/install.texi (nvptx-*-none): New section.
32817         * doc/invoke.texi (Nvidia PTX Options): Likewise.
32818         * config/nvptx/nvptx.opt: Update.
32820         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32821         (access_check): New functions, copied from
32822         config/i386/intelmic-mkoffload.c.
32823         (main): For non-installed testing, look in all COMPILER_PATHs for
32824         GCC_INSTALL_NAME.
32826         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32828 2015-02-18  Andrew Pinski  <apinski@cavium.com>
32829             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32831         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32832         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32834 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32836         * ipa-visibility.c (function_and_variable_visibility): Only
32837         check locality if node is not already local.
32838         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32839         call_for_symbol_and_aliases instead of
32840         call_for_symbol_thunks_and_aliases.
32841         (ipa_inline): Likewise.
32842         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32843         first walk aliases.
32844         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32845         call_for_symbol_and_aliases.
32846         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32847         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32848         (ipa_propagate_frequency): Update.
32849         (ipa_profile): Add opt_for_fn gueards.
32851 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32853         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32854         * doc/invoke.texi (SH options): Document it.
32855         * config/sh/sh.c (sh_insn_length_adjustment): Check
32856         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32858 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
32860         * common.opt (fipa-cp-alignment): New.
32861         * ipa-cp.c (ipcp_store_alignment_results): Check
32862         flag_ipa_cp_alignment.
32863         * opts.c (default_options_table): Enable -fipa-cp-alignment for
32864         -O2.
32865         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32866         * doc/invoke.texi: Document -fipa-cp-alignment.
32868 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32870         PR target/64793
32871         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32872         to nil.  Adjust comments.
32874 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32876         * ipa-visibility.c (function_and_variable_visibility): Only
32877         check locality if node is not already local.
32878         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32879         call_for_symbol_and_aliases instead of
32880         call_for_symbol_thunks_and_aliases.
32881         (ipa_inline): Likewise.
32882         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32883         first walk aliases.
32884         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32885         call_for_symbol_and_aliases.
32886         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32887         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32888         (ipa_propagate_frequency): Update.
32889         (ipa_profile): Add opt_for_fn guards.
32891 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
32893         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32894         skipping of "strange" tokens.
32896 2015-02-17  Jeff Law  <law@redhat.com>
32898         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
32899         obsolete comment.
32901 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
32903         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32904         as forcing a HARD_DEP between instructions, thereby
32905         disallowing rewriting to break dependencies.
32907 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32909         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32910         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32911         variables in boundary that have no inlitalizer encoded and are
32912         not aliases.
32913         * varasm.c (default_binds_local_p_2): External definitions do not
32914         count as definitions here.
32916 2015-02-16  Jeff Law  <law@redhat.com>
32918         PR tree-optimization/64823
32919         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32920         statements.
32921         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32922         threading through blocks with PHIs, but no statements.
32923         (thread_through_normal_block): Distinguish between blocks where
32924         we did not process all the statements and blocks with no statements.
32926 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
32927             James Greenhalgh  <james.greenhalgh@arm.com>
32929         PR ipa/64963
32930         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32931         section if not linkonce.  Fix up formatting.
32932         (cgraph_node::create_version_clone_with_body): Copy section.
32933         * trans-mem.c (ipa_tm_create_version): Likewise.
32935 2015-02-16  Richard Biener  <rguenther@suse.de>
32937         PR tree-optimization/65077
32938         * tree-ssa-structalias.c (get_constraint_for_1): Handle
32939         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32940         (find_func_aliases): Allow float values to carry pointers again.
32942 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
32944         * doc/install.texi (Specific): Reorder targets list to put
32945         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
32946         from the top menu.
32948 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
32949             David Edelsohn  <dje.gcc@gmail.com>
32951         PR target/65058
32952         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32953         mapping class to external variable or function reference.
32954         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32955         mapping class.
32957 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
32959         PR target/53348
32960         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32961         ASM_WEAKEN_DECL if defined.
32963 2015-02-16  Richard Biener  <rguenther@suse.de>
32965         PR lto/65015
32966         * varasm.c (default_file_start): For LTO produced units
32967         emit <artificial> as file directive.
32969 2015-02-16  Richard Biener  <rguenther@suse.de>
32971         PR tree-optimization/63593
32972         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32973         stmts and releasing SSA names until...
32974         (execute_pred_commoning): ... after processing all chains.
32976 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32978         PR ipa/65059
32979         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32980         external functions.
32982 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
32984         * doc/bugreport.texi: Adjust section titles throughout the file
32985         to use "Title Case".
32986         * doc/extend.texi: Likewise.
32987         * doc/gcov.texi: Likewise.
32988         * doc/implement-c.texi: Likewise.
32989         * doc/implement-cxx.texi: Likewise.
32990         * doc/invoke.texi: Likewise.
32991         * doc/objc.texi: Likewise.
32992         * doc/standards.texi: Likewise.
32993         * doc/trouble.texi: Likewise.
32995 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
32997         * cgraph.h (symtab_node::has_aliases_p): Simplify.
32998         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32999         * tree.c (lookup_binfo_at_offset): Make static.
33000         (get_binfo_at_offset): Do not shadow offset; add explanatory
33001         comment.
33003 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
33005         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33006         for all floading point loads and stores except those using a register
33007         index address.
33008         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33009         to a register.
33011 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33013         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33014         (do_estimate_growth_1): Record if any uninlinable edge was seen.
33015         (estimate_growth): Handle uninlinable edges correctly.
33016         (check_callers): New.
33017         (growth_likely_positive): Handle aliases correctly.
33019 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33021         * ipa-chkp.c: Use iterate_direct_aliases.
33022         * symtab.c (resolution_used_from_other_file_p): Move inline.
33023         (symtab_node::create_reference): Fix formating.
33024         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33025         (symtab_node::iterate_reference): Move inline.
33026         (symtab_node::iterate_referring): Move inline.
33027         (symtab_node::iterate_direct_aliases): Move inline.
33028         (symtab_node::used_from_object_file_p_worker): Inline into ...
33029         (symtab_node::used_from_object_file_p): ... this one; move inline.
33030         (symtab_node::call_for_symbol_and_aliases): Move inline;
33031         use iterate_direct_aliases.
33032         (symtab_node::call_for_symbol_and_aliases_1): New method.
33033         (cgraph_node::call_for_symbol_and_aliases): Move inline;
33034         use iterate_direct_aliases.
33035         (cgraph_node::call_for_symbol_and_aliases_1): New method.
33036         (varpool_node::call_for_node_and_aliases): Rename to ...
33037         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33038         use iterate_direct_aliases.
33039         (varpool_node::call_for_symbol_and_aliases_1): New method.
33040         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33041         (ipa_discover_readonly_nonaddressable_var): Update.
33042         * ipa-devirt.c: Fix formating.
33043         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33044         Move inline.
33045         (cgraph_node::call_for_symbol_and_aliases): Move inline.
33046         (cgraph_node::call_for_symbol_and_aliases_1): New function..
33047         * cgraph.h (used_from_object_file_p_worker): Remove.
33048         (resolution_used_from_other_file_p): Move inline.
33049         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33050         (symtab_node::iterate_reference): Move inline.
33051         (symtab_node::iterate_referring): Move inline.
33052         (symtab_node::iterate_direct_aliases): Move inline.
33053         (symtab_node::used_from_object_file_p_worker): Inline into ...
33054         (symtab_node::used_from_object_file_p): Move inline.
33055         * tree-emutls.c (ipa_lower_emutls): Update.
33056         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33057         (varpool_node::call_for_node_and_aliases): Remove.
33059 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
33061         PR tree-optimization/62209
33062         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33063         op == range->exp, insert seq and gimplified code after labels
33064         instead of after the phi.
33066 2015-02-13  Jeff Law  <law@redhat.com>
33068         PR bootstrap/65060
33069         Revert my change for tree-optimization/64823.
33071 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33073         PR tree-optimization/65053
33074         * tree-ssa-phiopt.c (value_replacement): When moving assign before
33075         cond, either reset VR on lhs or set it to phi result VR.
33077 2015-02-13  Jeff Law  <law@redhat.com>
33079         PR tree-optimization/64823
33080         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33081         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33082         threading through blocks with PHIs, but no statements.
33083         (thread_through_normal_block): Distinguish between blocks where
33084         we did not process all the statements and blocks with no statements.
33086         PR rtl-optimization/47477
33087         * match.pd (convert (plus/minus (convert @0) (convert @1): New
33088         simplifier to narrow arithmetic.
33090 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
33092         PR ipa/65028
33093         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33094         polymorphic call info when type is not known to be preserved.
33096 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
33098         PR ipa/65028
33099         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33100         (inline_call): Use it.
33102 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
33104         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33105         GOMP_DEVICE_NVIDIA_PTX.
33107 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33109         PR ipa/65034
33110         * stmt.c (emit_case_nodes): Use void_type_node instead of
33111         NULL_TREE as LABEL_DECL type.
33113 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
33115         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33116         constraints.
33117         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33118         symbolic references to data to be forced to constant memory on the
33119         SOM target.
33121 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
33123         PR tree-optimization/65002
33124         * tree-cfg.c (pass_data_fixup_cfg): Don't update
33125         SSA on start.
33126         * tree-sra.c (some_callers_have_no_vuse_p): New.
33127         (ipa_early_sra): Reject functions whose callers
33128         assume function is read only.
33130 2015-02-13  Richard Biener  <rguenther@suse.de>
33132         PR lto/65015
33133         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33134         for LTO produced CUs.
33136 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
33138         PR tree-optimization/64705
33139         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33140         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33141         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33142         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33143         expand_simple_operations.
33145 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
33146             Richard Henderson  <rth@redhat.com>
33148         PR rtl/32219
33149         * cgraphunit.c (cgraph_node::finalize_function): Set definition
33150         before notice_global_symbol.
33151         (varpool_node::finalize_decl): Likewise.
33152         * varasm.c (default_binds_local_p_2): Rename from
33153         default_binds_local_p_1, add weak_dominate argument.  Use direct
33154         returns instead of assigning to local variable.  Unify varpool and
33155         cgraph paths via symtab_node.  Reject undef weak variables before
33156         testing visibility.  Reorder tests for simplicity.
33157         (default_binds_local_p): Use default_binds_local_p_2.
33158         (default_binds_local_p_1): Likewise.
33159         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33160         via symtab_node.
33161         (default_elf_asm_output_external): Emit visibility when specified.
33163 2015-02-13  Alan Modra  <amodra@gmail.com>
33165         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33166         code setting up r11 for out-of-line fp restore.
33168 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
33170         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33171         (muser-mode): Likewise.
33173 2015-02-13  Alan Modra  <amodra@gmail.com>
33175         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33176         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33178 2015-02-12  David Howells  <dhowells@redhat.com>
33180         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33181         warning.
33182         * tree-ssa-uninit.c (dump_predicates): Likewise.
33183         * opts.c (print_filtered_help): Likewise.
33185 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33187         * dwarf2out.c (output_die): Use "%s", name instead of name to
33188         avoid -Wformat-security warning.
33190         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33191         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33192         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33193         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33195 2015-02-12  Jason Merrill  <jason@redhat.com>
33197         * common.opt (-flifetime-dse): New.
33199 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33201         PR sanitizer/65019
33202         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33204         PR tree-optimization/65014
33205         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33206         use original second operand of arg0 or arg1 instead of
33207         that adjusted by STRIP_NOPS.
33209 2015-02-11  Jeff Law  <law@redhat.com>
33211         PR target/63347
33212         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33213         that needs to be queued, just queue it for a single cycle.
33215 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
33217         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33218         bodies of thunks; comment on why.
33219         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33220         symbols are extern.
33222 2015-02-11  Richard Henderson  <rth@redhat.com>
33224         PR sanitize/65000
33225         * tree-eh.c (mark_reachable_handlers): Mark source and destination
33226         regions of __builtin_eh_copy_values.
33228 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33230         PR middle-end/65003
33231         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33232         ultimate alias is MEM with SYMBOL_REF satisfying
33233         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
33234         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33236 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
33238         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33239         "diagnostic-core.h".
33240         (main): Initialize progname, and call diagnostic_initialize.
33242         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33243         instead of __OPENMP_TARGET__.
33245         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33246         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33247         hard-coding PTX_ID.
33249 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
33251         * doc/sourcebuild.texi (pie_enabled): Document.
33253 2015-02-11  Martin Liska  <mliska@suse.cz>
33255         PR ipa/64813
33256         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33257         a return value for call to a function that is noreturn.
33259 2015-02-11  Richard Biener  <rguenther@suse.de>
33261         PR lto/65015
33262         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33263         and -fresolution.
33265 2015-02-11  Andrew Pinski  <apinski@cavium.com>
33267         PR target/64893
33268         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33269         Change the first argument type to size_type_node and add another
33270         size_type_node.
33271         (aarch64_simd_expand_builtin): Handle the new argument to
33272         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33273         print an out when the first two arguments are not
33274         nonzero integer constants.
33275         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33276         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33278 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33280         PR target/61925
33281         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33282         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33283         (ix86_set_current_function): Rewritten.
33284         (ix86_add_new_builtins): Temporarily clear current_target_pragma
33285         when creating builtin fndecls.
33287 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33289         PR ipa/65005
33290         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33291         function.
33292         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33293         have no comdat group.
33294         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33295         (lto_output_varpool_node): Always output alias info.
33296         (output_refs): Output refs of boundary aliases, too.
33297         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33298         (output_symtab): Output call eges in thunks in boundary.
33299         (get_alias_symbol): Remove.
33300         (input_node, input_varpool_node): Do not special case weakrefs.
33301         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33302         alias and thunks targets in the boundary; do not take removed symbols
33303         from their comdat groups.
33304         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33305         (cgraph_node::global_info): Remove.
33306         (cgraph_node::rtl_info): Look through aliases and thunks.
33307         * cgrpah.h (global_info): Remove.
33308         (non_local_p): Remove.
33310 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33311             Sandra Loosemore  <sandra@codesourcery.com>
33313         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33314         to inline asm.  List dialects in proper order.
33316 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33317             Sandra Loosemore  <sandra@codesourcery.com>
33319         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33321 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33323         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33324         modified) reference to Solaris.
33326 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
33328         * doc/extend.texi (Extended Asm): Fix typos.
33330 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
33332         PR sanitizer/65004
33333         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33335 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
33337         PR target/64661
33338         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33339         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33340         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33341         * config/sh/constraints.md (Ara, Add): New constraints.
33342         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33343         predicates.
33344         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33345         atomic_mem_operand_0.  Don't use force_reg on the memory address.
33346         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33347         Sra constraint.  Convert to insn_and_split.  Add workaround for
33348         PR 64974.
33349         (atomic_compare_and_swap<mode>_hard): Copy to
33350         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
33351         Use atomic_mem_operand_0 predicate.
33352         (atomic_compare_and_swap<mode>_soft_gusa,
33353         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33354         AraAdd constraints.
33355         (atomic_compare_and_swap<mode>_soft_tcb,
33356         atomic_compare_and_swap<mode>_soft_imask,
33357         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33358         atomic_mem_operand_0 predicate and SraSdd constraints.
33359         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33360         constraint.
33361         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33362         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
33363         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33364         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
33365         force_reg on the memory address.
33366         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33367         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33368         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33369         atomic_mem_operand_1 predicate and Sra constraint.
33370         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33371         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
33372         Use atomic_mem_operand_1 predicate.
33373         (atomic_<fetchop_name><mode>_hard): Copy to
33374         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
33375         Use atomic_mem_operand_1 predicate.
33376         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33377         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
33378         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
33379         insn_and_split.  Use atomic_mem_operand_1 predicate.
33380         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33381         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
33382         Use atomic_mem_operand_1 predicate.
33383         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33384         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
33385         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33386         in generated insn with original mem operand before emitting the insn.
33387         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33388         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33389         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33390         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33391         Use atomic_mem_operand_1 predicate and AraAdd constraints.
33392         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33393         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33394         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33395         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33396         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33397         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33398         atomic_not_fetch<mode>_soft_tcb,
33399         atomic_<fetchop_name>_fetch<mode>_soft_imask,
33400         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33401         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33402         Use atomic_mem_operand_1 predicate and SraSdd constraints.
33404 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
33406         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33407         and 3 earlyclobber operands.
33409 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33411         * common.opt (fstack-reuse): Mark as optimization.
33413 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33415         PR ipa/64982
33416         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33418 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
33420         PR tree-optimization/64326
33421         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33423 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
33425         PR gcov-profile/61889
33426         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33428 2015-02-10  Richard Biener  <rguenther@suse.de>
33430         PR tree-optimization/64995
33431         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33432         value we use is final.
33433         (visit_reference_op_store): Always valueize op.
33434         (visit_use): Properly valueize vuses.
33436 2015-02-10  Richard Biener  <rguenther@suse.de>
33438         PR tree-optimization/64909
33439         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33440         pass a scalar-stmt count estimate to the cost model.
33441         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33443 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
33445         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33446         enabled by default together with var-tracking.
33448 2015-02-10  Nick Clifton  <nickc@redhat.com>
33450         * config/rl78/rl78.c: Remove DIV attribute code accidentally
33451         included in previous rl78 commit.
33453 2015-02-10  Richard Biener  <rguenther@suse.de>
33455         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33456         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33457         return the bitpack.
33459 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33461         PR gcov-profile/61889
33462         * config.in: regenerate.
33463         * configure.in: Likewise.
33464         * configure.ac: Check for ftw.h.
33465         * gcov-tool.c: Check for ftw.h before using nftw.
33467 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33469         PR lto/64076
33470         * ipa-visibility.c (update_visibility_by_resolution_info): Only
33471         assert when not in lto mode.
33473 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33475         * ira-color.c (setup_left_conflict_sizes_p): Simplify
33476         initialization/assignment of conflict_size.
33478 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
33480         PR ipa/64978
33481         * ipa-cp.c (gather_caller_stats): Skip thunks.
33482         (propagate_constants_topo): Skip aliases.
33484 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
33486         PR target/64761
33487         * config/sh/sh.c (sh_option_override): Don't change
33488         -freorder-blocks-and-partition to -freorder-blocks even when
33489         unwinding is enabled.
33490         (sh_can_follow_jump): Return false if the followee jump is
33491         a crossing jump when -freorder-blocks-and-partition is specified.
33492         * config/sh/sh.md (*jump_compact_crossing): New insn.
33494 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
33495             Kaz Kojima  <kkojima@gcc.gnu.org>
33497         PR target/64761
33498         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33499         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33500         (sh_can_redirect_branch): Rename to ...
33501         (sh_can_follow_jump): ... this.  Constify argument types.
33502         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33503         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33504         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33505         * doc/tm.texi: Regenerate.
33507 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33509         PR sanitizer/64981
33510         * builtins.c (expand_builtin): Call targetm.expand_builtin
33511         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33513 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33515         PR ipa/61548
33516         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33518 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33520         PR ipa/63566
33521         * ipa-icf.c (set_local): New function.
33522         (sem_function::merge): Use it.
33524 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33526         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33527         (add_type_duplicate): Fix comparison of BINFOs.
33529 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33531         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33532         on getting VOID pointer.
33534 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33536         PR target/64979
33537         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33538         va_list escapes.
33540 2015-02-09  Richard Biener  <rguenther@suse.de>
33542         * genmatch.c (replace_id): Copy expr_type.
33544 2015-02-09  Richard Biener  <rguenther@suse.de>
33546         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33547         (streamer_write_tree_bitfields): Declare.
33548         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33549         properly unpack padding.
33550         (unpack_value_fields): Inline ...
33551         (streamer_read_tree_bitfields): ... here.
33552         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33553         and properly add padding bits.
33554         (streamer_pack_tree_bitfields): Fold into ...
33555         (streamer_write_tree_bitfields): ... this new function,
33556         exposing the bitpack object.
33557         * lto-streamer-out.c (lto_write_tree_1): Call
33558         streamer_write_tree_bitfields.
33560 2015-02-09  Richard Biener  <rguenther@suse.de>
33562         PR tree-optimization/54000
33563         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33564         (struct ivopts_data): Add loop_loc member.
33565         (tree_ssa_iv_optimize_loop): Dump loop location.
33566         (create_new_ivs): Likewise, also dump number of IVs generated.
33568 2015-02-09  Martin Liska  <mliska@suse.cz>
33570         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33571         just if not yet registered.
33572         (ipa_icf_generate_summary): Register callgraph hooks.
33574 2015-02-08  Andrew Pinski  <apinski@cavium.com>
33576         * config/aarch64/aarch64.c (gty_dummy): Delete.
33578 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33580         PR ipa/63566
33581         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33582         (cgraph_node::local_p): Remove thunk related FIXME.
33584 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33586         PR ipa/63566
33587         * i386.c (ix86_function_regparm): Look through aliases to see if callee
33588         is local and optimized.
33589         (ix86_function_sseregparm): Likewise; also use target's SSE math
33590         settings; error out instead of silently generating wrong code
33591         on mismatches.
33592         (init_cumulative_args): Look through aliases.
33594 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33596         PR ipa/63566
33597         * ipa-split.c (execute_split_functions): Split if function has aliases.
33599 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33601         PR ipa/63566
33602         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33603         aliases before trying to expand it.
33604         (cgraph_node::expand_thunk): Fix formating.
33606 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
33608         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33609         (Using Assembly Language with C): Expand introduction.
33610         (Basic Asm): Copy-edit.  Add more information about uses of
33611         basic asm.
33612         (Extended Asm): Copy-edit.  Document new escape syntax and
33613         %l[label] syntax.
33614         (Global Reg Vars): Copy-edit.
33615         (Local Reg Vars): Likewise.
33617 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
33619         PR debug/2714
33620         PR bootstrap/64256
33621         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33622         (DBX_CONTIN_CHAR): Define.
33624 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
33625             Brian Rzycki  <b.rzycki@samsung.com>
33627         PR tree-optimization/64878
33628         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33629         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33630         Stop recursion at loop phi nodes after having visited a loop phi node.
33632 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33634         * toplev.c (process_options): Change flag_ipa_ra before creating
33635         optimization_{default,current}_node.
33637         PR ipa/64896
33638         * cgraphunit.c (cgraph_node::expand_thunk): If
33639         restype is not is_gimple_reg_type nor the thunk_fndecl
33640         returns aggregate_value_p, set restmp to a temporary variable
33641         instead of resdecl.
33643 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
33645         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33647 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33649         PR target/64205
33650         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33651         add a general secondary reload handler for SDmode, unless we have
33652         both read/write support for SDmode.
33654 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33656         PR middle-end/64937
33657         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33658         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33659         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33660         1 before, push it to abstract_vec.
33661         (dwarf2out_abstract_function): Adjust caller.  Don't call
33662         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33663         DECL_ABSTRACT_P flags for all abstract_vec elts.
33665 2015-02-06  Renlin Li  <renlin.li@arm.com>
33667         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33668         complex gimple.
33669         * tree-ssa.c (execute_update_addresses_taken): Likewise.
33671 2015-02-06  Jeff Law  <law@redhat.com>
33673         PR target/64889
33674         * config/h8300/h8300.c (push): New argument "in_prologue".
33675         Pass "in_prologue" along to "F".
33676         (h8300_push_pop): Corresponding changes.
33677         (h8300_expand_prologue): Likewise.
33678         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
33680 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33682         PR rtl-optimization/64957
33683         PR debug/64817
33684         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33685         IOR rather than for AND.
33687 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
33689         PR target/62631
33690         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33691         of shift-add and (add + shift) operations.  Rename local variable.
33693 2015-02-05  Jeff Law  <law@redhat.com>
33695         PR target/17306
33696         * config/h8300/constraints.md (U): Correctly dectect
33697         "eightbit_data" memory addresses.
33698         * config/h8300/h8300.c (eightbit_constant_address_p): Also
33699         handle (const (plus (symbol_ref (x)))) where x is declared
33700         as an 8-bit data memory address.
33701         * config/h8300/h8300.md (call, call_value): Correctly detect
33702         "funcvec" functions.
33704         PR target/43264
33705         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33706         24 to 28 bits for the H8/300.
33708 2015-02-06  Alan Modra  <amodra@gmail.com>
33710         PR target/64876
33711         * config/rs6000/rs6000.c (chain_already_loaded): New function.
33712         (rs6000_call_aix): Use it.
33714 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
33716         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33717         check.
33719 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
33721         * config/h8300/constraints.md ("U" constraint): Use strict
33722         variant of REG_OK_FOR_BASE_P after reload has started.
33724 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
33726         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33727         define to zero if !TARGET_NEON.
33728         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33730 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33731             Trevor Saunders  <tsaunders@mozilla.com>
33733         PR ipa/61548
33734         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33736 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33738         PR ipa/61548
33739         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33740         when removing varpool nodes.
33742 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33744         PR ipa/61548
33745         * varpool.c (varpool_node::remove): Fix order of variables.
33747 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33749         PR ipa/64686
33750         * ipa-inline.c (inline_small_functions): Fix ordering issue between
33751         speculation resolution and key updates.
33753 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33755         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33756         about not letting any speculative edges unupdated.
33758 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33760         PR gcov/64123
33761         * gcov-io.c (gcov_var): Export.
33763 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33765         PR middle-end/64922
33766         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33767         edges that become speculative.
33769 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
33771         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33772         or DW_LANG_Fortran08.
33773         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33774         DW_LANG_Fortran08.
33775         (gen_compile_unit_die): Handle "GNU Fortran2003" and
33776         "GNU Fortran2008" language strings.
33777         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33778         * langhooks.h (lang_GNU_Fortran): New prototype.
33779         * langhooks.c (lang_GNU_Fortran): New function.
33780         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33781         lang_GNU_Fortran.
33783 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33785         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33786         (RTX_OK_FOR_OLO10_P): Likewise.
33788 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33790         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33792 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33794         PR middle-end/64922
33795         * gimple.c: Include gimple-ssa.h.
33796         (maybe_remove_unused_call_args): New function.
33797         * gimple.h (maybe_remove_unused_call_args): Declare.
33798         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33799         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33800         * gimple-fold.c (gimple_fold_call): Likewise.
33802 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
33804         PR rtl-optimization/64905
33805         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33806         pointer alignment if it isn't needed.
33808 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33810         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33811         cortex-a72.cortex-a53.
33812         * config/aarch64/aarch64-tune.md: Regenerate.
33813         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33815 2015-02-04  Nick Clifton  <nickc@redhat.com>
33817         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33818         inside a MEM.
33820 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
33822         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33823         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33824         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33825         of DEF_BUILTIN.
33826         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33827         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33828         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33829         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33830         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33831         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33832         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33833         * tree-core.h (enum built_in_function): In between
33834         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33835         for builtins that use DEF_BUILTIN_CHKP macro.
33837 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
33839         PR debug/64817
33840         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33841         operands for tcc_comparison exprs.  Fix typos.
33843         PR debug/64817
33844         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33845         of two XORs that have an intervening AND or IOR.
33847         PR debug/64817
33848         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33849         simplification of XOR of AND to not allocate new rtx before
33850         committing to a simplification.
33852 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33854         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33855         manual swaps in all peepholes.
33857 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33859         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33860         of manual swapping implementation.
33861         (aarch64_expand_vec_perm_const_1): Likewise.
33863 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
33865         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33866         (generic_addrcost_table): Remove NAMED_PARAM.
33867         (cortexa57_addrcost_table): Likewise.
33868         (xgene1_addrcost_table): Likewise.
33869         (generic_regmove_table): Likewise.
33870         (cortexa53_regmove_table): Likewise.
33871         (xgene1_regmove_table): Likewise.
33872         (generic_vector_table): Likewise.
33873         (cortexa57_vector_table): Likewise.
33874         (xgene1_vector_table): Likewise.
33875         (generic_tunings): Likewise.
33876         (cortexa53_tunings): Likewise.
33877         (cortexa57_tunings): Likewise.
33878         (xgene1_tunings): Likewise.
33880 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33882         * config/arm/arm-cores.def: Add cortex-a72 and
33883         cortex-a72.cortex-a53.
33884         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33885         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33886         * config/arm/arm-tune.md: Regenerate.
33887         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33888         "cortex-a72.cortex-a53".
33889         * doc/invoke.texi (ARM Options/-mtune): Likewise.
33891 2015-02-04  Nick Clifton  <nickc@redhat.com>
33893         PR target/64408
33894         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33895         of accepted codes.
33896         (nonimmediate_di_operand): Likewise.
33898         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33899         prefixes of known F5 using MSP430 MCUs.
33901 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33903         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33904         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33905         instead of __builtin_sqrt.
33907 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
33909         * varasm.c (do_assemble_alias): Follow transparent alias
33910         chain for target.
33911         (default_assemble_visibility): Follow transparent alias
33912         chain for decl name.
33914 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33916         PR middle-end/62103
33917         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33918         to compute size of referenced value in the constant case.
33920 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
33922         PR rtl-optimization/64756
33923         * cse.c (invalidate_dest): New function.
33924         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
33925         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33926         invalidate and do not record it.
33928 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
33930         PR target/64660
33931         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33932         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33933         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33934         atomic_nand<mode>_soft_tcb): New insns.
33935         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33936         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33937         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33938         Split into atomic_not_fetchsi_hard if operands[0] is unused.
33939         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33940         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33941         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
33942         atomic_not<mode>_hard if operands[0] is unused.
33943         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33944         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33945         if operands[0] is unused.
33946         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
33947         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33948         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33949         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33950         unused.
33951         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
33952         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33953         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33954         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33955         if operands[0] is unused.
33956         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
33957         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33958         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
33959         atomic_nand_fetchsi_hard if operands[0] is unused.
33960         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
33961         atomic_nand<mode>_hard if operands[0] is unused.
33962         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
33963         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33964         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
33965         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33966         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
33967         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33968         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33969         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33970         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
33971         atomic_not<mode>_hard if operands[0] is unused.
33972         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33973         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33974         unused.
33975         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33976         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33977         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
33978         atomic_nand<mode>_hard if operands[0] is unused.
33979         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33980         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33982 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
33984         PR jit/64810
33985         * Makefile.in (GCC_OBJS): Add gcc-main.o.
33986         * gcc-main.c: New file, containing "main" taken from gcc.c.
33987         * gcc.c (do_self_spec): Free decoded_options.
33988         (class driver): Move declaration to gcc.h.
33989         (main): Move declaration and implementation to new file
33990         gcc-main.c.
33991         (driver_get_configure_time_options): New function.
33992         * gcc.h (class driver): Move this declaration here, from
33993         gcc.c.
33994         (driver_get_configure_time_options): New declaration.
33996 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
33998         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33999         cross-module inlining.
34000         * cgraph.h (cgraph_node): Add flag merged.
34001         * ipa-icf.c (sem_function::merge): Maintain it.
34003 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
34005         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34006         instead of OBJECT_P.
34008 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
34010         PR target/62631
34011         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34012         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34013         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34014         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34016 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34018         PR other/63504
34019         * combine.c (reg_n_sets_max): New variable.
34020         (can_change_dest_mode, reg_nonzero_bits_for_combine,
34021         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34022         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34023         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34024         (rest_of_handle_combine): Initialize reg_n_sets_max.
34026 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
34028         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34029         if some always_inline was inlined, apply changes before inlining
34030         heuristically.
34032 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
34034         PR jit/64810
34035         * config/arm/arm.c (arm_option_override): Set
34036         arm_selected_arch/cpu/tune to NULL on entry.
34038 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
34039             Andrew Pinski  <pinskia@gcc.gnu.org>
34040             Jakub Jelinek  <jakub@gcc.gnu.org>
34042         PR target/64231
34043         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34044         integer typing for small model. Use IN_RANGE.
34046 2015-02-02  Richard Biener  <rguenther@suse.de>
34048         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34049         * tree-vrp.c (vrp_valueize_1): Likewise.
34051 2015-02-02  Alan Modra  <amodra@gmail.com>
34053         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34054         than mem for toc_restore.
34055         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34056         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34057         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34059 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
34061         PR target/64047
34062         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34063         explicit default options.
34065 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
34067         PR ipa/64872
34068         * ipa-utils.c (ipa_merge_profiles): Add release argument.
34069         * ipa-icf.c (sem_function::merge): Do not release body when merging.
34070         * ipa-utils.h (ipa_merge_profiles): Update prototype.
34072 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
34074         PR debug/64817
34075         * cfgexpand.c (deep_ter_debug_map): New variable.
34076         (avoid_deep_ter_for_debug): New function.
34077         (expand_debug_expr): If TERed SSA_NAME is in
34078         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34079         instead of trying to expand SSA_NAME's def stmt.
34080         (expand_debug_locations): When expanding debug bind
34081         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34082         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34083         value.
34084         (pass_expand::execute): Call avoid_deep_ter_for_debug on
34085         all debug bind stmts.  Delete deep_ter_debug_map after
34086         expand_debug_location if non-NULL and clear it.
34088 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
34090         PR target/64851
34091         * config/sh/sync.md (atomic_fetch_notsi_hard,
34092         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34093         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34094         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34095         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34096         atomic_not_fetch<mode>_soft_imask): New insns.
34098 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34100         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34101         (rank_for_schedule_debug): Split from ...
34102         (rank_for_schedule): ... this.
34103         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34104         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34106 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34108         * doc/md.texi (Machine Constraints): Alphabetize table by target.
34109         * doc/extend.texi (x86 Variable Attributes): Move section to
34110         correct alphabetization after renaming.
34111         (x86 Type Attributes): Likewise.
34112         (Target Builtins): Re-alphabetize menu.
34113         (x86 Built-in Functions): Move section to correct alphabetization
34114         after renaming.
34115         (x86 transactional memory intrinsics): Likewise.
34116         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34117         and x86 Windows Options in table and menu.
34118         (x86 Options): Move section to correct alphabetization after
34119         renaming.
34120         (x86 Windows Options): Likewise.
34122 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34124         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34125         preferred names of the architecture and its 32- and 64-bit
34126         variants.
34127         * doc/invoke.texi: Likewise.
34128         * doc/md.texi: Likewise.
34130 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34132         PR target/64882
34133         * config/i386/predicates.md (address_no_seg_operand): Reject
34134         non-CONST_INT_P operands in invalid mode.
34136 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34138         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34139         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
34140         * config/i386/predicates.md (address_no_seg_operand): Call
34141         address_operand with VOIDmode.
34142         (vsib_address_operand): Ditto.
34143         (address_mpx_no_base_operand): Ditto.
34144         (address_mpx_no_index_operand): Ditto.
34146 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34148         PR target/64688
34149         * lra-constraints.c (original_subreg_reg_mode): New.
34150         (simplify_operand_subreg): Try to simplify subreg of const.  Use
34151         original_subreg_reg_mode for it.
34152         (swap_operands): Update original_subreg_reg_mode.
34153         (curr_insn_transform): Set up original_subreg_reg_mode.
34155 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34157         PR target/64617
34158         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34159         function.
34160         (process_alt_operands): Use it.
34161         (curr_insn_transform): Check the optional reload pseudo class is
34162         ok for the mode.
34164 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
34166         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34167         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34168         prototype.
34169         * toplev.h (init_asm_output): Update comment on use of
34170         UNKNOWN_LOCATION with fatal_error.
34171         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34172         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34173         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34174         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34175         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34176         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34177         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34178         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34179         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34180         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34181         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34182         fatal_error changed to pass input_location as first argument.
34184 2015-01-30  Martin Liska  <mliska@suse.cz>
34186         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34187         in #pragma GCC diagnostic guards.
34189 2015-01-30  Richard Biener  <rguenther@suse.de>
34191         PR tree-optimization/64829
34192         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34193         not add a widening conversion pattern but hand off extra
34194         widenings to callers.
34195         (vect_recog_widen_mult_pattern): Handle extra widening produced
34196         by vect_handle_widen_op_by_const.
34197         (vect_recog_widen_shift_pattern): Likewise.
34198         (vect_pattern_recog_1): Remove excess vertical space in dumping.
34199         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34200         (vect_init_vector_1): Likewise.
34201         (vect_get_vec_def_for_operand): Likewise.
34202         (vect_finish_stmt_generation): Likewise.
34203         (vectorizable_load): Likewise.
34204         (vect_analyze_stmt): Likewise.
34205         (vect_is_simple_use): Likewise.
34207 2015-01-29  Jeff Law  <law@redhat.com>
34209         * combine.c (try_combine): Fix typo in comment.
34211 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
34213         PR target/64580
34214         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34215         (rs6000_stack_info): Add assert.
34216         (rs6000_output_savres_externs): New function, split off from...
34217         (rs6000_output_function_prologue): ... here.  Do not call it for
34218         thunks.
34220 2015-01-29  Jeff Law  <law@redhat.com>
34222         PR target/15184
34223         * combine.c (try_combine): If I0 is a memory load and I3 a store
34224         to a related address, increase the "goodness" of doing a 4-insn
34225         combination with I0-I3.
34226         (make_field_assignment): Handle SUBREGs in the ior+and case.
34228 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
34230         PR tree-optimization/64746
34231         * tree-if-conv.c (mask_exists): New function.
34232         (predicate_mem_writes): Save created mask with given size for further
34233         use.
34234         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34235         (ifcvt_repair_bool_pattern): Collect all statements that are root
34236         of bool pattern and use iterative algorithm to remove multiple uses
34237         of predicates, display number of required iterations.
34239 2015-01-29  Richard Biener  <rguenther@suse.de>
34241         PR tree-optimization/64853
34242         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34243         stmt will get simulated again.
34244         * tree-ssa-ccp.c (valueize_op_1): Likewise.
34246 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34248         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34249         return_in_pc.  Remove redundant assignments.
34250         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34251         (arm_expand_epilogue): Don't compare boolean with true in if condition.
34253 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
34255         * config/i386/i386.c (ix86_mode_after): Make static.
34257 2015-01-29  Richard Biener  <rguenther@suse.de>
34259         PR tree-optimization/64844
34260         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34261         dump cost model analysis.
34262         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34263         Do not register adjusted load/store costs here.
34265 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34266             Uros Bizjak  <ubizjak@gmail.com>
34268         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34269         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34270         using x86_use_pseudo_pic_reg.
34271         * config/i386/i386.c (ix86_conditional_register_usage): Remove
34272         support for fixed PIC register.
34273         (ix86_use_pseudo_pic_reg): Not static any more.
34275 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34277         PR middle-end/64805
34278         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34279         to avoid error in cgraph node verification.
34281 2015-01-29  Marek Polacek  <polacek@redhat.com>
34283         * doc/standards.texi: Reflect that the default for C is gnu11.
34285 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
34287         PR target/64761
34288         * reorg.c (switch_text_sections_between_p): New function.
34289         (relax_delay_slots): Call it when testing if the jump insn
34290         is removable.  Use targetm.can_follow_jump when testing if
34291         the conditional branch can follow an unconditional jump.
34293 2015-01-27  Caroline Tice  <cmtice@google.com>
34295         Committing VTV Cywin/Ming patch for Patrick Wollgast
34296         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34297         if -fvtable-verify=preinit/std is used.
34298         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34299         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34300         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34301         if -fvtable-verify=preinit/std is used.
34302         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34303         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34304         if -fvtable-verify=preinit/std is used.
34305         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34306         * config/i386/mingw32.h (LIB_SPEC): Likewise.
34307         * varasm.c (assemble_variable): Add code to properly set the comdat
34308         section and name for the .vtable_map_vars section in case the
34309         target is PE or COFF.
34311 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34313         PR ipa/64801
34314         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34315         make sane BB profile.
34316         (cgraph_node::expand_thunk): Make sane BB profile.
34317         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34318         * cgraph.h (init_lowered_empty_function): Update prototype.
34319         * config/i386/i386.c (make_resolver_func): Update call.
34320         * predict.c (gate): Disable branch prediction pass if
34321         profile is already there.
34323 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34325         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34326         * opth-gen.awk: Likewise.
34327         * common.opt: Mark flag_fp_contract_mode as Optimization.
34329 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34331         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34332         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34334 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
34336         PR target/64659
34337         * config/sh/predicates.md (atomic_arith_operand,
34338         atomic_logical_operand): Remove.
34339         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34340         (atomic_arith_operand_0): New predicate.
34341         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34342         Use atomic_arith_operand_0 for input values.
34343         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34344         atomic_compare_and_swap<mode>_soft_gusa,
34345         atomic_compare_and_swap<mode>_soft_tcb,
34346         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34347         arith_reg_operand instead of register_operand.
34348         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
34349         atomic_arith_operand_0 for newval input.
34350         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34351         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34352         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34353         arith_reg_operand instead of register_operand.
34354         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34355         fetchop_predicate_1, fetchop_constraint_1_llcs,
34356         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34357         fetchop_constraint_1_imask): New code iterator attributes.
34358         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34359         register_operand.  Use fetchop_predicate_1.
34360         (atomic_fetch_<fetchop_name>si_hard,
34361         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34362         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34363         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34364         and arith_reg_operand instead of register_operand.  Use
34365         fetchop_predicate_1, fetchop_constraint_1_gusa.
34366         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34367         and arith_reg_operand instead of register_operand.  Use
34368         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
34369         to allow R0 usage.
34370         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34371         and arith_reg_operand instead of register_operand.  Use
34372         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
34373         to allow R0 usage.
34374         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34375         register_operand.  Use atomic_logical_operand_1.
34376         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34377         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34378         arith_reg_operand instead of register_operand.
34379         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34380         Use arith_reg_dest and arith_reg_operand instead of register_operand.
34381         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
34382         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34383         register_operand.  Use fetchop_predicate_1.
34384         (atomic_<fetchop_name>_fetchsi_hard,
34385         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34386         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34387         fetchop_constraint_1_llcs.
34388         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34389         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34390         fetchop_constraint_1_gusa.
34391         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34392         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34393         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
34394         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34395         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
34396         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
34397         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34398         register_operand.  Use atomic_logical_operand_1.
34399         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34400         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34401         arith_reg_operand instead of register_operand.
34402         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34403         arith_reg_operand instead of register_operand.  Use logical_operand
34404         and K08.  Adjust asm sequence to allow R0 usage.
34405         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34406         arith_reg_operand instead of register_operand.  Use logical_operand
34407         and K08.
34409 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
34411         PR other/63504
34412         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34413         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34414         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34415         only get_full_len HOST_WIDE_INTs from get_val () array rather than
34416         all bits in *val_wide.
34418 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
34420         * varpool.c (tls_model_names): Fix names.
34421         (varpool_node::dump): Dump tls- prefix for tls models.
34423 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
34424             Bernd Schmidt  <bernds@codesourcery.com>
34425             Nathan Sidwell  <nathan@codesourcery.com>
34427         * config/nvptx/mkoffload.c: New file.
34428         * config/nvptx/t-nvptx: Add build rules for it.
34429         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34430         (extra_programs): Add mkoffload.
34431         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34432         function.
34433         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34435 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
34437         PR middle-end/64809
34438         * cfgexpand.c (reorder_operands): Skip debug gimples.
34440 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
34442         PR tree-optimization/64277
34443         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34444         range info when possible to refine estimation.
34446 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34448         PR tree-optimization/64718
34449         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34450         be a 16bit unsigned integer when n->range is 16.
34451         (bswap_replace): Convert src to that type if necessary for all bswap
34452         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
34453         set in pass_optimize_bswap::execute ().
34455 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
34457         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34458         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34459         integer and floating point variants.
34460         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34462 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
34464         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34465         for all vector modes.
34467 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
34469         PR bootstrap/64612
34470         * doc/sourcebuild.texi (comdat_group): Document.
34472 2015-01-28  Terry Guo  <terry.guo@arm.com>
34474         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34476 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
34478         * toplev.c (print_version): Add param "show_global_state", and
34479         only print GGC and plugin information if it is true.
34480         (init_asm_output): Pass in "true" for the new param when calling
34481         print_version.
34482         (process_options): Likewise.
34483         (toplev::main): Likewise.
34484         * toplev.h (print_version): Add new param to decl.
34486 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34488         PR ipa/60871
34489         PR ipa/64139
34490         * tree.c (lookup_binfo_at_offset): New function.
34491         (get_binfo_at_offset): Use it.
34493 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34495         PR ipa/64282
34496         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34497         on vtable being vtable.
34499 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34501         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34502         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34503         -mhotpatch= option.
34504         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34505         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
34506         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34507         Renamed.
34508         (s390_hotpatch_trampoline_halfwords_max): Renamed.
34509         (s390_hotpatch_hw_max): New name.
34510         (s390_hotpatch_trampoline_halfwords): Renamed.
34511         (s390_hotpatch_hw_before_label): New name.
34512         (get_hotpatch_attribute): Removed.
34513         (s390_hotpatch_hw_after_label): New name.
34514         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34515         attribute.
34516         (s390_attribute_table): Ditto.
34517         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34518         (s390_function_num_hotpatch_hw): New name.
34519         Remove special handling of inline functions and hotpatching.
34520         Return number of nops before and after the function label.
34521         (s390_can_inline_p): Removed.
34522         (s390_asm_output_function_label): Emit a configurable number of nops
34523         after the function label.
34524         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34525         (TARGET_CAN_INLINE_P) Removed.
34526         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34528 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34529             Jiong Wang  <jiong.wang@arm.com>
34531         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34532         of scratch reg.
34533         (cb<optab><mode>1): Likewise.
34534         * config/aarch64/iterators.md (bcond): New define_code_attr.
34536 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34538         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34539         memory accesses.
34541 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34543         * config/s390/s390.c (s390_register_move_cost): Increase costs for
34544         FPR->GPR moves.
34546 2015-01-27  Richard Biener  <rguenther@suse.de>
34548         * tree-vrp.c (update_value_range): Intersect the range with
34549         old recorded SSA name range information.
34551 2015-01-27  Nick Clifton  <nickc@redhat.com>
34553         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34554         BC, DE and HL registers directly, not via AX.
34555         When decrementing the stack pointer by a large amount, transfer SP
34556         into AX and perform the subtraction there.
34557         (rl78_expand_epilogue): Perform the inverse of the above
34558         enhancements.
34560 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34562         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34564 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34565             Yury Gribov  <y.gribov@samsung.com>
34567         PR ubsan/64741
34568         * ubsan.c (ubsan_source_location): Refactor code.
34569         (ubsan_type_descriptor): Update type size. Refactor code.
34571 2015-01-27  Richard Biener  <rguenther@suse.de>
34573         PR tree-optimization/56273
34574         PR tree-optimization/59124
34575         PR tree-optimization/64277
34576         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34577         from the first VRP pass.
34579 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34581         PR ipa/64776
34582         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34583         handle the first argument in the same loop as all the other arguments.
34585         PR rtl-optimization/61058
34586         * jump.c (cleanup_barriers): Update basic block boundaries
34587         if BLOCK_FOR_INSN is non-NULL on PREV.
34589 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34591         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34592         bounds narrowing, already instrumented calls and calls to
34593         not instrumentable functions.
34595 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34597         PR tree-optimization/64807
34598         * wide-int.cc (wi::divmod_internal): Clear
34599         b_dividend[dividend_blocks_needed].
34601 2015-01-26  DJ Delorie  <dj@redhat.com>
34603         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34604         volatile memory references.
34606 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
34608         PR target/49263
34609         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34610         remove_insn.
34611         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34612         shifts if it already fits into K08.
34614 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34616         PR ipa/64730
34617         * ipa-inline.c (inline_small_functions): Print "unknown" even
34618         if edge->call_stmt is non-NULL, but has builtins or unknown
34619         location.
34621         PR middle-end/64421
34622         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34623         with asterisk, skip the first character.
34625 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34627         PR target/64806
34628         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34629         order change.
34631 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
34633         PR target/64795
34634         * config/i386/i386.md (*movdi_internal): Also check operand 0
34635         to determine TYPE_LEA operand.
34636         (*movsi_internal): Ditto.
34638 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34640         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34641         OPTION_MASK_QUAD_MEMORY_ATOMIC.
34643 2015-01-26  Renlin Li  <renlin.li@arm.com>
34645         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34646         the comment.
34647         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34648         for higher part.
34650 2015-01-26  Richard Biener  <rguenther@suse.de>
34652         PR middle-end/64764
34653         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34654         combining two BIT_AND_EXPR predicates.
34656 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34658         PR bootstrap/64754
34659         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34661 2015-01-26  Terry Guo  <terry.guo@arm.com>
34663         * config/arm/arm.c (arm_file_start): Update the assignment of
34664         Tag_ABI_HardFP_use.
34666 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
34668         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34669         pipeline model.
34670         config/arm/arm.md: Include the new Cortex-A57 model.
34671         (generic_sched): Don't use generic_sched when tuning for
34672         Cortex-A57.
34674 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
34675             Uros Bizjak  <ubizjak@gmail.com>
34677         * config/i386/i386.c (get_builtin_code_for_version): Add
34678         support for BMI and BMI2 multiversion functions.
34680 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34682         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34683         (extract_bit_field): Likewise.
34684         (extract_low_bits): Likewise.
34685         (expand_mult): Likewise.
34686         (expand_mult_highpart_adjust): Likewise.
34688 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
34690         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34691         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34692         * config/i386/i386.c (processor_model): Add
34693         M_INTEL_COREI7_BROADWELL.
34694         (arch_names_table): Add "broadwell".
34696 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
34698         PR target/49263
34699         PR target/53987
34700         PR target/64345
34701         PR target/59533
34702         PR target/52933
34703         PR target/54236
34704         PR target/51244
34705         * config/sh/sh-protos.h
34706         (sh_extending_set_of_reg::can_use_as_unextended_reg,
34707         sh_extending_set_of_reg::use_as_unextended_reg,
34708         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34709         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34710         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34711         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34712         (sh_treg_insns): New class.
34713         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34714         (scope_counter): New class.
34715         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34716         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34717         sh_extending_set_of_reg::can_use_as_unextended_reg,
34718         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34719         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34720         sh_split_treg_set_expr): New functions.
34721         (addsubcosts): Handle treg_set_expr.
34722         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34723         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34724         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34725         (sh_insn_operands_modified_between_p): Make non-static.
34726         * config/sh/predicates.md (zero_extend_movu_operand): Allow
34727         simple_mem_operand in addition to displacement_mem_operand.
34728         (zero_extend_operand): Don't allow zero_extend_movu_operand.
34729         (treg_set_expr, treg_set_expr_not_const01,
34730         arith_reg_or_treg_set_expr): New predicates.
34731         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34732         arith_or_int_operand instead of logical_operand.  Convert to
34733         insn_and_split.  Try to optimize constant operand in splitter.
34734         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
34735         (*tstqi_t_zero): Delete.
34736         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34737         (tstsi_t_and_not): Delete.
34738         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34739         Convert to insn_and_split.
34740         (unnamed split, tstsi_t_zero_extract_xor,
34741         tstsi_t_zero_extract_subreg_xor_little,
34742         tstsi_t_zero_extract_subreg_xor_big): Delete.
34743         (*tstsi_t_shift_mask): New insn_and_split.
34744         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34745         to recombine with surrounding insns when splitting.
34746         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34747         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34748         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34749         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34750         (*cbranch_div0s: Delete.
34751         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
34752         Try to recombine with surrounding insns when splitting.  Add operand
34753         order variants.
34754         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34755         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34756         *addc_r_r_msb, *addc_2r_msb): Delete.
34757         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
34758         order variant.
34759         (*addc_negreg_t): New insn_and_split.
34760         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
34761         Try to recombine with surrounding insns when splitting.
34762         Add operand order variants.
34763         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34764         insn_and_split patterns.
34765         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
34766         surrounding insns when splitting.
34767         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34768         (*rotcl): Likewise.  Add zero_extract variant.
34769         (*ashrsi2_31): New insn_and_split.
34770         (*negc): Convert to insn_and_split.  Use treg_set_expr.
34771         (*zero_extend<mode>si2_disp_mem): Update comment.
34772         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34773         condition.
34774         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
34775         with surrounding insns when splitting.
34776         (any_treg_expr_to_reg): New insn_and_split.
34777         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34778         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34779         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34780         *zero_extract_2): New single bit zero extract patterns.
34781         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34782         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34783         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34784         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34785         set destination.
34786         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34787         register_operand for set source.
34789 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
34791         * i386.opt (prefetch_sse): New targetsave.
34792         * i386.c (ix86_function_specific_save): Save prefetch_sse.
34793         (ix86_function_specific_restore): Restore prefetch_sse and initialize
34794         ix86_cost/ix86_tune_cost.
34796 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34798         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34799         Support the JIT by using 0 as the language type.
34801 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34803         PR target/64317
34804         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
34805         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34806         (mark_regno_live, process_bb_lives): Pass new parameter value to
34807         make_hard_regno_born.
34809 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34811         PR rtl-optimization/63637
34812         PR rtl-optimization/60663
34813         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34814         if elt->cost is MAX_COST for ASM_OPERANDS.
34815         (find_sets_in_insn): Fix up comment typo.
34816         (cse_insn): Don't set src_volatile for all non-volatile
34817         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34818         or with "memory" clobber.  Set elt->cost to MAX_COST
34819         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
34820         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34822 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34824         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34825         alternative 1.
34827 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34829         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34830         libgcc/config/i386/elf-lib.h.
34832 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34834         PR driver/64737
34835         * gcc.c (print_configuration): Don't print a blank line at the end
34836         here...
34837         (run_attempt): ... but here unstead.
34839         PR middle-end/64734
34840         * omp-low.c (scan_sharing_clauses): Don't ignore
34841         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34842         on target data/update constructs.
34844 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34846         PR target/50928
34847         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34848         (DEBUG_RELOAD): Removed define.
34849         (m32c_limit_reload_class): Enable traces with if DEBUG0.
34850         (m32c_function_arg): Added a type cast.
34851         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34852         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34853         * config/m32c/bitops.md (andqi3_16): Likewise.
34854         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34855         (push_a01_l): Likewise.
34857 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34859         PR jit/64721
34860         * main.c (main): Construct toplev instances with init_signals=true.
34861         * toplev.c (general_init): Add param "init_signals", and use it to
34862         conditionalize the calls to signal and host_hooks.extra_signals.
34863         (toplev::toplev): Add param "init_signals".
34864         (toplev::main): When invoking general_init, pass m_init_signals
34865         to control whether signal-handlers are installed.
34866         * toplev.h (toplev::toplev): Add param "init_signals".
34867         (toplev::m_init_signals): New field.
34869 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34871         PR jit/64722
34872         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34873         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34874         latter may be affected by the former (e.g. on i686).
34876 2015-01-23  Martin Liska  <mliska@suse.cz>
34878         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34879         false positive during profiledbootstrap.
34881 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34883         PR libgomp/64672
34884         * lto-opts.c (lto_write_options): Output non-explicit conservative
34885         -fno-openacc.
34886         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34887         (append_compiler_options): Pass -fopenacc through.
34889 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34891         PR libgomp/64707
34892         * lto-opts.c (lto_write_options): Output non-explicit conservative
34893         -fno-openmp.
34894         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34895         (append_compiler_options): Pass -fopenmp through.
34897 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34899         PR debug/64511
34900         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34901         GTY markup.
34903         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34904         * diagnostic.def (DK_ICE_NOBT): New kind.
34905         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34906         like DK_ICE, but never print backtrace.
34907         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34908         (internal_error_no_backtrace): New function.
34909         * gcc.c (execute): Use internal_error_no_backtrace instead of
34910         internal_error.
34912 2015-01-22  Jeff Law  <law@redhat.com>
34914         PR target/52076
34915         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34916         improve code density for small immediate to memory case.
34917         (insv): Better handle bitfield assignments when the field is
34918         being set to all ones.
34919         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34920         operand predicate.
34922 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34923             Jakub Jelinek  <jakub@redhat.com>
34925         PR middle-end/64729
34926         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34927         for !TARGET_LIBC_PROVIDES_SSP version and
34928         -fstack-protector-{all,strong,explicit} otherwise.
34929         * config/freebsd.h (LINK_SSP_SPEC): Handle
34930         -fstack-protector-{strong,explicit}.
34932 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
34933             H.J. Lu  <hongjiu.lu@intel.com>
34935         PR ipa/64694
34936         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34937         heap.
34939 2015-01-22  Wei Mi  <wmi@google.com>
34941         PR rtl-optimization/64557
34942         * dse.c (record_store): Call get_addr for mem_addr.
34943         (check_mem_read_rtx): Likewise.
34945 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34947         * fold-const.c (const_binop): Add early return for non-tcc_binary.
34949 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
34951         * toplev.c (init_local_tick): Process the failure when read
34952         fails for random_seed.
34954         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34955         'pretty_name' to avoid memory overflow.
34957 2015-01-22  Richard Biener  <rguenther@suse.de>
34959         PR middle-end/64728
34960         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34961         abnormal coalescing on undefined SSA names.
34963 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
34965         PR target/64688
34966         PR target/64477
34967         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34968         for alternative 3.
34969         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34971 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
34973         PR middle-end/63325
34974         * fold-const.c (fold_checksum_tree): Don't include value of
34975         expr->decl_with_vis.symtab_node in the checksum.
34977 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34979         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34981 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34983         PR driver/64690
34984         * gcc.c (insert_comments): New function.
34985         (try_generate_repro): Call it.
34986         (append_text): Removed.
34988 2015-01-22  Richard Biener  <rguenther@suse.de>
34990         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34991         with IL incompatible options.  Properly honor user optimize
34992         attributes.
34994 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
34996         PR rtl-optimization/64682
34997         * combine.c (distribute_notes): When moving a death note for
34998         a register that is set in the new I2, make sure to put it
34999         before that new I2.
35001 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
35003         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35004         not TARGET_DEFAULT.
35006 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
35008         PR debug/64511
35009         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35010         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35011         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35013         PR sanitizer/64706
35014         * doc/invoke.texi (-fsanitize=vptr): Document.
35016         PR rtl-optimization/62078
35017         * dse.c: Include cfgcleanup.h.
35018         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35019         anything call purge_all_dead_edges and cleanup_cfg at the end
35020         of the pass.
35022 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
35024         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35025         edges.
35027 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35029         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35030         decl attribute.
35032 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35033             Tejas Belagod <Tejas.Belagod@arm.com>
35035         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35036         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35037         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35038         Removed.
35040 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35041             Tejas Belagod <Tejas.Belagod@arm.com>
35043         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35044         (aarch64_reverse_mask): New decls.
35045         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35046         (insn_count): New mode_attr.
35047         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35048         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35049         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35050         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35051         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35052         (aarch64_simd_st4): New patterns.
35053         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35054         (aarch64_reverse_mask): New functions.
35056 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35058         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35059         Declare.
35060         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35061         addressing modes for BE.
35062         (aarch64_print_operand): Add 'R' specifier.
35063         (aarch64_simd_disambiguate_copy): Delete.
35064         (aarch64_simd_emit_reg_reg_move): New function.
35065         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35066         in define_splits for structural moves.
35067         (mov<mode>): Use less restrictive predicates.
35068         (*aarch64_mov<mode>): Simplify and only allow for LE.
35069         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35071 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35073         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35075 2015-01-21  Richard Henderson  <rth@redhat.com>
35077         PR target/64669
35078         * ccmp.c (used_in_cond_stmt_p): Remove.
35079         (expand_ccmp_expr): Don't use it.
35081 2015-01-21  Nick Clifton  <nickc@redhat.com>
35083         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35084         PARALLELs.
35086 2015-01-21  Richard Biener  <rguenther@suse.de>
35088         PR middle-end/64313
35089         * tree-core.h (builtin_info, builtin_info_type): Turn from
35090         an object with two arrays into an array of an object with
35091         decl and two flags, implicit_p and declared_p.
35092         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35093         set_builtin_decl, set_builtin_decl_implicit_p,
35094         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35095         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35096         * builtins.c (builtin_info): Adjust.
35097         * gimplify.c (gimplify_addr_expr): References to builtins
35098         that have been declared by the user makes them eligible for
35099         use by the compiler.  Call set_builtin_decl_implicit_p on them.
35101 2015-01-20  Jeff Law  <law@redhat.com>
35103         PR target/59946
35104         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35105         allow pc-relative addresses in operand predicates or constraints.
35107 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
35109         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35110         neon on aarch32 processors for stringops.
35112 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35114         PR ipa/63576
35115         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35117 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35119         PR lto/45375
35120         * ipa-inline.c: Include lto-streamer.h
35121         (report_inline_failed_reason): Output source file differences and
35122         flags on optimization/target node mismatch.
35123         (can_inline_edge_p): Consider caller to be the outer inline function;
35124         be less restrictive about matching opimize and optimize_size attributes.
35125         (inline_account_function_p): Break out from ...
35126         (inline_small_functions): ... here.
35127         * ipa-inline-transform.c (clone_inlined_nodes): Use
35128         inline_account_function_p.
35129         (inline_call): Use optimize attribution; use inline_account_function_p.
35130         (inline_transform): Use opt_for_fn.
35131         * ipa-inline.h (inline_account_function_p): Declare.
35133 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
35135         PR debug/64663
35136         * dwarf2out.c (decl_piece_node): Don't put bitsize into
35137         mode if bitsize <= 0.
35138         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35139         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35140         sizes and positions.
35142 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
35144         * config/nios2/nios2.c (nios2_asm_file_end): Implement
35145         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35146         needed.
35147         (TARGET_ASM_FILE_END): Define.
35149 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35151         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35152         (struct tune_params): Use the enum.
35153         * arm.c (arm_*_tune): Update.
35154         (arm_option_override): Update.
35156 2015-01-20  Richard Biener  <rguenther@suse.de>
35158         PR ipa/64684
35159         * ipa-reference.c (add_static_var): Inline ...
35160         (analyze_function): ... here after splitting out from ...
35161         (is_proper_for_analysis): ... this.
35163 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
35165         PR target/64149
35166         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35167         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35168         replace the conditional with it's true branch.
35169         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35170         (arm_lra_p): Remove.
35172 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35174         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35176 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35178         * config/tilegx/mul-tables.c: Move symtab.h include after
35179         coretypes.h include.
35180         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35181         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35182         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35183         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35184         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35186 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
35188         PR bootstrap/64676
35189         Revert:
35190         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35192         PR rtl-optimization/64081
35193         * loop-iv.c (def_pred_latch_p): New function.
35194         (latch_dominating_def): Allow specific cases with non-single
35195         definitions.
35196         (iv_get_reaching_def): Likewise.
35197         (check_complex_exit_p): New function.
35198         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35199         with exits not executing on any iteration.
35201 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35203         PR lto/45375
35204         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35205         to set branch cost.
35207 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35209         PR lto/45375
35210         * i386.c (gate): Check flag_expensive_optimizations and
35211         optimize_size.
35212         (ix86_option_override_internal): Drop optimize_size condition
35213         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35214         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35215         MASK_PREFER_AVX128.
35216         (ix86_avx256_split_vector_move_misalign,
35217         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35218         * sse.md (all uses of TARGET_PREFER_AVX128): Add
35219         optimize_insn_for_speed_p check.
35221 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
35223         * config/mips/mips.h (FP_ASM_SPEC): New define.
35224         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35225         instead.
35227 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
35229         PR target/53988
35230         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35231         nullptr for insn when reaching the first insn.
35232         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35233         (sh_insn_operands_modified_between_p): Add nullptr check.
35234         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
35235         sign extending mem load if the insn contains any UNSPEC or
35236         UNSPEC_VOLATILE.
35238 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35240         * params.def (inline-unit-growth): Drop to 15%.
35241         * invoke.texi (inline-unit-growth): Document change.
35243 2015-01-19  Martin Liska  <mliska@suse.cz>
35245         PR ipa/64668
35246         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35247         function for second argument of OBJ_TYPE_REF.
35249 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35251         PR ipa/64218
35252         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35253         whether function is an alias.
35255 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35257         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35258         cases.
35260 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
35262         PR rtl-optimization/64671
35263         * lra-remat.c (operand_to_remat): Don't consider jump and call
35264         insns.
35266 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
35268         PR target/59828
35269         * config/rs6000/default64.h: Include rs6000-cpus.def.
35270         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35271         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35272         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35273         and POWER8.
35274         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35275         POWER8.
35276         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35277         pseudo-op to specify assembler dialect.
35279 2015-01-19  Martin Liska  <mliska@suse.cz>
35281         PR ipa/64664
35282         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35283         Handle safe potentially removed nodes during filtering.
35285 2015-01-19  Martin Liska  <mliska@suse.cz>
35287         * doc/extend.texi (no_icf): Add new attribute description.
35288         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35289         where the pass attempts to merge a function with no_icf attribute.
35291 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35293         PR target/64532
35294         * doc/md.texi (ARM Options): Document register constraints.
35296 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
35297             Andrew Pinski  <apinski@cavium.com>
35299         PR target/64304
35300         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35301         (ashl<mode>3): Don't expand if operands[2] is not constant.
35303 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35305         PR target/64448
35306         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35307         Match xor-and-xor RTL pattern.
35309 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35311         PR rtl-optimization/64081
35312         * loop-iv.c (def_pred_latch_p): New function.
35313         (latch_dominating_def): Allow specific cases with non-single
35314         definitions.
35315         (iv_get_reaching_def): Likewise.
35316         (check_complex_exit_p): New function.
35317         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35318         with exits not executing on any iteration.
35320 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
35322         * common.opt (fgraphite): Fix a typo.
35324 2015-01-19  Felix Yang  <felix.yang@huawei.com>
35326         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35327         pattern.
35328         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35329         uminp, smax_nanp, smin_nanp): New builtins.
35330         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35331         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35332         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35333         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35334         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35335         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35336         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35337         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35338         vpminnms_f32): Rewrite using builtin functions.
35340 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
35342         PR libgomp/64625
35343         * omp-low.c (offload_symbol_decl): Remove variable.
35344         (get_offload_symbol_decl): Remove function.
35345         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35346         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35347         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35348         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35349         BUILT_IN_GOACC_UPDATE don't pass it at all.
35351 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35353         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35354         callers.
35356 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35358         * ipa-chkp.c (chkp_produce_thunks): Add early param
35359         to split thunks production into two passes.  Keep
35360         'always_inline' function bodies after the first pass.
35361         (pass_data_ipa_chkp_early_produce_thunks): New.
35362         (pass_ipa_chkp_early_produce_thunks): New.
35363         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35364         chkp_produce_thunks signature.
35365         (make_pass_ipa_chkp_early_produce_thunks): New.
35366         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35367         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35368         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35370 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35372         * cgraph.c (cgraph_node::dump): Dump profile flags.
35374 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
35376         PR target/64652
35377         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35378         reg appear first in the parallel.
35380 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35382         * ipa-reference.c (set_reference_optimization_summary,
35383         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35384         disabled.
35385         (ignore_module_statics): New static var.
35386         (propagate_bits): If ipa-reference is disabled, do not look into local
35387         properties.
35388         (analyze_function): Disable analysis when ipa_reference is disabled.
35389         (generate_summary): Do not dump when reference is disabled;
35390         collect vars accessed from functions with ipa-reference disabled.
35391         (get_read_write_all_from_node): When ipa-reference is disabled, use the
35392         node flags.
35393         (gate): Enable for LTO.
35394         (ignore_edge_p): New function.
35395         (propagate): Skip functions w/o ipa-reference analysis.
35396         * optc-save-gen.awk: Handle optimize_debug correctly.
35397         * opth-gen.awk: Likewise.
35398         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35399         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35400         fira-share-save-slots, fira-share-spill-slots,
35401         fmodulo-sched-allow-regmoves, fpartial-inlining,
35402         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35403         ftracer, ftree-parallelize-loops, fassociative-math,
35404         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35405         Optimization
35406         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35407         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35408         Optimization.
35409         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35410         Fix for IPA.
35412 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
35414         PR ipa/64378
35415         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35416         flag correctly.
35417         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35419 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
35421         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35422         Remove duplicate option listings.
35424 2015-01-18  Felix Yang  <felix.yang@huawei.com>
35426         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35427         (autofdo_source_profile::get_callsite_total_count,
35428         function_instance::get_function_instance_by_decl,
35429         string_table::get_index, string_table::get_index_by_decl,
35430         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35431         Fix comment typos. Reformatting and minor code rearrangement.
35433 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35435         * config/rs6000/rs6000.md (probe_stack): Delete.
35436         (probe_stack_address): New.
35438 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35440         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35441         to test for 32-bit ABIs, not !TARGET_POWERPC64.
35443 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
35445         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35446         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
35447         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
35448         snafu.
35449         (rs6000_libcall_value): Use the new function.
35451 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
35453         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35455 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
35457         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35458         implement a more precise life analysis for it during backward scan.
35460 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
35462         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35464 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
35466         PR rtl-optimization/52773
35467         * calls.c (emit_library_call_value): When pushing arguments use
35468         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35469         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
35470         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35472 2015-01-17  Jeff Law  <law@redhat.com>
35474         PR rtl-optimization/32790
35475         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35476         not ZERO_EXTEND in SET_DESTs.
35478 2015-01-17  Alan Modra  <amodra@gmail.com>
35480         * cprop.c (do_local_cprop): Revert last change.
35482 2015-01-16  DJ Delorie  <dj@redhat.com>
35483             Nick Clifton  <nickc@redhat.com>
35485         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35486         (addhi3_real): Likewise.  Fix [HL+0] syntax.
35487         (subqi3_real): Likewise.
35488         (subhi3_real): Likewise.
35489         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
35490         (cbranchhi4_real): Likewise.
35491         (cbranchhi4_real_inverted): Likewise.
35492         (cbranchsi4_real_lt): Likewise.
35493         (cbranchsi4_real_ge): Likewise.
35494         (cbranchsi4_real_ge): Likewise.
35495         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35496         (sub<mode>3_virt): Likewise.
35497         (cbranchqi4_virt): Likewise.
35498         (cbranchhi4_virt): Likewise.
35499         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35500         always use '[reg+imm]' even when imm is zero.
35501         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35502         (rl78_general_operand): New.
35503         (rl78_nonimmediate_operand): New.
35504         (rl78_nonfar_operand): Use them.
35505         (rl78_nonfar_nonimm_operand): Likewise.
35506         (rl78_stack_based_mem): Fix.
35507         * config/rl78/constraints.md (Ibqi): New.
35508         (IBqi): New.
35509         (Wsa): New.
35510         (Wsf): New.
35511         (Cs1): Fix.
35512         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35513         (iorqi3): Likewise.
35514         (xorqi3): Likewise.
35515         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35517         * config/rl78/constrains (Qs8): New constraint.
35518         * config/rl78/rl78.c (rl78_flags_already_set): New function.
35519         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35520         * config/rl78/rl78-real.md (update_Z): New attribute.
35521         Update patterns to set it.
35522         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35523         shorter compare and branch sequence can be used.
35524         (cbranchhi4_real): Likewise.
35525         (cbranchhi4_real_inverted): Likewise.
35527         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35528         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35529         address space.
35530         * config/rl78/rl78.c (rl78_get_name_encoding): New.
35531         (rl78_option_override): Allow -mes0 only if C.
35532         (characterize_address): Support subregs of symbol_refs.
35533         (rl78_addr_space_address_mode): Move.  Add __near.
35534         (rl78_far_p): Likewise.
35535         (rl78_addr_space_pointer_mode): Likewise.
35536         (rl78_as_legitimate_address): Likewise.
35537         (rl78_addr_space_subset_p): Likewise.
35538         (rl78_addr_space_convert): Likewise.
35539         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35540         symbols with -mes0.
35541         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
35542         addressing.
35543         (rl78_alloc_physical_registers_op1): Change logic to prefer
35544         symbol[BC] addressing.
35545         (frodata_section): New.
35546         (rl78_asm_init_sections): Initialize it.
35547         (rl78_select_section): Put __far readonly symbols in .frodata.
35548         (rl78_make_type_far): New.
35549         (rl78_insert_attributes): Force all readonly symbols to be
35550         __far when -mes0.
35551         (rl78_asm_out_integer): New.
35552         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35553         * config/rl78/rl78.opt (-mes0): New.
35555         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35556         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35557         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35558         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35559         (rl78_saddr_p): New.
35560         (rl78_output_aligned_common): New.
35561         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35562         (rl78_handle_saddr_attribute): New.
35563         (rl78_handle_naked_attribute): New.
35564         (rl78_attribute_table): Add saddr.
35565         (rl78_print_operand_1): Don't print '!' on saddr operands.
35566         (rl78_print_operand_1): Strip encodings.
35567         (rl78_sfr_p): New.
35568         (rl78_strip_name_encoding): New.
35569         (rl78_attrlist_to_encoding): New.
35570         (rl78_encode_section_info): New.
35571         (rl78_asm_init_sections): New.
35572         (rl78_select_section): New.
35573         (rl78_output_labelref): New.
35574         (rl78_output_aligned_common): New.
35575         (rl78_asm_out_integer): New.
35576         (rl78_asm_ctor_dtor): New.
35577         (rl78_asm_constructor): New.
35578         (rl78_asm_destructor): New.
35580         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35581         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35582         (transcode_memory_rtx): Update.
35583         (rl78_expand_epilogue): Use A_REG instead of 0.
35585 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35587         * config/arm/arm-protos.h (struct tune_params): New field
35588         sched_autopref_queue_depth.
35589         * config/arm/arm.c (sched-int.h): Include header.
35590         (arm_first_cycle_multipass_dfa_lookahead_guard,)
35591         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35592         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35593         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35594         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35595         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35596         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35597         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35598         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
35599         * config/arm/t-arm (arm.o): Update.
35600         * haifa-sched.c (update_insn_after_change): Update.
35601         (rank_for_schedule): Use auto-prefetcher model, if requested.
35602         (autopref_multipass_init): New static function.
35603         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35604         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35605         variable for debug dumps.
35606         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35607         (autopref_multipass_dfa_lookahead_guard): New global function that
35608         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35609         (init_h_i_d): Update.
35610         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35611         * sched-int.h (enum autopref_multipass_data_status): New const enum.
35612         (autopref_multipass_data_): Structure for auto-prefetcher data.
35613         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35614         (struct _haifa_insn_data:autopref_multipass_data): New field.
35615         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35616         (autopref_multipass_dfa_lookahead_guard): Declare.
35618 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35620         * rtlanal.c (get_base_term): Handle SCRATCH.
35622 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35624         * config/aarch64/aarch64.c
35625         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35626         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35627         * config/arm/arm.c
35628         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35629         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35631 2015-01-17  Alan Modra  <amodra@gmail.com>
35633         * cprop.c (do_local_cprop): Disallow replacement of fixed
35634         hard registers.
35636 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35638         PR target/62066
35639         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35640         early return 0.
35642 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35644         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35645         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35647 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35649         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35650         * config/arm/thumb1.md: ... Here.
35652 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35654         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35655         TImode for TARGET_32BIT.
35657 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35659         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35660         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35661         as ...
35662         (rs6000_abi_word_mode): New function.
35664 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35666         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35667         instead of UNITS_PER_WORD to describe the size of stack slots.
35669 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35671         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35672         as rs6000_promote_function_mode.  Move comment to there.
35673         (rs6000_promote_function_mode): New function.
35675 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35677         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35678         -mpowerpc64 is active.
35680 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35682         PR middle-end/64353
35683         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35684         virtuals on start.
35686 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
35688         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35689         introduced in revision 219724.
35691 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35692             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35694         PR target/64263
35695         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35696         destination is not a GP reg.
35697         (*movdi_aarch64): Likewise.
35699 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
35701         PR target/64623
35702         * config/rs6000/default64.h: Revert ISA change.
35704 2015-01-16  Richard Biener  <rguenther@suse.de>
35706         PR middle-end/64614
35707         * tree-ssa-uninit.c: Include tree-cfg.h.
35708         (MAX_SWITCH_CASES): New define.
35709         (convert_control_dep_chain_into_preds): Handle switch statements.
35710         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35711         (normalize_one_pred_1): Do not split bit-manipulations.
35712         Record (x & CST).
35714 2015-01-16  Richard Biener  <rguenther@suse.de>
35716         PR tree-optimization/64568
35717         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35718         complex load rewriting for TARGET_MEM_REFs.
35720 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
35722         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35724 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
35726         PR target/64149
35727         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35728         variable.
35729         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35730         (aarch64_lra_p): Remove.
35732 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35734         PR target/64363
35735         * ipa-chkp.h (chkp_instrumentable_p): New.
35736         * ipa-chkp.c: Include tree-inline.h.
35737         (chkp_instrumentable_p): New.
35738         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35739         Fix processing of not instrumentable functions.
35740         (chkp_versioning): Use chkp_instrumentable_p. Warn about
35741         not instrumentable functions.
35742         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35743         chkp_instrumentable_p.
35744         * tree-inline.h (copy_forbidden): New.
35745         * tree-inline.c (copy_forbidden): Not static anymore.
35747 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35749         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35750         ptr1, ptr2 unused.
35752 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
35754         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35755         type OP_OUT to OP_INOUT.
35757 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
35759         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35760         (high x) y) to y if x and y have the same base.
35762 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
35764         * config/arm/cortex-a57.md: New.
35765         * config/aarch64/aarch64.md: Include it.
35766         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35767         * config/aarch64/aarch64-tune.md: Regenerate.
35769 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35771         PR target/64015
35772         * ccmp.c (expand_ccmp_next): New function.
35773         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35774         and compare insn sequence.
35775         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35776         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35777         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35778         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35779         (*ccmp_ior): Changed to ccmp_ior<mode>.
35780         (cmp<mode>): New pattern.
35781         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35782         parameters.
35783         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35785 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
35787         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35788         _mm256_bsrli_epi128): New.
35789         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35791 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35793         * expmed.c (store_bit_field_using_insv): Improve warning message.
35794         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35796 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35798         PR rtl-optimization/64011
35799         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35800         there is partial overflow.
35802 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35804         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35805         prototype.
35806         (nds32_expand_epilogue_v3pop): Likewise.
35807         * config/nds32/nds32.md (sibcall): Define this for sibling call
35808         optimization.
35809         (sibcall_register): Likewise.
35810         (sibcall_immediate): Likewise.
35811         (sibcall_value): Likewise.
35812         (sibcall_value_register): Likewise.
35813         (sibcall_value_immediate): Likewise.
35814         (sibcall_epilogue): Likewise.
35815         (epilogue): Pass false to indicate this is not a sibcall epilogue.
35816         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35817         (nds32_expand_epilogue_v3pop): Likewise.
35819 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35821         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35822         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35823         (return_internal): New.
35824         (return): Define this named pattern.
35825         (simple_return): Define this named pattern.
35826         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35827         pattern instead of unspec_volatile_func_return.
35828         (nds32_expand_epilogue_v3pop): Likewise.
35829         (nds32_can_use_return_insn): New function.
35831 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35833         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35834         * config/nds32/nds32.md (pop25return): New.
35835         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35836         pop25return pattern.
35838 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35840         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35841         -mforbid-fp-as-gp, and -mex9 options.
35843 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35845         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35846         remove -mgp-direct option.
35848 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35850         * doc/invoke.texi (--param early-inlining-insns): Update default value.
35851         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35853 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35855         * ipa-inline.c (inline_small_functions): Work around hints
35856         cache issue.
35858 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
35860         PR target/59710
35861         * doc/invoke.texi (Option Summary): Document new Nios II
35862         -mgpopt= syntax.
35863         (Nios II Options): Likewise.
35864         * config/nios2/nios2.opt: Add -mgpopt= option support.
35865         Modify existing -mgpopt and -mno-gpopt options to be aliases.
35866         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35867         * config/nios2/nios2.c (nios2_option_override): Adjust
35868         -mgpopt defaulting.
35869         (nios2_in_small_data_p): Return true for explicit small data
35870         sections even with -G0.
35871         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35872         option choices.
35874 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35876         PR ipa/64612
35877         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35878         of comdat locals.
35879         (inline_call): Fix removal of aliases.
35881 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
35883         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35884         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35885         * opts.c (common_handle_option): Add -fsanitize=vptr.
35886         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35887         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35888         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35889         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35890         (ubsan_expand_vptr_ifn): New prototype.
35891         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35892         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35893         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35894         expand_LOOP_VECTORIZED): Make argument nameless, remove
35895         ATTRIBUTE_UNUSED.
35896         (expand_UBSAN_VPTR): New function.
35897         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35898         in fn spec.
35899         (UBSAN_VPTR): New internal function.
35900         * sanopt.c (tree_map_traits): Renamed to ...
35901         (sanopt_tree_map_traits): ... this.
35902         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35903         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35904         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
35905         (maybe_optimize_ubsan_vptr_ifn): New function.
35906         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35907         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
35908         -fsanitize=vptr.
35909         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35910         internal calls like pure functions for aliasing, even when they
35911         have other side-effects that prevent making them ECF_PURE.
35912         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35913         (ubsan_expand_vptr_ifn): New function.
35915 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35917         PR rtl-optimization/64110
35918         * stmt.c (parse_output_constraint): Process '^' and '$'.
35919         (parse_input_constraint): Ditto.
35920         * lra-constraints.c (process_alt_operands): Process the new
35921         constraints.
35922         * ira-costs.c (record_reg_classes): Process the new constraint
35923         '^'.
35924         * genoutput.c (indep_constraints): Add '^' and '$'.
35925         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35926         * doc/md.texi: Add description of the new constraints.
35928 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
35929             Bernd Schmidt  <bernds@codesourcery.com>
35930             Cesar Philippidis  <cesar@codesourcery.com>
35931             James Norris  <jnorris@codesourcery.com>
35932             Tom de Vries  <tom@codesourcery.com>
35933             Ilmir Usmanov  <i.usmanov@samsung.com>
35934             Dmitry Bocharnikov  <dmitry.b@samsung.com>
35935             Evgeny Gavrin  <e.gavrin@samsung.com>
35936             Jakub Jelinek  <jakub@redhat.com>
35938         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35939         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35940         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35941         New function types.
35942         * builtins.c: Include "gomp-constants.h".
35943         (expand_builtin_acc_on_device): New function.
35944         (expand_builtin, is_inexpensive_builtin): Handle
35945         BUILT_IN_ACC_ON_DEVICE.
35946         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35947         New macros.
35948         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35949         flag_openmp.
35950         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35951         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35952         i386/intelmic-offload.h.
35953         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35954         to libgomp and its dependencies.
35955         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35956         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35957         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35958         * config/ia64/hpux.h (LIB_SPEC): Likewise.
35959         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35960         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35961         * doc/generic.texi: Update for OpenACC changes.
35962         * doc/gimple.texi: Likewise.
35963         * doc/invoke.texi: Likewise.
35964         * doc/sourcebuild.texi: Likewise.
35965         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35966         GF_OMP_FOR_KIND_OACC_LOOP.
35967         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35968         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35969         GF_OMP_TARGET_KIND_OACC_UPDATE,
35970         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35971         Dump more data.
35972         * gimple.c: Update comments for OpenACC changes.
35973         * gimple.def: Likewise.
35974         * gimple.h: Likewise.
35975         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35976         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35977         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35978         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35979         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35980         appropriate place.
35981         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35982         * gimplify.c: Include "gomp-constants.h".
35983         Update comments for OpenACC changes.
35984         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35985         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35986         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35987         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35988         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35989         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35990         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35991         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35992         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35993         OMP_CLAUSE_SEQ.
35994         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35995         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
35996         OMP_CLAUSE_SET_MAP_KIND.
35997         (gimplify_oacc_cache): New function.
35998         (gimplify_omp_for): Handle OACC_LOOP.
35999         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36000         OACC_DATA.
36001         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36002         OACC_EXIT_DATA, OACC_UPDATE.
36003         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36004         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36005         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36006         (gimplify_body): Consider flag_openacc next to flag_openmp.
36007         * lto-streamer-out.c: Include "gomp-constants.h".
36008         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36009         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36010         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36011         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36012         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36013         (BUILT_IN_ACC_ON_DEVICE): New builtins.
36014         * omp-low.c: Include "gomp-constants.h".
36015         Update comments for OpenACC changes.
36016         (struct omp_context): Add reduction_map, gwv_below, gwv_this
36017         members.
36018         (extract_omp_for_data, use_pointer_for_field, install_var_field)
36019         (new_omp_context, delete_omp_context, scan_sharing_clauses)
36020         (create_omp_child_function, scan_omp_for, scan_omp_target)
36021         (check_omp_nesting_restrictions, lower_reduction_clauses)
36022         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36023         Update for OpenACC changes.
36024         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36025         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36026         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36027         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36028         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36029         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
36030         OMP_CLAUSE_MAP_*.
36031         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36032         Handle GF_OMP_FOR_KIND_OACC_LOOP.
36033         (expand_omp_target, lower_omp_target): Handle
36034         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36035         GF_OMP_TARGET_KIND_OACC_UPDATE,
36036         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36037         GF_OMP_TARGET_KIND_OACC_DATA.
36038         (pass_expand_omp::execute, execute_lower_omp)
36039         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36040         flag_openmp.
36041         (offload_symbol_decl): New variable.
36042         (oacc_get_reduction_array_id, oacc_max_threads)
36043         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36044         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36045         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36046         (oacc_gimple_assign, oacc_initialize_reduction_data)
36047         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36048         functions.
36049         (is_targetreg_ctx): Remove function.
36050         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36051         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36052         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36053         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36054         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36055         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36056         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36057         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36058         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36059         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36060         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36061         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36062         * tree-core.h: Update comments for OpenACC changes.
36063         (enum omp_clause_map_kind): Remove.
36064         (struct tree_omp_clause): Change type of map_kind member from enum
36065         omp_clause_map_kind to unsigned char.
36066         * tree-inline.c: Update comments for OpenACC changes.
36067         * tree-nested.c: Likewise.  Include "gomp-constants.h".
36068         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36069         (convert_tramp_reference_stmt, convert_gimple_call): Update for
36070         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36071         OMP_CLAUSE_SET_MAP_KIND.
36072         * tree-pretty-print.c: Include "gomp-constants.h".
36073         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36074         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36075         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36076         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36077         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36078         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
36079         instead of OMP_CLAUSE_MAP_*.
36080         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36081         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36082         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36083         * tree-streamer-in.c: Include "gomp-constants.h".
36084         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36085         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
36086         * tree-streamer-out.c: Include "gomp-constants.h".
36087         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36088         OMP_CLAUSE_MAP_*.
36089         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36090         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36091         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36092         * tree.c (omp_clause_num_ops): Update accordingly.
36093         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36094         Likewise.
36095         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36096         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36097         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36098         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36099         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36100         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36101         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36102         (OMP_CLAUSE_SET_MAP_KIND): New macro.
36103         * varpool.c (varpool_node::get_create): Consider flag_openacc next
36104         to flag_openmp.
36105         * config/i386/intelmic-offload.h: New file.
36106         * config/nvptx/offload.h: Likewise.
36108 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36110         * explow.h: Remove duplicate contents.
36111         * dojump.h: Likewise.
36113 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
36115         * arm.c (arm_xgene_tune): Add default initializer for instruction
36116         fusion.
36118 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36120         PR ipa/64068
36121         PR ipa/64559
36122         * ipa.c (symbol_table::remove_unreachable_nodes):
36123         Do not put abstract origins into boundary.
36125 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
36127         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36128         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36130 2015-01-15  Steve Ellcey  <sellcey@mips.com>
36132         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36133         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36134         builtins.def, and chkp-builtins.def.
36136 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
36138         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36139         ISA 2.7 (POWER8).
36141 2015-01-15  Richard Biener  <rguenther@suse.de>
36143         PR tree-optimization/61743
36144         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36145         information on PHIs for some simple cases.
36147 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36149         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36150         Include xgene1.md.
36151         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36152         * config/arm/arm-cores.def (xgene1): New entry.
36153         * config/arm/arm-tables.opt: Regenerate.
36154         * config/arm/arm-tune.md: Regenerate.
36155         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36157 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36159         * tree-if-conv.c: Include hash-map.h.
36160         (aggressive_if_conv): New variable.
36161         (fold_build_cond_expr): Add simplification of non-zero condition.
36162         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36163         destination block is not always executed.
36164         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36165         than two predecessors if AGGRESSIVE_IF_CONV is true.
36166         (if_convertible_stmt_p): Fix commentary.
36167         (all_preds_critical_p): New function.
36168         (has_pred_critical_p): New function.
36169         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36170         BB can have more than two predecessors and all incoming edges can be
36171         critical.
36172         (predicate_bbs): Skip predication for loop exit block, use build2_loc
36173         to compute predicate for true edge.
36174         (find_phi_replacement_condition): Delete this function.
36175         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36176         Allow interchange PHI arguments if EXTENDED is false.
36177         Change check that block containing reduction statement candidate
36178         is predecessor of phi-block since phi may have more than two arguments.
36179         (phi_args_hash_traits): New helper structure.
36180         (struct phi_args_hash_traits): New type.
36181         (phi_args_hash_traits::hash): New function.
36182         (phi_args_hash_traits::equal_keys): New function.
36183         (gen_phi_arg_condition): New function.
36184         (predicate_scalar_phi): Add handling of phi nodes with more than two
36185         arguments, delete COND and TRUE_BB arguments, insert body of
36186         find_phi_replacement_condition to predicate ordinary phi nodes.
36187         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36188         delete call of find_phi_replacement_condition and invoke
36189         predicate_scalar_phi with two arguments.
36190         (insert_gimplified_predicates): Add assert that non-predicated block
36191         don't have statements to insert.
36192         (ifcvt_split_critical_edges): New function.
36193         (ifcvt_split_def_stmt): Likewise.
36194         (ifcvt_walk_pattern_tree): Likewise.
36195         (stmt_is_root_of_bool_pattern): Likewise.
36196         (ifcvt_repair_bool_pattern): Likewise.
36197         (ifcvt_local_dce): Likewise.
36198         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36199         is copy of inner or outer loop force_vectorize field, invoke
36200         ifcvt_split_critical_edges, ifcvt_local_dce and
36201         ifcvt_repair_bool_pattern for aggressive if-conversion.
36203 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
36205         * config/aarch64/aarch64.md: Include xgene1.md.
36206         * config/aarch64/xgene1.md: New file.
36208 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36210         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36211         xgene1 (APM XGene-1) core definition.
36212         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36213         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36214         * doc/invoke.texi: Document -mcpu=xgene1.
36216 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36218         * dojump.h: New header file.
36219         * explow.h: Likewise.
36220         * expr.h: Remove includes.
36221         Move expmed.c prototypes to expmed.h.
36222         Move dojump.c prototypes to dojump.h.
36223         Move alias.c prototypes to alias.h.
36224         Move explow.c prototypes to explow.h.
36225         Move calls.c prototypes to calls.h.
36226         Move emit-rtl.c prototypes to emit-rtl.h.
36227         Move varasm.c prototypes to varasm.h.
36228         Move stmt.c prototypes to stmt.h.
36229         (saved_pending_stack_adjust): Move to dojump.h.
36230         (adjust_address): Move to explow.h.
36231         (adjust_address_nv): Move to emit-rtl.h.
36232         (adjust_bitfield_address): Likewise.
36233         (adjust_bitfield_address_size): Likewise.
36234         (adjust_bitfield_address_nv): Likewise.
36235         (adjust_automodify_address_nv): Likewise.
36236         * explow.c (expr_size): Move to expr.c.
36237         (int_expr_size): Likewise.
36238         (tree_expr_size): Likewise.
36239         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36240         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36241         * genemit.c (main): Generate includes statistics.h, real.h,
36242         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36243         stmt.h.
36244         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36245         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36246         explow.h, emit-rtl.h, stmt.h.
36247         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36248         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36249         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36250         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36251         emit-rtl.h, varasm.h, stmt.h.
36252         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36253         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36254         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36255         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36256         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36257         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36258         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36259         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36260         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36261         tm.h tree.h varasm.h vec.h wide-int.h.
36262         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36263         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36264         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36265         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36266         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36267         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36268         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36269         * loop-iv.c: Likewise.
36270         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36271         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36272         statistics.h stmt.h tree.h varasm.h wide-int.h.
36273         * lra-constraints.c: Likewise.
36274         * lra-eliminations.c: Likewise.
36275         * lra-lives.c: Likewise.
36276         * lra-remat.c: Likewise.
36277         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36278         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36279         statistics.h stmt.h tree.h varasm.h wide-int.h.
36280         * hw-doloop.c: Likewise.
36281         * ira-color.c: Likewise.
36282         * ira-emit.c: Likewise.
36283         * loop-doloop.c: Likewise.
36284         * loop-invariant.c: Likewise.
36285         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36286         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36287         statistics.h stmt.h tree.h varasm.h wide-int.h.
36288         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36289         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36290         statistics.h stmt.h tree.h varasm.h wide-int.h.
36291         * combine-stack-adj.c: Likewise.
36292         * cse.c: Likewise.
36293         * ddg.c: Likewise.
36294         * ifcvt.c: Likewise.
36295         * ira-costs.c: Likewise.
36296         * jump.c: Likewise.
36297         * lra-coalesce.c: Likewise.
36298         * lra-spills.c: Likewise.
36299         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36300         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36301         stmt.h varasm.h wide-int.h.
36302         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36303         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36304         varasm.h.
36305         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36306         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36307         statistics.h stmt.h varasm.h wide-int.h.
36308         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36309         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36310         varasm.h wide-int.h.
36311         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36312         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36313         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36314         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36315         statistics.h stmt.h.
36316         * config/tilepro/tilepro.c: Likewise.
36317         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36318         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36319         * config/pdp11/pdp11.c: Likewise.
36320         * config/xtensa/xtensa.c: Likewise.
36321         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36322         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36323         varasm.h.
36324         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36325         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36326         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36327         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36328         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36329         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36330         * rtl-chkp.c: Likewise.
36331         * tree-chkp-opt.c: Likewise.
36332         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36333         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36334         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36335         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36336         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36337         statistics.h stmt.h.
36338         * tree-vect-data-refs.c: Likewise.
36339         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36340         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36341         rtl.h statistics.h stmt.h varasm.h.
36342         * internal-fn.c: Likewise.
36343         * ipa-icf-gimple.c: Likewise.
36344         * lto-section-out.c: Likewise.
36345         * tree-data-ref.c: Likewise.
36346         * tree-nested.c: Likewise.
36347         * tree-outof-ssa.c: Likewise.
36348         * tree-predcom.c: Likewise.
36349         * tree-pretty-print.c: Likewise.
36350         * tree-scalar-evolution.c: Likewise.
36351         * tree-ssa-strlen.c: Likewise.
36352         * tree-vect-loop.c: Likewise.
36353         * tree-vect-patterns.c: Likewise.
36354         * tree-vect-slp.c: Likewise.
36355         * tree-vect-stmts.c: Likewise.
36356         * tsan.c: Likewise.
36357         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36358         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36359         stmt.h.
36360         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36361         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36362         statistics.h stmt.h varasm.h.
36363         * loop-unroll.c: Likewise.
36364         * ubsan.c: Likewise.
36365         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36366         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36367         stmt.h varasm.h.
36368         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36369         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36370         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36371         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36372         statistics.h stmt.h.
36373         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36374         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36375         statistics.h stmt.h varasm.h.
36376         * gimple-match-head.c: Likewise.
36377         * lto-cgraph.c: Likewise.
36378         * lto-section-in.c: Likewise.
36379         * lto-streamer-in.c: Likewise.
36380         * lto-streamer-out.c: Likewise.
36381         * tree-affine.c: Likewise.
36382         * tree-cfg.c: Likewise.
36383         * tree-cfgcleanup.c: Likewise.
36384         * tree-if-conv.c: Likewise.
36385         * tree-into-ssa.c: Likewise.
36386         * tree-ssa-alias.c: Likewise.
36387         * tree-ssa-copyrename.c: Likewise.
36388         * tree-ssa-dse.c: Likewise.
36389         * tree-ssa-forwprop.c: Likewise.
36390         * tree-ssa-live.c: Likewise.
36391         * tree-ssa-math-opts.c: Likewise.
36392         * tree-ssa-pre.c: Likewise.
36393         * tree-ssa-sccvn.c: Likewise.
36394         * tree-tailcall.c: Likewise.
36395         * tree-vect-generic.c: Likewise.
36396         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36397         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36398         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36399         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36400         * varasm.c: Likewise.
36401         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36402         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36403         varasm.h.
36404         * init-regs.c: Likewise.
36405         * ira.c: Likewise.
36406         * omp-low.c: Likewise.
36407         * stack-ptr-mod.c: Likewise.
36408         * tree-ssa-reassoc.c: Likewise.
36409         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36410         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36411         varasm.h.
36412         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36413         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36414         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36415         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36416         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36417         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36418         * tree-ssa-phiopt.c: Likewise.
36419         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36420         fixed-value.h hashtab.h real.h statistics.h stmt.h.
36421         * config/fr30/fr30.c: Likewise.
36422         * config/frv/frv.c: Likewise.
36423         * expr.c: Likewise.
36424         * final.c: Likewise.
36425         * optabs.c: Likewise.
36426         * passes.c: Likewise.
36427         * simplify-rtx.c: Likewise.
36428         * stmt.c: Likewise.
36429         * toplev.c: Likewise.
36430         * var-tracking.c: Likewise.
36431         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36432         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36433         * lower-subreg.c: Likewise.
36434         * postreload-gcse.c: Likewise.
36435         * ree.c: Likewise.
36436         * reginfo.c: Likewise.
36437         * store-motion.c: Likewise.
36438         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36439         fixed-value.h hashtab.h real.h stmt.h varasm.h.
36440         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36441         fixed-value.h hashtab.h statistics.h stmt.h.
36442         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36443         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36444         * except.c: Likewise.
36445         * explow.c: Likewise.
36446         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36447         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36448         varasm.h.
36449         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36450         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36451         * tree-ssa-structalias.c: Likewise.
36452         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36453         fixed-value.h insn-config.h real.h statistics.h.
36454         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36455         fixed-value.h insn-config.h real.h statistics.h stmt.h.
36456         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36457         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36458         * cfgbuild.c: Likewise.
36459         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36460         fixed-value.h real.h rtl.h statistics.h stmt.h.
36461         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36462         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36463         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36464         fixed-value.h real.h statistics.h stmt.h.
36465         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36466         fixed-value.h real.h statistics.h stmt.h varasm.h.
36467         * cprop.c: Likewise.
36468         * modulo-sched.c: Likewise.
36469         * postreload.c: Likewise.
36470         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36471         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36472         statistics.h stmt.h varasm.h.
36473         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36474         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36475         rtl.h statistics.h stmt.h varasm.h.
36476         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36477         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36478         varasm.h.
36479         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36480         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36481         varasm.h.
36482         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36483         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36484         varasm.h.
36485         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36486         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36487         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36488         function.h real.h statistics.h stmt.h varasm.h.
36489         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36490         insn-config.h real.h statistics.h stmt.h.
36491         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36492         statistics.h stmt.h.
36493         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36494         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36495         statistics.h stmt.h varasm.h.
36496         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36497         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36498         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36499         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36500         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36501         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36502         statistics.h stmt.h varasm.h.
36503         * ipa-polymorphic-call.c: Likewise.
36504         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36505         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36506         statistics.h stmt.h.
36507         * config/c6x/c6x.c: Likewise.
36508         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36509         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36510         statistics.h stmt.h varasm.h.
36511         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36512         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36513         stmt.h varasm.h.
36514         * ipa-split.c: Likewise.
36515         * tree-eh.c: Likewise.
36516         * tree-ssa-dce.c: Likewise.
36517         * tree-ssa-loop-niter.c: Likewise.
36518         * tree-vrp.c: Likewise.
36519         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36520         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36521         stmt.h.
36522         * config/nds32/nds32-fp-as-gp.c: Likewise.
36523         * config/nds32/nds32-intrinsic.c: Likewise.
36524         * config/nds32/nds32-isr.c: Likewise.
36525         * config/nds32/nds32-md-auxiliary.c: Likewise.
36526         * config/nds32/nds32-memory-manipulation.c: Likewise.
36527         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36528         * config/nds32/nds32-predicates.c: Likewise.
36529         * config/nds32/nds32.c: Likewise.
36530         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36531         fixed-value.h hashtab.h real.h statistics.h.
36532         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36533         fixed-value.h hashtab.h real.h statistics.h stmt.h.
36534         * config/arm/arm.c: Likewise.
36535         * config/avr/avr.c: Likewise.
36536         * config/bfin/bfin.c: Likewise.
36537         * config/h8300/h8300.c: Likewise.
36538         * config/i386/i386.c: Likewise.
36539         * config/ia64/ia64.c: Likewise.
36540         * config/iq2000/iq2000.c: Likewise.
36541         * config/m32c/m32c.c: Likewise.
36542         * config/m32r/m32r.c: Likewise.
36543         * config/m68k/m68k.c: Likewise.
36544         * config/mcore/mcore.c: Likewise.
36545         * config/mep/mep.c: Likewise.
36546         * config/mips/mips.c: Likewise.
36547         * config/mn10300/mn10300.c: Likewise.
36548         * config/moxie/moxie.c: Likewise.
36549         * config/pa/pa.c: Likewise.
36550         * config/rl78/rl78.c: Likewise.
36551         * config/rx/rx.c: Likewise.
36552         * config/s390/s390.c: Likewise.
36553         * config/sh/sh.c: Likewise.
36554         * config/sparc/sparc.c: Likewise.
36555         * config/spu/spu.c: Likewise.
36556         * config/stormy16/stormy16.c: Likewise.
36557         * config/v850/v850.c: Likewise.
36558         * config/vax/vax.c: Likewise.
36559         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36560         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36561         * config/msp430/msp430.c: Likewise.
36562         * predict.c: Likewise.
36563         * value-prof.c: Likewise.
36564         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36565         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36566         * config/microblaze/microblaze.c: Likewise.
36567         * config/nios2/nios2.c: Likewise.
36568         * config/rs6000/rs6000.c: Likewise.
36569         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36570         insn-config.h real.h rtl.h statistics.h stmt.h.
36571         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36572         insn-config.h real.h statistics.h stmt.h.
36573         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36574         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36575         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36576         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36577         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36578         fixed-value.h real.h statistics.h stmt.h.
36579         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36580         fixed-value.h statistics.h stmt.h.
36581         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36582         stmt.h.
36584 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36586         * gengtype.c (create_user_defined_type): Workaround
36587         -Wmaybe-uninitialized false positives.
36588         * cse.c (fold_rtx): Likewise.
36589         * loop-invariant.c (gain_for_invariant): Likewise.
36591 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36593         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36594         set the memory attributes in all cases but clear MEM_EXPR if need be.
36596 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36598         PR tree-optimization/64434
36599         * cfgexpand.c (reorder_operands): New function.
36600         (expand_gimple_basic_block): Insert call of reorder_operands if
36601         optimized is true.
36603 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
36605         * config/mips/micromips.md (*swp): Remove explicit parallel.
36606         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36607         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36608         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36609         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36610         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36611         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36612         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36613         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36614         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36615         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36616         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36617         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36618         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36619         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36620         (mips_wrdsp): Likewise.
36621         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36622         parallel.
36623         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36624         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36625         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36626         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36627         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36628         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36629         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36630         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36631         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36633 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36635         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36636         (mips_print_operand): Support 'y' to print exact log2 in decimal
36637         of a const_int.
36638         * config/mips/mips.h (ISA_HAS_LSA): New define.
36639         (ISA_HAS_DLSA): Likewise.
36640         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36641         * config/mips/predicates.md (const_immlsa_operand): New predicate.
36643 2015-01-15  Martin Liska  <mliska@suse.cz>
36645         PR target/64377
36646         * optc-save-gen.awk: Add support for array types.
36648 2015-01-15  Richard Biener  <rguenther@suse.de>
36650         PR middle-end/64365
36651         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36652         for MEM_REF access functions with the same base can never partially
36653         overlap.
36655 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
36657         * common.opt: New option -fstack-protector-explicit.
36658         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36659         (stack_protect_decl_phase): Handle stack_protect attribute for
36660         explicit stack protection requests.
36661         (expand_used_vars): Similarly.
36662         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36663         * doc/extend.texi: Add documentation for "stack_protect" attribute.
36664         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36666 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
36668         PR target/53988
36669         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36670         reg-reg copies.
36671         (sh_extending_set_of_reg): New struct.
36672         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36673         sh_remove_reg_dead_or_unused_notes): New Declarations.
36674         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36675         sh_find_extending_set_of_reg, sh_split_tst_subregs,
36676         sh_extending_set_of_reg::use_as_extended_reg): New functions.
36677         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36678         convert to insn_and_split and use new function sh_split_tst_subregs.
36680 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
36682         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36683         option.
36684         (Optimization Options): Move -fuse-ld documentation to...
36685         (Link Options): ...here.
36687 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36689         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36690         offsets.
36691         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36692         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36693         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36694         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36695         instead of ZR for the memory operand of LL/SC.
36696         (compare_and_swap_12, sync_add<mode>): Likewise.
36697         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36698         (sync_new_<optab>_12, sync_nand_12): Likewise.
36699         (sync_old_nand_12, sync_new_nand_12): Likewise.
36700         (sync_sub<mode>, sync_old_add<mode>): Likewise.
36701         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36702         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36703         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36704         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36705         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36706         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36707         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36708         * doc/md.texi (ZC): Update description.
36710 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
36712         * builtins.c (expand_builtin_atomic_exchange): Remove error when
36713         memory model is CONSUME.
36714         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36715         expand_builtin_atomic_store): Change invalid memory model errors to
36716         warnings.
36717         (expand_builtin_atomic_clear): Change invalid model errors to warnings
36718         and issue warning for CONSUME.
36720 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
36722         * lto-cgraph: Update function comments for
36723         lto_symtab_encoder_encode_*.
36725 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
36727         * Makefile.in (site.exp): Do not set ENABLE_LTO.
36729 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
36731         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36732         * lto-cgraph.c (select_what_to_stream): Remove argument, use
36733         lto_stream_offload_p instead.
36734         * lto-streamer.h (select_what_to_stream): Remove argument.
36735         * passes.c (ipa_write_summaries): Likewise.
36736         * tree-pass.h (ipa_write_summaries): Likewise.
36738 2015-01-14  Richard Biener  <rguenther@suse.de>
36740         PR tree-optimization/59354
36741         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36742         groups larger than the slp group size as having gaps.
36744 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
36746         PR middle-end/59448
36747         * builtins.c (get_memmodel): Promote consume to acquire always.
36749 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36751         PR target/64386
36752         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36753         V32HImode.
36755 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36757         PR target/64393
36758         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36759         Enable AVX512BW.
36760         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36761         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36762         AVX512VBMI, as it implies AVX512BW.
36764 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36766         PR target/64387
36767         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36768         (vec_unpacks_hi_v16sf): Ditto.
36770 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36772         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36773         is not available.
36775 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36777         * doc/invoke.texi (mapcs): Mention deprecation.
36778         (mapcs-frame): Likewise.
36780 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36782         PR target/64453
36783         * config/arm/arm.c (callee_saved_reg_p): Define.
36784         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36785         register is callee saved instead of !call_used_regs[reg].
36786         (thumb1_compute_save_reg_mask): Likewise.
36788 2015-01-14  Hale Wang  <hale.wang@arm.com>
36790         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36791         Cortex-M7.
36793 2015-01-14  Richard Biener  <rguenther@suse.de>
36795         PR lto/64415
36796         * tree-inline.c (insert_debug_decl_map): Check destination
36797         function MAY_HAVE_DEBUG_STMTS.
36798         (insert_init_debug_bind): Likewise.
36799         (insert_init_stmt): Remove redundant check.
36800         (remap_gimple_stmt): Drop debug stmts if the destination
36801         function has var-tracking assignments disabled.
36803 2015-01-14  Martin Liska  <mliska@suse.cz>
36805         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36806         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36808 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36810         PR target/64460
36811         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36812         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36814 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36816         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36817         level from an ARCH; do not inject the default.
36818         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36819         MIPS_ISA_LEVEL_SPEC.
36820         (MIPS_ISA_NAN2008_SPEC): Update comment.
36821         (BASE_DRIVER_SELF_SPECS): Likewise.
36822         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36823         MIPS_DEFAULT_ISA_LEVEL_SPEC.
36824         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36825         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36826         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36828 2015-01-14  Richard Biener  <rguenther@suse.de>
36830         PR tree-optimization/64493
36831         PR tree-optimization/64495
36832         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36833         assign the proper vectorized PHI to the inner loop exit PHIs.
36835 2015-01-14  Joey Ye  <joey.ye@arm.com>
36837         * config/arm/arm.c (arm_compute_save_reg_mask):
36838         Do not save lr in case of tail call.
36839         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36841 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
36843         * tree-vrp.c (check_array_ref): Emit more warnings
36844         for warn_array_bounds >= 2.
36845         * common.opt: New option -Warray-bounds=.
36846         * doc/invoke.texi: Document -Warray-bounds=.
36848 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
36850         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36851         (mforbid-fp-as-gp): Remove.
36852         (mex9): Remove.
36853         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36854         (nds32_symbol_load_store_p): Remove.
36855         (nds32_fp_as_gp_check_available): Clean up implementation.
36856         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36857         cases.
36858         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36859         fp-as-gp and ex9 cases.
36861 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36863         * tree-profile.c (init_ic_make_global_vars): Drop workaround
36864         for bintuils bug 14342.
36865         (init_ic_make_global_vars): Likewise.
36866         (gimple_init_edge_profiler): Likewise.
36867         (gimple_gen_ic_func_profiler): Likewise.
36869 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36871         * ipa-inline.c (inline_small_functions): Swap the operands in
36872         enum.
36874 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36876         PR ipa/64481
36877         * ipa-inline-analysis.c (node_growth_cache): Remove.
36878         (initialize_growth_caches): Do not initialize it.
36879         (free_growth_caches): Do not free it.
36880         (do_estimate_growth): Rename to ...
36881         (estimate_growth): ... this one; drop growth cache code.
36882         (growth_likely_positive): Always go the heuristics way.
36883         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36884         (reset_edge_caches): Do not reset node growth.
36885         (heap_edge_removal_hook): Do not maintain cache.
36886         (inline_small_functions): Likewise; strenghten sanity check.
36887         (ipa_inline): Do not maintain caches.
36888         * ipa-inline.h (node_growth_cache): Remove.
36889         (do_estimate_growth): Remove to ...
36890         (estimate_growth): this one; remove inline version.
36891         (reset_node_growth_cache): Remove.
36893 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36895         PR ipa/64565
36896         * ipa-inline.c (inline_small_functions): Update callee keys after
36897         resolving speculation
36898         (inline_small_functions): Always check monotonicity of the queue.
36900 2015-01-13  Marek Polacek  <polacek@redhat.com>
36902         PR middle-end/64391
36903         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36905 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36907         PR rtl-optimization/64286
36908         * ree.c (combine_reaching_defs): Move part of comment earlier,
36909         remove !SCALAR_INT_MODE_P check.
36910         (add_removable_extension): Don't add vector mode
36911         extensions if all uses of the source register aren't the same
36912         vector extensions.
36914 2015-01-13  Renlin Li  <renlin.li@arm.com>
36916         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36917         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36919 2015-01-13  Martin Liska  <mliska@suse.cz>
36921         * ipa-icf.c (sem_function::equals_private): Call new functions
36922         cl_target_option_print_diff and cl_optimization_print_diff.
36923         * optc-save-gen.awk (cl_target_option_print_diff): New function.
36924         (cl_optimization_print_diff): Likewise.
36925         * opth-gen.awk: Likewise.
36927 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
36929         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36930         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36931         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36932         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36933         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36934         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36936 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36938         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36939         instead of src mode.
36941 2015-01-13  Richard Biener  <rguenther@suse.de>
36943         PR lto/64373
36944         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36945         DECL_CONTEXT.
36947 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36949         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36950         volatile mems.
36951         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36953 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36955         PR middle-end/63974
36956         * cfgexpand.c (expand_computed_goto): Don't call
36957         convert_memory_address here.
36959 2015-01-13  Richard Biener  <rguenther@suse.de>
36961         PR tree-optimization/64406
36962         * tree-loop-distibution.c (pass_loop_distribution::execute):
36963         Reset the SCEV hashtable if we distributed anything.
36965 2015-01-13  Richard Biener  <rguenther@suse.de>
36967         PR tree-optimization/64404
36968         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36969         SLP types for CSEd loads.
36971 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36973         PR tree-optimization/64436
36974         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36975         merge of two symbolic numbers for a bitwise OR to ...
36976         (perform_symbolic_merge): This. Also fix computation of the range and
36977         end of the symbolic number corresponding to the result of a bitwise OR.
36979 2015-01-13  Richard Biener  <rguenther@suse.de>
36981         PR tree-optimization/64568
36982         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36983         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36985 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36987         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36988         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36990 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36992         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36993         target-specific symbol_ref flag.
36994         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36995         resides in rodata section.
36996         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36997         (nds32_encode_section_info): New function.
36999 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37001         * config/nds32/nds32.md (call): Use pseudo instruction bal which
37002         clobbers TA_REGNUM if large code model is specified.
37003         (call_register): Likewise.
37004         (call_immediate): Likewise.
37005         (call_value): Likewise.
37006         (call_value_register): Likewise.
37007         (call_value_immediate): Likewise.
37009 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37011         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37012         (TARGET_CMODEL_MEDIUM): New macro.
37013         (TARGET_CMODEL_LARGE): New macro.
37014         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37015         code model setting in assembly code.
37017 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37019         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37020         Remove MASK_GP_DIRECT flag.
37021         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37022         one of the multilib default options.
37023         * config/nds32/nds32.opt (mgp-direct): Remove.
37024         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37025         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
37027 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37029         * config/nds32/nds32.opt (mcmodel): Add new option.
37030         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37031         to describe code model.
37033 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
37035         PR target/64479
37036         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37038 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
37040         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37041         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37042         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37043         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37044         __builtin_sh_set_fpscr.
37046 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37048         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37049         after a funtion name just to indicate it is a function.
37050         ([-fsanitize-undefined-trap-on-error]): Likewise.
37051         ([-fdbg-cnt=]): Likewise.
37052         ([-mmemcpy]): Likewise.
37053         ([-mflush-func]): Likewise.
37054         ([-msynci]): Likewise.
37056 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37058         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37059         example.
37061 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
37063         PR tree-optimization/64563
37064         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37065         instead of != VR_VARYING.
37067         PR target/64513
37068         * config/i386/i386.c (ix86_expand_prologue): Add
37069         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37071         PR tree-optimization/64454
37072         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37073         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37074         for signed or [0, op1 - 1] for unsigned modulo.
37075         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37076         even if op1 does not satisfy integer_pow2p.
37078         PR other/64370
37079         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37081 2015-01-12  Jeff Law  <law@redhat.com>
37083         PR target/64461
37084         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37085         (trunchiqi2, truncsihi2): Similarly.
37087         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37088         rather than calling F.
37090 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37092         * tsan.c (instrument_expr): Use force_gimple_operand.
37093         Use may_be_nonaddressable_p instead of is_gimple_addressable.
37095 2015-01-12  Richard Biener  <rguenther@suse.de>
37097         PR tree-optimization/64530
37098         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37099         back dr1.
37101 2015-01-12  Richard Biener  <rguenther@suse.de>
37103         PR middle-end/64357
37104         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37105         latches properly.
37107 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37109         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37110         Cortex-A17 tuning parameters.
37111         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37113 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37115         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37116         * config/arm/arm.c (arm_macro_fusion_p): New function.
37117         (arm_macro_fusion_pair_p): Likewise.
37118         (TARGET_SCHED_MACRO_FUSION_P): Define.
37119         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37120         (ARM_FUSE_NOTHING): Likewise.
37121         (ARM_FUSE_MOVW_MOVT): Likewise.
37122         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37123         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37124         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37125         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37126         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37127         arm_cortex_a5_tune): Specify fuseable_ops value.
37129 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
37131         PR bootstrap/64561
37132         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37133         test for PIE with copy reloc.
37134         * configure: Regenerated.
37136 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37138         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37139         in gen_rtx_REG.
37140         (arm_tls_descseq_addr): Likewise.
37141         (arm_gen_movmemqi): Likewise.
37142         (arm_expand_epilogue_apcs_frame): Likewise.
37143         (arm_expand_epilogue): Likewise.
37144         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
37145         in gen_rtx_REG.
37147 2015-01-12  Martin Liska  <mliska@suse.cz>
37149         PR ipa/64550
37150         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37151         volatility for correct operands.
37153 2015-01-12  Martin Liska  <mliska@suse.cz>
37155         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37156         indication that a function is not leaf.
37157         (sem_function::compare_polymorphic_p): Likewise.
37159 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37161         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37162         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37163         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37164         fold-const.h, tree-check.h.
37166 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37168         PR ipa/63967
37169         PR ipa/64425
37170         * ipa-inline.c (compute_uninlined_call_time,
37171         compute_inlined_call_time): Use counts for extra precision when
37172         needed possible.
37173         (big_speedup_p): Fix formating.
37174         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37175         (relative_time_benefit): Remove.
37176         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37177         merge guessed and read profile paths.
37178         (inline_small_functions): Count only !optimize_size functions into
37179         initial size; be more lax about sanity check when profile is used;
37180         be sure to update inlined function profile when profile is read.
37182 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37184         PR ipa/63470
37185         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37186         cost when edge becomes direct.
37187         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37188         is resolved or when introducing new speculation.
37190 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
37192         PR ipa/64551
37193         PR ipa/64552
37194         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37195         '||' to fix typo issue.
37197         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37198         accept and return NULL.
37200 2015-01-12  Martin Liska  <mliska@suse.cz>
37202         * cgraph.c (cgraph_edge::remove_callee): Move function to header
37203         file for being inlined.
37204         (cgraph_set_edge_callee): Delete.
37205         (cgraph_edge::redirect_callee): Move function to header file
37206         for being inlined.
37207         (cgraph_edge::make_direct): Use new function.
37208         (cgraph_edge::dump_edge_flags): New function created from
37209         static dump_edge_flags function.
37210         (cgraph_node::dump): Use new function.
37211         (cgraph_edge::verify_count_and_frequency): New function created
37212         from verify_edge_count_and_frequency.
37213         (cgraph_edge::verify_corresponds_to_fndecl): New function created
37214         from verify_edge_corresponds_to_fndecl.
37215         (verify_edge_corresponds_to_fndecl): Delete.
37216         (cgraph_node::verify_node): Use new function.
37217         * cgraph.h (cgraph_edge::set_callee): New function.
37218         (cgraph_edge::dump_edge_flags): Likewise.
37219         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37221 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
37223         * ipa-utils.c (estimate_function_body_sizes): Do not
37224         free node params when called late with early=true.
37226 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
37228         * doc/md.texi (Instruction Patterns): Rewrite text for
37229         clarity.
37230         (Example): Likewise.
37232 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
37234         * doc/invoke.texi (Option Summary): Break long lines.
37235         [(-fdiagnostics-color)]: Put long literal in @smallexample
37236         instead of inline.
37237         [(-fsanitize-recover)]: Likewise.
37238         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37239         [(-ffast-math)]: Likewise.
37240         [(--param max-inline-insns-recursive)]: Likewise.
37241         [(--param max-inline-recursive-depth)]: Likewise.
37242         [(-mno-text-section-literals)]: Likewise.
37244 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
37246         * doc/install.texi: Update for libgomp being renamed from "GNU
37247         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37248         Runtime Library".
37249         * doc/sourcebuild.texi: Likewise.
37251 2015-01-10  Anthony Green  <green@moxielogic.com>
37253         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37254         mul.x availability for moxiebox configuration.
37256 2015-01-09  Anthony Green  <green@moxielogic.com>
37258         * config/moxie/moxie.md: Tabify assembly output.
37260 2015-01-09  Anthony Green  <green@moxielogic.com>
37262         * config/moxie/moxie.md (CC_REG): Correct register definition.
37264 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
37266         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37267         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
37268         of log files.
37270 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37272         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37274 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
37275             Jakub Jelinek  <jakub@redhat.com>
37277         PR middle-end/64412
37278         * lto-streamer.h (lto_stream_offload_p): New declaration.
37279         * lto-streamer.c (lto_stream_offload_p): New variable.
37280         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37281         at the same time as section_name_prefix.
37282         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37283         if lto_stream_offload_p.
37284         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37285         stream TREE_TARGET_OPTION if lto_stream_offload_p.
37286         (write_ts_function_decl_tree_pointers): Don't
37287         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37288         * tree-streamer-in.c (unpack_value_fields): Don't stream
37289         TREE_TARGET_OPTION in if ACCEL_COMPILER.
37290         (lto_input_ts_function_decl_tree_pointers): Don't stream
37291         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37292         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37293         instead of section_name_prefix string comparisons.
37295 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
37297         PR rtl-optimization/64536
37298         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37299         tablejumps.
37301 2015-01-09  Michael Collison  <michael.collison@linaro.org>
37303         PR tree-optimization/64322
37304         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37305         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37307 2015-01-09  Tom de Vries  <tom@codesourcery.com>
37309         PR rtl-optimization/64539
37310         * regcprop.c (kill_clobbered_values): Factor out of ...
37311         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
37312         instead of note_stores with kill_clobbered_value.
37314 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37316          * ginclude/unwind-arm-common.h: Revert previous commit.
37318 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37320         * config.gcc (arm*-*-freebsd*): New configuration.
37321         * config/arm/freebsd.h: New file.
37322         * config.host: Add extra components for arm*-*-freebsd*.
37323         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37324         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37326 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37328         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37329         for -mcpu=e6500.
37330         * config/rs6000/t-rtems: Add e6500 multilibs.
37332 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37334         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37335         MPC8540.
37337 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37339         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37340         MULTILIB_EXCEPTIONS.
37342 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37344         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37345         MULTILIB_EXCEPTIONS.
37347 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37349         * config/arm/t-rtems-eabi: Rename to...
37350         * config/arm/t-rtems: ...this.
37351         * config/arm/rtems-eabi.h: Rename to...
37352         * config/arm/rtems.h: ...this.
37353         * config.gcc (arm*-*-rtems*): Reflect changes above.
37355 2015-01-09  Richard Biener  <rguenther@suse.de>
37357         PR tree-optimization/64410
37358         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37359         on the LHS.
37360         (execute_update_addresses_taken): Deal with that.
37361         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37362         loads/stores for complex variables.
37364 2015-01-09  Martin Liska  <mliska@suse.cz>
37366         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37367         name comparison.
37368         (func_checker::compare_memory_operand): New function.
37369         (func_checker::compare_operand): Split case to newly
37370         added functions.
37371         (func_checker::compare_cst_or_decl): New function.
37372         (func_checker::compare_gimple_call): Identify
37373         memory operands.
37374         (func_checker::compare_gimple_assign): Likewise.
37375         * ipa-icf-gimple.h: New function.
37377 2015-01-09  Martin Liska  <mliska@suse.cz>
37379         PR ipa/64503
37380         * sreal.c (sreal::dump): Change unsigned format to signed for
37381         m_exp value.
37382         (sreal::to_double): Replace exp2 with scalbln.
37384 2015-01-09  Martin Liska  <mliska@suse.cz>
37386         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37387         * ipa-icf.c (sem_function::equals_private): Add support for target and
37388         (sem_item_optimizer::merge_classes): Remove redundant function
37389         optimization flags comparison.
37390         * tree.h (target_opts_for_fn): New function.
37392 2015-01-09  Tom de Vries  <tom@codesourcery.com>
37394         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37396 2015-01-09  Kito Cheng  <kito@0xlab.org>
37398         PR rtl-optimization/64348
37399         * lra-constraints.c (split_reg): Fix caller-save store/restore
37400         instruction generation.
37402 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
37404         PR gcov-profile/61790
37405         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37406         long long.  Fallback to int64_t if host doesn't have long long and
37407         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
37409 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37411         PR tree-optimization/63989
37412         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37413         from 1000 to 10000.
37414         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37415         (get_stridx): If we don't have a record for certain SSA_NAME,
37416         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37417         constant offset, call get_stridx_plus_constant.
37418         (get_stridx_plus_constant): New function.
37419         (zero_length_string): Don't use get_stridx here.
37421         PR target/55023
37422         PR middle-end/64388
37423         * dse.c (struct insn_info): Mention frame_read set also
37424         before reload for tail calls on some targets.
37425         (scan_insn): Revert 2014-12-22 change.  Set frame_read
37426         also before reload for tail calls if
37427         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
37428         instead of add_non_frame_wild_read for non-const/memset
37429         tail calls after reload.
37431 2015-01-08  Jason Merrill  <jason@redhat.com>
37433         * ubsan.c (do_ubsan_in_current_function): New.
37434         (pass_ubsan::gate): Use it.
37435         * ubsan.h: Declare it.
37436         * convert.c (convert_to_integer): Use it.
37438 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37440         PR target/64338
37441         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37442         compare_code when it is unconditionally overwritten afterwards.
37443         Use ix86_reverse_condition instead of reverse_condition.  Don't
37444         change code if *reverse_condition* returned UNKNOWN and don't
37445         swap ct/cf and negate diff in that case.
37447 2015-01-08  Mike Stump  <mikestump@comcast.net>
37449         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37450         (pass_tsan_O0::gate): Likewise.
37451         * extend.texi (Function Attributes): Add no_sanitize_thread
37452         documentation.
37454 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
37456         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37457         for registering builtins.
37458         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37459         add -fopenmp to the argv_obstack used when invoking
37460         compile_for_target.
37462         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37463         add "-m32" or "-m64" to argv_obstack.
37464         (generate_host_descr_file): Likewise, when invoking host_compiler.
37465         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37466         ld.
37468 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37470         * config/sh/sh-mem.cc: Use constant as second operand when emitting
37471         tstsi_t insns.
37473 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37475         PR target/55212
37476         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37477         constant load if constant operand fits into I08.
37479 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37481         PR sanitizer/64336
37482         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37483         and TREE_THIS_VOLATILE for MEM_REFs.
37484         (build5_stat): Fix up initialization of TREE_READONLY and
37485         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37487 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
37489         PR target/64533
37490         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37491         of r for the second alternative of the destination operand.
37493 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
37495         PR target/36557
37496         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37498 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37500         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37501         keywords.
37502         ([-fivar-visibility], [-fvisibility]): Likewise.
37504 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37506         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37507         the file where @code, @command, etc is more appropriate.
37509 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
37511         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37512         of -mrecip= documentation.
37514 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37516         PR target/64505
37517         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37518         correct reload handler if -m32 -mpowerpc64 is used.
37520 2015-01-06  Tom de Vries  <tom@codesourcery.com>
37522         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37524 2015-01-08  Christian Bruel  <christian.bruel@st.com>
37526         PR target/64507
37527         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37529 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37531         PR tree-optimization/63259
37532         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37533         if optab exists for 16bit byteswap.
37535 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
37537         * opts.c (common_handle_option): Add support for
37538         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37539         * doc/invoke.texi: Document -fno-sanitize=all,
37540         -f{,no-}sanitize-recover=all.  Document that
37541         -fsanitize=float-cast-overflow is not enabled
37542         by -fsanitize=undefined.  Fix up documentation
37543         of -f{,no-}sanitize-recover.
37545 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
37547         * config.gcc: Add Visium support.
37548         * configure.ac: Likewise.
37549         * configure: Regenerate.
37550         * doc/extend.texi (interrupt attribute): Add Visium.
37551         * doc/invoke.texi: Document Visium options.
37552         * doc/install.texi: Document Visium target.
37553         * doc/md.texi: Document Visium constraints.
37554         * common/config/visium: New directory.
37555         * config/visium: Likewise.
37557 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37559         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37560         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37562 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37564         * combine.c (combine_validate_cost): Do not count the cost of a
37565         split I2 twice.  Do not display it twice in the dump, either.
37567 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37569         Revert parts of r219199.
37570         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37571         <inttypes.h>.
37572         ([-Wtraditional]): Restore markup on <limits.h>.
37574 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
37576         PR c++/31397
37577         * doc/invoke.texi: Document -Wsuggest-override.
37579 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
37581         PR rtl-optimization/64287
37582         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37583         (process_options): Disable flag_ipa_ra if profiling.
37585 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37587         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37589 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
37591         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37592         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37593         put under #if TARGET_LOOPS guard.
37595 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
37597         * config/i386/i386.c (output_387_binary_op): Use std::swap.
37599 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
37601         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37602         * rtl.h (refers_to_regno_p): Add overload.
37603         * cse.c: Use it.
37604         * bt-load.c: Likewise.
37605         * combine.c: Likewise.
37606         * df-scan.c: Likewise.
37607         * sched-deps.c: Likewise.
37608         * config/s390/s390.c: Likewise.
37609         * config/m32r/m32r.c: Likewise.
37610         * config/rs6000/spe.md: Likewise.
37611         * config/rs6000/rs6000.c: Likewise.
37612         * config/pa/pa.c: Likewise.
37613         * config/stormy16/stormy16.c: Likewise.
37614         * config/cris/cris.c: Likewise.
37615         * config/arc/arc.md: Likewise.
37616         * config/arc/arc.c: Likewise.
37617         * config/sh/sh.md: Likewise.
37618         * config/sh/sh.c: Likewise.
37619         * config/frv/frv.c: Likewise.
37621 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37623         PR sanitizer/64265
37624         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37625         call as cleanup of the whole body.
37626         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37627         * tsan.c (replace_func_exit): New function.
37628         (instrument_func_exit): Moved earlier.
37629         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37630         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37631         been found.
37632         (tsan_pass): Don't call instrument_func_exit.
37633         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37634         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37635         inlining.
37637         PR sanitizer/64344
37638         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37639         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37640         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
37641         if the result is integer_zerop, return NULL_TREE.
37642         * convert.c (convert_to_integer): Pass expr as ARG.
37644         PR tree-optimization/64465
37645         * tree-inline.c (redirect_all_calls): During inlining
37646         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37647         changed the stmt to a non-throwing call.
37649 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37651         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37652         etc markup throughout the file.
37654 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37656         Enable experimental TSAN support for Ada.
37657         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37659 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37661         PR tree-optimization/64494
37662         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37663         clear SSA_NAME_ANTI_RANGE_P flag.
37665 2015-01-05  Marek Polacek  <polacek@redhat.com>
37667         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37669 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37671         Update copyright years.
37673         * gcc.c (process_command): Update copyright notice dates.
37674         * gcov-dump.c: Ditto.
37675         * gcov.c: Ditto.
37676         * doc/cpp.texi: Bump @copying's copyright year.
37677         * doc/cppinternals.texi: Ditto.
37678         * doc/gcc.texi: Ditto.
37679         * doc/gccint.texi: Ditto.
37680         * doc/gcov.texi: Ditto.
37681         * doc/install.texi: Ditto.
37682         * doc/invoke.texi: Ditto.
37684         * auto-profile.c, auto-profile.h: Fix up Copyright line.
37686 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
37688         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37689         verb tense, etc.
37690         ([-fvtable-verify], [-fvtv-debug]): Likewise.
37691         ([-Wabi]): Likewise.
37692         ([-fmessage-length]): Likewise.
37693         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37694         ([-Wno-discarded-qualifiers]): Likewise.
37695         ([-Wnodiscarded-array-qualifiers]): Likewise.
37696         ([-Wno-virtual-move-assign]): Likewise.
37697         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37698         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37699         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37700         ([-fsanitize-undefined-trap-on-error]): Likewise.
37701         ([-floop-interchange]): Likewise.
37702         ([-ftree-coalesce-inlined-vars]): Likewise.
37703         ([-fvect-cost-model]): Likewise.
37704         ([-flto]): Likewise.
37705         ([--param]): Likewise.
37706         (Spec Files): Likewise.
37707         ([-mstrict-align]): Likewise.
37708         ([-mfix-cortex-a53-835769]): Likewise.
37709         ([-march], [-mtune]): Likewise.
37710         ([-mpic-register]): Likewise.
37711         ([-munaligned-access]): Likewise.
37712         ([-msp8]): Likewise.
37713         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37714         (AVR Built-in Macros): Likewise.
37715         ([-mpreferred-stack-boundary]): Likewise.
37716         ([-mtune-crtl]): Likewise.
37717         ([-mashf]): Likewise.
37718         ([-mmcu=]): Likewise.
37719         ([-minrt]): Likewise.
37720         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37721         ([-mupper-regs]): Likewise.
37722         ([-matomic-model]): Likewise.
37723         ([-mdiv]): Likewise.
37724         ([-mzdcbranch]): Likewise.
37725         ([-mdisable-callt]): Likewise.
37726         ([-msoft-float]): Likewise.
37727         ([-m8byte-align]): Likewise.
37728         ([-fstack-reuse]): Likewise.
37730 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37732         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37733         Fix markup, light copy-editing.
37734         ([-fauto-profile]): Rewrite to fix formatting and content
37735         problems.
37737 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37739         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37740         Copy-edit description.
37741         ([-fisolate-erroneous-paths-attribute]): Likewise.
37742         * common.opt (fisolate-erroneous-paths-dereference):
37743         Copy-edit description.
37744         (fisolate-erroneous-paths-attribute): Likewise.
37746 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37748         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37749         tidy grammar.
37751 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37753         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37754         ([-fvtv-debug]): Likewise.
37755         ([-Wc++-compat]): Likewise.
37756         ([-Wc++11-compat]): Likewise.
37757         ([-Wc++14-compat]): Likewise.
37758         ([-Wno-sized-deallocation]): Likewise.
37759         ([-femit-class-debug-always]): Likewise.
37760         ([-femit-struct-debug-detailed]): Likewise.
37761         ([-fno-keep-inline-dllexport]): Likewise.
37762         ([-fira-algorithm]): Likewise.
37763         ([-fira-region]): Likewise.
37764         ([-flra-remat]): Likewise.
37765         ([-fipa-ra]): Likewise.
37766         ([-fhoist-adjacent-loads]): Likewise.
37767         ([-fisolate-erroneous-paths-dereference]): Likewise.
37768         ([-fisolate-erroneous-paths-attribute]): Likewise.
37769         ([-ftree-switch-conversion]): Likewise.
37770         ([-ftree-tail-merge]): Likewise.
37771         ([-ftree-loop-if-convert]): Likewise.
37772         ([-ftree-loop-if-convert-stores]): Likewise.
37773         ([-ftree-loop-distribution]): Likewise.
37774         ([-ftree-loop-distribute-patterns]): Likewise.
37775         ([-flto-compression-level]): Likewise.
37776         ([-flto-report]): Likewise.
37777         ([-flto-report-wpa]): Likewise.
37778         ([-fuse-linker-plugin]): Likewise.
37779         ([-mfix-cortex-a53-835769]): Likewise.
37780         ([-mno-fix-cortex-a53-835769]): Likewise.
37781         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37782         explicit listing; add a note to the discussion indicating they
37783         exist.  Reorder table to group similar options.  Add missing
37784         @opindex entries.  Add @need commands throughout the table to
37785         allow it to be split across multiple pages.
37786         ([-m8bit-idiv]): Fix @opindex.
37787         ([-mavx256-split-unaligned-load]): Likewise.
37788         ([-mavx256-split-unaligned-store]): Likewise.
37789         ([-mstack-protector-guard]): Likewise.
37790         ([-mcpu=]): Likewise.
37791         ([-mcpu]): Likewise.
37792         ([-mpointer-size=]): Likewise.
37794 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
37796         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37797         instead of `m' constraint.  Likewise for unnamed movb comparison
37798         patterns using reg_before_reload_operand predicate.
37799         * config/pa/predicates.md (reg_before_reload_operand): Tighten
37800         predicate to reject register index and LO_SUM DLT memory forms
37801         after reload.
37803 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37805         * doc/invoke.texi (Option Summary): Fix spelling of
37806         -fdevirtualize-at-ltrans.
37807         ([-fdevirtualize]): Fix markup.
37808         ([-fdevirtualize-speculatively]): Fix typo.
37809         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
37810         implementor-speaky.
37811         * common.opt (fdevirtualize-at-ltrans): Likewise.
37812         * ipa-devirt.c: Fix typos in comments throughout the file.
37813         (ipa_devirt): Fix typos in format strings for dump output.
37815 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37817         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37818         discussion of defaults, light copy-editing.
37820 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37822         * tsan.c (instrument_expr): corrected previous checkin.
37824 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37826         Instrument bit field and unaligned accesses for TSAN.
37827         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37828         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37829         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37830         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37831         unaligned memory regions.
37833 2015-01-01  Anthony Green  <green@moxielogic.com>
37835         * config/moxie/predicates.md (moxie_general_movsrc_operand):
37836         Restrict move source register offsets to 16 bits.
37838 Copyright (C) 2015 Free Software Foundation, Inc.
37840 Copying and distribution of this file, with or without modification,
37841 are permitted in any medium without royalty provided the copyright
37842 notice and this notice are preserved.